#Debjeet
1 messages · Page 1 of 1 (latest)
hi! maybe https://stripe.com/docs/payments/intents helps explain it?
how should I handled processing payments as bank payments can take upto 7 days and how will i know that payment has been done and it has change status from processing to completed !
you'd use webhooks
the guide you're following for integrating 'bank payments' should have a section on how to handle the webhooks to be notified of the success when it happens
I am using webhooks but I have registered webhook endpoint with firestore db.
I'm not sure what that means or how I can help
I have setup my webhook with firebase's firestore.
firestore is a database which stores data of my all trancations
indeed
so, on my webhooks it always shows succeed on test mode even when I have choose insufficient funds while testing on test bank.
it always shows succeed
what shows that exactly? what is "it" in that sentence?
it means I am always getting
200 OK
{
"received": true
}
but I have done failed payment test so It should show status:pending right not succeed !
no, not right.
that status is just the status of the webhook delivery. i.e it indicates that your Firebase server received the event from Stripe correctly.
It has absolutely nothing to do with overall status/success of the payment itself.
oh I got it.
so how I will get to know that payment has been succesful
like bank payments takes around 7 days to complete
you'd use webhooks. You get a webhook at that point 7 days later and if your integration is set up correctly it will mark some status in your database etc as successful. You can see a detailed description of how this works at https://stripe.com/docs/payments/checkout/fulfill-orders#delayed-notification
I don't know if that Firebase extension you're using does that correctly.
please can you check that weather firebase extension do or not ?
as stripe developers has made extension for firebase
I can't check sorry. And unfortuantely everyone involved in that extension no longer works at Stripe. We don't recommend using it or have any knowledge internally about it.
is there any API or any call back function that gets updated when bank payments are done ?
I'm not sure what you mean, can you elaborate? which API, what kind of function?
like when payment got successful I will get a response that this payment has been done or canceled.