Google Pay Launcher
Constructor for using this class from a ComponentActivity.
Parameters
The activity that will be launching Google Pay
Important: This constructor must be called no later than ComponentActivity.onCreate
Configuration parameters for Google Pay. This can be changed/updated later via the GooglePayLauncher.config property
Called after determining whether Google Pay is available and ready on the device. This can also be set via the GooglePayLauncher.readyCallback property
Called with the final result of the Google Pay payment operation. If not passed in here, the corresponding GooglePayLauncher.resultCallback property must be set prior to calling present
Throws
Thrown if the Configuration.gatewayParametersJson is not valid JSON
Constructor for using this class from a Fragment.
Parameters
The fragment that will be launching Google Pay
Important: This constructor must be called no later than Fragment.onViewCreated
Configuration parameters for Google Pay. This can be changed/updated later via the GooglePayLauncher.config property
Called after determining whether Google Pay is available and ready on the device. This can also be set via the GooglePayLauncher.readyCallback property
Called with the final result of the Google Pay payment operation. If not passed in here, the corresponding GooglePayLauncher.resultCallback property must be set prior to calling present
Throws
Thrown if the Configuration.gatewayParametersJson is not valid JSON