#Nick Ortega
1 messages ยท Page 1 of 1 (latest)
Are you using Custom checkout flow?
Hi ๐
If you are building this yourself you can create these fields and populate the Payment Intent data using them.
I am currently using Stripe Elements and inputting my own personal take on it with a few adjustments on it code wise
Okay, so basically have them populate within the form and have the payment intent update with the added fields to the payment intent data? is that right?
Just so I am clear, what parameters of the Payment Intent are you attempting to update?
I want the customer to set the amount themselves, and have them write in a description if they want, so my guess would be the amount and description
Okay yes that should work fine. You will just want to fetch the updates from the server on your client side as well
I would want the amount and description boxes prior to the payment element
okay so use the fetch elements updates method instead of the update payment intent? is that right?
No
You change the Payment Intent on the server. But to make sure the Payment Element is updated you will need to use the Fetch Update method on the browser after you update the Payment Intent
i appreciate your help thank you ๐