Forums / PayPal Express Checkout support / payment is pending authorization but no field in the "details" tab to authorize

payment is pending authorization but no field in the "details" tab to authorize

Views: 1,584

Results 1 to 5 of 5
12 Aug 2025, 1:49 PM
#1
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

payment is pending authorization but no field in the "details" tab to authorize

URL: https://www.proteawines.jp/shop/
PHP 8.2
I have processed the first order with Paypal after upgrading to ZC v2.1.0, and had set the payment status to be "authorize only". In v1.5.6 I would authorize the correct amount manually. I expected to do the same in v2.1.0, but there does not appear to be an authorize field available, only fields for refunds and voiding. Yet the Paypal logs (I have the module set in debug mode) all appear perfectly fine, and there are no general Zen Cart error logs either as far as I can tell.
Is this expected behaviour, and I should set the payment status to "Final Sale", or am I missing something?
Attachment 21013

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

12 Aug 2025, 2:14 PM
#2
lat9 avatar

lat9

Administrator

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

Re: payment is pending authorization but no field in the "details" tab to authorize

I'll suggest grabbing the current version of /includes/modules/payment/paypal/paypalwpp_admin_notification.php from Zen Cart's GitHub repository, specifically the change associated with this commit: https://github.com/zencart/zencart/commit/4891f3c38d3bbcf5879f8380bdc47eb48bacd05f

12 Aug 2025, 2:51 PM
#3
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: payment is pending authorization but no field in the "details" tab to authorize

Hello @lat9
That worked perfectly, thank you very much. I could capture the transaction successfully.

I did find something else odd though. I thought I would set the payment option from "Auth Only" to "Final Sale", and that ended up breaking the order display page completely, blank from the Paypal display onwards.
It turns out that line 476 (in the new file, the old file has it also) has a key MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE which does not seem to exist, as I have not installed the Paypments Pro module:

if (MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE == 'Auth Only' || MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE == 'Auth Only') {

I suppose this is some kind of bug as it appears in the paypalwpp_admin_notification.php file.

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

13 Aug 2025, 1:31 PM
#4
lat9 avatar

lat9

Administrator

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

Re: payment is pending authorization but no field in the "details" tab to authorize

gernot:

Hello @lat9
That worked perfectly, thank you very much. I could capture the transaction successfully.

I did find something else odd though. I thought I would set the payment option from "Auth Only" to "Final Sale", and that ended up breaking the order display page completely, blank from the Paypal display onwards.
It turns out that line 476 (in the new file, the old file has it also) has a key MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE which does not seem to exist, as I have not installed the Paypments Pro module:

if (MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE == 'Auth Only' || MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE == 'Auth Only') {

> I suppose this is some kind of bug as it appears in the paypalwpp_admin_notification.php file.
Yep, here's the change that I'll be submitting to correct that issue, adding the highlighted lines prior to that 'if' statement:

[B] zen_define_default('MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE', '');
zen_define_default('MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE', '');[/B]

if (MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE === 'Auth Only' || MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE === 'Auth Only') {
if (method_exists($this, '_doAuth')) {

13 Aug 2025, 5:15 PM
#5
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: payment is pending authorization but no field in the "details" tab to authorize

Thank you @lat9,
Done.

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0