Double payment.
To avoid them, you need to create a unique identifier for each order, after the user moves from your site to PayPal or another site, this identifier should be read-only, and if the user returns to your site after a failure or other reason, and ask to reorder the same basket, you must create a new cart and a new order identifier.
For each order ID, paypal and other sites allow only one payment (or one failure).
Lost internet connection or donโt receive confirmation
Paypal has 3 ways to contact your.
The only thing you get information about the user's return after payment, another method is that paypal contacts you and sends you payment information, and you receive the final email.
In the rare case when everything fails, the user will inform you in a few days that he has not received his order.
Virtually they do not fail everyone. In fact, they never tolerate any of them.
Exceptions and Errors
Well, sometimes you canโt avoid mistakes, so keep an eye on your payments and record possible errors to fix this. After 7 years of payments with PayPal, I still track them for problems, fraud, problems, new ideas, etc., And still make small adjustments from time to time.
source share