Change button labels in Android Braintree drop-in UI

Viewed 348

I'm using V2 of the dropin UI for Android. I was looking for a way to customize it a little bit, i.e. renaming buttons and adding a summary description. However, looking at the official V2 documentation there was nothing like it. Weird. Then, by accident I stumbled upon the V1 documentation and it supports exactly what I want to do:

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

intent.putExtra(BraintreePaymentActivity.EXTRA_CUSTOMIZATION, customization);

Has this accidentally been omitted from the V2 documentation(seems like a major takeaway if not)? If yes, how do I use it? Should I use V1 instead if I want this sort of workflow?

1 Answers

V2 is also customizable, as doc says:

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

And this is a related doc about paypal

Related