Re: One-Page Checkout [Support Thread]
Morning =)
So I have a new build 1.5.8 running the latest bootstrap & opc on PHP 7.3 (because of this https://www.zen-cart.com/showthread....ents-Pro-1-5-8) . When the confirm order is pressed nothing happens. I think the issues is also related to PayPal PRO. PHP is downgraded purposely because of the issues (bug) with PayPal PRO on PHP 8.
Code:
[19-Jan-2023 08:17:45 America/New_York] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 134.215.175.155
#1 paypaldp->__construct() called at [/home/xxx/public_html/includes/classes/payment.php:102]
#2 payment->__construct() called at [/home/xxx/public_html/includes/classes/ajax/zcAjaxPayment.php:80]
#3 zcAjaxPayment->prepareConfirmation() called at [/home/xxx/public_html/ajax.php:85]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/xxx/public_html/includes/modules/payment/paypaldp.php on line 282.
[19-Jan-2023 08:17:45 America/New_York] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 134.215.175.155
#1 paypaldp->__construct() called at [/home/xxx/public_html/includes/classes/payment.php:102]
#2 payment->__construct() called at [/home/xxx/public_html/includes/classes/ajax/zcAjaxPayment.php:80]
#3 zcAjaxPayment->prepareConfirmation() called at [/home/xxx/public_html/ajax.php:85]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/xxx/public_html/includes/modules/payment/paypaldp.php on line 282.
[19-Jan-2023 08:17:45 America/New_York] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 134.215.175.155
#1 paypaldp->__construct() called at [/home/xxx/public_html/includes/classes/payment.php:102]
#2 payment->__construct() called at [/home/xxx/public_html/includes/classes/ajax/zcAjaxPayment.php:80]
#3 zcAjaxPayment->prepareConfirmation() called at [/home/xxx/public_html/ajax.php:85]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/xxx/public_html/includes/modules/payment/paypaldp.php on line 283.
[19-Jan-2023 08:17:45 America/New_York] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 134.215.175.155
#1 paypaldp->__construct() called at [/home/xxx/public_html/includes/classes/payment.php:102]
#2 payment->__construct() called at [/home/xxx/public_html/includes/classes/ajax/zcAjaxPayment.php:80]
#3 zcAjaxPayment->prepareConfirmation() called at [/home/xxx/public_html/ajax.php:85]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/xxx/public_html/includes/modules/payment/paypaldp.php on line 283.
[19-Jan-2023 08:17:45 America/New_York] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 134.215.175.155
#1 paypaldp->__construct() called at [/home/xxx/public_html/includes/classes/payment.php:102]
#2 payment->__construct() called at [/home/xxx/public_html/includes/classes/ajax/zcAjaxPayment.php:80]
#3 zcAjaxPayment->prepareConfirmation() called at [/home/xxx/public_html/ajax.php:85]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/xxx/public_html/includes/modules/payment/paypaldp.php on line 283.
[19-Jan-2023 08:17:45 America/New_York] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 134.215.175.155
#1 require_once() called at [/home/xxx/public_html/includes/classes/ajax/zcAjaxPayment.php:177]
#2 zcAjaxPayment->prepareConfirmation() called at [/home/xxx/public_html/ajax.php:85]
--> PHP Warning: require_once(/home/xxx/public_html/includes/languages/english.php): failed to open stream: No such file or directory in /home/xxx/public_html/includes/classes/ajax/zcAjaxPayment.php on line 177.
[19-Jan-2023 08:17:45 America/New_York] PHP Fatal error: require_once(): Failed opening required '/home/xxx/public_html/includes/languages/english.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxx/public_html/includes/classes/ajax/zcAjaxPayment.php on line 177
I also have PM'd you the debug log.
Thanks in advance.
Re: One-Page Checkout [Support Thread]
this issue is fixed - please see Known Bugs in 1.5.8 thread.
Re: One-Page Checkout [Support Thread]
Awesome thank you. It's kinda hidden a bit =) I'm used to seeing it in Forum: Zen Cart Release Announcements in its' own thread.
Re: One-Page Checkout [Support Thread]
It will go there as soon as we release. We haven't released 1.5.8a yet.
Re: One-Page Checkout [Support Thread]
So I did the bug fixes... whole file, not search & replace several times... but now when I checkout with a credit card I get
Quote:
10002 Security error - Security header is not valid
It's also worth noting that I uninstall PP express & PP pro and reinstalled them. I researched the error and triple checked all of the credentials they are correct.
Transaction results in the security header error, here is the curl log
Code:
2023-01-20 05:51:45
-------------------
(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 90
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP
[4] => X-VPS-VIT-Integration-Version: 1.5.8
)
Request Parameters: {DoDirectPayment}
Array
(
[ACCT] => ************5340
[AMT] => 15.98
[BUTTONSOURCE] => ZenCart-DP_us
[CARDISSUE] =>
[CITY] => Woodbine
[COUNTRYCODE] => US
[CREDITCARDTYPE] => Visa
[CUSTOM] => DP-13256-1674211905
[CVV2] => ***
[EMAIL] => [email protected]
[EXPDATE] => 062023
[FIRSTNAME] => xxxx
[INVNUM] => 13256-1674211905-[xxx]
[IPADDRESS] => xxx.xxx.xxx.xxx
[ITEMAMT] => 5.25
[LASTNAME] => xxxx
[L_AMT0] => 5.25
[L_NAME0] => Glass Shaker - Set of 2 [1868]
[L_NUMBER0] => 742
[L_QTY0] => 1
[NOTIFYURL] => https://xxx/new/ipn_main_handler.php
[PAYMENTACTION] => Sale
[PAYMENTREQUEST_0_PAYMENTACTION] => Sale
[PHONENUM] => xxx
[SHIPPINGAMT] => 10.73
[SHIPTOCITY] => xxxx
[SHIPTOCOUNTRYCODE] => US
[SHIPTONAME] => xxxx
[SHIPTOSTATE] => GA
[SHIPTOSTREET] => xxxx
[SHIPTOZIP] => xxxx
[STATE] => GA
[STREET] => xxxx
[ZIP] => xxxx
[METHOD] => DoDirectPayment
[CURRENCYCODE] => USD
[USER] => xxxx_api1.xxxx.com
[PWD] => ****************
[VERSION] => 124.0
[SIGNATURE] => ****************************************************tfB8
)
Response:
Array
(
[TIMESTAMP] => 2023-01-20T10:51:45Z
[CORRELATIONID] => 4ce933a95d3bf
[ACK] => Failure
[VERSION] => 124.0
[BUILD] => 56068150
[L_ERRORCODE0] => 10002
[L_SHORTMESSAGE0] => Security error
[L_LONGMESSAGE0] => Security header is not valid
[L_SEVERITYCODE0] => Error
[CURL_ERRORS] =>
)
DoDirectPayment, Elapsed: 506ms -- Failure
TIMESTAMP=2023%2d01%2d20T10%3a51%3a45Z&CORRELATIONID=4ce933a95d3bf&ACK=Failure&VERSION=124%2e0&BUILD=56068150&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error&CURL_ERRORS=
new build 1.5.8 running the latest bootstrap & opc on PHP 7.3
Continued in next post as it was too long....
Thanks in advance
~Melanie
Re: One-Page Checkout [Support Thread]
Also the following log warning
Code:
[20-Jan-2023 05:51:45 America/New_York] Request URI: /new/index.php?main_page=checkout_process, IP address: 134.215.175.155
#1 paypaldp->__construct() called at [/home/xxx/public_html/new/includes/classes/payment.php:102]
#2 payment->__construct() called at [/home/xxx/public_html/new/includes/modules/checkout_process.php:45]
#3 require(/home/xxx/public_html/new/includes/modules/checkout_process.php) called at [/home/xxx/public_html/new/includes/modules/pages/checkout_process/header_php.php:13]
#4 require(/home/xxx/public_html/new/includes/modules/pages/checkout_process/header_php.php) called at [/home/xxx/public_html/new/index.php:35]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/xxx/public_html/new/includes/modules/payment/paypaldp.php on line 282.
[20-Jan-2023 05:51:45 America/New_York] Request URI: /new/index.php?main_page=checkout_process, IP address: 134.215.175.155
#1 paypaldp->__construct() called at [/home/xxx/public_html/new/includes/classes/payment.php:102]
#2 payment->__construct() called at [/home/xxx/public_html/new/includes/modules/checkout_process.php:45]
#3 require(/home/xxx/public_html/new/includes/modules/checkout_process.php) called at [/home/xxx/public_html/new/includes/modules/pages/checkout_process/header_php.php:13]
#4 require(/home/xxx/public_html/new/includes/modules/pages/checkout_process/header_php.php) called at [/home/xxx/public_html/new/index.php:35]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/xxx/public_html/new/includes/modules/payment/paypaldp.php on line 283.
[20-Jan-2023 05:51:45 America/New_York] Request URI: /new/index.php?main_page=checkout_process, IP address: 134.215.175.155
#1 paypaldp->zcLog() called at [/home/xxx/public_html/new/includes/modules/payment/paypaldp.php:1855]
#2 paypaldp->getLineItemDetails() called at [/home/xxx/public_html/new/includes/modules/payment/paypaldp.php:744]
#3 paypaldp->before_process() called at [/home/xxx/public_html/new/includes/classes/payment.php:288]
#4 payment->before_process() called at [/home/xxx/public_html/new/includes/modules/checkout_process.php:98]
#5 require(/home/xxx/public_html/new/includes/modules/checkout_process.php) called at [/home/xxx/public_html/new/includes/modules/pages/checkout_process/header_php.php:13]
#6 require(/home/xxx/public_html/new/includes/modules/pages/checkout_process/header_php.php) called at [/home/xxx/public_html/new/index.php:35]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/xxx/public_html/new/includes/modules/payment/paypaldp.php on line 1266.
[20-Jan-2023 05:51:45 America/New_York] Request URI: /new/index.php?main_page=checkout_process, IP address: 134.215.175.155
#1 paypaldp->_doDebug() called at [/home/xxx/public_html/new/includes/modules/payment/paypaldp.php:1276]
#2 paypaldp->zcLog() called at [/home/xxx/public_html/new/includes/modules/payment/paypaldp.php:1855]
#3 paypaldp->getLineItemDetails() called at [/home/xxx/public_html/new/includes/modules/payment/paypaldp.php:744]
#4 paypaldp->before_process() called at [/home/xxx/public_html/new/includes/classes/payment.php:288]
#5 payment->before_process() called at [/home/xxx/public_html/new/includes/modules/checkout_process.php:98]
#6 require(/home/xxx/public_html/new/includes/modules/checkout_process.php) called at [/home/xxx/public_html/new/includes/modules/pages/checkout_process/header_php.php:13]
#7 require(/home/xxx/public_html/new/includes/modules/pages/checkout_process/header_php.php) called at [/home/xxx/public_html/new/index.php:35]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/xxx/public_html/new/includes/modules/payment/paypaldp.php on line 1282.
Also when I install or uninstall pro I get a database error.
Code:
[20-Jan-2023 05:28:25 America/New_York] Request URI: /new/xxx/index.php?cmd=modules&set=payment&action=install, IP address: 134.215.175.155
#1 trigger_error() called at [/home/xxx/public_html/new/includes/classes/db/mysql/query_factory.php:667]
#2 queryFactory->show_error() called at [/home/xxx/public_html/new/includes/classes/db/mysql/query_factory.php:634]
#3 queryFactory->set_error() called at [/home/xxx/public_html/new/includes/classes/db/mysql/query_factory.php:275]
#4 queryFactory->Execute() called at [/home/xxx/public_html/new/includes/modules/payment/paypaldp.php:1218]
#5 paypaldp->install() called at [/home/xxx/public_html/new/xxx/modules.php:109]
#6 require(/home/xxx/public_html/new/xxx/modules.php) called at [/home/xxx/public_html/new/xxx/index.php:11]
--> PHP Fatal error: 1062:Duplicate entry 'MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY' for key 'unq_config_key_zen' :: INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Merchant Country', 'MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY', 'USA', 'Which country is your PayPal Account registered to? <br /><u>Choices:</u><br /><font color=green>You will need to supply <strong>API Settings</strong> in the Express Checkout module.</font><br /><strong>USA and Canada merchants</strong> need PayPal API credentials and a PayPal Payments Pro account.<br /><strong>UK merchants</strong> need to supply <strong>PAYFLOW settings</strong> (and have a Payflow account)<br><strong>Australia merchants</strong> choose Canada<br><em>(This setting is really about the internal PayPal API specification, and not so much about country: US=1.5, UK=2.0, Canada/Australia=3.0)</em>', '6', '25', 'zen_cfg_select_option(array(\'USA\', \'UK\', \'Canada\'), ', now()) ==> (as called by) /home/home4newxxx/public_html/new/includes/modules/payment/paypaldp.php on line 1218 <== in /home/xxx/public_html/new/includes/classes/db/mysql/query_factory.php on line 667.
Re: One-Page Checkout [Support Thread]
PayPal error 10002 means your API credentials are wrong.
Re: One-Page Checkout [Support Thread]
btw you should probably bump up to PHP 7.4. 7.3 support was only intended to allow people to do the upgrade; IIRC there are things in 1.5.8 storefront that don't work well with less than 7.4.
Re: One-Page Checkout [Support Thread]
ZC 1.5.8
PHP 8.0.17
Template: Modified Stirling Grand (no resemblance)
CSS/JS Loader
CEON URI Mapping
OPC v2.4.5
DPU
Colorbox
Structured Data
IH5
Local dev site. Checking out as a guest, paying by money order and subsequently signing up for an account - Zen Cart does not generate the Welcome Email. No error logs. All emails for other orders/accounts are generated correctly. I enabled full OPC logs and two have been generated:
one_page_checkout-51-2023-02-16.log 180KB
one_page_checkout-na-2023-02-16.log 11KB
I have checked with the live site (ZC 1.5.7d / PHP 7.4 / OPC 2.4.3 / paying by Square) and the same occurs - must have missed that in my checks:(
Any suggestions?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
simon1066
ZC 1.5.8
PHP 8.0.17
Template: Modified Stirling Grand (no resemblance)
CSS/JS Loader
CEON URI Mapping
OPC v2.4.5
DPU
Colorbox
Structured Data
IH5
Local dev site. Checking out as a guest, paying by money order and subsequently signing up for an account - Zen Cart does not generate the Welcome Email. No error logs. All emails for other orders/accounts are generated correctly. I enabled full OPC logs and two have been generated:
one_page_checkout-51-2023-02-16.log 180KB
one_page_checkout-na-2023-02-16.log 11KB
I have checked with the live site (ZC 1.5.7d / PHP 7.4 / OPC 2.4.3 / paying by Square) and the same occurs - must have missed that in my checks:(
Any suggestions?
My suggestion is that I (and others) have missed the fact that the welcome email isn't sent out for the past 5 years!
GitHub tracking issue: https://github.com/lat9/one_page_checkout/issues/373