DropInClient

open class DropInClient

Used to launch Drop-in and handle results

Constructors

Link copied to clipboard
open fun DropInClient(context: Context, authorization: String, dropInRequest: DropInRequest)
Link copied to clipboard
open fun DropInClient(activity: FragmentActivity, dropInRequest: DropInRequest, authorization: String)
Link copied to clipboard
open fun DropInClient(activity: FragmentActivity, authorization: String)
Create a new instance of DropInClient from within an Activity using a Tokenization Key authorization.
Link copied to clipboard
open fun DropInClient(fragment: Fragment, dropInRequest: DropInRequest, authorization: String)
Link copied to clipboard
open fun DropInClient(fragment: Fragment, authorization: String)
Create a new instance of DropInClient from within a Fragment using a Tokenization Key authorization.
Link copied to clipboard
open fun DropInClient(activity: FragmentActivity, dropInRequest: DropInRequest, clientTokenProvider: ClientTokenProvider)
Link copied to clipboard
open fun DropInClient(activity: FragmentActivity, clientTokenProvider: ClientTokenProvider)
Create a new instance of DropInClient from within an Activity using a ClientTokenProvider to fetch authorization.
Link copied to clipboard
open fun DropInClient(fragment: Fragment, dropInRequest: DropInRequest, clientTokenProvider: ClientTokenProvider)
Link copied to clipboard
open fun DropInClient(fragment: Fragment, clientTokenProvider: ClientTokenProvider)
Create a new instance of DropInClient from within a Fragment using a ClientTokenProvider to fetch authorization.

Functions

Link copied to clipboard
Called to get a user's existing payment method, if any.
Link copied to clipboard
For clients using a ClientTokenProvider, call this method to invalidate the existing, cached client token.
Link copied to clipboard
open fun launchDropIn()

open fun launchDropIn(request: DropInRequest)
Called to launch a DropInActivity.
Link copied to clipboard
open fun launchDropInForResult(activity: FragmentActivity, requestCode: Int)
Link copied to clipboard
open fun setListener(listener: DropInListener)
Add a DropInListener to your client to receive results or errors from DropIn.