If this is your first visit, check our documentation. To post, register or login.
Forums / PayPal Express Checkout support / How to add Store Name or website url to paypal express checkout

How to add Store Name or website url to paypal express checkout

Locked

Started by sloan on 9 Apr 2021, 7:05 AM · Views: 1,475

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
9 Apr 2021, 7:05 AM
#1
sloan avatar

sloan

New Zenner

Join Date:
Jul 2016
Location:
China
Posts:
23
Plugin Contributions:
0

How to add Store Name or website url to paypal express checkout

Currently using zencart 1.5.7C and paypal express checkout

I have several websites (all use paypal express checkout) and use a single paypal account.

I can't tell the order from which website when I got the paypal payment notification email.

The content in the payment notification email I received from paypal mainly includes:
item name+attribute+item number
I want to add the website name (STORE_NAME), for example, change the item number to STORE_NAME+item number.

So how to achieve this purpose?

Thank you!

9 Apr 2021, 6:22 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: How to add Store Name or website url to paypal express checkout

The transaction data sent to PayPal includes the store name in the "Invoice Number" field (not the "order number", not the "transaction number").
It's "customer ID" + "current time" + "store name":

https://github.com/zencart/zencart/blob/v157/includes/modules/payment/paypalwpp.php#L395-L396

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Apr 2021, 9:49 AM
#3
sloan avatar

sloan

New Zenner

Join Date:
Jul 2016
Location:
China
Posts:
23
Plugin Contributions:
0

Re: How to add Store Name or website url to paypal express checkout

Thank you.
I see now.
Because the two domains of my sites are similar, and the store name(domain) has been cut and replaced, so I did not recognize it.