Class DropInServiceResult

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class DropInServiceResult.Finished

      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.

      public final class DropInServiceResult.Action

      A 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 class DropInServiceResult.Update

      Only 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 class DropInServiceResult.Error

      Send this to display an error dialog and optionally dismiss Drop-in.

      public final class DropInServiceResult.ToPaymentMethodsList

      Send this to navigate to the payment methods list. Optionally provide a PaymentMethodsApiResponse to refresh the displayed payment methods.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail