PaymentResultContract

class PaymentResultContract : ActivityResultContract<Intent, Result<PaymentResult>>

Activity Result Contract implementation for the payment activities.

Example of usage with Jetpack Compose:

// Define the launcher.
val context = LocalContext.current
val launcher = rememberLauncherForActivityResult(PaymentResultContract()) { result ->
// Handle payment result.
}

// Then.
InPersonPayments.performReversal(
context = context,
paymentLauncher = launcher,
transactionRequestReversal = transactionRequestReversal,
)