Hi.
I’m setting up a custom pay on a wix form.
I’m using the wixFormSubmitted () and createMyPayment inside it to trigger the payment.
my problem is that when payment fail for some reason I still get a row in the submission table.
is there a better way to implement it so when a payment fail or canceled I wont get a submission?
Hi! You have the option to prevent submissions from being created in the case of a failed or canceled payment would be to add a check for the payment status before creating a new submission. You can do this by using the fetchPaymentStatus method of the Wix Payments API to check the status of the payment after it has been attempted.