CardNextActionModel

class CardNextActionModel(val paymentManager: PaymentManager, val clientSecret: String, val device: Device?, val paymentIntentId: String?, val currency: String, val amount: BigDecimal, val activityProvider: () -> Activity)

Model containing necessary information for handling card payment next actions, particularly for 3DS authentication flows.

Parameters

paymentManager

Manager for handling payment operations

clientSecret

Client secret for the payment intent

device

Device information for fingerprinting

paymentIntentId

ID of the payment intent being processed

currency

Currency code for the transaction

amount

Transaction amount

activityProvider

Lambda function that provides the current activity reference. This is crucial for handling configuration changes (e.g., screen rotation). Instead of capturing a static activity reference that becomes stale after configuration changes, this provider is called dynamically to always get the current, valid activity instance. This ensures that activities launched during async operations (like ThreeDSecurityActivity) use the correct activity context even after multiple screen rotations.

Constructors

Link copied to clipboard
constructor(paymentManager: PaymentManager, clientSecret: String, device: Device?, paymentIntentId: String?, currency: String, amount: BigDecimal, activityProvider: () -> Activity)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard