React PayPal button
santafen
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Dec-08-2021
06:10 PM
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?
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.
Related Content
- Where is the button link? in PayPal Payments Standard
- Seller "Buy now" button - unable to edit a button in PayPal Payments Standard
- Cart dropps items, fails to return customer to previous window in PayPal Payments Standard
- Hosted Buttons have changed. How can I now edit the item ID and stock? in PayPal Payments Standard
- When clicking on a payment button generates error: Unexpected token ... in PayPal Payments Standard