DropInServiceResult
The result of a network call to be sent to DropInService or SessionDropInService.
Inheritors
Types
Link copied to clipboard
A call to /payments or /payments/details was successful and returned with an action that needs to be handled.
Link copied to clipboard
class Error(val errorDialog: ErrorDialog?, val reason: String? = null, val dismissDropIn: Boolean = false) : DropInServiceResult, DropInServiceResultError
Send this to display an error dialog and optionally dismiss Drop-in.
Link copied to clipboard
class Finished(val result: String, val finishedDialog: FinishedDialog? = null) : DropInServiceResult
A call to /payments or /payments/details was successful and the checkout flow is finished. This does not necessarily mean that the payment was authorized, it can simply indicate that all the necessary network calls were made without any exceptions or unexpected errors.
Link copied to clipboard
class ToPaymentMethodsList(val paymentMethodsApiResponse: PaymentMethodsApiResponse? = null) : DropInServiceResult
Send this to navigate to the payment methods list. Optionally provide a PaymentMethodsApiResponse to refresh the displayed payment methods.
Link copied to clipboard
class Update(val paymentMethodsApiResponse: PaymentMethodsApiResponse, val order: OrderResponse?) : DropInServiceResult
Only applicable for partial payments flow.