Display a saved payment method

If you pass a customer_id when generating a client token, Drop-in will display that customer's saved payment methods and automatically add any newly-entered payment methods to their Vault record.

important

We do not recommend enabling Vault Manager if you are using Braintree's recurring billing; doing so would give your customer's the ability to delete payment methods associated with subscriptions.

Advanced Fraud Tools

To use Advanced Fraud Tools for your Drop-in form, you'll need to complete these 3 steps at the same time:

  1. Enable Advanced Fraud Tools in the Control Panel
  2. Update your client-side integration to collect device data
  3. Update your server-side integration to pass device data on transaction and verification requests

If there is any delay between enabling in the Control Panel and making the code changes, the integration will not work properly. See the Advanced Fraud Tools guide for more details.

Customize your UI

There are a number of optional ways you can customize the Drop-in UI.

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

intent.putExtra(BraintreePaymentActivity.EXTRA_CUSTOMIZATION, customization);

Primary description

Primary text to display in the summary view. Intended to name the overall transaction taking place (e.g. "1 Yellow T-Shirt" or "1 Year Subscription"). Required to display the summary view.

Secondary description

Detail text to display in the summary view. Intended to provide a few words of detail (e.g. "Ships in five days" or "We know you'll love it"). Optional.

Amount

A string representation of the grand total amount. Optional.

Submit button text

The text to display in the primary call-to-action button. For example, "Purchase" or "Subscribe Now". If an amount is included, it will be appended to this text (e.g. "Purchase - $35" or "Subscribe Now - $35").

Theme

Drop-in will automatically inherit your app's theme for the Action Bar and TextViews.

Still have questions?

If you can’t find an answer, contact our Support team