I’m planning to use the quick_pay option when creating a payment link and simply redirecting customers from our site to that link for payment in browser (with redirect back to our site after payment, etc.)
But my issue is the following:
- Customer initiates order; payment URL and associated order are created; customer is redirected to URL.
- Customer does NOT complete payment but manages to preserve the payment URL somehow.
- Customer later initiates order again; new payment URL and new associated order are created; customer is redirected to new URL.
- Customer DOES complete payment for new order.
- Customer later inadvertently navigates to original payment URL and mistakenly completes payment for original order.
- Customer has now erroneously paid twice.
To avoid this, I’m thinking I could set the state of any orphaned orders in the draft state (and the associated fulfillments) to “cancelled” before creating a new quick_pay payment link.
But is this a good idea?
2 posts - 1 participant