#vadym4646-checkout
1 messages · Page 1 of 1 (latest)
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?
Stripe-hosted page
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
Once you're ready to charge the customer at a later date, you'd create the payment intent, passing the payment method created from that checkout session: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
vadym4646-checkout
Thanks
No problem
How can I obtain customerId ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You'd create the customer first if you don't already have one
Then pass that id to the checkout session and payment intent
Is it mean, that all customers on my platform should create an account and I should save the Id
?
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
It's clear