Greetings
So I’ve been explicitly testing a PayPal scenario wherein a user…
- Initiates a (PayPal Standard) payment by clicking the form’s “Submit” button
- The user is then sent to PayPal (sandbox in this case)
- The user logs into PayPal as though they are ready to select a payment type and complete the transaction.
- But instead of completing the transaction, the user realizes s/he needs to check his/her balance first (or …whatever), so user clicks the “Cancel and return to John Doe’s Test Store” link on the PayPal page, which sends the user to my pre-configured “transaction cancelled” page.
- However, the form entry for that transaction shows “processing” …apparently forever.
- Now say the user checks his/her balance and is now ready to complete the transaction and so goes back to the form, and this time completes the payment transaction.
- Now I have another entry for that user showing a paid transaction, such that there are now two entries for that user: [a] Processing and [b] Paid.
This could cause all sorts of issues with reporting, etc. So…
- Is there any filter or hook for user initiated cancelled PayPal (Standard) transactions?
- Otherwise, should I dynamically delete the entry for user initiated cancelled PayPal (Standard) transaction?
- Are there any established “best practices” for this scenario?
Please advise, thanks,
Preston