We are using the Woocommerce Rest API for the Mobile Application Development like Android And IOS. We have integrated the payment method as Braintree using the plugin WooCommerce PayPal Powered by Braintree Payment Gateway.
It is working fine on our website but the Mobile applications need the client token or Tokenization key for integrating the Braintree SDKs.
This plugin does not store any Tokenization key or Client Token in our database so how will give it in APIs for Integration? It stores Only merchant id in woocommerce Braintree settings.
So, How we will Integrate the Braintree Payment Gateway on the website and mobile application using WooCommerce REST API.
Please suggest if anyone have Idea...
To obtain a tokenization key:
Log into either the production Control Panel or the sandbox Control Panel, depending on which environment you are working in
Navigate to Settings -> API Keys
You should see your key under the Tokenization Keys section. If no key appears, click Generate New Tokenization Key. Copy this key.
To use this tokenization key in your android app:
Place the key (copied after the above steps) in your /res/values/strings.xml
In your code, get the key from your string resources you just placed in the above step.
Supply this key as the 2nd parameter when initializing braintree using BraintreeFragment.newInstance(activity, tokenizationKey);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With