#refayet_62981

1 messages ยท Page 1 of 1 (latest)

dapper sparrowBOT
leaden ice
#

Hello! Do you have an example webhook Event. I can look at where it's showing requires_payment_method with the PM provided?

little crystal
#

Hi Karbi, should I paste the whole JSON here? or just the event number?

leaden ice
#

Just the event ID is fine

little crystal
#

evt_3NlDmnJjnkKhKkTT1PgjAHgm

#

This is the event

#

These are tests .. so I hope I am not violating rules by attaching here

#

if you want, I can delete

leaden ice
#

No worries, it's fine to have it here - what you're seeing is definitely a bit weird so let me ask a teammate to look as well

#

Did some digging - it looks like we have a long-standing bug that's resulting in this behavior

little crystal
#

Aha I see

#

So should I relie on the api response rather than webhook

#

?

#

for this particular scenario ?

#

however, for succeeded case of a payment intent .. I must relie on the webhook .. as thats gonna trigger my backend to series of flow

leaden ice
#

Yup! Alternatively, you could re-retrieve the Payment Intent when you get the payment_intent.created webhook event just to make sure you get the latest state

little crystal
#

ah great .. thanks

#

one question .. for first case .. i.e. payment Intent with out any payment_method, how should I share the card info .. via handleNextAction or there is some call for web module to confirm the PI

#

I understand that the payment data should no pass via backend to be compliant

leaden ice
#

Yeah the expectation would be that you confirm the Payment Intent client-side and use something like Payment Element to collect payment details

little crystal
#

off-session ..

#

Online guide is a bit confusing

#

ah I get it

#

thanks shor the reference ..

leaden ice
#

๐Ÿ‘