How to Create Sandbox Account for Braintree

  1. Visit sandbox website and click sign up on top right corner.

  2. Input your basic account information. Braintree Sign Up Page Sign Up Thank You

  3. Check your mail inbox, you will receive instructions how to activate your account. What you need to do there is to select a password and then you can sign in. After creating an account you will land on dashboard page. Braintree Dashboard

    Here you will see all available tokens and keys.

  4. Copy and paste keys and tokens in your configuration or .env file.

I have tested this with card option and PayPal account, and it works perfectly. The purchase is performed with payer@example.com email address.

Migration From PayPal Sandbox

Moving from from v-zero integration (which requires only PayPal account) to braintree integration caused certain problems. PayPal payments were not working.

The response I was receiving from braintree by using JS v3 SDK was this:

{"error":{"message":"Merchant account not found"},"fieldErrors":[]}

The issue was similar to one described here. Also the solution was contacting support which was really responsive. In the response they said that PayPal feature wasn't enabled for some reason and they enabled it. If you face similar problem I suggest contacting support.

Author

I plan to write more articles about common laravel components. If you are interested let’s stay in touch.
comments powered by Disqus