Closed ktre2017 closed 7 years ago
You should never generate a specific client token on the client app side because you would need to ship out your very personal merchantId, publicKey and privatekey in your client app. Generate it on your server side e.g. web service instead and retrieve it through a secure http get call in your client app. Here's the code and documentation from braintree if you use a node.js (drop down on top for other programming languages) server: https://developers.braintreepayments.com/start/hello-server/node#generate-a-client-token Hope that helps you!
Can we use this plugin to pass CustomerID and get ClientToken to retrieve saved card details depends on CustomerID?
Please advise.