Class DropInServiceResult
-
- All Implemented Interfaces:
public class DropInServiceResult extends BaseDropInServiceResult
The result of a network call to be sent to DropInService or SessionDropInService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDropInServiceResult.FinishedA 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.
public final classDropInServiceResult.ActionA call to /payments or /payments/details was successful and returned with an action that needs to be handled.
Use ActionResponse.SERIALIZER to deserialize your JSON response string.
public final classDropInServiceResult.UpdateOnly applicable for partial payments flow.
Update Drop-in with a new list of payment methods and optionally an order.
After submitting a partial payment, you might need to call /paymentMethods again with the new remaining amount, and pass the updated payment methods list, alongside the latest order object.
Also after cancelling an order, you need to call /paymentMethods again with the original payment amount, and pass the updated payment methods list, with a null order object.
Use OrderResponse.SERIALIZER to deserialize your JSON response string.
public final classDropInServiceResult.ErrorSend this to display an error dialog and optionally dismiss Drop-in.
public final classDropInServiceResult.ToPaymentMethodsListSend this to navigate to the payment methods list. Optionally provide a PaymentMethodsApiResponse to refresh the displayed payment methods.
-