#ziwengames
1 messages · Page 1 of 1 (latest)
Hello
Hi
We always recommend webhooks, even for on-session payments, as it is always possible for your customer to drop off before the promise resolves for confirmPayment()
If they drop off and resume on the page later, couldn't I just check if the invoice has been paid (if no, same page, if yes, go to next page)?
- using await stripe.invoices.retrieve(...).status === 'paid'
I don't store a copy of the invoice data on my DB -- I store the invoiceId and then retrieve on stripe, so everything checked is via Stripe
most of it is SAAS access to the website