ChrisB Posted March 29, 2015 Report Posted March 29, 2015 I saw a request for a BrainTree payment gateway and remembered that while ago we whipped one up as we were contemplating using BrainTree. This was tested with test credentials but we never actually tested it or used it live.. there may be issues/bugs/etc and unfortunately as we don't currently use Blesta nor will we be using BrainTree, we won't be working on it/supporting it any further. I am 100% okay with Phillips Data, inc. taking over the plugin if they want to as we extended their stripe one to begin with, anyway. Or anyone else who wants to take over development on it is fine too. Anyway, feel free to test it out and report back here what you find for other users. Hope some folks find some value in this. braintree_gateway.zip domaingood, Blesta Addons, niyo and 3 others 6 Quote
Michael Posted March 29, 2015 Report Posted March 29, 2015 Wow thanks mate will look into it thank you again Make sure you upload the files in: /components/gateways/merchant/ I made the mistake of adding it in nonmerchant haha. Also it looks great but remember you can't use currencies used by stripe or another merchant gateway. Blesta Addons 1 Quote
ChrisB Posted March 29, 2015 Author Report Posted March 29, 2015 Glad it still looks good. Hope someone can actually test it with a live braintree account Quote
bjacksparow Posted March 30, 2015 Report Posted March 30, 2015 I did upload the files to test but blesta wasn't able to detect the gateway. Is there any other way for it to detect the newly uploaded files? @ChrisB - Many many thanks for your generosity. Quote
Michael Posted March 30, 2015 Report Posted March 30, 2015 I did upload the files to test but blesta wasn't able to detect the gateway. Is there any other way for it to detect the newly uploaded files? @ChrisB - Many many thanks for your generosity. Have you uploaded the files to the merchant folder? it might need to be renamed, I had to remove one folder (not sure if it was my attempt before) and then remove a _ or something. Quote
bjacksparow Posted March 30, 2015 Report Posted March 30, 2015 Have you uploaded the files to the merchant folder? it might need to be renamed, I had to remove one folder (not sure if it was my attempt before) and then remove a _ or something. Yep, under the merchant folder along with other gateways. Tried renaming, didn't take any effect Quote
Michael Posted March 30, 2015 Report Posted March 30, 2015 Yep, under the merchant folder along with other gateways. Tried renaming, didn't take any effect Do you have a preview of the folder for me please? Quote
bjacksparow Posted March 30, 2015 Report Posted March 30, 2015 Do you have a preview of the folder for me please? Quote
hpno Posted March 30, 2015 Report Posted March 30, 2015 The reason is at the folder name. It's actually "braintree\_gateway", and system cannot read "\" character. You will need to rename the folder. bjacksparow and Michael 2 Quote
bjacksparow Posted March 30, 2015 Report Posted March 30, 2015 The reason is at the folder name. It's actually "braintree\_gateway", and system cannot read "\" character. You will need to rename the folder. Thanks @phamhung, editing the folder name this time around worked. Earlier using @licensecart's suggestion, I was editing the starting part of the name but I think as phamhung suggested, editing around '_" made the plugin to be detected. Quote
bjacksparow Posted March 30, 2015 Report Posted March 30, 2015 I wasn't able to make this work using the production environment. Steps followed 1) Installed gateway 2) Added the configuration 3) Disabled stripe to accept USD 4) Edited form to accept Braintree gateway 5) Placed a test order So after clicking continue and pay button, it ended up being blank white screen. Loggin into admin, I was able to see the pending invoice/service but no trasaction data was associatedto it. Logs for gateway had nothing in it. Braintree account had no activity registered. Quote
hpno Posted March 30, 2015 Report Posted March 30, 2015 Blank page is usually due to incompatible between code and PHP version. Is there any error message recorded from your server log, not gateway log? Quote
bjacksparow Posted March 30, 2015 Report Posted March 30, 2015 Blank page is usually due to incompatible between code and PHP version. Is there any error message recorded from your server log, not gateway log? I don't have anything on my server error logs. Quote
Paul Posted March 30, 2015 Report Posted March 30, 2015 Enable error reporting in Blesta To enable error reporting, edit /config/blesta.php and change Configure::errorReporting(0); to Configure::errorReporting(-1); Quote
bjacksparow Posted March 30, 2015 Report Posted March 30, 2015 Thanks Paul. With error reporting on: Call to undefined method BraintreeGateway::objectToArray() on line 1178 in /home/xxx/public_html/xxx/components/gateways/merchant/braintree_gateway/braintree_gateway.php Will look at that function later tonight. Quote
bjacksparow Posted March 30, 2015 Report Posted March 30, 2015 Fixed the file. Changes made: 1) Added the missing objectToArray() function 2) Formatted the amount to be sent to braintree with two decimal rounding Download: https://www.lolitseasy.com/downloads/braintree_gateway.php.zip Unzip and put under the location: ~installation folder~/components/gateways/merchant/braintree_gateway/ Customer was created and card was charged succesfully. I was able to see it in the dashboard and vault. Other functions like void etc thorugh blesta need to be tested. Michael and ChrisB 2 Quote
ChrisB Posted March 31, 2015 Author Report Posted March 31, 2015 Fixed the file. Changes made: 1) Added the missing objectToArray() function 2) Formatted the amount to be sent to braintree with two decimal rounding Download: https://www.lolitseasy.com/downloads/braintree_gateway.php.zip Unzip and put under the location: ~installation folder~/components/gateways/merchant/braintree_gateway/ Customer was created and card was charged succesfully. I was able to see it in the dashboard and vault. Other functions like void etc thorugh blesta need to be tested. Glad to hear it still works. I've added that change you made and edited the original post. Michael 1 Quote
hpno Posted April 1, 2015 Report Posted April 1, 2015 It seems not working well with currencies other than USD. The amount is correct, but not the currency. So, for example, I process 100 USD invoice, and my account is set in CAD, I receive 100 CAD in my account, not 100 USD. Quote
bjacksparow Posted April 1, 2015 Report Posted April 1, 2015 It seems not working well with currencies other than USD. The amount is correct, but not the currency. So, for example, I process 100 USD invoice, and my account is set in CAD, I receive 100 CAD in my account, not 100 USD. Do you see 100 CAD in braintree dashboard? Did you settle the transaction? I think the transaction will be settled in USD by braintree. Quote
jhadley Posted April 13, 2015 Report Posted April 13, 2015 Not fully tested yet but looks ok. Braintree was a deal breaker for me, so thanks very much for writing this! Michael 1 Quote
Doctrine Posted May 31, 2015 Report Posted May 31, 2015 Well got a production account. Added EUR currency. If i want to pay there is no gateway: braintree. Seems not working. Paypak gateway woking very well. Any suggestion? @licensecart have you tried get this working? Not want to appear at client side when the client want to pay. Suggestions..? Quote
Michael Posted May 31, 2015 Report Posted May 31, 2015 Well got a production account. Added EUR currency. If i want to pay there is no gateway: braintree. Seems not working. Paypak gateway woking very well. Any suggestion? @licensecart have you tried get this working? Not want to appear at client side when the client want to pay. Suggestions..? Have you applied the gateway to the order form? Quote
Doctrine Posted May 31, 2015 Report Posted May 31, 2015 Have you applied the gateway to the order form? Yes! Added currency as well. But for payments there is only paypal standard which is non-merchant Quote
Michael Posted May 31, 2015 Report Posted May 31, 2015 Yes! Added currency as well. But for payments there is only paypal standard which is non-merchant Might just allow card payments then :s Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.