#Nick Ortega
1 messages · Page 1 of 1 (latest)
What type of form are you using to accept payment? Payment Element? Card Element? Stripe Checkout?
I am using Payment Element
Ah, okay. You would need to update the Payment Intent via a server-side call (https://stripe.com/docs/api/payment_intents/update) and then update the Payment Element asynchronously using this: https://stripe.com/docs/js/elements_object/update_payment_element
Okay, so I need to first update the Payment Intent using the first link, then update the the Payment Element using the second link?
Would I need to update any server side code or would this be mainly client side?
You would need to update the Payment Intent server-side, then update the Payment Element client-side using the stripe.js method
I've got both the create and update payment intent but it doesn't seem to be transferring the amount back when I check my stripe dashboard
Hi, stepping in here. Please give me a few minutes to catch up
You think you're missing one step here. You'd need to fetch the update Payment Intent: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#fetch-updates
I'm sorry I am a little new to this, in what order does this need to be done?
In that document that I've shared, we included some code examples that you can leverage. It would happen after you make the Payment Intent update call.