How did you know when the PayPal basket was left?

I use PayPal Website Payments Standard to accept payments in the online store. Currently, when customers are sent to PayPal, we assume that their orders will be canceled until we receive an IPN response from PayPal, telling us differently.

Looking through the PayPal IPN documentation , it doesn't seem like there is a notification of abandoned carts. The only other way I could think of is to first mark the order as pending, and then execute some kind of service that runs periodically to mark old, unfinished orders that have been left.

Is there a better way to do this? Is there a registered maximum expiration time for a payment request?

+4
source share
1 answer

There are no notifications in PayPal that would be triggered by intermittent verification. From what I saw in several carts, they use the status "Waiting" or "Waiting for confirmation", waiting for IPN.

An IPN (as its payment notification is called) is triggered only by payment-related events. If the basket is left, they will not be paid. So, do not report anything about it.

There is no reliable mechanism for obtaining exit data.

If you use PayPal Express Checkout, the token expires in 3 hours (if not changed upon request). Thus, it is safe to mark the payment β€œabandoned” after this time.

+5
source

Source: https://habr.com/ru/post/1390735/


All Articles