As a client, if i go to my account details, add a valid credit card and try to make a purchase using the added card, it works great.
But, if i type my credit card number on the order form, i always get an error message saying the verification has failed.
Again, i used the same credit card for both situations.
When it fails, the transaction is not logged at braintree.
I've attached a print screen of the error message.
Error log
Invoice ID => 119
User ID => 11
Amount => 0.99
exception 'Braintree_Exception_Authentication' in /home/niggayou/public_html/<removed>/members/modules/gateways/braintree/lib/Braintree/Util.php:59
Stack trace:
#0 /home/niggayou/public_html/<removed>/members/modules/gateways/braintree/lib/Braintree/Http.php(42): Braintree_Util::throwStatusCodeException(401)
#1 /home/niggayou/public_html/<removed>/members/modules/gateways/braintree/lib/Braintree/Customer.php(479): Braintree_Http::post('/customers', Array)
#2 /home/niggayou/public_html/<removed>/members/modules/gateways/braintree/lib/Braintree/Customer.php(92): Braintree_Customer::_doCreate('/customers', Array)
#3 /home/niggayou/public_html/<removed>/members/modules/gateways/braintree.php(76): Braintree_Customer::create(Array)
#4 /home/niggayou/public_html/<removed>/members/includes/classes/WHMCS/Module.php(0): braintree_capture(Array)
#5 /home/niggayou/public_html/<removed>/members/includes/classes/WHMCS/Module/Gateway.php(0): WHMCS_Module->call()
#6 /home/niggayou/public_html/<removed>/members/includes/ccfunctions.php(0): WHMCS_Module_Gateway->call()
#7 /home/niggayou/public_html/<removed>/members/creditcard.php(0): captureCCPayment()
#8 {main}
It appears that BrainTree is throwing a 401 Unauthorized error when you try to POST to /customers.
I've attached a print screen of the error
Does anyone know how to fix this?
Thanks!