#tamako9910
1 messages · Page 1 of 1 (latest)
hello! can you describe the behaviour in detail? when does it not call back, and what does your page show instead? Any errors?
Hi @quartz ledge I just reopened this thread
i have 2 payment options
1st is credit card
2md is promtpay
credit card will have 100% success to callback to success url
but in promtpay sometimes it will not callback
in stripe dashboard have success status
just not callback
OK, are you relying on the callback to update your DB for the payment results?
yes
OK. I'd suggest you to listen to webhook events instead.
Webhook is a more reliable way of getting notified of payment results
can you please provide some example in C#?
can you brife explain how does it work?
Sure, so when a checkout session is completed by your customer, Stripe will send a POST request to your webhook endpoint (i.e., https://www.yourdomain.com/webhook) with checkout session data. From there you can retrieve the checkout session and fulfill the order.
more details in https://stripe.com/docs/payments/checkout/fulfill-orders