Forums / PayPal RESTful support / PayPal RESTful API Payment Module

PayPal RESTful API Payment Module

Views: 84,745

Results 421 to 440 of 491
14 Mar 2026, 4:58 PM
#421
jeff_mash avatar

jeff_mash

Totally Zenned

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

PayPal RESTful API Payment Module

chadlly2003:

PayLater Messaging- On the Shopping Cart page, the PayLater messaging should display an offer based on the total value of the items currently in the cart when the PayPal message is clicked.....

Just like the Paypal Messaging for the Product Page. Thats works just fine

This weekend I am going to dig into this paypal issue I am having. Not really sure why i am having these issue
I think its could be a browser setting or Server issue - too be continued

It seems to work for me. I went to an item we sell for $99.00. On the product page, it displays: "Pay in 4 interest-free payments of $24.75"

I added it to my cart and on my Shopping Cart page, I see the same message: "Pay in 4 interest-free payments of $24.75."

I'm on Firefox and running the latest version of the module (1.3.1), although I am still on ZenCart 1.5.8a.

  • Jeff
14 Mar 2026, 8:18 PM
#422
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
804
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Jeff_Mash:

It seems to work for me. I went to an item we sell for $99.00. On the product page, it displays: "Pay in 4 interest-free payments of $24.75"

I added it to my cart and on my Shopping Cart page, I see the same message: "Pay in 4 interest-free payments of $24.75."

I'm on Firefox and running the latest version of the module (1.3.1), although I am still on ZenCart 1.5.8a.

To get it to work for my bootstrap template i had to edit
includes\classes\observers\auto.paypalrestful.php

find:

'container' => '#shoppingCartDefault-cartTableDisplay',

replace with

'container' => '#shoppingCartDefault',

May have been my template

15 Mar 2026, 2:02 PM
#423
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

chadlly2003:

To get it to work for my bootstrap template i had to edit
includes\classes\observers\auto.paypalrestful.php

find:

'container' => '#shoppingCartDefault-cartTableDisplay',

> 
> replace with 
> ```
'container' => '#shoppingCartDefault',

May have been my template
Rather than altering the 'core' module file, you could either upgrade the PayPal/Restful module to v1.3.1 or update your copy to include these (https://github.com/lat9/paypalr/commit/39c8b2fe333981ed321cabbf73fabfae43c44e06) changes. That adds a notification through which you can modify the $messagableObjects array via an observer.

I'm not sure what modifications you've made to your version of the Bootstrap template, but that previous 'container' value works just fine for the as-shipped version of the template.

15 Mar 2026, 5:28 PM
#424
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
804
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

lat9:

Rather than altering the 'core' module file, you could either upgrade the PayPal/Restful module to v1.3.1 or update your copy to include these (https://github.com/lat9/paypalr/commit/39c8b2fe333981ed321cabbf73fabfae43c44e06) changes. That adds a notification through which you can modify the $messagableObjects array via an observer.

I'm not sure what modifications you've made to your version of the Bootstrap template, but that previous 'container' value works just fine for the as-shipped version of the template.

I am using version 1.3.1. It must be my template

16 Mar 2026, 7:37 PM
#425
drbyte avatar

drbyte

Sensei

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

Re: PayPal RESTful API Payment Module

chadlly2003:

also getting this error forgot to post it

Content-Security-Policy: The page’s settings blocked a JavaScript eval (script-src) from being executed because it violates the following directive: “script-src 'nonce-xxxxxxxxxxxxxxx' 'self' https://.paypal.com https://.paypalobjects.com https://*.googleapis.com” (Missing 'unsafe-eval')

That's PayPal's CSP, and affects PayPal's loading of PayPal objects, from PayPal servers (where the CSP is) into the elements that PayPal creates on your page. Nothing you can do about it. I reported it to them months ago.

.
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.

16 Mar 2026, 11:45 PM
#426
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
804
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

DrByte:

That's PayPal's CSP, and affects PayPal's loading of PayPal objects, from PayPal servers (where the CSP is) into the elements that PayPal creates on your page. Nothing you can do about it. I reported it to them months ago.

DrByte,

You are 100% correct. This is what I also found to solve
issue. But not really a solution. This is a know issue based on the research i have done

When using the default “Remember history” setting in Firefox, the PayPal guest checkout with a credit card sometimes gets stuck in a redirect/loop during the checkout process. However, if I change the setting under Privacy & Security from “Remember history” to “Never remember history,” the guest checkout works normally without any looping.

Based on my testing, switching to “Never remember history” seems to make Firefox behave similarly to private browsing by limiting stored session data, cookies, and history. This appears to prevent whatever session or cookie conflict is causing the checkout loop.

This behavior seems specific to Firefox, as I have not experienced the same issue in other browsers.

My main concern is whether a customer using the default Firefox settings might encounter the same issue when attempting to complete a transaction.

**Note I already have some customer complain about this.

21 Mar 2026, 4:52 PM
#427
andy_77 avatar

andy_77

New Zenner

Join Date:
Apr 2023
Location:
UK
Posts:
64
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Noticed that the PayPal Pay later messages that show on the shopping cart page, showing the 3 payments that could be made only work on the total of the actual shopping cart.

The shopping cart totals in our case, are exc vat prices, and there is UK VAT to be added, as well as shipping costs on orders that are below a certain value.

When a customer completes a purchase normally, and goes through to the final page, the VAT and shipping costs are then shown, but not sure how this would work if a customer choose the PayPal pay later option???

My question is, if a customer completes a purchase this way will they get charged the total price including VAT and shipping costs; or will this only work on the shopping basket total value?

Kind Regards,

Andy

22 Mar 2026, 4:50 PM
#428
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

andy_77:

Noticed that the PayPal Pay later messages that show on the shopping cart page, showing the 3 payments that could be made only work on the total of the actual shopping cart.

The shopping cart totals in our case, are exc vat prices, and there is UK VAT to be added, as well as shipping costs on orders that are below a certain value.

When a customer completes a purchase normally, and goes through to the final page, the VAT and shipping costs are then shown, but not sure how this would work if a customer choose the PayPal pay later option???

My question is, if a customer completes a purchase this way will they get charged the total price including VAT and shipping costs; or will this only work on the shopping basket total value?

Kind Regards,

Andy
When a customer completes a purchase with PayPal Pay Later, they get charged to total order price (which isn't available on the shopping-cart page).

23 Mar 2026, 9:22 AM
#429
andy_77 avatar

andy_77

New Zenner

Join Date:
Apr 2023
Location:
UK
Posts:
64
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Thanks for confirming lat9.

Kind Regards,

Andy

27 Mar 2026, 12:43 PM
#430
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

This support-thread is now shared by the encapsulated (https://www.zen-cart.com/downloads.php?do=file&id=2434) and non-encapsulated (https://www.zen-cart.com/downloads.php?do=file&id=2382) versions of the payment-module.

When posting a question (or issue), please be sure to include the version of the payment-module you're using.

29 Mar 2026, 5:22 AM
#431
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
804
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Testing zencart 2.2.1
php 8.4
**Note I am testing this on a local machine using xampp

I enabled the PayPal Checkout (RESTful) plugin that comes with Zen Cart 2.2.1.

However, when I try to activate it, I receive the following error:

“The live/sandbox credentials for the PayPal payment module are invalid. The payment module has been automatically disabled.”

I recently completed an upgrade, and know the credentials I entered are correct.

Any ideas what would cause this?

29 Mar 2026, 12:06 PM
#432
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

chadlly2003:

Testing zencart 2.2.1
php 8.4
**Note I am testing this on a local machine using xampp

I enabled the PayPal Checkout (RESTful) plugin that comes with Zen Cart 2.2.1.

However, when I try to activate it, I receive the following error:

“The live/sandbox credentials for the PayPal payment module are invalid. The payment module has been automatically disabled.”

I recently completed an upgrade, and know the credentials I entered are correct.

Any ideas what would cause this?
Other than the credentials being incorrect, I don't have ideas. You could turn on the module's Debug setting and retry; that'll have the PayPal transaction and PayPal's response.

29 Mar 2026, 5:48 PM
#433
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
804
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

lat9:

Other than the credentials being incorrect, I don't have ideas. You could turn on the module's Debug setting and retry; that'll have the PayPal transaction and PayPal's response.

It strange because the exact same setting work on zencart 2.1 with php 8.2. When I do the upgrade to zencart 2.2 and php 8.4 is when the problem occurs. The module does not work when i use the encapsulated or non encapsulated.

I also tried it on a clean install with the same results.

29 Mar 2026, 6:02 PM
#434
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
804
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

I also enabled debug mode in paypal; module. Not populating a log unless I am looking in the wrong section. /logs/

29 Mar 2026, 7:58 PM
#435
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
804
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

I figured it out — the issue was on my local XAMPP setup. There was no SSL/CA bundle configured, so PayPal couldn’t validate the connection. Once I added the SSL certificates, everything verified correctly.

It looks like now, even in a testing environment, SSL is required for authentication with PayPal.

3 May 2026, 4:04 PM
#436
nldav avatar

nldav

New Zenner

Join Date:
Jan 2005
Posts:
55
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

chadlly2003:

Testing zencart 2.2.1
php 8.4
**Note I am testing this on a local machine using xampp

I enabled the PayPal Checkout (RESTful) plugin that comes with Zen Cart 2.2.1.

Where did you do that. I installed Zen Cart 2.2.2 and cannot find it nowhere.

https://github.com/zencart/zencart/tree/master/includes/modules/payment

paypal.php = standard
paypaldp.php = website payments pro
paypalwpp.php = express checkout

If I dive into the documentation there should be something like paypalr.php ?

edit: Oh I eventually found it @ /zc_plugins

14 May 2026, 2:49 PM
#437
njcyx avatar

njcyx

Zen Follower

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

Re: PayPal RESTful API Payment Module

zc 2.1.0. paypalr 1.3.1

I just installed paypalr for the first time. I enabled the credit card payment. Under the checkout page, it looks like "Paypal wallet" button is selected by default, so the credit card number box is not displayed. Is there anyway I can change the default option to "credit card" instead?

Also, under the shopping cart page, there is no paypal express checkout button anymore (like paypalwpp). So everyone needs to click on "Go to checkout", right?

14 May 2026, 5:03 PM
#438
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

njcyx:

zc 2.1.0. paypalr 1.3.1

I just installed paypalr for the first time. I enabled the credit card payment. Under the checkout page, it looks like "Paypal wallet" button is selected by default, so the credit card number box is not displayed. Is there anyway I can change the default option to "credit card" instead?

Also, under the shopping cart page, there is no paypal express checkout button anymore (like paypalwpp). So everyone needs to click on "Go to checkout", right?
Do you have payment modules other than paypalr installed?

Yes, there is no "express checkout" button for this payment module; everyone runs through the checkout processing.

14 May 2026, 5:24 PM
#439
njcyx avatar

njcyx

Zen Follower

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

Re: PayPal RESTful API Payment Module

lat9:

Do you have payment modules other than paypalr installed?

Yes, there is no "express checkout" button for this payment module; everyone runs through the checkout processing.

Only paypalr and check/money order are enabled for this testing. paypalr is selected by default. Under paypalr section, there are two options: PayPal wallet and credit card. Paypal wallet option is selected by default. I'm able to edit jquery.paypalr.checkout.js file so credit card option will be selected by default instead.

I see. So now, if a customer wants to pay the order by paypal instead of a credit card, he needs to enter his address over the websites. On one end, with paypal express module, the customer can choose the saved one from his paypal account, which might be more convenient. On the other end, also paypal express, sometimes paypal saved address will overwrite the address entered on the websites, which also cause some issues.

14 May 2026, 8:26 PM
#440
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

njcyx:

Only paypalr and check/money order are enabled for this testing. paypalr is selected by default. Under paypalr section, there are two options: PayPal wallet and credit card. Paypal wallet option is selected by default. I'm able to edit jquery.paypalr.checkout.js file so credit card option will be selected by default instead.

I see. So now, if a customer wants to pay the order by paypal instead of a credit card, he needs to enter his address over the websites. On one end, with paypal express module, the customer can choose the saved one from his paypal account, which might be more convenient. On the other end, also paypal express, sometimes paypal saved address will overwrite the address entered on the websites, which also cause some issues.
The customer doesn't have to enter their credit-card on the paypalr form; they can use the "Wallet" and (after signing into their account) then select the card to be used.

I'll consider adding a configuration setting to determine which PayPal payment method (wallet vs. card) is initially selected.