#karsh-order

1 messages ยท Page 1 of 1 (latest)

winter void
#

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

Learn how to save card details and charge your customers later.

polar ridge
#

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?

winter void
#

If you don't want to create the Payment Method ahead of time, then I would recommend using client-side confirmation.

polar ridge
#

Okay so if I want server-side confirmation, I do need to use the 'set up future payments'guide?

winter void
#

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.

polar ridge
#

Okay I think I got it, thank you again ๐Ÿ™‚

winter void
#

Any time, happy to help.