Forums / Addon Payment Modules / Adding Braintree payment module

Adding Braintree payment module

Views: 83,422

Results 181 to 200 of 214
14 Apr 2021, 11:30 PM
#181
lrfowler24 avatar

lrfowler24

New Zenner

Join Date:
Feb 2010
Posts:
74
Plugin Contributions:
0

Adding Braintree payment module

I added the braintree module to leandmo.com .....but nothing is showing up on the checkout page.......I'm guessing there should be a selection of charge cards available.......I don't see any......just paypal checkout.

3 Nov 2022, 4:44 PM
#182
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Adding Braintree payment module

Just curious. I am coming from Paypal Pro and I was able to issue refunds directly from the admin screen. It appears this module does not allow the refund from the admin screen?

The only way to refund the order is to log into Braintree site and issue the refund there. I am only using the sandbox at this time as I am testing out a possible switch from Paypal Pro.

Thank you

16 Nov 2022, 6:41 PM
#183
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Adding Braintree payment module

Once I went from sandbox to production I am able to refund the order in the admin panel.

However testing ZC 1.5.8 I noticed this payment module does not work. During checkout on step 2, you fill out the credit card information and then click continue and nothing happens.

There is an error log with the following:
[15-Nov-2022 19:30:10 UTC] Request URI: /Backup/ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 98.97.10.158
#1 require_once() called at [/.../Backup/includes/classes/ajax/zcAjaxPayment.php:177]
#2 zcAjaxPayment->prepareConfirmation() called at [/.../Backup/ajax.php:85]
--> PHP Warning: require_once(/.../Backup/includes/languages/english.php): failed to open stream: No such file or directory in /.../Backup/includes/classes/ajax/zcAjaxPayment.php on line 177.

[15-Nov-2022 19:30:10 UTC] PHP Fatal error: require_once(): Failed opening required '/.../Backup/includes/languages/english.php' (include_path='.:/usr/local/php74/pear') in /.../Backup/includes/classes/ajax/zcAjaxPayment.php on line 177

I believe english.php was changed to lang.english.php in v1.5.8. However I have no idea how to fix it.

25 Nov 2022, 5:23 PM
#184
lat9 avatar

lat9

Administrator

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

Re: Adding Braintree payment module

n8pbm:

Once I went from sandbox to production I am able to refund the order in the admin panel.

However testing ZC 1.5.8 I noticed this payment module does not work. During checkout on step 2, you fill out the credit card information and then click continue and nothing happens.

There is an error log with the following:
[15-Nov-2022 19:30:10 UTC] Request URI: /Backup/ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 98.97.10.158
#1 require_once() called at [/.../Backup/includes/classes/ajax/zcAjaxPayment.php:177]
#2 zcAjaxPayment->prepareConfirmation() called at [/.../Backup/ajax.php:85]
--> PHP Warning: require_once(/.../Backup/includes/languages/english.php): failed to open stream: No such file or directory in /.../Backup/includes/classes/ajax/zcAjaxPayment.php on line 177.

[15-Nov-2022 19:30:10 UTC] PHP Fatal error: require_once(): Failed opening required '/.../Backup/includes/languages/english.php' (include_path='.:/usr/local/php74/pear') in /.../Backup/includes/classes/ajax/zcAjaxPayment.php on line 177

I believe english.php was changed to lang.english.php in v1.5.8. However I have no idea how to fix it.

Yes, that's an identified bug in zc158. See this (https://github.com/zencart/zencart/pull/5413) GitHub change for the correction.

25 Nov 2022, 11:52 PM
#185
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

1.5.8 upgraders please keep an eye on the Known Issues thread. Tons of good info!

https://www.zen-cart.com/showthread.php?229042-Known-bugs-%28and-fixes%29-for-v1-5-8-series&p=1390680

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.

18 Mar 2023, 5:00 PM
#186
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

Numinix team: is it your intention to update this plugin for PHP 8? It looks like it hasn't had a release in the last couple of years.

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.

24 Oct 2023, 4:42 PM
#187
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

Numinix Team: Any progress or ETA on Braintree for PHP8?

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.

19 Jun 2024, 6:16 PM
#188
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

I have updated the Plugins Library with the latest refresh of Braintree from Numinix. Thanks to the Numinix team for making this available to the community.

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.

24 Jun 2024, 5:39 PM
#189
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Adding Braintree payment module

I just tried Braintree version 2.2.8 on Zen Cart 1.5.8a with PHP 7.4.33. Uninstalled the old module (1.4.5), uploaded the new version and clicked install. Took a while but then the screen stropped before the braintree selection shows under Payment Modules. Blank Screen after Authorize.net (AIM).

Reinstalled 1.4.5 and it works again.

24 Jun 2024, 8:34 PM
#190
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

Please send post any logs you got from this test. I have not tried it yet.

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.

25 Jun 2024, 7:28 PM
#191
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Adding Braintree payment module

This was the log:

[24-Jun-2024 17:25:25 UTC] Request URI: /Backup/pupadmin/index.php?cmd=modules&set=payment&module=braintree_api, IP address: 98.97.5.245, Language id 1
#1 braintree_api->__construct() called at [/home/customer/www/popupparts.com/public_html/Backup/pupadmin/modules.php:187]
#2 require(/home/customer/www/popupparts.com/public_html/Backup/pupadmin/modules.php) called at [/home/customer/www/popupparts.com/public_html/Backup/pupadmin/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_BRAINTREE_STATUS - assumed 'MODULE_PAYMENT_BRAINTREE_STATUS' (this will throw an Error in a future version of PHP) in /home/customer/www/popupparts.com/public_html/Backup/includes/modules/payment/braintree_api.php on line 39.

25 Jun 2024, 7:44 PM
#192
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

that's the old module, not the new one.

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.

25 Jun 2024, 8:22 PM
#193
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Adding Braintree payment module

That was the last log entry.

I cleared the logs and tried again but no logs appeared. It will not load the Payment page fully to even click on the Braintree module.
I attached a screenshot of the page.

Attachment 20666

25 Jun 2024, 9:51 PM
#194
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

I believe you but I need to see the log that caused that partial blank screen.

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.

27 Jun 2024, 5:44 PM
#195
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Adding Braintree payment module

I cannot get a log to generate. I even reinstalled the old version. That generated to log I posted earlier. However after uploading the new version, click install module, it takes a few minutes then the partial screen appears. No new log was generated.

I was even able to install the version before this one (2.2.7) and was able to run it. However that version requires 3DSV enabled. My account does not use 3DSV so it will not work. I however tried to upgrade over that version but had the same result. No logs were generated unless there is another location for the logs.

I am hoping someone else has tried this module to see if they have the same issue.

Thank you

27 Jun 2024, 6:01 PM
#196
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

The check at includes/modules/payment/braintree_api.php line 1441 is wrong. Change

            while ($this->version != '2.2.6') {

to

            while ($this->version != '2.2.8') {

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.

27 Jun 2024, 6:59 PM
#197
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Adding Braintree payment module

That got it to work. Now it shows version installed 2.2.4 but not selected when editing the module.

Thanks

27 Jun 2024, 7:18 PM
#198
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

Yes this is a small bug that shouldn't affect the module's operation.

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.

5 Nov 2024, 8:05 PM
#199
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Adding Braintree payment module

I am not sure if anyone using this module is having this issue described below. I am currently using the old Braintree 1.4.5 with Zen Cart 1.5.8a and PHP version 8.2.25. I do not have the 3DS option turned on as it is not required yet.

Everything seems to work with this configuration. However I am looking at upgrading to version 2.0.1 and was trying upgrade the Braintree module from Numinix website to the newest version. The new versions all appear to require the 3DS option turned on, The Numinix team was notified but they keep closing the issue. The last two upgrades for Braintree (2.2.8 and 2.2.9) appear to not work when installed on ZC 2.0.1. I did get 2.2.8 working (With help and code changes from this thread) but it still required 3DS enabled. 2.2.9 appears to have Dynamic Properties that are deprecated. So it will not load after checkout and I cannot test it.

Is there anyone using the newer Braintree module that does not have 3DS enabled?

It does not appear that many people use Braintree and maybe this is only a U.S. issue?

I am afraid that the old module will cause issues with the newer versions of PHP. So I guess I am looking for some input.

Thank you

27 Jan 2025, 7:04 AM
#200
neekfenwick avatar

neekfenwick

New Zenner

Join Date:
Feb 2009
Posts:
101
Plugin Contributions:
0

Re: Adding Braintree payment module

Hi all, we're trying this module for the first time and ran into the version number problem reported earlier, but also found other issues. From what I've seen Numinix are not terribly responsive so I thought I'd reach out here.

The version of the Google Pay library that is loaded does not match the others, leading to an error message, braintree_api.php has the URL https://js.braintreegateway.com/web/3.91.0/js/google-payment.min.js while the other libraries that are loaded are 3.97.3. googlePaymentErr contains the message "Client (version 3.97.3) and Google Pay (version 3.91.0) components must be from the same SDK version." and the error is squashed (not reported on screen or in the JS console).

When this is fixed the same block of code passes googleMerchantId: MODULE_PAYMENT_BRAINTREE_MERCHANTID which is a string value we got from Braintree (the name of our company in lowercase), but I am informed from https://support.google.com/paymentscenter/answer/7163092?hl=en that "When merchants set up a payments profile, Google assigns it a unique numeric code called a Merchant ID." so it seems to require a numeric value. When setting up Google Pay we are assigned a 12 digit Payments Profile ID (payments.google.com -> Settings). I have tried with the original module, and with a modified version that passes our Payments Profile ID value instead, but in both cases the GPay button appears on checkout but clicking it raises a frame from Google with error "This merchant is having trouble accepting your payment right now. Try using a different payment method. [OR_BIBED_11] OR_BIBED_11".

I contacted Braintree support but they just told me that the Merchant ID is probably numerical and I should contact the payment module developers.

Has anyone got Google Pay working, and what value do you think is being (or should be) passed in that googleMerchantId field?

(n8pbm: We are in the UK and have 3DS enabled so I don't think I can help you there)