Paypal Smart button React JS

conormerriman12
Contributor
Contributor

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? 
Login to Me Too
1 REPLY 1

JulimanCan
New Community Member

Hey did you have any luck implementing this? I too am having issues only on the live version, the test sandbox is working fine!

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.