Braintree Payments
1- go to https://sandbox.braintreegateway.com (for testing account ) or https://www.braintreepayments.com/ (for production ).
2- create an account or login if already registered.
3- navigate to dashboard and find the "Tokenization key" in Dashboard > Settings > API keys.
4- paste Tokanize key to src > pages > checkout > checkout.ts.
5 - If you want paypal integration inside braintree payments , Go to Sandbox Accounts(obtained from https://www.sandbox.paypal.com/myaccount/activity\ 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/
6 - To add paypal integration inside braintree payments , navigate to Dashboard > Settings > Processing ,
and enable Enable customers to pay with PayPal by adding paypal credentials.
thats it , you have successfully created brain tree payments envoirnments.