PaymentResultContract

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

Deprecated

`PaymentResultContract` was moved to the `api.payment` package.

Replace with

import com.adyen.ipp.api.payment
PaymentResultContract

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,
)