Forums / Addon Payment Modules / Adding Braintree payment module

Adding Braintree payment module

Views: 83,423

Results 41 to 60 of 214
5 Jan 2014, 5:33 PM
#41
danielosko avatar

danielosko

Zen Follower

Join Date:
Dec 2008
Location:
Hanover Township PA, USA
Posts:
122
Plugin Contributions:
0

Adding Braintree payment module

This seems to be the best place for Braintree answers.

Daniel Osko

22 Feb 2014, 3:28 AM
#42
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

Can someone help me with braintree 1.1.0 ? I am using Zen Cart 1.3.8a. I have SSL installed and the pay pal express payment module ,which works fine.
I recently tried to install braintree 1.10 after learning it was a Google checkout alternative. I copied it to my site directory via filezilla. I go to my payment modules and install it. I then enter my keys from my newly created braintree account. And then.. nothing .. am i missing something ? I don't see any of the buttons for it in my checkout. PayPal is there.. but no braintree. I will admit there has been a very long time since i installed anything. But what else do i need to do so my customers can use it ? Please help.

My website is
missingcord.com

my host is
dreamhost.

php version is 5.2

I installed my version of zencart from a fast install with dreamhost.

I am using a modified version of the classic template

My Database: MySQL 5.1.56-log

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

22 Feb 2014, 3:34 AM
#43
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Adding Braintree payment module

Try this:
Go into your includes/configure.php and ADMIN/includes/configure.php files and make sure you have the SSL turn on...if done correctly when you click login it should go to https, also it looks like your certificate was good from 9/17/2011 -> 9/17/2012. So you may need a new certificate or your new one installed (this also means you need a dedicated IP, dreamhost is around $5/month)

Does that help?

Thanks,
Larry

22 Feb 2014, 3:40 AM
#44
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

Will try it out now, thank you so much for your fast reply. I hope i am smart enough to get this sorted out with your directions :)

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

22 Feb 2014, 2:34 PM
#45
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

Hello,

I went to dreamhost and have requested a updated SSL , they say its on order. I also went to add a dedicated IP, they are giving me a IPv6 for free . Will be back as soon as all that is setup. Thank you so much for your help. I will try to keep up . Its funny how you can have everything up and working and then not mess with it for a long time , only to find you have forgotten how to tinker with it.

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

22 Feb 2014, 4:02 PM
#46
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

Alright SSL is setup with dreamhost. I already have a dedicated IP from dreamhost it seems.

I set enable SSL in both configure.php files and i now get this message when i go to admin veiw

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/prissweb/MISSINGCORD/************/includes/application_top.php on line 22

What dose this mean ?

In includes/configure.php

I changed
define('ENABLE_SSL', 'false');
I made it
define('ENABLE_SSL', 'true');

and in In admin/includes/configure.php

I changed
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');

I made it
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

What did i do wrong ? Why am i getting that message ? Please help

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

22 Feb 2014, 4:17 PM
#47
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

When i open /includes/application_top.php with notepad++ line 22 is

set_magic_quotes_runtime(0);

Not sure what i need to change here. I set SSL to true in both configuration.php files . not sure what i am missing here.

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

22 Feb 2014, 5:07 PM
#48
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

okay looks like i need to patch my version of zen cart according to this thread. I will try this now and do a full upgrade once i get everything running with the module.

https://www.zen-cart.com/showthread.php?149603-Deprecated-FUNCTION-set_magic_quotes_runtime

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

23 Feb 2014, 2:02 AM
#49
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

wow its been a long day. I seems i sorta have braintree working. Just doing some tweaking now. Larry thank you so much for your help so far.

I installed the braintree 1.1.0 , via copying it over via ftp. I then installed it via the payment modules page.
check*

My sites SSL , has been renewed
check*

I enabled SSL in both the configuration.php files in (includes/) and (admin/includes/
check*

"I then started to get the "deprecated" error message when i tried to load the site admin in https. So i did a forum post and found out it was due to my older version of zencart not working right with PH 5.3. I learned that the fix was either a full upgrade or the patch located on the forum. I used the patch and copied the files over via ftp. The only file that gave me issues was the one for the PayPal module. It would cause a loop on the checkout page between 2 and 3. I kept the old one and it seems to work fine."

Error message fixed with the patch.
check*

After my customers sign up for an account after hitting the checkout button they see this

[IMG]http://imagizer.imageshack.us/v2/xq90/23/ke28.jpg[/IMG]

I ran a test buy with a visa vanilla card . Braintree shows the purchase on my account page there. But i didn't get a email confirmation with the email i signed up with.

Is my screen shot of braintree how its suppose to look ? I noticed danielosko's screen shot shows the little credit card images.

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

23 Feb 2014, 5:59 AM
#50
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Adding Braintree payment module

it looks like he is using Fast & Easy Checkout (Which I recommend) and then there is a modification in the braintree module to show the images with that....

23 Feb 2014, 6:40 AM
#51
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

I will give the Fast & Easy Checkout a try. So from what you can see , i am setup right ?

*update

Thank you for making a test customer for me. I see the one you created now. Did it give you any issues ?
Thank you so much for the help! You rock.

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

18 Mar 2014, 6:47 PM
#52
blackorchidcouture avatar

blackorchidcouture

Zen Follower

Join Date:
Apr 2010
Location:
Albuquerque, NM
Posts:
198
Plugin Contributions:
0

Re: Adding Braintree payment module

Hi, I've installed the Braintree Mod and I've confirmed that everything is set up correctly, and when I tested checking out in the production mode, when I submit my order it goes to an error page saying that the braintree table doesn't exist. I signed into my php database, and indeed there in no table named braintree there. Is there a way to fix this, or a reason why the table wasn't created? Thanks!

18 Mar 2014, 7:02 PM
#53
blackorchidcouture avatar

blackorchidcouture

Zen Follower

Join Date:
Apr 2010
Location:
Albuquerque, NM
Posts:
198
Plugin Contributions:
0

Re: Adding Braintree payment module

More info: I got a confirmation email as a customer (as I was testing checking out on my own cart) that my order had gone through, so Braintree itself seems to be working and going through, but the data has nowhere to write to since the table doesn't exist, so the customer would just see an error page saying the table doesn't exist, and would probably assume the order didn't go through, when it had. I've disabled Braintree for now, but want to fix it!

18 Mar 2014, 7:36 PM
#54
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Adding Braintree payment module

This was an issue in the earlier versions, is there a table braintree or zen_braintree in your database?

18 Mar 2014, 8:03 PM
#55
blackorchidcouture avatar

blackorchidcouture

Zen Follower

Join Date:
Apr 2010
Location:
Albuquerque, NM
Posts:
198
Plugin Contributions:
0

Re: Adding Braintree payment module

Thanks for your quick reply. Now that I look more closely there is a new table called TABLE_BRAINTREE. Should I rename this table braintree?

18 Mar 2014, 8:17 PM
#56
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Adding Braintree payment module

AHH ok there is the issue, the table should be called DB_PREFIX (whatever that is) braintree, TABLE_BRAINTREE must not have been defined properly in the installer and then created that., so simple fix rename that table

19 Mar 2014, 12:26 AM
#57
blackorchidcouture avatar

blackorchidcouture

Zen Follower

Join Date:
Apr 2010
Location:
Albuquerque, NM
Posts:
198
Plugin Contributions:
0

Re: Adding Braintree payment module

bislewl:

AHH ok there is the issue, the table should be called DB_PREFIX (whatever that is) braintree, TABLE_BRAINTREE must not have been defined properly in the installer and then created that., so simple fix rename that table

Awesome, thanks so much, that fixed it! It's all working as it should now! :P

19 Mar 2014, 7:00 AM
#58
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

alright on my new install of zencart 1.5.1 using the latest version of braintree i get the follow error page

WARNING: An Error occurred, please refresh the page and try again.

This is after step 3 of the checkout process. I don't have any error messages in my log folder.

I set braintree to send me any error messages in email. I get

braintree_api
Beginning DP mode

braintree_api
Result: Success

The order invoice is sent to the test customer email just fine. But right after they hit confirm order they get that error message on a blank page. What am i doing wrong here ? This is a new install of zen cart.

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

19 Mar 2014, 3:05 PM
#59
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Re: Adding Braintree payment module

Solved it. It was the same problem danielosko & BlackOrchidCouture.

I downloaded the wrong version. It was calling for the table_braintree in the database. I made the fixes to the api and deleted the table and it works fine now. Thanks man !

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

27 Apr 2014, 2:25 PM
#60
andilyn avatar

andilyn

New Zenner

Join Date:
Nov 2009
Location:
Florida
Posts:
19
Plugin Contributions:
0

Re: Adding Braintree payment module

I'm losing my mind trying to get this figured out
When making trial purchases Braintree shows the funds processing
Customer gets an email order confirmation
Admin shows all order info
on step 3 of checkout however this error message is given:

WARNING: An Error occurred, please refresh the page and try again.

Upon refresh the customer is told the transaction was declined

I also get this message in my log file:

[27-Apr-2014 08:41:53] PHP Fatal error: 1146:Table 'andilyn_zncr5.braintree' doesn't exist :: INSERT INTO braintree (order_id, txn_type, module_name, module_mode, reason_code, payment_type, payment_status, pending_reason, first_name, last_name, payer_business_name, address_name, address_street, address_city, address_state, address_zip, address_country, payer_email, payment_date, txn_id, parent_txn_id, num_cart_items, settle_amount, settle_currency, exchange_rate, date_added) VALUES ('1546', 'cart', 'braintree_api', 'USA', '', 'Credit Card(MasterCard)', 'Completed', '', 'Sean', 'Paul', '', 'SeanPaul', '8010 Presidents Drive', 'Orlando', 'Florida', '32809', 'United States of America', 'littlebearhugs2######################', now(), 'bv5rtbm', '', '1', '0.01', 'USD', '1', now()) in /home4/andilyn/public_html/cherrypitcrafts.com/includes/classes/db/mysql/query_factory.php on line 120

Any suggestions?