Jump to content

PS 1.7 Confirmation email after paypal has text "id" replaced by payment id


machiavellino

Recommended Posts

In PrestaShop Shop 1.7 after paying with paypal, in the page of the order confirmation i get the right email address in the phrase. "Your order has been confermed. An email has been sento to your address [email protected]."
But the user gets no email.  I found out that the smtp server is receiving email with the wrong recepient.
In all the email body and headers, every occurrence of the two characters "id" are replaced with "pay-8j952046xj3882036librj7i", so the email address of the "to:" field "[email protected]" becomes "[email protected]"
and is sent to this non existant mailbox.

Example of substitution in the email body:

What it should be:

X-Rid: info@g
Message-ID: <20171108143119.1147818576.swift@g>
Date: Wed, 08 Nov 2017 15:31:19 +0100
Subject: [ Conferma ordine
From:  <INFO@g>
Reply-To: info@g
To: Gido mar
 <GIDOMAR@mydomain.com>
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="_=_swift_v4_1510151479_85fbc0b7ea235df8b6ae1edcb642232f_=_"

--_=_swift_v4_1510151479_85fbc0b7ea235df8b6ae1edcb642232f_=_
Content-Type: multipart/alternative;
 boundary="_=_swift_v4_1510151479_47796dac361c03798bdeee8a6184dc6a_=_"

--_=_swift_v4_1510151479_47796dac361c03798bdeee8a6184dc6a_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

[]=20

Hello Gido Mar ....
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
What is sent to the smtp server:
   
X-Rid: info@g
Message-ID: <20171108143119.1147818576.swift@g>
Date: Wed, 08 Nov 2017 15:31:19 +0100
Subject: [ Conferma ordine
From:  <info@g>
Reply-To: info@g
To: GPAY-8J952046XJ3882036LIBRJ7Io mar
 <gPAY-8J952046XJ3882036LIBRJ7Iomar@mydomain.com>
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="_=_swift_v4_1510151479_85fbc0b7ea235df8b6ae1edcb642232f_=_"

--_=_swift_v4_1510151479_85fbc0b7ea235df8b6ae1edcb642232f_=_
Content-Type: multipart/alternative;
 boundary="_=_swift_v4_1510151479_47796dac361c03798bdeee8a6184dc6a_=_"

--_=_swift_v4_1510151479_47796dac361c03798bdeee8a6184dc6a_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

[]=20

Hello GPAY-8J952046XJ3882036LIBRJ7Io Mar ....

Does anyone knows the php file(s) that is responsible for generating the emails? It looks like something is replacing "id" with the payment id, instead of replacing something like "{id}" with the payment id (assuming that the pay-8j952046xj3882036librj7i string is the id returned by paypal).

 

Thank you

Edited by machiavellino (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

I opened a ticket, i let the person who got the ticket assigned knnw that the problem was occuring to other people too, by pointing out another similar ticket. My ticked got closed as duplicate, but the other ticket is not being considered (it is opened in may, no response from staff, just from other people with the same problem). Anyone has an idea on where in php code is located the  generation from templates? I cant' go live until i fix this problem!

Edited by machiavellino (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...