How do I get Tokenization key in Woocommerce Rest API?

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);

  • 链接地址: http://www.djcxy.com/p/40978.html

    上一篇: RecyclerView快速滚动拇指高度对于大型数据集来说太小

    下一篇: 我如何在Woocommerce Rest API中获得Tokenization密钥?