As far as I'm aware.
Printable View
But Client says Square working with normal zencart checkout not working when one page checkout is enabled
Not sure how OPC works, but does it automatically handle the redirect from payment plugins to FILENAME_CHECKOUT_PAYMENT? For example, our Braintree plugin does contain such redirects.
a) zencart 158
b) https://www.zen-cart.com/downloads.php?do=file&id=2345 , last updated on 18th feb 2023 one
c) The one updated on 20 aug 2023
"It says "We have a problem on our end. So Sorry! Please report this error to the Store Owner: SQ-MISSING-TOKEN"
but if we disable OPC and do normal checkout webpay works fine
even tried this
For those wondering about 1.5.8, WebPay works exactly as expected in Zen Cart 1.5.8 WITHOUT One Page Checkout.
If you are going to use both One Page Checkout AND Square WebPay with Zen Cart, you will need to get the OLD square javascript file from includes/modules/pages/checkout_payment/ called jscript_square.php "
But did not work
for those wondering, lets talk about what i know.
- i am the author of square webPay, ie i coded the module.
- there are numerous websites out there using this payment module with OPC.
- i spent an inordinate amount of time to get it to play nice with OPC.
- there is NO need for any old javascript file in the directory mentioned above.
now lets look at the message listed above. that only gets generated right here on the 3rd line in the following code fragment (lines 435-438):
if one looks at the 2nd line of the code fragment, there is a call to the trigger_error function. in a properly configured server, that will generate a log file.PHP Code:
if ($error['category'] === 'INVALID_REQUEST_ERROR') {
trigger_error("Square Connect [configuration] error. \nResponse Body:\n" . print_r($e->getResponseBody(), true) . "\nResponse Headers:\n" . print_r($e->getResponseHeaders(), true), E_USER_NOTICE);
$messageStack->add_session('checkout_payment', MODULE_PAYMENT_SQ_WEBPAY_TEXT_MISCONFIGURATION, 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
the log file will provide more information as to why OPC is not working.
provide the log and perhaps a solution will be forth coming.
I installed one_page_checkout-2.4.6, on ZC 1.5.7d, and I am using westminster_new_2.1 template.
When I click on "Confirm Order", the program does not process order. I found a thread about someone having the same problem using 1.5.5, but it did not seem to apply to 1.5.7d. It doesn't matter which payment selection I try. The button changes on hover and shows the hand pointer. It just doesn't do anything else. No error messages. I do not see any errors in the logs either.
Does OPC work with westminster_new_2.1?
Could you please give me advice on how to proceed?
That westminster_new template, despite its name, is very old. It might not load a compatible version of jQuery. You can check by (on a Windows computer), pressing the F12 key while you're viewing your site's checkout_one page and then clicking on the "Console" tab. OPC's jQuery will (if able) write status messages to the console, but if jQuery isn't loaded you'll see a console error message to that effect.
ZC 1.5.8,
OPC 2.4.6 (2023-08-19),
SFL 1.9a
Hi,
Has anyone got this addon working with Save for Later (https://www.zen-cart.com/downloads.php?do=file&id=872) and if so can you supply the changes to the cart page for me?