Payments without order
datalink
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jun-26-2018
05:02 AM
I save orders with PHP after the payment is done by express checkout. I do this by updating and sending my form in onAuthorize:
onAuthorize: function(data, actions) { return actions.payment.execute().then(function() { document.getElementById('paypal_transaction').value = data.paymentID; document.forms['paymentform'].action = 'order-done-paypal.htm'; document.forms['paymentform'].submit(); }); }
After a half year there were 3 payments, from more then 100, without orders. So how to send my form, when PayPal fails? Is there something like:
onFail: function() { document.getElementById('paypal_transaction').value = 'No Payment ID'; document.forms['paymentform'].action = 'order-done-paypal.htm'; document.forms['paymentform'].submit(); }
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
- IPN has stopped working - payments received but IPN list for last 24 hours is empty in PayPal Payments Standard
- "Show Order Details" Vs "Capture Payment For Order" in REST APIs
- How to add a second parameter onto the PayPal standard payment code block? in PayPal Payments Standard
- API approved order not forwarding to PayPal in Sandbox Environment
- Paypal NVP/SOAP API - Pay in 4 instalment payments in NVP/SOAP APIs