# Braintree

## Braintree Payments

Go to [https://sandbox.braintreegateway.com](https://sandbox.braintreegateway.com/) (for testing account) or <https://www.braintreepayments.com/> (for production).

Create an account or login if already registered.

Navigate to dashboard and find the "Tokenization key" in Dashboard > Settings > API keys.

![](/files/-LC8yoEcJZCL4IIgZGQS)

Paste Tokanize key to src > pages > checkout > checkout.ts.

If you want PayPal integration inside braintree payments, go to Sandbox Accounts(obtained from [https://www.sandbox.paypal.com/myaccount/activity\\](https://www.sandbox.paypal.com/myaccount/activity%29/)and create a sandbox business and personal test accounts.

Note that if you want to move from Sandbox to Production, you should go to My Apps & Credentials (obtained from <https://developer.paypal.com/developer/applications/>.

To add PayPal integration inside braintree payments, navigate to Dashboard > Settings > Processing, and enable customers to pay with PayPal by adding PayPal credentials.

![](/files/-LC8zCX8CKxkacvYspei)

You have successfully created brain tree payments environments.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionicfirebaseapp.com/ionicrestaurantapp/payment/braintree.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
