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
273 stars 81 forks source link

[QUESTION] #72

Open giovannicassanelli-cell opened 4 years ago

giovannicassanelli-cell commented 4 years ago

Once the payment is done, we get a loading spinner on the paypal component, however, it then turns back to the black "payment by card" button for a few seconds before the "onSuccess" is called. This can be confusing for users as they will think it has finished loading, but it is in fact still loading (I do a redirect on Success and it isn't immediate because of this). How can I handle it in a user-friendly way?