PaymentSheet

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 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.