android - 在 Android Braintree 下拉式 UI 中更改按钮标签

标签 android braintree

我正在使用适用于 Android 的 dropin UI V2。 我一直在寻找一种稍微自定义它的方法,即重命名按钮并添加摘要描述。不过看官V2 documentation没有什么比这更好的了。诡异的。然后,我偶然发现了 V1 documentation它完全支持我想做的事情:

Customization customization = new Customization.CustomizationBuilder()
  .primaryDescription("Cart")
  .secondaryDescription("3 Items")
  .amount("$35")
  .submitButtonText("Purchase")
  .build();

intent.putExtra(BraintreePaymentActivity.EXTRA_CUSTOMIZATION, customization);

V2 文档中是否意外遗漏了这一点(如果不是的话,这似乎是一个重要的收获)?如果是,我该如何使用它?如果我想要这种工作流程,我应该改用 V1 吗?

最佳答案

V2 也是可定制的,如 doc说:

If the Drop-in UI doesn't fit your needs, develop your own custom integration using our client SDKs to accept credit cards, PayPal, and other available payment method types

this is a related doc about paypal

关于android - 在 Android Braintree 下拉式 UI 中更改按钮标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53331386/

相关文章:

java - 如何在 Android 单元测试中模拟 Bundle 方法?

integration-testing - 如何为 Braintree PayPal 结账启用负面测试?

javascript - https可调用云函数不返回值

ios - 未找到父类(super class) '-init' 的指定初始值设定项的方法覆盖

braintree - 从 Braintree 的 dropin ui 中隐藏 paypal 按钮

java - 如何在Toast中显示数组

android - 如何按时间限制进程

java - Android 中的多个回收 View

android - 在 Ubuntu 上配置 apache ant 时出错

database-design - 如何将信用卡数据保存在数据库中?