To use Advanced Fraud Tools for your Drop-in form, you'll need to complete these 3 steps at the same time:
- Enable Advanced Fraud Tools in the Control Panel
- Update your client-side integration to collect device data
- 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.
There are a number of optional ways you can customize the Drop-in UI.
Customization customization = new Customization.CustomizationBuilder() .primaryDescription("Cart") .secondaryDescription("3 Items") .amount("$35") .submitButtonText("Purchase") .build(); intent.putExtra(BraintreePaymentActivity.EXTRA_CUSTOMIZATION, customization);
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.
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.
A string representation of the grand total amount. Optional.
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").
Drop-in will automatically inherit your app's theme for the Action Bar and