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
- Using Paypal Smart Buttons for checkout sometimes fails with Debit/ Credit Cards Form in Braintree Client-side Integration (JS, iOS, Android SDKs)
- paypal buttons can't show in PayPal Payments Standard
- Sandbox testing has beaten me !! in Sandbox Environment
- Customising Paypal Checkout Button in PayPal Payments Standard
- PayPal Buttons not visible in Sandbox Environment