Jump to content

[Gateway] Braintree


Paul

Recommended Posts

The merchant gateway Braintree is now available for Blesta, and will be included in the next release. The gateway requires PHP 5.4 so, don't install it if you aren't running PHP 5.4 or greater.

 

To install, download the attached braintree.zip, unzip and upload the braintree directory to ~/components/gateways/merchant/

 

Then, follow the directions in the documentation at https://docs.blesta.com/display/user/Braintree

 

braintree.zip

Link to comment
Share on other sites

  • 3 weeks later...

Thanks for the module.

 

I get the following error on checkout:

Oh noes!

on line 52 in /var/www/vhosts/xxx/xxx/components/gateways/merchant/braintree/lib/Braintree/Util.php 

Printing Stack Trace:
#0 /var/www/vhosts/xxx/xxx/components/gateways/merchant/braintree/lib/Braintree/Http.php(45): Braintree_Util::throwStatusCodeException(401)
#1 /var/www/vhosts/xxx/xxx/components/gateways/merchant/braintree/lib/Braintree/TransactionGateway.php(392): Braintree_Http->post('/merchants/29vq...', Array)
#2 /var/www/vhosts/xxx/xxx/components/gateways/merchant/braintree/lib/Braintree/TransactionGateway.php(45): Braintree_TransactionGateway->_doCreate('/transactions', Array)
#3 /var/www/vhosts/xxx/xxx/components/gateways/merchant/braintree/lib/Braintree/TransactionGateway.php(240): Braintree_TransactionGateway->create(Array)
#4 /var/www/vhosts/xxx/xxx/components/gateways/merchant/braintree/lib/Braintree/Transaction.php(460): Braintree_TransactionGateway->sale(Array)
#5 /var/www/vhosts/xxx/xxx/components/gateways/merchant/braintree/braintree.php(219): Braintree_Transaction::sale(Array)
#6 /var/www/vhosts/xxx/xxx/components/gateway_payments/gateway_payments.php(483): Braintree->processCc(Array, '20.00', Array)
#7 /var/www/vhosts/xxx/xxx/app/models/payments.php(164): GatewayPayments->processPayment('1', 'cc', '20.0000', 'EUR', Array, NULL, Array)
#8 /var/www/vhosts/xxx/xxx/plugins/order/controllers/checkout.php(448): Payments->processPayment('1', 'cc', '20.0000', 'EUR', Array, NULL, Array)
#9 /var/www/vhosts/xxx/xxx/plugins/order/controllers/checkout.php(129): Checkout->processPayment(Object(stdClass), Object(stdClass))
#10 /var/www/vhosts/xxx/xxx/lib/dispatcher.php(111): Checkout->index()
#11 /var/www/vhosts/xxx/xxx/index.php(21): Dispatcher::dispatch('/order/checkout...')
#12 {main}

How can I fix that?

 

Thanks for any help!

 

 

Edit: NVM, I used real API keys for the sandbox mode, havn't noticed that the Braintree Sandbox Dashboard is on a different URL.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...