GooglePayLauncher

Constructor to be used when launching GooglePayLauncher from an Activity.

Parameters

activity

the Activity that is launching the GooglePayLauncher

readyCallback

called after determining whether Google Pay is available and ready on the device. presentForPaymentIntent and presentForSetupIntent may only be called if Google Pay is ready.

resultCallback

called with the result of the GooglePayLauncher operation


constructor(fragment: Fragment, config: GooglePayLauncher.Config, readyCallback: GooglePayLauncher.ReadyCallback, resultCallback: GooglePayLauncher.ResultCallback)

Constructor to be used when launching GooglePayLauncher from a Fragment.

Parameters

fragment

the Fragment that is launching the GooglePayLauncher

readyCallback

called after determining whether Google Pay is available and ready on the device. presentForPaymentIntent and presentForSetupIntent may only be called if Google Pay is ready.

resultCallback

called with the result of the GooglePayLauncher operation