#DuyKhanh
1 messages · Page 1 of 1 (latest)
CardElement and token is legacy
You should use PaymentElement instead
@fast geode
I see a temp called "Checkout session"
It means when I create a CheckoutSession, I can save it to my server
Whenever I want to make a payment, I can use this CheckoutSession again.
Does it look like the card token?
No it's an entire different thing
Checkout Session is a redirection integration, where you redirect to a Stripe hosted site
PaymentElement is the div you embed into your own website
Ok, so I can have any way to create a token ( or anything instance object ) for user information
The user information looks like PaymentElement with all fields: CardNumber, Expiration, CVC, Country, and Zip Code ( if exits )
Then I save the token to my server
Whenever I make a payment, I use the token, and all information fields will be auto-filled
How can I do that ?
That sounds like the SetupIntent flow