SessionDropInService

Extend this service if you want to take over the sessions flow in Drop-in and make the required network calls to the Adyen Checkout APIs through your backend. Note that once you take over the sessions flow you have to handle the rest of the network calls yourself.

Make sure you define add your subclass of this SessionDropInService in your manifest file.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Indicates whether you already took over the sessions flow in a previous action. This field could be useful if you are only taking over the flow in certain conditions and you want to know in a subsequent call whether you did take over the flow earlier or not.

Functions

Link copied to clipboard
override fun initialize(sessionModel: SessionModel, clientKey: String, environment: Environment, isFlowTakenOver: Boolean, analyticsManager: AnalyticsManager)
Link copied to clipboard
open override fun onRemoveStoredPaymentMethod(storedPaymentMethod: StoredPaymentMethod)

Only applicable to removing stored payment methods. Use DropInConfiguration.Builder.setEnableRemovingStoredPaymentMethods to enable this feature.

Link copied to clipboard
override fun requestBalanceCall(paymentComponentState: PaymentComponentState<*>)
Link copied to clipboard
override fun requestCancelOrder(order: OrderRequest, isDropInCancelledByUser: Boolean)
Link copied to clipboard
override fun requestDetailsCall(actionComponentData: ActionComponentData)
Link copied to clipboard
override fun requestOrdersCall()
Link copied to clipboard
override fun requestPaymentsCall(paymentComponentState: PaymentComponentState<*>)