registerForPaymentResult

@JvmStatic
fun registerForPaymentResult(caller: ActivityResultCaller, callback: PaymentCallback): ActivityResultLauncher<Intent>

Use the Android ActivityResult API to register for the result of a transaction. Needs to be called on the creation of the caller.

Return

The ActivityResultLauncher to be passed in the performTransaction method.

Parameters

caller

The Activity or Fragment that will receive the result.

callback

The implementation of the callback with the PaymentResult