create

Create a CustomerSheet

Parameters

activity

The ComponentActivity that is presenting CustomerSheet.

customerAdapter

The bridge to communicate with your server to manage a customer.

callback

called when a CustomerSheetResult is available.


fun create(    activity: ComponentActivity,     customerSessionProvider: CustomerSheet.CustomerSessionProvider,     callback: CustomerSheetResultCallback): CustomerSheet

Create a CustomerSheet with CustomerSession support.

Parameters

activity

The ComponentActivity that is presenting CustomerSheet.

customerSessionProvider

provider for providing customer session elements

callback

called when a CustomerSheetResult is available.


Create a CustomerSheet

Parameters

fragment

The Fragment that is presenting CustomerSheet.

customerAdapter

The bridge to communicate with your server to manage a customer.

callback

called when a CustomerSheetResult is available.


fun create(    fragment: Fragment,     customerSessionProvider: CustomerSheet.CustomerSessionProvider,     callback: CustomerSheetResultCallback): CustomerSheet

Create a CustomerSheet with CustomerSession support.

Parameters

fragment

The Fragment that is presenting CustomerSheet.

customerSessionProvider

provider for providing customer session elements

callback

called when a CustomerSheetResult is available.