Page 1 of 1

Problem with duplicated PayPal order

Posted: Wed Aug 02, 2023 10:45 am
by 14Steve14
Using Phoenix 1.0.7.11 (old I know but update is on the way)
Using paypal app as supplied with phoenix in the early days.

Sorry for the long post.

Up until recently I have been using PayPal with absolutely no problems. However, recently I am starting to get customers placing duplicated orders. It has happened to three or four customers in the last few days. It does not happen to all for some reason.

Customers are placing an order, being transferred to the PayPal website, entering all the required information and completing the purchase. They are getting the redirect message so they return to the website where they usually come to get the 'Checkout Success' page. On their return they are getting an order incomplete message saying payment failed. They are then placing a second order as the items are still in their baskets.

They then get two order confirmation messages in their emails from both the website and PayPal.

I have spoken to PayPal and they say there have been no changes to their system and the fault lies within the website code, which has been working faultlessly up until the last few days. I have tried uninstalling the module, removing all the code and uploading a set of backed up files from a good known working date, reinstall the module and still the problem persists.

In the PayPal module logs the error is 'Fatal Failure'. I have mentioned this to PayPal and they can see no such message or any reason for this with these payments.

Is anyone else having these problems or have any ideas where to look.

Re: Problem with duplicated PayPal order

Posted: Wed Aug 02, 2023 11:30 am
by burt
I vaguely recall something similar happening when Paypal updated their CRTs ? I wonder if they've done that again? Maybe that rings a bell (for searching at the old osc forum)

Re: Problem with duplicated PayPal order

Posted: Wed Aug 02, 2023 11:53 am
by 14Steve14
Thanks Gary. I will take a look but its hard to find anything these now.

We have just had another one who reported that after returning to the website after the payment and an error saying "Could not verify the PayPal transaction. Please try again.” He looked and had received a payment completion email from PayPal and looked on the website and the payment had gone through and the order completed, even though the PayPal logs show the same error as before.

May be another call to PayPal support.

Re: Problem with duplicated PayPal order

Posted: Wed Aug 02, 2023 1:00 pm
by burt
This page has the latest TLS Cert; https://www.paypal.com/uk/cshelp/articl ... tes-ts1510
I can't remember enough about the older Paypal to give advice on (a) if this is a good change to make and (b) where/how to change it if so.

Re: Problem with duplicated PayPal order

Posted: Thu Aug 03, 2023 8:18 am
by ecartz
burt wrote: Wed Aug 02, 2023 1:00 pm (b) where/how to change it if so.
I think it's includes/apps/paypal/work/paypal.pubkey

Re: Problem with duplicated PayPal order

Posted: Thu Aug 03, 2023 12:08 pm
by 14Steve14
ecartz wrote: Thu Aug 03, 2023 8:18 am
burt wrote: Wed Aug 02, 2023 1:00 pm (b) where/how to change it if so.
I think it's includes/apps/paypal/work/paypal.pubkey
Is it not in ext/modules/payment/paypal/paypal.com.crt

There seems to be certificates in two places.

Re: Problem with duplicated PayPal order

Posted: Fri Aug 04, 2023 2:33 pm
by mhsuffolk
14Steve14 wrote: Thu Aug 03, 2023 12:08 pm

Is it not in ext/modules/payment/paypal/paypal.com.crt

There seems to be certificates in two places.
Yes, that is where it is. The other file is something else.

Re: Problem with duplicated PayPal order

Posted: Tue Aug 08, 2023 5:53 pm
by 14Steve14
Hopefully we have sorted this mysterious problem we were having.

It seems that in the last few weeks our site was moved across to a new server by the hosts. I went through all the server settings with them, and compared them to the old servers, we made a few changes that mean nothing to me, and all seems to be working again, touch wood.

Thanks for the help and suggestions.