BraintreeClient
Create a new instance of BraintreeClient using a tokenization key or client token and a custom url scheme.
This constructor should only be used for applications with multiple activities and multiple supported return url schemes. This can be helpful for integrations using Drop-in and BraintreeClient to avoid deep linking collisions, since Drop-in uses the same custom url scheme as the default BraintreeClient constructor.
Parameters
Android Context
The tokenization key or client token to use. If an invalid authorization is provided, a BraintreeException will be returned via callback.
A custom return url to use for browser and app switching
A Uri containing the Android App Link website associated with your application to be used to return to your app from browser or app switch based payment flows. This Android App Link will only be used for payment flows where useAppLinkReturn is set to true.
Create a new instance of BraintreeClient using a ClientTokenProvider and a custom url scheme.
This constructor should only be used for applications with multiple activities and multiple supported return url schemes. This can be helpful for integrations using Drop-in and BraintreeClient to avoid deep linking collisions, since Drop-in uses the same custom url scheme as the default BraintreeClient constructor.
Parameters
Android Context
An implementation of ClientTokenProvider that BraintreeClient will use to fetch a client token on demand.
A custom return url to use for browser and app switching
A Uri containing the Android App Link to use for app switching