Generating test errors with Paypal buttons
Richard-R
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Oct-20-2020
03:10 PM
I have an ASP.NET website that is utilizing the Paypal Buttons. My Javascript is based upon the sample code I found in the Paypal docs and follows this format:
paypal.Buttons({
style: {...},
createOrder: function (data, actions) {...}
onError: function (err) {...}
onApprove: function (data, actions) {...}
}).render("#paypal-button-container");
My question is, within the Sandbox environment, how do I go about generating some test error conditions so I can test the onError path of my code?
Thanks,
Richard
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
- Need help to integrate Advanced Checkout (PPCP) With WHMCS in PayPal Upgrade Community
- Shipping options are not appearing in my cart through link or button. in PayPal Payments Standard
- System error for my Paypal button after years of correct working in PayPal Payments Standard
- Change the button from Sandbox to Production in PayPal Payments Standard
- Issue with Rendering Trustly Payment Button via PayPal JavaScript SDK in SDKs