Luehang / react-paypal-button-v2

An easy and simple to use React button component to implement PayPal Checkout with Smart Payment Buttons V2 (Version 2).
https://luehangs.site/lue_hang/projects/react-paypal-button-v2
MIT License
274 stars 81 forks source link

Wrong button behavior #7

Closed blanknamed closed 5 years ago

blanknamed commented 5 years ago

When you press on checkout button with chrome dev console opened button do not work or if onSuccess method was set proceed to execution of it.

Spotted on demo from repository Chrome 73.0.3683.103

Luehang commented 5 years ago

Hi,

onSuccess is only triggered on the successful approval of the transaction sent back from PayPal's api or it would have thrown an error. Have you check for any errors thrown?