#karsh-order
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ taking a closer at the step that you're referring to.
When confirming an intent server-side, you do need to have already created a Payment Method and be able to reference it by it's ID.
The guide that you referenced does not cover how to save a Payment Method to be used for future payments like would need to be done in order to do the server-side confirmation.
Steps 1-6 in this guide walk through that flow though:
https://stripe.com/docs/payments/save-and-reuse
Thank you Toby.
the steps you link are a bit confusing, as I don't really want to do a uture payment. I'm trying to do the same that happens here (screenshot) but then server side.
I think the 'elements' variable (red arrow) is what contains the payment method. I'm not sending that to my server endpoint right now. Is the right way to follow your steps or is there another way here?
Sorry this is the correct link https://stripe.com/docs/orders/create-and-process#submit-and-confirm
If you don't want to create the Payment Method ahead of time, then I would recommend using client-side confirmation.
Okay so if I want server-side confirmation, I do need to use the 'set up future payments'guide?
Yes. Client-side confirmation can read the information from the Payment Element, but server-side confirmation requires that a Payment Method already exist so you would need to create one before attempting to process the Order.
Okay I think I got it, thank you again ๐
Any time, happy to help.