React PayPal button

santafen
Contributor
Contributor

Are there any examples -- that work -- of dynamically updating the amount of the transaction in a React PayPal button? So far, every example uses a hard-coded amount, and none of my attempts to make it changeable have worked. As soon as I change anything, the entire thing fails, the PayPal window opens for 3 seconds and then closes, and the console gives me an error "/v2/checkout/orders returned status 401"

 

Are there any *working* examples of React PayPal buttons with changeable $amounts? 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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