Forums / PayPal RESTful support / PayPal RESTful API Payment Module

PayPal RESTful API Payment Module

Views: 84,745

Results 181 to 200 of 491
4 Dec 2024, 5:05 PM
#181
jeff_mash avatar

jeff_mash

Totally Zenned

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

PayPal RESTful API Payment Module

Cindy - I posted this on the GitHub repository, but thought I'd include it here in case it helps get more attention:

Version v1.0.4.

I am noticing an issue in our system. When a customer places a PayPal order (not all the time, but a lot), the STATE that is being sent to PayPal is "California" where we are based.

For example, in ZenCart database, the address in both the Customer and the Orders Table is:

1234 Newbank Circle Suite 207
Dublin, OH 43017

But when I pull up PayPal to look if the address is verified, I see this on PayPal:

1234 Newbank Circle Suite 207
Dublin, CA 43017

I have seen this with multiple orders now, where the order looks fine in ZenCart, but when pulling it up on PayPal's website, they have "CA" as the state.

Is this a bug or perhaps is there something I need to check with my current installation?

I checked the "ipn_1732546861_MsKv7.log" file created for this example order and it shows "CA" as the state being pushed to PayPal, so something within our installation is sending that incorrect state to PayPal.

UPDATE: This doesn't seem to happen with every order.......but when it did, I noticed another WARNING LOG for the same transaction (ipn_1732546861_MsKv7-warning.log)

It seems that that warning log may indicate what is causing CA to be passed as the state to PayPal?

  • Jeff
4 Dec 2024, 6:43 PM
#182
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

Jeff_Mash:

Cindy - I posted this on the GitHub repository, but thought I'd include it here in case it helps get more attention:

Version v1.0.4.

I am noticing an issue in our system. When a customer places a PayPal order (not all the time, but a lot), the STATE that is being sent to PayPal is "California" where we are based.

For example, in ZenCart database, the address in both the Customer and the Orders Table is:

1234 Newbank Circle Suite 207
Dublin, OH 43017

But when I pull up PayPal to look if the address is verified, I see this on PayPal:

1234 Newbank Circle Suite 207
Dublin, CA 43017

I have seen this with multiple orders now, where the order looks fine in ZenCart, but when pulling it up on PayPal's website, they have "CA" as the state.

Is this a bug or perhaps is there something I need to check with my current installation?

I checked the "ipn_1732546861_MsKv7.log" file created for this example order and it shows "CA" as the state being pushed to PayPal, so something within our installation is sending that incorrect state to PayPal.

UPDATE: This doesn't seem to happen with every order.......but when it did, I noticed another WARNING LOG for the same transaction (ipn_1732546861_MsKv7-warning.log)

It seems that that warning log may indicate what is causing CA to be passed as the state to PayPal?
PayPal RESTful doesn't make use of IPNs and none of its generated logs start with ipn_ ... so I'm not sure where those logs are coming from.

4 Dec 2024, 7:38 PM
#183
jeff_mash avatar

jeff_mash

Totally Zenned

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

Re: PayPal RESTful API Payment Module

lat9:

PayPal RESTful doesn't make use of IPNs and none of its generated logs start with ipn_ ... so I'm not sure where those logs are coming from.

Yeah, I don't know either. I just noticed that at the exact same time as the PayPal transaction occurred (with the incorrect STATE being passed to PayPal), I had that corresponding IPN log file, which references the ipn_main_handler.php.

If you look at the contents of that IPN warning log, you can see that it references the PayPal IPN as well as the freeoptions.php.

When I look at my Payment Modules, only paypalr is enabled. The other two (paypaldp and paypalwpp) are orange (disabled). Perhaps I should actually REMOVE them and see if that helps?

  • Jeff
4 Dec 2024, 8:22 PM
#184
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

Jeff_Mash:

Yeah, I don't know either. I just noticed that at the exact same time as the PayPal transaction occurred (with the incorrect STATE being passed to PayPal), I had that corresponding IPN log file, which references the ipn_main_handler.php.

If you look at the contents of that IPN warning log, you can see that it references the PayPal IPN as well as the freeoptions.php.

When I look at my Payment Modules, only paypalr is enabled. The other two (paypaldp and paypalwpp) are orange (disabled). Perhaps I should actually REMOVE them and see if that helps?
It depends on whether you have any orders paid with those payment modules that might need an update (i.e. a refund or a capture). If all orders paid with them are cleared, then removing them would (I think) also deactivate the ipn_main_handler.php operations.

11 Dec 2024, 3:34 PM
#185
jeff_mash avatar

jeff_mash

Totally Zenned

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

Re: PayPal RESTful API Payment Module

lat9:

It depends on whether you have any orders paid with those payment modules that might need an update (i.e. a refund or a capture). If all orders paid with them are cleared, then removing them would (I think) also deactivate the ipn_main_handler.php operations.

Well, I removed the old paypalwpp and paypald from the system. Yet, I still get the incorrect STATE passed to PayPal with the paypal restful module.

Only seems to happen with the Paypal Restful module on certain orders (and both using PayPal or Credit Card).

For example:

Order comes in like this:

Customer Address:
Joe Shmoe
119A Jamestown Dr
P.O. Box 303
Sitka Alaska 99835

Sub-Total: $59.90
United States Postal Service (Priority Mail® (2 - 3 days)): $13.79
Shipping Insurance (Recommended): $3.00
Total: $76.69

But on PayPal, I see:

Joe Shmoe
119A Jamestown Dr
P.O. Box 303
Sitka, CA 99835
UNITED STATES

In the logs, I see this warning created at the same exact time:

[11-Dec-2024 05:36:56 America/Los_Angeles] Request URI: /store/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /home/domain/public_html/store/ipn_main_handler.php(352): zen_debug_error_handler()
--> PHP Warning: Undefined array key "payment" in /home/domain/public_html/store/ipn_main_handler.php on line 352.

[11-Dec-2024 05:36:56 America/Los_Angeles] Request URI: /store/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /home/domain/public_html/store/ipn_main_handler.php(353): zen_debug_error_handler()
--> PHP Warning: Undefined array key "shipping" in /home/domain/public_html/store/ipn_main_handler.php on line 353.

[11-Dec-2024 05:36:56 America/Los_Angeles] Request URI: /store/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /home/domain/public_html/store/includes/modules/shipping/freeoptions.php(104): zen_debug_error_handler()
#1 /home/domain/public_html/store/includes/modules/shipping/freeoptions.php(85): freeoptions->update_status()
#2 /home/domain/public_html/store/includes/classes/shipping.php(91): freeoptions->__construct()
#3 /home/domain/public_html/store/ipn_main_handler.php(353): shipping->__construct()
--> PHP Warning: Attempt to read property "delivery" on null in /home/domain/public_html/store/includes/modules/shipping/freeoptions.php on line 104.

[11-Dec-2024 05:36:56 America/Los_Angeles] Request URI: /store/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /home/domain/public_html/store/includes/modules/shipping/freeoptions.php(104): zen_debug_error_handler()
#1 /home/domain/public_html/store/includes/modules/shipping/freeoptions.php(85): freeoptions->update_status()
#2 /home/domain/public_html/store/includes/classes/shipping.php(91): freeoptions->__construct()
#3 /home/domain/public_html/store/ipn_main_handler.php(353): shipping->__construct()
--> PHP Warning: Trying to access array offset on value of type null in /home/domain/public_html/store/includes/modules/shipping/freeoptions.php on line 104.

[11-Dec-2024 05:36:56 America/Los_Angeles] Request URI: /store/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /home/domain/public_html/store/includes/modules/shipping/freeoptions.php(104): zen_debug_error_handler()
#1 /home/domain/public_html/store/includes/modules/shipping/freeoptions.php(85): freeoptions->update_status()
#2 /home/domain/public_html/store/includes/classes/shipping.php(91): freeoptions->__construct()
#3 /home/domain/public_html/store/ipn_main_handler.php(353): shipping->__construct()
--> PHP Warning: Trying to access array offset on value of type null in /home/domain/public_html/store/includes/modules/shipping/freeoptions.php on line 104.

[11-Dec-2024 05:36:56 America/Los_Angeles] Request URI: /store/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /home/domain/public_html/store/includes/modules/order_total/ot_shipping.php(67): zen_debug_error_handler()
#1 /home/domain/public_html/store/includes/classes/order_total.php(72): ot_shipping->process()
#2 /home/domain/public_html/store/ipn_main_handler.php(365): order_total->process()
--> PHP Warning: Undefined array key "country_id" in /home/domain/public_html/store/includes/modules/order_total/ot_shipping.php on line 67.

Everything gets processed fine in PayPal EXCEPT for the customer's state. Whenever this happens, the customer's state always says "CA" instead of their actual state on the ZenCart side of the transaction.

**Why is this a big deal? **

Because PayPal will only offer Seller Protection if you ship to the exact same address in their posted transaction. But if all the addresses are showing the incorrect state, it could violate any Seller Protection that we have. Meaning, any chargebacks or disputes will be automatically found in the buyer's favor even if you have proper proof of delivery (because you are delivering to the correct address and not to the incorrect address on PayPal).

  • Jeff
14 Dec 2024, 5:20 PM
#186
swguy avatar

swguy

Administrator

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

Re: PayPal RESTful API Payment Module

Getting an issue related to PayPal REST checkout when products have a checkbox in their attribute configuration. Zen Cart 2.0.1. PP Rest 1.0.4. Bootstrap 3.7.4.

In CreatePayPalOrderRequest.php, should the constructor strip off the "_chk" that is added to the customers_basket_attributes entry on includes/classes/shopping_cart.php line 355?

Log here:

[14-Dec-2024 06:38:46 America/Denver] Request URI: /shop/index.php?main_page=checkout_confirmation, IP address: 2601:188:c404:8520:39bb:5ae1:e114:c498, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /home2/client/public_html/shop/includes/classes/db/mysql/query_factory.php(714): trigger_error()
#2 /home2/client/public_html/shop/includes/classes/db/mysql/query_factory.php(659): queryFactory->show_error()
#3 /home2/client/public_html/shop/includes/classes/db/mysql/query_factory.php(299): queryFactory->set_error()
#4 /home2/client/public_html/shop/includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php(291): queryFactory->Execute()
#5 /home2/client/public_html/shop/includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php(237): PayPalRestful\Zc2Pp\CreatePayPalOrderRequest->isProductPhysical()
#6 /home2/client/public_html/shop/includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php(98): PayPalRestful\Zc2Pp\CreatePayPalOrderRequest->getItems()
#7 /home2/client/public_html/shop/includes/modules/payment/paypalr.php(1102): PayPalRestful\Zc2Pp\CreatePayPalOrderRequest->__construct()
#8 /home2/client/public_html/shop/includes/modules/payment/paypalr.php(940): paypalr->createPayPalOrder()
#9 /home2/client/public_html/shop/includes/classes/payment.php(248): paypalr->pre_confirmation_check()
#10 /home2/client/public_html/shop/includes/modules/pages/checkout_confirmation/header_php.php(92): payment->pre_confirmation_check()
#11 /home2/client/public_html/shop/index.php(35): require('/home2/client...')
--> PHP Fatal error: MySQL error 1054: Unknown column '3_chk7' in 'where clause' :: SELECT products_attributes_id
               FROM zen_products_attributes_download
              WHERE products_attributes_id IN (
                    SELECT products_attributes_id
                      FROM zen_products_attributes
                     WHERE products_id = 1807
                       AND ((options_id = 30 AND options_values_id = 0) OR (options_id = 32 AND options_values_id = 0) OR (options_id = 31 AND options_values_id = 0) OR (options_id = 33 AND options_values_id = 0) OR (options_id = 3_chk7 AND options_values_id = 7) OR (options_id = 5 AND options_values_id = 11)
                       )
                    ) ==> (as called by) /home2/client/public_html/shop/includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php on line 291 <== in /home2/client/public_html/shop/includes/classes/db/mysql/query_factory.php on line 714.

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.

15 Dec 2024, 1:24 PM
#187
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

swguy:

Getting an issue related to PayPal REST checkout when products have a checkbox in their attribute configuration. Zen Cart 2.0.1. PP Rest 1.0.4. Bootstrap 3.7.4.

In CreatePayPalOrderRequest.php, should the constructor strip off the "_chk" that is added to the customers_basket_attributes entry on includes/classes/shopping_cart.php line 355?

Log here:

[14-Dec-2024 06:38:46 America/Denver] Request URI: /shop/index.php?main_page=checkout_confirmation, IP address: 2601:188:c404:8520:39bb:5ae1:e114:c498, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /home2/client/public_html/shop/includes/classes/db/mysql/query_factory.php(714): trigger_error()
#2 /home2/client/public_html/shop/includes/classes/db/mysql/query_factory.php(659): queryFactory->show_error()
#3 /home2/client/public_html/shop/includes/classes/db/mysql/query_factory.php(299): queryFactory->set_error()
#4 /home2/client/public_html/shop/includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php(291): queryFactory->Execute()
#5 /home2/client/public_html/shop/includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php(237): PayPalRestful\Zc2Pp\CreatePayPalOrderRequest->isProductPhysical()
#6 /home2/client/public_html/shop/includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php(98): PayPalRestful\Zc2Pp\CreatePayPalOrderRequest->getItems()
#7 /home2/client/public_html/shop/includes/modules/payment/paypalr.php(1102): PayPalRestful\Zc2Pp\CreatePayPalOrderRequest->__construct()
#8 /home2/client/public_html/shop/includes/modules/payment/paypalr.php(940): paypalr->createPayPalOrder()
#9 /home2/client/public_html/shop/includes/classes/payment.php(248): paypalr->pre_confirmation_check()
#10 /home2/client/public_html/shop/includes/modules/pages/checkout_confirmation/header_php.php(92): payment->pre_confirmation_check()
#11 /home2/client/public_html/shop/index.php(35): require('/home2/client...')
--> PHP Fatal error: MySQL error 1054: Unknown column '3_chk7' in 'where clause' :: SELECT products_attributes_id
FROM zen_products_attributes_download
WHERE products_attributes_id IN (
SELECT products_attributes_id
FROM zen_products_attributes
WHERE products_id = 1807
AND ((options_id = 30 AND options_values_id = 0) OR (options_id = 32 AND options_values_id = 0) OR (options_id = 31 AND options_values_id = 0) OR (options_id = 33 AND options_values_id = 0) OR (options_id = 3_chk7 AND options_values_id = 7) OR (options_id = 5 AND options_values_id = 11)
)
) ==> (as called by) /home2/client/public_html/shop/includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php on line 291 <== in /home2/client/public_html/shop/includes/classes/db/mysql/query_factory.php on line 714.

Yep, thanks for the report.  GitHub issue for tracking: <https://github.com/lat9/paypalr/issues/46>

I'll be adding the highlighted castings to line 292 of /includes/modules/payment/paypal/PayPalRestful/Zc2Pp/CreatePayPalOrderRequest.php
    $attributes_where = [];
    foreach ($product['attributes'] as $next_att) {
        $attributes_where[] = '(options_id = ' .[B] (int)[/B]$next_att['option_id'] . ' AND options_values_id = ' . [B](int)[/B]$next_att['value_id'] . ')';
    }
15 Dec 2024, 2:43 PM
#188
swguy avatar

swguy

Administrator

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

Re: PayPal RESTful API Payment Module

Thank you for the quick resolution!

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.

15 Dec 2024, 2:54 PM
#189
swguy avatar

swguy

Administrator

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

Re: PayPal RESTful API Payment Module

Verified working perfectly!

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.

2 Jan 2025, 7:36 PM
#190
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

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

This release contains changes associated with the following GitHub issues:

#40: Send current billing address for PayPal Wallet payments.
#41: Correct alternate payment-module pre-selected on checkout_payment page
#42: Don't send payment request to PayPal if there are existing payment-related messages to be displayed.
#43: Use language-constants for additional status-history record's information.
#44: Remove intervening spaces from addresses' postal_codes.
#46: Correct MySQL error when checking out with a checkbox-type attributed product.

4 Jan 2025, 11:02 PM
#191
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Just wondering if this supports UK at all? Only reason as was using Paypal Payment Pro for many years but had to stop as 3DS 2.0 was enforced for UK, and had to switch to Breathe Pay dedicated card handler on zencart. Which is good, but its happened quite a few times where a customer gets an error and payment goes through but not order (I have to push manually). Which never happened with Paypal Payment Pro I might add, it was 100% or thereabouts reliable. So am keeping eye on this module and it is paypal based, but not noticed anybody UK based using it, but I could be wrong? Thanks in advance.

4 Jan 2025, 11:18 PM
#192
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

HeathenMagic:

Just wondering if this supports UK at all? Only reason as was using Paypal Payment Pro for many years but had to stop as 3DS 2.0 was enforced for UK, and had to switch to Breathe Pay dedicated card handler on zencart. Which is good, but its happened quite a few times where a customer gets an error and payment goes through but not order (I have to push manually). Which never happened with Paypal Payment Pro I might add, it was 100% or thereabouts reliable. So am keeping eye on this module and it is paypal based, but not noticed anybody UK based using it, but I could be wrong? Thanks in advance.
It does. The credit-card processing's 3DS support is built in.

I'm aware of a couple of UK/EU users of the payment module. If someone could 'chime in' to let @HeathenMagic know, that would be a big help.

8 Jan 2025, 2:54 PM
#193
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: PayPal RESTful API Payment Module

Just checking. Does the setting "Accept Credit Cards?" only apply to one-page checkout as if I set it to false, PayPal still gives the person the option to pay via a credit card rather than log in.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

8 Jan 2025, 5:31 PM
#194
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

brittainmark:

Just checking. Does the setting "Accept Credit Cards?" only apply to one-page checkout as if I set it to false, PayPal still gives the person the option to pay via a credit card rather than log in.
That setting only affects whether/not a customer is offered a credit-card payment means within Zen Cart. What PayPal offers when a PayPal Wallet request is made is totally up to PayPal.

9 Jan 2025, 2:21 AM
#195
dbltoe avatar

dbltoe

Totally Zenned

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

Re: PayPal RESTful API Payment Module

Interesting failure on a 1.5.8a site. We are not seeing this on any 2.#.# site.

hornedlizardcreationsDOTcom
PHP 7.4
MySQL 5.5.5-10.5.27-MariaDB
Edit Orders 4.7.0
Bootstrap 3.6.0
OPC 2.5.0
PayPal Restful 1.0.5
Square Webpay 1.0.4

[07-Jan-2025 23:26:15 America/Denver] Request URI: /index.php?main_page=checkout_one_confirmation, IP address: **************, Language id 1
#1 trigger_error() called at [/includes/modules/payment/paypalr.php:556]
#2 paypalr->setConfigurationDisabled() called at [/includes/modules/payment/paypalr.php:1188]
#3 paypalr->getOrderTotalsInfo() called at [/includes/modules/payment/paypalr.php:1093]
#4 paypalr->createPayPalOrder() called at [/includes/modules/payment/paypalr.php:954]
#5 paypalr->pre_confirmation_check() called at [/includes/classes/payment.php:248]
#6 payment->pre_confirmation_check() called at [/includes/modules/pages/checkout_one_confirmation/header_php.php:161]
#7 require(/includes/modules/pages/checkout_one_confirmation/header_php.php) called at [/index.php:35]
--> PHP Warning: Setting configuration disabled: The required notifications in the order_total.php class were not applied; the payment module cannot place orders. in /includes/modules/payment/paypalr.php on line 556.

Restful is easily reset by turning it back on. However, at the first attempted use, an error is thrown and the mod is turned off.

Turning on the debug for Restful shows the following before the above log file.

************************************************
2025-01-07 23:25:36: () validateCredentials: Checking ().The curlPost (v1/oauth2/token) request was successful (200).
{
"token_type": "Bearer",
"expires_in": 31312
}
************************************************
************************************************
2025-01-07 23:25:37: () validateCredentials: Checking ().The curlPost (v1/oauth2/token) request was successful (200).
{
"token_type": "Bearer",
"expires_in": 31312
}
************************************************

Turning on the debug for Restful shows the following after the above log file.

************************************************
2025-01-07 23:25:56: (checkout_one) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 31293 seconds.
************************************************
************************************************
2025-01-07 23:26:05: (checkout_one) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 31284 seconds.
************************************************
************************************************
2025-01-07 23:26:15: (checkout_one_confirmation) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 31274 seconds.
************************************************
************************************************
2025-01-07 23:26:15: (checkout_one_confirmation) pre_confirmation_check starts ...
We are unable to process your PayPal Checkout payment at this time. Please contact us for assistance.

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

9 Jan 2025, 8:43 AM
#196
siliconbug avatar

siliconbug

Zen Follower

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

Re: PayPal RESTful API Payment Module

Works fine on my 1.5.8a site with fewer plug-ins:

PHP 7.4
MySQL 5.5.5-10.11.6-MariaDB
Bootstrap 3.6.2
PayPal Restful 1.0.5

9 Jan 2025, 11:30 AM
#197
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: PayPal RESTful API Payment Module

When using paypal restful live. I get the following error log when the order is confirmed.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /ipn_main_handler.php(352): zen_debug_error_handler()
--> PHP Warning: Undefined array key "payment" in /ipn_main_handler.php on line 352.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /ipn_main_handler.php(353): zen_debug_error_handler()
--> PHP Warning: Undefined array key "shipping" in /ipn_main_handler.php on line 353.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /includes/modules/shipping/freeshipper.php(92): zen_debug_error_handler()
#1 /includes/modules/shipping/freeshipper.php(79): freeshipper->update_status()
#2 /includes/classes/shipping.php(103): freeshipper->__construct()
#3 /includes/classes/shipping.php(50): shipping->initialize_modules()
#4 /ipn_main_handler.php(353): shipping->__construct()
--> PHP Warning: Attempt to read property "delivery" on null in /includes/modules/shipping/freeshipper.php on line 92.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /includes/modules/shipping/freeshipper.php(92): zen_debug_error_handler()
#1 /includes/modules/shipping/freeshipper.php(79): freeshipper->update_status()
#2 /includes/classes/shipping.php(103): freeshipper->__construct()
#3 /includes/classes/shipping.php(50): shipping->initialize_modules()
#4 /ipn_main_handler.php(353): shipping->__construct()
--> PHP Warning: Trying to access array offset on value of type null in /includes/modules/shipping/freeshipper.php on line 92.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /includes/modules/shipping/freeshipper.php(92): zen_debug_error_handler()
#1 /includes/modules/shipping/freeshipper.php(79): freeshipper->update_status()
#2 /includes/classes/shipping.php(103): freeshipper->__construct()
#3 /includes/classes/shipping.php(50): shipping->initialize_modules()
#4 /ipn_main_handler.php(353): shipping->__construct()
--> PHP Warning: Trying to access array offset on value of type null in /includes/modules/shipping/freeshipper.php on line 92.

I know this is connected to the old paypal method which I have set to retired. Have I missed somthing at the paypal end?

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

9 Jan 2025, 12:28 PM
#198
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

dbltoe:

Interesting failure on a 1.5.8a site. We are not seeing this on any 2.#.# site.

hornedlizardcreationsDOTcom
PHP 7.4
MySQL 5.5.5-10.5.27-MariaDB
Edit Orders 4.7.0
Bootstrap 3.6.0
OPC 2.5.0
PayPal Restful 1.0.5
Square Webpay 1.0.4

[07-Jan-2025 23:26:15 America/Denver] Request URI: /index.php?main_page=checkout_one_confirmation, IP address: **************, Language id 1
#1 trigger_error() called at [/includes/modules/payment/paypalr.php:556]
#2 paypalr->setConfigurationDisabled() called at [/includes/modules/payment/paypalr.php:1188]
#3 paypalr->getOrderTotalsInfo() called at [/includes/modules/payment/paypalr.php:1093]
#4 paypalr->createPayPalOrder() called at [/includes/modules/payment/paypalr.php:954]
#5 paypalr->pre_confirmation_check() called at [/includes/classes/payment.php:248]
#6 payment->pre_confirmation_check() called at [/includes/modules/pages/checkout_one_confirmation/header_php.php:161]
#7 require(/includes/modules/pages/checkout_one_confirmation/header_php.php) called at [/index.php:35]
--> PHP Warning: Setting configuration disabled: The required notifications in the order_total.php class were not applied; the payment module cannot place orders. in /includes/modules/payment/paypalr.php on line 556.

Were the required notifications applied to /includes/classes/order_total.php?
9 Jan 2025, 12:29 PM
#199
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

brittainmark:

When using paypal restful live. I get the following error log when the order is confirmed.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /ipn_main_handler.php(352): zen_debug_error_handler()
--> PHP Warning: Undefined array key "payment" in /ipn_main_handler.php on line 352.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /ipn_main_handler.php(353): zen_debug_error_handler()
--> PHP Warning: Undefined array key "shipping" in /ipn_main_handler.php on line 353.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /includes/modules/shipping/freeshipper.php(92): zen_debug_error_handler()
#1 /includes/modules/shipping/freeshipper.php(79): freeshipper->update_status()
#2 /includes/classes/shipping.php(103): freeshipper->__construct()
#3 /includes/classes/shipping.php(50): shipping->initialize_modules()
#4 /ipn_main_handler.php(353): shipping->__construct()
--> PHP Warning: Attempt to read property "delivery" on null in /includes/modules/shipping/freeshipper.php on line 92.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /includes/modules/shipping/freeshipper.php(92): zen_debug_error_handler()
#1 /includes/modules/shipping/freeshipper.php(79): freeshipper->update_status()
#2 /includes/classes/shipping.php(103): freeshipper->__construct()
#3 /includes/classes/shipping.php(50): shipping->initialize_modules()
#4 /ipn_main_handler.php(353): shipping->__construct()
--> PHP Warning: Trying to access array offset on value of type null in /includes/modules/shipping/freeshipper.php on line 92.

[09-Jan-2025 11:22:32 Europe/London] Request URI: /sales/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /includes/modules/shipping/freeshipper.php(92): zen_debug_error_handler()
#1 /includes/modules/shipping/freeshipper.php(79): freeshipper->update_status()
#2 /includes/classes/shipping.php(103): freeshipper->__construct()
#3 /includes/classes/shipping.php(50): shipping->initialize_modules()
#4 /ipn_main_handler.php(353): shipping->__construct()
--> PHP Warning: Trying to access array offset on value of type null in /includes/modules/shipping/freeshipper.php on line 92.

> I know this is connected to the old paypal method which I have set to retired. Have I missed somthing at the paypal end?
Perhaps disabling IPNs from the PayPal account?
9 Jan 2025, 12:36 PM
#200
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: PayPal RESTful API Payment Module

Perhaps disabling IPNs from the PayPal account?
Good idea, I assume that this would not allow me to process any historic PayPal transactions?

Mark Brittain
http:\innerlightcrystals.co.uk\sales\