PaymentSheet

constructor(activity: ComponentActivity, callback: PaymentSheetResultCallback)

Constructor to be used when launching the payment sheet from an Activity.

Parameters

activity

the Activity that is presenting the payment sheet.

callback

called with the result of the payment after the payment sheet is dismissed.


constructor(activity: ComponentActivity, createIntentCallback: CreateIntentCallback, paymentResultCallback: PaymentSheetResultCallback)
constructor(activity: ComponentActivity, createIntentCallbackForServerSideConfirmation: CreateIntentCallbackForServerSideConfirmation, paymentResultCallback: PaymentSheetResultCallback)
constructor(fragment: Fragment, createIntentCallback: CreateIntentCallback, paymentResultCallback: PaymentSheetResultCallback)
constructor(fragment: Fragment, createIntentCallbackForServerSideConfirmation: CreateIntentCallbackForServerSideConfirmation, paymentResultCallback: PaymentSheetResultCallback)


constructor(fragment: Fragment, callback: PaymentSheetResultCallback)

Constructor to be used when launching the payment sheet from a Fragment.

Parameters

fragment

the Fragment that is presenting the payment sheet.

callback

called with the result of the payment after the payment sheet is dismissed.