Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you create Braintree client tokens? Is there an accessible instance of Braintree_ClientToken? #13

Open
mynameisdawes opened this issue Mar 10, 2015 · 1 comment

Comments

@mynameisdawes
Copy link

https://developers.braintreepayments.com/javascript+php/sdk/overview/generate-client-token

If I try the regular generation code, it understandably complains my environment isn't set up despite it being done in the config file, so I don't want to have to redefine just to get token out.

@mmanos
Copy link
Owner

mmanos commented Apr 25, 2015

At the time I wrote this package the transparent redirect option was the only secure way to obtain a card token. Looks like they now have a javascript library to help do this now (similar to Stripe it looks like)? So either of these options might do it for you.

More info: https://www.braintreepayments.com/braintrust/client-side-encryption

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants