@leo7706Ok. That response needs to be converted to an order, then return that. @PayPal_RachaelHello. Your .NET server / client code documentation is out of date which has cost me a bit of time, I'd expect more the amount you guys take per transaction tbh. The server should return JSON Paypal order. `return Json(response.Result<PayPalCheckoutSdk.Orders.Order>());` The client should be "Id" and not "OrderId". createOrder: function () { return fetch('/Paypal/CreatePayment'), { method: 'post', headers: { 'content-type': 'application/json' } }).then(function (res) { return res.json(); }).then(function (data) { return data.id; // Use the same key name for order ID on the client and server });
... View more