Forums / Addon Payment Modules / Adding Braintree payment module

Adding Braintree payment module

Views: 83,422

Results 121 to 140 of 214
10 Aug 2017, 11:01 AM
#121
swguy avatar

swguy

Administrator

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

Adding Braintree payment module

You can comment out the SSL check for local testing.

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.

10 Aug 2017, 11:26 AM
#122
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

marton_1:

Hello

I am running Braintree in sandbox mode on my test site on Windows PC using xampp.
It seems to be running OK, I can configure everything in admin/modules/payment/Braintree
I get the message "update_status Module disabled because SSL is not enabled on this site."

But I also have Paypal implemented on my test site and that works fine so SSL must be working?

Any suggestions welcomed :)

I also posted in the windows server thread here that when I set configure.php in Catalog/admin/includes as SSL then I get error messages and I cannot log in to the Admin site.
When I set configure.php in Catalog/includes as SSL then everything works fine.

I do not know if this issue is connected to my Braintree issue or not?

10 Aug 2017, 11:30 AM
#123
swguy avatar

swguy

Administrator

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

Re: Adding Braintree payment module

Not related.
You don't need to run localhost using SSL.
Just remove the checks for local testing, then restore them when you go live.

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.

10 Aug 2017, 12:11 PM
#124
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

swguy:

Not related.
You don't need to run localhost using SSL.
Just remove the checks for local testing, then restore them when you go live.

Great, thanks, that is all I need but pretty please where?

I tried commenting out this code in braintree\catalog\includes\modules\payment/braintree_api.php but did not fix the problem

  // if store is not running in SSL, cannot offer credit card module, for PCI reasons
				
        if (IS_ADMIN_FLAG === false && (!defined('ENABLE_SSL') || ENABLE_SSL != 'true')) {
            $this->enabled = False;
            $this->zcLog('update_status', 'Module disabled because SSL is not enabled on this site.');
        }
11 Aug 2017, 8:01 AM
#125
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

I gave up trying to run Braintree on my test site xampp.
Now I installed it on my live site in sandbox mode but I still get the error message
"update_status
Module disabled because SSL is not enabled on this site."

But this cannot be, I have had SSL installed on my live site for years, Paypal works fine everyday and in the past I have run the SSL tests you find online and everything was OK :(

11 Aug 2017, 8:15 AM
#126
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Adding Braintree payment module

marton_1:

Paypal works fine everyday :(

Paypal redirects your customers to his own SSL page so you can still take payments
throught paypal even if you do not have SSL on your site...
So...check if you really have SSL....

11 Aug 2017, 8:37 AM
#127
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

SSL check works OK, see image

11 Aug 2017, 10:03 AM
#129
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

gunni:

Can you write your url...?

Sorry, I can see it in the image....:)

and yes, your site seems to be secured.

Any Seniour zenner....? :wink:

Sure
https://www.simmar.ch/catalog

11 Aug 2017, 10:19 AM
#130
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

For want of any better ideas I ran a different SSL test which also looks OK! This is the Qualys SSL lab test :)

11 Aug 2017, 11:37 AM
#131
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

It is all a bit frustrating, Braintree have now approved my account application but I cannot use it :(!

I have the Braintree module in sandbox debug mode, now it is nicely sending me emails with "update_status module disabled because SSL is not enabled on this site."
I have set some credit cards in configuration/credit cards.

I do not see any Braintree icons in checkout page 2 of 3. Is this blocked because of the SSL error or could it be some other reason?

I attach a couple of screenshots from the configurator, deleted the confidential stuff!

11 Aug 2017, 6:24 PM
#132
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Adding Braintree payment module

marton_1:

"update_status
Module disabled because SSL is not enabled on this site."

In your two configure.php files, what are your defines for:

HTTP_SERVER
HTTPS_SERVER
HTTP_CATALOG_SERVER
HTTPS_CATALOG_SERVER
ENABLE_SSL
ENABLE_SSL_ADMIN
ENABLE_SSL_CATALOG
(some of these exist in both files, some only in the admin file)
I suspect the braintree module is looking for the "enable" defines to be 'true', and the HTTPS defines to contain an https:// url.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Aug 2017, 6:36 PM
#133
lat9 avatar

lat9

Administrator

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

Re: Adding Braintree payment module

DrByte:

In your two configure.php files, what are your defines for:

HTTP_SERVER
HTTPS_SERVER
HTTP_CATALOG_SERVER
HTTPS_CATALOG_SERVER
ENABLE_SSL
ENABLE_SSL_ADMIN
ENABLE_SSL_CATALOG
(some of these exist in both files, some only in the admin file)
I suspect the braintree module is looking for the "enable" defines to be 'true', and the HTTPS defines to contain an https:// url.
... or it's just looking for ENABLE_SSL to be set to 'true' and @marton_1 has the site set for SSL-all-the-time and has that define set to 'false'. Similar issues are present in the authorizenet_aim and paypaldp handling.

11 Aug 2017, 6:39 PM
#134
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Adding Braintree payment module

lat9:

... or it's just looking for ENABLE_SSL to be set to 'true' and @marton_1 has the site set for SSL-all-the-time and has that define set to 'false'. Similar issues are present in the authorizenet_aim and paypaldp handling.
Yes, but since @marton_1 didn't say whether the complainant error message was showing on the admin side or the catalog side, the broader detail was necessary to fill in the information/context not supplied.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Aug 2017, 6:42 PM
#135
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Adding Braintree payment module

lat9:

... or it's just looking for ENABLE_SSL to be set to 'true' and @marton_1 has the site set for SSL-all-the-time and has that define set to 'false'. Similar issues are present in the authorizenet_aim and paypaldp handling.
@lat9, also note that the FAQ articles that PREVIOUSLY recommended setting ENABLE_SSL to false when setting HTTP_SERVER to an https URL have been CHANGED to NO LONGER RECOMMEND setting ENABLE_SSL to false.
(While the original logic/reasoning was valid, obviously multiple payment modules haven't been written to support such a change, and thus for backward compatibility the recommendation is to still set ENABLE_SSL to true)
But, FAQ content is completely off topic for this thread.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Aug 2017, 10:45 AM
#136
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

DrByte:

In your two configure.php files, what are your defines for:

HTTP_SERVER
HTTPS_SERVER
HTTP_CATALOG_SERVER
HTTPS_CATALOG_SERVER
ENABLE_SSL
ENABLE_SSL_ADMIN
ENABLE_SSL_CATALOG
(some of these exist in both files, some only in the admin file)
I suspect the braintree module is looking for the "enable" defines to be 'true', and the HTTPS defines to contain an https:// url.

"is looking for the "enable" defines to be 'true'" Great, I did change that to true and now everything Braintree is working.

BTW, I did want to use the Payeezy JS module but the link provided is to sign up as a US Customer.
I did google and find the Swiss company, sent a Contact email from their web site to their Sales Dept. 2 weeks ago requesting to sign up but until now no reply; not your problem I know!

14 Aug 2017, 7:56 AM
#137
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

I am now into sandbox testing and overall the plug in works fine, just one issue with zones.

  1. I get the message "Aug-14-2017 09:09:31 (1502694571)
    update_status
    Module disabled due to zone restriction. Billing address is not within the Payment Zone selected in the module settings."
    If I set the zone to "none" then it works OK. I use the same zone definition for the built in PayPal Express Checkout which works fine.
14 Aug 2017, 12:48 PM
#138
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

I tested Maestro in the sandbox and it works fine but then I got a question from Braintree!

Maestro
In most instances, Maestro cards rely on using 3D Secure technology. 3D Secure isn't automatically enabled on your account, which means that you can only accept certain types of Maestro transactions by default. If the customer’s Maestro card was issued in the same country that your business is domiciled, you can accept one-time or recurring Maestro payments without using 3D Secure.
Let us know if you're interested in 3D Secure.

So am I interested in 3D secure? I mean does this plugin support 3D secure?

BTW, I translated most of the define file into German language, zip copy is attached in case anybody finds it usefull!

14 Aug 2017, 6:56 PM
#139
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

marton_1:

I tested Maestro in the sandbox and it works fine but then I got a question from Braintree!

Maestro
In most instances, Maestro cards rely on using 3D Secure technology. 3D Secure isn't automatically enabled on your account, which means that you can only accept certain types of Maestro transactions by default. If the customer’s Maestro card was issued in the same country that your business is domiciled, you can accept one-time or recurring Maestro payments without using 3D Secure.
Let us know if you're interested in 3D Secure.

So am I interested in 3D secure? I mean does this plugin support 3D secure?

BTW, I translated most of the define file into German language, zip copy is attached in case anybody finds it usefull!

So I found a Braintree test case for 3-D Secure/Verified by Visa and got the response

Subject: before_process - DP-5

braintree_api
Result: Success

Did a google search but I do not know if this answer means the 3D Secure test was successful, I have not yet asked Braintree to turn on 3D secure in my sandbox but maybe the plugin automatically calls for this?

20 Aug 2017, 2:22 PM
#140
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Adding Braintree payment module

I have been using Paypal Express for years and it always worked well, I use the Zen Cart built in PayPal Express.

Now since installing the Braintree module, it seems that PayPal Express is now running over the Braintree Payment module since I now get PayPal messages over Braintree.

Now I have a new problem, PayPal Express does not display the correct price?!

If, for example, I order an item for 29.90 then I have a low price extra of 5.00 and delivery of 9.00 so the total is 43.90.
When I initiate PayPal Express then PayPal displays the price to pay is 34.55!
When I actually approve the payment then PayPal takes the correct 43.90?

I do not see where the 34.55 comes from, if PayPal somehow missed the delivery cost of 9.00 then the price would be 34.90.

If I do not use the PayPal express button on the Shopping Cart page but go through longer payment process then PayPal displays and works correctly.

My ideal solution would be to continue to use the Zen Cart built in PayPal Express module, is there some way I can configure this?
I suppose I could deconfigure the PayPal Express button on the Shopping Cart page but then I would lose a valuable function :(

I started using Braintree because credit card payments over PayPal were losing me customers because PayPal demanded some customers to open an account which they did not want to do!

I am using v155d with the standard Green Responsive template on a Unix server.
my web site here in English language!

BTW, thanks to whoever suggested I set up a Zen Cart test site on my Web host server; it was a bit tedious but it works well (other than confusing the google adwords statistics!)