#Suren - SetupIntent
1 messages ยท Page 1 of 1 (latest)
sorry i mean after
I want to get paymentIntent id after create setupIntent
via webhook
It's really ?
I'm having a hard time understanding the ask as PaymentIntent and SetupIntent are separate. To learn more please visit: https://support.stripe.com/questions/payment-intents-api-vs-setup-intents-api
Are you able to clarify a bit more so I can better assist?
I want to implementation this
but i don't understand how i can get paymentIntent id after attached card, single page application
@vestal mountain you're missing some steps here. How familiar are you with PaymentIntents and SetupIntents?
on the side backend
you're thinking of it the wrong way though
you create a SetupIntent and after it succeeds, and you create a PaymentIntent
you can't "get" a PaymentIntent from a SetupIntent
yes it's correct, I simple get paymentIntent list after create setupIntent
For save id paymentIntent in my database
for further payment via paymentIntent id
sorry, but I'm still VERY unclear
like you need to explain in explicit detail what you're doing
I want to link user cards for further payment
aaaa sory
i confused paymentMethod with paymentIntent
๐
all this time I meant paymentMethod
Hello. Taking over here as others had to step out
You can get the payment method from the setupintent object: https://stripe.com/docs/api/setup_intents/object#setup_intent_object-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.
Yeah. So the webhook you get after creating the setupintent will have the setupintent object in it. That will contain the payment method id linked above
but i don't create paymentIntent, i want create setupIntent
I'm not entirely clear which webhook should be monitored,
listener name
You can listen to this one for a success: https://stripe.com/docs/api/events/types#event_types-setup_intent.succeeded
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The event will contain the setupintent object and in there you will have the payment method id
(the first link i shared)
Thank you very much, you helped me lot
No problem!