CodePudding user response:
Thank you worry!!!!!!The wrong figure,
The Index CSHTML for
Paypal. The Buttons ({
//Set up the transaction
EnableStandardCardFields: true,
CreateOrder: function (data, actions) {
OrderId=data. OrderId;
The console. The log (" Start ");
console.log(data);
The console. The log (actions);
The console. The log (" End ");
Return the fetch (
'API/paypal/checkout/create' {
Method: 'post'
{}). Then (function (res)
Return res. Json ();
{}). Then (function (data)
The return data. OrderID;
});
},
CodePudding user response:
The CORE routing rules and FrameWork should be the same,CodePudding user response:
Thank you done!!CodePudding user response: