If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / PayPal RESTful support / PayPal RESTful API Payment Module

PayPal RESTful API Payment Module

Started by lat9 on 12 Jan 2024, 1:16 PM · Views: 85,271

Results 481 to 500 of 502
15 Jul 2026, 11:56 AM
#481
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #481 by lat9

v1.3.4 of the non-encapsulated version of the PayPal RESTful payment module is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2382

This version adds a local method to emulate $sniffer->indexExists, which isn't provided by the base Zen Cart until zc210.

17 Jul 2026, 4:13 AM
#482
siliconbug avatar

siliconbug

Zen Follower

Join Date:
Apr 2009
Posts:
126
Plugin Contributions:
0

Post #482 by siliconbug

Thanks!
1.3.4 gives me new errors:

[16-Jul-2026 07:22:51 Canada/Pacific] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /zc158/includes/classes/db/mysql/query_factory.php(561): preg_match()
#2 /zc158/includes/classes/db/mysql/query_factory.php(513): queryFactory->getBindVarValue()
#3 /zc158/includes/modules/payment/paypal/paypal_functions.php(97): queryFactory->bindVars()
#4 /zc158/ipn_main_handler.php(199): ipn_lookup_transaction()
--> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /zc158/includes/classes/db/mysql/query_factory.php on line 561.

[16-Jul-2026 07:22:51 Canada/Pacific] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /zc158/includes/classes/db/mysql/query_factory.php(177): mysqli_real_escape_string()
#2 /zc158/includes/classes/db/mysql/query_factory.php(562): queryFactory->prepare_input()
#3 /zc158/includes/classes/db/mysql/query_factory.php(513): queryFactory->getBindVarValue()
#4 /zc158/includes/modules/payment/paypal/paypal_functions.php(97): queryFactory->bindVars()
#5 /zc158/ipn_main_handler.php(199): ipn_lookup_transaction()
--> PHP Deprecated: mysqli_real_escape_string(): Passing null to parameter #2 ($string) of type string is deprecated in /zc158/includes/classes/db/mysql/query_factory.php on line 177.
[16-Jul-2026 07:22:51 Canada/Pacific] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /zc158/includes/modules/payment/paypal/paypal_functions.php(97): zen_debug_error_handler()
#1 /zc158/ipn_main_handler.php(199): ipn_lookup_transaction()
--> PHP Warning: Undefined array key "txn_id" in /zc158/includes/modules/payment/paypal/paypal_functions.php on line 97.

[16-Jul-2026 07:22:51 Canada/Pacific] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /zc158/ipn_main_handler.php(205): zen_debug_error_handler()
--> PHP Warning: Undefined array key "txn_id" in /zc158/ipn_main_handler.php on line 205.
17 Jul 2026, 10:54 AM
#483
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #483 by lat9

siliconbug:

Thanks!
1.3.4 gives me new errors:

[16-Jul-2026 07:22:51 Canada/Pacific] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /zc158/includes/classes/db/mysql/query_factory.php(561): preg_match()
#2 /zc158/includes/classes/db/mysql/query_factory.php(513): queryFactory->getBindVarValue()
#3 /zc158/includes/modules/payment/paypal/paypal_functions.php(97): queryFactory->bindVars()
#4 /zc158/ipn_main_handler.php(199): ipn_lookup_transaction()
--> PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /zc158/includes/classes/db/mysql/query_factory.php on line 561.

[16-Jul-2026 07:22:51 Canada/Pacific] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /zc158/includes/classes/db/mysql/query_factory.php(177): mysqli_real_escape_string()
#2 /zc158/includes/classes/db/mysql/query_factory.php(562): queryFactory->prepare_input()
#3 /zc158/includes/classes/db/mysql/query_factory.php(513): queryFactory->getBindVarValue()
#4 /zc158/includes/modules/payment/paypal/paypal_functions.php(97): queryFactory->bindVars()
[B]#5 /zc158/ipn_main_handler.php(199): ipn_lookup_transaction()[/B]
--> PHP Deprecated: mysqli_real_escape_string(): Passing null to parameter #2 ($string) of type string is deprecated in /zc158/includes/classes/db/mysql/query_factory.php on line 177.

> 
> ```
[16-Jul-2026 07:22:51 Canada/Pacific] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /zc158/includes/modules/payment/paypal/paypal_functions.php(97): zen_debug_error_handler()
#1 /zc158/ipn_main_handler.php(199): ipn_lookup_transaction()
--> PHP Warning: Undefined array key "txn_id" in /zc158/includes/modules/payment/paypal/paypal_functions.php on line 97.

[16-Jul-2026 07:22:51 Canada/Pacific] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /zc158/ipn_main_handler.php(205): zen_debug_error_handler()
--> PHP Warning: Undefined array key "txn_id" in /zc158/ipn_main_handler.php on line 205.

That's not PayPal RESTful, that's the paypalwpp/paypaldp ipn_main_handler.php throwing those errors.

There's an open issue on GitHub (https://github.com/zencart/zencart/issues/7767) regarding other ipn_main_handler issues. This one's a bit different and it looks like the current version of ipn_main_handler.php (and paypal_functions.php) would exhibit the same issues.

Zen Cart GitHub issue created: https://github.com/zencart/zencart/issues/7917

2 Sep 2026, 7:04 PM
#484
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Post #484 by wmorris

Is there suppose to be showing the month payments on the product info page?

2 Sep 2026, 11:18 PM
#485
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #485 by lat9

wmorris:

Is there suppose to be showing the month payments on the product info page?

Yes, if enabled. What template are you using?

3 Sep 2026, 1:43 AM
#486
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Post #486 by wmorris

I am using Flourspar Template.

3 Sep 2026, 9:40 AM
#487
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #487 by lat9

wmorris:

I am using Flourspar Template.

The PayLater/PayIn4 messaging placement depends on the HTML layout of the template itself and has been tested on the built-in responsive_classic and the Bootstrap templates.

A notification (NOTIFY_PAYPAL_PAYLATER_MESSAGE_OBJECTS) is issued to enable templates that use different layouts as well. Can you supply a link to the site in question?

4 Sep 2026, 9:45 AM
#488
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #488 by lat9

v1.3.5 of the non-encapsulated version of the payment module is now available for download: https://www.zen-cart.com/plugins/paypal-restful-vb2382

This release contains changes associated with these GitHub issues:

#127: Correct PayPal payments when Gift Certificate/Coupon value changed during checkout.
#129: Correct PayPal response value associated with an invalid CVV value.
#128: Update language to make the wallet vs. credit-card selections more obvious.

4 Sep 2026, 9:55 AM
#489
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #489 by lat9

v2.1.2 of the encapsulated version of this payment module is now available for download: https://www.zen-cart.com/plugins/paypal-restful-encapsulated-vb2434

This release contains changes associated with these GitHub issues:

#42: Correct PayPal payments when Gift Certificate/Coupon value changed during checkout.
#41: Correct PayPal response value associated with an invalid CVV value.
#43: Update language to make the wallet vs. credit-card selections more obvious.

17 Sep 2026, 5:22 PM
#490
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,766
Plugin Contributions:
56

Post #490 by swguy

It looks like there's a bug in version 1.3.5 - it uses zen_config which is not available in Zen Cart 2.1.0.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

17 Sep 2026, 5:41 PM
#491
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #491 by lat9

swguy:

It looks like there's a bug in version 1.3.5 - it uses zen_config which is not available in Zen Cart 2.1.0.

Yep, see this GitHub issue for tracking: https://github.com/lat9/paypalr/issues/130

9 Nov 2026, 6:34 PM
#492
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
745
Plugin Contributions:
0

Post #492 by jeff_mash

I just had a customer contact me about something that I never considered.

Is there any reason why this amazing RESTFul plugin doesn't have a PayPal Express button to choose at the Shopping Cart page (or does it)?

I know that the old way of using PayPal (by having the PayPal Payments Pro (paypaldp) module and the PayPal Express (paypalwpp) module) used to have that option.

I just had a customer who was very "put off" by checking out as a Guest, because they didn't understand why they had to enter all their information (like email, shipping address, etc) when they had all that information already in PayPal.

It made me think, "Are we losing sales because some customers just want to click one PayPal button and have it port all that information into the order automatically?" I mean, it makes sense: if you already have all your information stored in your PayPal account, should there be an option to click that on the Shopping Cart page and have it handle the checkout (returning the customer back to ZenCart with all the order information when payment is complete)?

Is it not possible to have a Pay Now with PayPal option on the Shopping Cart page (which works with the OPC module)?

  • Jeff
10 Nov 2026, 11:10 AM
#493
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #493 by lat9

jeff_mash:

I just had a customer contact me about something that I never considered.

Is there any reason why this amazing RESTFul plugin doesn't have a PayPal Express button to choose at the Shopping Cart page (or does it)?

I know that the old way of using PayPal (by having the PayPal Payments Pro (paypaldp) module and the PayPal Express (paypalwpp) module) used to have that option.

I just had a customer who was very "put off" by checking out as a Guest, because they didn't understand why they had to enter all their information (like email, shipping address, etc) when they had all that information already in PayPal.

It made me think, "Are we losing sales because some customers just want to click one PayPal button and have it port all that information into the order automatically?" I mean, it makes sense: if you already have all your information stored in your PayPal account, should there be an option to click that on the Shopping Cart page and have it handle the checkout (returning the customer back to ZenCart with all the order information when payment is complete)?

Is it not possible to have a Pay Now with PayPal option on the Shopping Cart page (which works with the OPC module)?

The PayPal Express Checkout button was, essentially, a form (as you indicated) of guest checkout. Its means of creating that guest account was problematic, though, which is why PayPal RESTful doesn't provide that feature.

I can, however, look at what it would take to connect a RESTful checkout button with One-Page Checkout to make that button come back to life. I can't promise a timeline, though.

10 Nov 2026, 10:47 PM
#494
dbltoe avatar

dbltoe

Totally Zenned

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

Post #494 by dbltoe

lat9:

jeff_mash:

I just had a customer contact me about something that I never considered.

Is there any reason why this amazing RESTFul plugin doesn't have a PayPal Express button to choose at the Shopping Cart page (or does it)?

I know that the old way of using PayPal (by having the PayPal Payments Pro (paypaldp) module and the PayPal Express (paypalwpp) module) used to have that option.

I just had a customer who was very "put off" by checking out as a Guest, because they didn't understand why they had to enter all their information (like email, shipping address, etc) when they had all that information already in PayPal.

It made me think, "Are we losing sales because some customers just want to click one PayPal button and have it port all that information into the order automatically?" I mean, it makes sense: if you already have all your information stored in your PayPal account, should there be an option to click that on the Shopping Cart page and have it handle the checkout (returning the customer back to ZenCart with all the order information when payment is complete)?

Is it not possible to have a Pay Now with PayPal option on the Shopping Cart page (which works with the OPC module)?

The PayPal Express Checkout button was, essentially, a form (as you indicated) of guest checkout. Its means of creating that guest account was problematic, though, which is why PayPal RESTful doesn't provide that feature.

I can, however, look at what it would take to connect a RESTful checkout button with One-Page Checkout to make that button come back to life. I can't promise a timeline, though.

Cindy, a thought on order of work: it might be cleanest to make the cart button work without OPC first, with a notifier OPC can answer to swap in its guest checkout.

Starting point: auto.paypalrestful.php already has getButtonsPageType() reading MODULE_PAYMENT_PAYPALR_BUTTON_PLACEMENT, but nothing calls it yet, the key isn't installed, and the SDK loads components=messages only.

Address direction: this button needs the address from PayPal, so GET_FROM_FILE rather than the current SET_PROVIDED_ADDRESS, with shipping re-rated before confirmation.

A core-only flow:

  • A logged-in customer gets PayPal's address added to their address book.
  • A shopper who isn't logged in and already has an account signs in normally.
  • A new shopper goes to create_account with the form filled in from PayPal. An observer on NOTIFY_HEADER_END_CREATE_ACCOUNT can set the field values, and that works 1.5.8 through 3.0.0. They choose their own password, and the store's required fields and approval settings apply as usual.
  • A navigation snapshot brings them back to checkout. Stores that require account approval or activation would skip the detour and use normal checkout.

Amounts: the amount approved on the cart page won't include shipping or tax yet, and it can change after the shopper logs in. The choices are a PATCH of purchase_units[].amount on the approved order (PayPal documents this with commit=false) or a second approval. Whichever it is, the flow should always come back through checkout_confirmation, and the amount captured should always match the final order.

There are a few related items that I'll send you by PM.

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

11 Nov 2026, 12:13 PM
#495
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #495 by lat9

@dbltoe, it's significantly more complicated than you indicated. The PPEC button's processing creates a pseudo-guest-customer account to enable the 3-page checkout to run with the credentials supplied by PayPal.

11 Nov 2026, 6:50 PM
#496
dbltoe avatar

dbltoe

Totally Zenned

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

Post #496 by dbltoe

Thanks, Cindy.

Agreed, the 3-page checkout can't run without a customer record, and the PPEC pseudo-guest account is how it got one.

What I sketched swaps that for a real account the shopper creates on a prefilled create_account page, so they'd still choose a password and fill in anything PayPal doesn't send.

That's a long way from one click, which makes OPC's guest checkout the better option.

Thanks for looking into it.

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

17 Nov 2026, 10:11 PM
#497
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Post #497 by njcyx

lat9:

jeff_mash:

I just had a customer contact me about something that I never considered.

Is there any reason why this amazing RESTFul plugin doesn't have a PayPal Express button to choose at the Shopping Cart page (or does it)?

I know that the old way of using PayPal (by having the PayPal Payments Pro (paypaldp) module and the PayPal Express (paypalwpp) module) used to have that option.

I just had a customer who was very "put off" by checking out as a Guest, because they didn't understand why they had to enter all their information (like email, shipping address, etc) when they had all that information already in PayPal.

It made me think, "Are we losing sales because some customers just want to click one PayPal button and have it port all that information into the order automatically?" I mean, it makes sense: if you already have all your information stored in your PayPal account, should there be an option to click that on the Shopping Cart page and have it handle the checkout (returning the customer back to ZenCart with all the order information when payment is complete)?

Is it not possible to have a Pay Now with PayPal option on the Shopping Cart page (which works with the OPC module)?

The PayPal Express Checkout button was, essentially, a form (as you indicated) of guest checkout. Its means of creating that guest account was problematic, though, which is why PayPal RESTful doesn't provide that feature.

I can, however, look at what it would take to connect a RESTful checkout button with One-Page Checkout to make that button come back to life. I can't promise a timeline, though.

Hi Jeff, I totally agree with you, and that is one of the reason why I still stay at old plug-ins, at least for now. Right now about 30% customers used WPP (express checkout) and the others used credit card. I don't think it is good idea to let the customer fill those shipping info, if they know they can skip it by using wpp...

As @lat9 mentioned, there are some technical difficulties/challenges for this feature now...

But the bottom line is, we are getting more and more checkout errors for old plug-ins, especially for non-US customers. Also using wpp will have one pending charge and one final charge, which sometimes will confuse the customers. So perhaps in the nearly future , we will retire the old plug-in and use restful instead.

25 Nov 2026, 3:07 AM
#498
diptimoy avatar

diptimoy

Zen Follower

Join Date:
Apr 2012
Location:
Bardhaman , Bharat
Posts:
218
Plugin Contributions:
1

Post #498 by diptimoy

Clinet uses paypal restful, zencart version 2.2.2 . He says earlier product name , sku adn product data not used to go to paypal . Now its going and he want to disable that . His exact comments is as follows "I wants to mask product names, SKUs, and descriptions sent to PayPal" and want paypal to show order details in paypal as follows ( see attachment ) . Can you help me with modified code or file

25 Nov 2026, 11:56 AM
#499
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,766
Plugin Contributions:
56

Post #499 by swguy

Seeing a bunch of logs like this:

\[09-Nov-2026 12:41:57 America/Chicago\] Request URI: /store/ppr_listener.php?op=return&token=\*\*\*\*\*337277099436&PayerID=\*\*\*\*\*ZPDHHNXL, IP address: **.**\*.105.202, Language id 1

#0 /home/client/public_html/site/store/ppr_listener.php(230): zen_debug_error_handler()

\--> PHP Warning: foreach() argument must be of type array|object, null given in /home/client/public_html/site/store/ppr_listener.php on line 230.

Zen 2.1.0, PP Restful 1.3.5 (non encapsulated).

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Nov 2026, 1:37 PM
#500
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #500 by lat9

swguy:

Seeing a bunch of logs like this:

\[09-Nov-2026 12:41:57 America/Chicago\] Request URI: /store/ppr_listener.php?op=return&token=\*\*\*\*\*337277099436&PayerID=\*\*\*\*\*ZPDHHNXL, IP address: **.**\*.105.202, Language id 1

#0 /home/client/public_html/site/store/ppr_listener.php(230): zen_debug_error_handler()

\--> PHP Warning: foreach() argument must be of type array|object, null given in /home/client/public_html/site/store/ppr_listener.php on line 230.

Zen 2.1.0, PP Restful 1.3.5 (non encapsulated).

GitHub issues created: