#Nick Ortega

1 messages ยท Page 1 of 1 (latest)

sinful matrixBOT
floral pilot
#

Are you using Custom checkout flow?

candid oxide
#

Hi ๐Ÿ‘‹

If you are building this yourself you can create these fields and populate the Payment Intent data using them.

thick grotto
#

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?

candid oxide
#

Just so I am clear, what parameters of the Payment Intent are you attempting to update?

thick grotto
#

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

candid oxide
#

Okay yes that should work fine. You will just want to fetch the updates from the server on your client side as well

thick grotto
#

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?

candid oxide
#

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

thick grotto
#

i appreciate your help thank you ๐Ÿ™‚