Relative Content

Tag Archive for next.jsstripe-paymentsprismasupabase

Stripe payment issues and incomplete payment somehow being stored to db

The payment gateway is working fine and all, but sometimes even if I get the message that payment was successful, there’s no entry in my db. I check the webhook screen and there are bunch of incomplete payments. When I come to check my db later on, I see bunch of payment entries in the db even when I am not using it, which I am guessing is because I go back from the payment screen? Even if payment is successful and it gets inserted in db, I am seeing two entries in the db at the same time. What is the problem here?