BraintreeClient

open class BraintreeClient

Core Braintree class that handles network requests.

Constructors

Link copied to clipboard
constructor(context: Context, authorization: String, returnUrlScheme: String? = null, appLinkReturnUri: Uri? = null)

Create a new instance of BraintreeClient using a tokenization key or client token and a custom url scheme.

constructor(context: Context, clientTokenProvider: ClientTokenProvider, returnUrlScheme: String? = null, appLinkReturnUri: Uri? = null)

Create a new instance of BraintreeClient using a ClientTokenProvider and a custom url scheme.

Functions

Link copied to clipboard

Deliver a browser switch result from an Activity's pending deep link intent url. If BraintreeClient.launchesBrowserSwitchAsNewTask is set to true, use BraintreeClient.deliverBrowserSwitchResultFromNewTask instead.

Link copied to clipboard

Deliver pending browser switch result received by BraintreeDeepLinkActivity when BraintreeClient.launchesBrowserSwitchAsNewTask is set to true.

Link copied to clipboard

Retrieve Braintree configuration.

Link copied to clipboard

For clients using a ClientTokenProvider, call this method to invalidate the existing, cached client token. A new client token will be fetched by the SDK when it is needed.

Link copied to clipboard

open fun launchesBrowserSwitchAsNewTask(launchesBrowserSwitchAsNewTask: Boolean)

Set this property to true to allow the SDK to handle deep links on behalf of the host application for browser switched flows.