I am using paypal_ipn.php,v 184.108.40.206
We are having a problem when some customers place a second order immediately after placing an order.
The second order will have the same order number as the previous order on the customer's invoice.
We receive the payment but there is no record of the second order in the database.
I have some customers that place multiple orders like this but only the first order will show up in the database.
This problem only shows up when they pay via Paypal.
Here's an example:
Customer John Smith comes to my shopping cart and wants to place two separate orders.
The first order is going to be shipped to himself.
John completes the first order and is given order number 2111.
After completing the first order he begins placing a second order that he will have shipped to his grandmother.
John completes the second order and is given order number 2111 for the second order as well.
I receive the payment for both orders.
However only the first order shows up in the database.
The only record of the second order is the fact that I have received payment for both orders.
I tried switching to POST for Return URL Behavior but the cart was still not cleared upon return.
I tried Auto Return and Payment Data Transfer on the paypal web site but it did not clear the cart upon return either.
I have tried it with a return URL in my PP account and without a return URL.
I can't see a difference.
I did some testing and when I pay for the first order and return to the shopping cart, the order IS recorded in the database but the items are STILL in my shopping cart.
When I pay for the second order and return to the shopping cart, the order is NOT recorded in the database but the items are CLEARED from the shopping cart.
At least that's what happened to me when I tested it.
I suppose I need to upgrade to a newer version or fix but the contribution page is confusing to me with some English, some German, and some out of order with the version numbers.