#Debjeet

1 messages · Page 1 of 1 (latest)

rough elkBOT
strange knoll
wanton compass
#

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 !

strange knoll
#

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

wanton compass
#

I am using webhooks but I have registered webhook endpoint with firestore db.

strange knoll
#

I'm not sure what that means or how I can help

wanton compass
#

I have setup my webhook with firebase's firestore.

firestore is a database which stores data of my all trancations

strange knoll
#

indeed

wanton compass
#

so, on my webhooks it always shows succeed on test mode even when I have choose insufficient funds while testing on test bank.

strange knoll
#

it always shows succeed
what shows that exactly? what is "it" in that sentence?

wanton compass
#

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 !

strange knoll
#

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.

wanton compass
#

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

strange knoll
#

I don't know if that Firebase extension you're using does that correctly.

wanton compass
strange knoll
#

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.

wanton compass
#

is there any API or any call back function that gets updated when bank payments are done ?

strange knoll
#

I'm not sure what you mean, can you elaborate? which API, what kind of function?

wanton compass
#

like when payment got successful I will get a response that this payment has been done or canceled.

strange knoll
#

yes, you get a webhook.