我想将Braintree API
集成到我的android应用程序中。我参考Braintree页面,我了解了如何将它集成到应用程序中。但是当我想在我目前显示的活动布局的下方显示Drop-In UI
时,我遇到了一个问题。但在演示中,它将开始新的活动BraintreePaymentActivity.java
。Android Braintree SDK在当前应用程序的活动中集成
我不想打开新的活动我只想在我的活动中显示相同的操作。为此我推荐Card-form demo并在Purchase.And上添加了我的自定义按钮,并在购买按钮上单击我在以下代码中调用。但在这里我不明白从哪里我可以得到Nonce
值?
Braintree.setup (this, CLIENT_TOKEN_FROM_SERVER, new Braintree.BraintreeSetupFinishedListener() {
@Override
public void onBraintreeSetupFinished (boolean setupSuccessful, Braintree braintree, String errorMessage, Exception exception) {
if (setupSuccessful) {
// braintree is now setup and available for use
} else {
// Braintree could not be initialized, check errors and try again
// This is usually a result of a network connectivity error
}
}});
如果任何人有任何想法,那么请在这里建议。
我被困在Braintree API
。
在此先感谢。