#Suren - SetupIntent

1 messages ยท Page 1 of 1 (latest)

cold sigil
#

Hi!

vestal mountain
#

sorry i mean after

#

I want to get paymentIntent id after create setupIntent

#

via webhook

#

It's really ?

cold sigil
vestal mountain
#

I want to implementation this

#

but i don't understand how i can get paymentIntent id after attached card, single page application

frigid panther
#

@vestal mountain you're missing some steps here. How familiar are you with PaymentIntents and SetupIntents?

vestal mountain
#

on the side backend

frigid panther
#

have you gone through the docs?

#

they show you how to do this

vestal mountain
#

yes but it doesn't show how to get it via webhook

#

I want know it's possible ?

frigid panther
#

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

vestal mountain
#

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

frigid panther
#

sorry, but I'm still VERY unclear

#

like you need to explain in explicit detail what you're doing

vestal mountain
#

I want to link user cards for further payment

#

aaaa sory

#

i confused paymentMethod with paymentIntent

#

๐Ÿ˜€

#

all this time I meant paymentMethod

brittle iris
#

Hello. Taking over here as others had to step out

vestal mountain
#

i want to get paymentMethod id via webhook

#

it's possible?

#

after setupIntent

brittle iris
#

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

vestal mountain
#

but i don't create paymentIntent, i want create setupIntent

brittle iris
#

I understand

#

What i linked was the setupintent object

vestal mountain
#

I'm not entirely clear which webhook should be monitored,
listener name

brittle iris
#

The event will contain the setupintent object and in there you will have the payment method id

#

(the first link i shared)

vestal mountain
#

Thank you very much, you helped me lot

brittle iris
#

No problem!