#Nite
1 messages · Page 1 of 1 (latest)
Hi there!
Hi
When you create the Checkout Session, you can set payment_intent_data.capture_method https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-capture_method
Oh that will automatically filter only payment methods that allow that ?
Correct, but I'm guessing that will be mostly card payments.
Yes, that’s fine. So, correct me if I’m wrong, after the checkout succeeds there will be a webhook called that will provide my app the payment information. Then I ll use the payment intent to capture the payment when ready to do so
The only doubt I have is, can I pass a custom identifier of some sort to Checkout in order to be able to associate the payment to my database record in the webhook handler ?
Yes, that’s fine. So, correct me if I’m wrong, after the checkout succeeds there will be a webhook called that will provide my app the payment information. Then I ll use the payment intent to capture the payment when ready to do so
Correct! The event ischeckout.session.completed
The only doubt I have is, can I pass a custom identifier of some sort to Checkout in order to be able to associate the payment to my database record in the webhook handler ?
Yes, there are multiple way to do this:
- Add a
client_reference_idhttps://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-client_reference_id - Or set some
metadatahttps://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata
Oh nice
Final question
Is there a public test api key I can use ? Or do I have to ask my client to open an account first?
You need to create a Stripe account first in order to get an API key.
Ok, thank you a lot