If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Need to restrict or mask product names, SKUs, and descriptions sent to PayPal through paypalr

Need to restrict or mask product names, SKUs, and descriptions sent to PayPal through paypalr

Started by CobaltCat28 on 25 Nov 2026, 3:04 AM · Views: 13

Results 1 to 4 of 4
25 Nov 2026, 3:04 AM
#1
CobaltCat28 avatar

CobaltCat28

Member

Join Date:
Nov 2026
Posts:
6
Plugin Contributions:
0

Post #1 by CobaltCat28

We switched to the paypalr module and it works fine, but the site owner want to restrict or mask product names, SKUs, and descriptions sent to PayPal. We used to be able to do this with the old module. Is this possible now?

v2.2.2

25 Nov 2026, 4:38 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #2 by dbltoe

There's no setting for that in paypalr, and no notifier at that point in the code, so an observer can't do it either.

For what it's worth, product descriptions are never sent. PayPal gets the product name (with any attribute values added) and the model number as the SKU.

Both are set in one place: the getItems() method in

includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php

(under zc_plugins/PayPalRestful/[version]/catalog/ if it's installed as an encapsulated plugin). Right before the $item = [ array is built, you can overwrite the two values:

$name = 'Item ' . (count($items) + 1);
$sku = '';

Keep the name non-empty. If any item has an empty name, the module drops the whole item list and price breakdown from the request, and its own comments warn that an order sent without the breakdown may not be covered by PayPal's protection.

I haven't tested that change, so try it in sandbox mode first. It's also a core plugin file, so the edit needs to be re-applied after every paypalr update. If you'd like it to survive updates, a request on the plugin's GitHub for a notifier in getItems() would be the cleaner long-term fix.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

25 Nov 2026, 4:41 AM
#3
CobaltCat28 avatar

CobaltCat28

Member

Join Date:
Nov 2026
Posts:
6
Plugin Contributions:
0

Post #3 by CobaltCat28

Thank you! We figured out a workaround, so all's good now!

25 Nov 2026, 4:50 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #4 by dbltoe

One of the beautiful things about the forum is when folks share their solutions to problems.

Care to share?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com