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

Is there a way to re-trigger createOrder when a prop changes when using "Pay with debit or credit card" #128

Open starboundfox opened 2 years ago

starboundfox commented 2 years ago

To Do First

Ask your Question In our app, we give the user the option to change the amount they're paying while the credit card input box is visible. The problem with this is that the amount is registered when the createOrder handler is called, which apparently is only called once when the user clicks on the "Pay with Debit/Credit card" button.

image