Thanks very much to lat9 for her highly-responsive support over this. I'd never have figured it out myself. It seems that OPC is not currently compatible with Braintree and other Javascript-based payment methods.
I'll be keeping an eye on OPC developments :)
in looking at the braintree zc code, i would now even argue that this payment module is NOT a javascript based payment method.
in addition, it looks to be based on braintree sdk 3.4.0 which was deprecated on 3/2022; and unsupported as of 3/2023.
the latest braintree php sdk was released 2 weeks ago, and is version 6.16.0.
Last edited by BillJ; 20 Jan 2024 at 06:35 PM.
Perhaps when OPC becomes part of the Zen Cart core then their hand will be forced since if it is incompatible with OPC then it is incompatible with Zen Cart. Until then we have two third-party modules for Zen Cart that are incompatible with each other.
However... :)
@lat9, what is it that OPC is expecting to happen that the Square Webpay module is doing but the Braintree module isn't doing? I'd have a go at updating the Braintree module if I knew what that was.
I have ZC v1.5.8a and One-Page Checkout V 2.4.6
I'm getting this error:
223 is US and 222 is the UK and I only have uk active in admin and it is only happening on index.php?main_page=checkout_oneCode:[02-Feb-2024 18:37:43 UTC] PHP Notice: Country with countries_id = 223 is either disabled or does not exist. in /home/xxx/xxx/public_html/includes/functions/html_output.php on line 896
so is there a hard coded use of countries_id = 223 in the script as I have looked and can not see
Last edited by OJ_SIMON; 2 Feb 2024 at 07:47 PM.
I ended up just enabling US and the error has fixed and also I'm not getting anymore errors yet.
a lot of assumptions going on here...
none of which look to be true... i could be wrong...
did you look at the code? specifically where the error is?
that looks to be where your problem probably is.
from your admin -> configuration -> customer details -> Create Account Default Country ID
what is that set to? default is 223; you probably want it at 222. then you can disable the US once again.
so i do not think that this issue is OPC related nor do i think that 223 was hard coded. but both configuration keys, STORE_COUNTRY and SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY, need to be set to 222.
best.
Bookmarks