ASP .NET - Setup a transaction at server side using /v2/checkout/orders
arvindt
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-13-2019
05:46 AM
I'm trying to setup a transaction on the server side using the Orders V2 API, I followed all the steps and when I test, the call to PayPal to setup the transaction never returns back and I'm stuck with the rotating icon on the popup window.
var response = await PayPalClient.client().Execute(request);
my JS looks like this:
paypal.Buttons({ createOrder: function () { return fetch('Default.aspx/CreateTransaction', { method: 'post', headers: { 'content-type': 'application/json' } }).then(function (res) { console.log(res); return res.json(); }).then(function (data) { console.log(data); return data.orderID; }); }, onApprove: function (data, actions) { ......... }).render('#paypal-button-container');
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Add Others data in SDKs
- Getting errors when integrating standard checkout with my web site. Probably a beginner problem. in SDKs
- IPN works in sandbox but not live in Sandbox Environment
- Change the button from Sandbox to Production in REST APIs
- Cannot verify sandbox account with email verification in Sandbox Environment