#refayet_62981
1 messages ยท Page 1 of 1 (latest)
Hello! Do you have an example webhook Event. I can look at where it's showing requires_payment_method with the PM provided?
Hi Karbi, should I paste the whole JSON here? or just the event number?
Just the event ID is fine
evt_3NlDmnJjnkKhKkTT1PgjAHgm
This is the event
I have added both JSON here
These are tests .. so I hope I am not violating rules by attaching here
if you want, I can delete
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
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
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
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
Yeah the expectation would be that you confirm the Payment Intent client-side and use something like Payment Element to collect payment details
We go through all of this here https://stripe.com/docs/payments/accept-a-payment
Actually this link is better - https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
off-session ..
Online guide is a bit confusing
ah I get it
thanks shor the reference ..
๐