Functions

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

Checks if this component can handle the specific action type.

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

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

Link copied to clipboard
abstract 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
abstract fun setOnRedirectListener(listener: () -> Unit)

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