braintree / braintree_php_example

An example Braintree integration for PHP
MIT License
127 stars 94 forks source link

Braintree returns "processor_declined" #20

Closed antgarmun closed 7 years ago

antgarmun commented 7 years ago

I am testing the implementation with a browser and I have this message every time. The Braintree api response returns "processor_declined" and doesn't show information about the token: imagen

matthewarkin commented 7 years ago

HI @antgarmun, I believe you are trying to use a test card number (4111-1111-1111-1111) while using a set of production api keys. The test credit card numbers only work with a sandbox account (having them work in production would be bad since any person could buy stuff for free). You can sign up for a sandbox account at https://www.braintreepayments.com/sandbox

antgarmun commented 7 years ago

Hi @matthewarkin, Thanks you so much, this was the problem!, all is fine. Do you know if this example works with Paypal?.

Thanks you again.

matthewarkin commented 7 years ago

When PayPal is enabled in your Braintree account, it should automatically be added to your Drop-in form. If you're having some issues getting PayPal to work, I'd suggest reaching out to the Braintree Support team at https://www.braintreepayments.com/contact

antgarmun commented 7 years ago

Ok, thanks you so much!!!