Paypal Smart button React JS
conormerriman12
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-04-2021
01:00 AM
Hi there,
after implementing paypal smart button to much success in the sandbox testapp i tried to post it live.
It tells me that the card cannot be used with my AIB Bank Card and Revolut card, though i did have success with one revolut transaction.
the error code in the console is as follows 'ppxo_inline_guest_unhandled_error'
My code is as follows
'
useEffect(() => {
window.paypal.Buttons({
createOrder: (data, actions, err) => {
return actions.order.create({
intent: 'capture',
purchase_units: [
{
description: 'Door to Door',
amount: {
currency_code: 'EUR',
value: 0.01
}
}
]
})
},
onApprove: async (data, actions) => {
await actions.order.capture()
setPaidFor(true);
sendEmail();
},
onError: (err) => {
setPaidError(true);
}
}).render(paypal.current)
}, [])'
is there anything im not doing correctly?
Labels:
- Labels:
-
Payments REST APIs
1 REPLY 1
JulimanCan
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr-22-2021
12:04 PM
Hey did you have any luck implementing this? I too am having issues only on the live version, the test sandbox is working fine!
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
- recurring payments when price maybe changed and price have 2 decimal point in REST APIs