DefaultActionHandlingComponent

Constructors

Link copied to clipboard
constructor(genericActionDelegate: GenericActionDelegate, paymentDelegate: PaymentComponentDelegate<*>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun canHandleAction(action: Action): Boolean

Checks if this component can handle the specific action type.

Link copied to clipboard
open override fun handleAction(action: Action, activity: Activity)

Provide the action from the API response that needs to be handled.

Link copied to clipboard
open override fun handleIntent(intent: Intent)

Call this method when receiving the return URL from the redirect with the result data. This result will be in the Intent.getData and begins with the returnUrl you specified on the payments/ call.

Link copied to clipboard
open override fun setOnRedirectListener(listener: () -> Unit)

Set a callback that will be called when a redirect is opened.