#vadym4646-checkout

1 messages · Page 1 of 1 (latest)

winter wagonBOT
cedar flare
#

No if you're using checkout you won't ever have to create a payment intent

#

First of all, do you want to implement your own custom checkout page? Or do you want a Stripe-hosted checkout page?

river garden
#

Stripe-hosted page

cedar flare
#

Ok cool

#

Ok so Checkout is what you want to use. So in your case since you want to charge much later, you actually will have to create a payment intent. Normally you don't with Checkout. But, you won't create that payment intent until you're ready to charge the user (at the later date)

#

The key there is creating a setup mode checout session to collect payment method details

winter wagonBOT
#

vadym4646-checkout

river garden
#

Thanks

cedar flare
#

No problem

river garden
#

How can I obtain customerId ?

cedar flare
#

You'd create the customer first if you don't already have one

#

Then pass that id to the checkout session and payment intent

river garden
#

Is it mean, that all customers on my platform should create an account and I should save the Id

#

?

cedar flare
#

No it's not an account it's just a customer object

#

You create it via the above endpoint

#

You'd want to create one for each customer

#

It's a way to tie all purchases for a particular person under 1 object in stripe

#

So that way if a particular person returns to purchase something else from you, you can re-use their stripe customer id

#

And you'd keep track of this via a login system on your site, for example

river garden
#

It's clear