SessionsGiftCardComponentCallbackWrapper

This class wraps the SessionComponentCallback provided by the merchant and implements the onOrder and onBalance methods so we can continue you the flow correctly with sessions. All other callback methods are propagated to the merchants.

Constructors

Link copied to clipboard
constructor(component: GiftCardComponent, componentCallback: SessionsGiftCardComponentCallback)

Functions

Link copied to clipboard
open override fun onAction(action: Action)
Link copied to clipboard
open override fun onAdditionalDetails(actionComponentData: ActionComponentData): Boolean
Link copied to clipboard
open override fun onBalance(balanceResult: BalanceResult)
Link copied to clipboard
open override fun onBalanceCheck(paymentComponentState: PaymentComponentState<*>): Boolean

Only applicable for partial payments flow.

Link copied to clipboard
open override fun onError(componentError: ComponentError)
Link copied to clipboard
open override fun onFinished(result: SessionPaymentResult)
Link copied to clipboard
open override fun onLoading(isLoading: Boolean)
Link copied to clipboard
open override fun onOrder(orderResponse: OrderResponse)
Link copied to clipboard
open override fun onOrderRequest(): Boolean

Only applicable for partial payments flow.

Link copied to clipboard
open override fun onPartialPayment(result: SessionPaymentResult)

Indicates that a partial payment has been done. This means an order for this payment has been created and part of the amount is still remaining to be paid. This callback provides you with the necessary objects to be able to create a new session to complete the payment for the remaining amount.

Link copied to clipboard
open fun onPermissionRequest(requiredPermission: String, permissionCallback: PermissionHandlerCallback)
Link copied to clipboard
open override fun onStateChanged(state: GiftCardComponentState)
Link copied to clipboard
open override fun onSubmit(state: GiftCardComponentState): Boolean