Class SubmitPaymentSessionRequest


  • public final class SubmitPaymentSessionRequest
    extends java.lang.Object
    • Constructor Detail

      • SubmitPaymentSessionRequest

        public SubmitPaymentSessionRequest()
      • SubmitPaymentSessionRequest

        public SubmitPaymentSessionRequest​(java.lang.String sessionData,
                                           java.lang.Long amount,
                                           java.lang.String reference,
                                           java.util.List<Item> items,
                                           Threeds threeds,
                                           java.lang.String ipAddress)
        Creates a new SubmitPaymentSessionRequest instance.
        Parameters:
        sessionData - A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback. Do not log or store this value.
        amount - The payment amount. Provide a value of 0 to perform a card verification. The amount must be provided in the minor currency unit.
        reference - A reference you can use to identify the payment. For example, an order number. For Amex payments, this must be at most 30 characters. For Benefit payments, the reference must be a unique alphanumeric value. For iDEAL payments, the reference is required and must be an alphanumeric value with a 35-character limit.
        items - The line items in the order.
        threeds - Information required for 3D Secure authentication payments.
        ipAddress - The Customer's IP address. Only IPv4 and IPv6 addresses are accepted.
    • Method Detail

      • getSessionData

        public java.lang.String getSessionData()
        A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback. Do not log or store this value.
      • getAmount

        public java.lang.Long getAmount()
        The payment amount. Provide a value of 0 to perform a card verification. The amount must be provided in the minor currency unit.
      • getReference

        public java.lang.String getReference()
        A reference you can use to identify the payment. For example, an order number. For Amex payments, this must be at most 30 characters. For Benefit payments, the reference must be a unique alphanumeric value. For iDEAL payments, the reference is required and must be an alphanumeric value with a 35-character limit.
      • getItems

        public java.util.List<Item> getItems()
        The line items in the order.
      • getThreeds

        public Threeds getThreeds()
        Information required for 3D Secure authentication payments.
      • getIpAddress

        public java.lang.String getIpAddress()
        The Customer's IP address. Only IPv4 and IPv6 addresses are accepted.
      • setSessionData

        public void setSessionData​(java.lang.String sessionData)
        A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback. Do not log or store this value.
      • setAmount

        public void setAmount​(java.lang.Long amount)
        The payment amount. Provide a value of 0 to perform a card verification. The amount must be provided in the minor currency unit.
      • setReference

        public void setReference​(java.lang.String reference)
        A reference you can use to identify the payment. For example, an order number. For Amex payments, this must be at most 30 characters. For Benefit payments, the reference must be a unique alphanumeric value. For iDEAL payments, the reference is required and must be an alphanumeric value with a 35-character limit.
      • setItems

        public void setItems​(java.util.List<Item> items)
        The line items in the order.
      • setThreeds

        public void setThreeds​(Threeds threeds)
        Information required for 3D Secure authentication payments.
      • setIpAddress

        public void setIpAddress​(java.lang.String ipAddress)
        The Customer's IP address. Only IPv4 and IPv6 addresses are accepted.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object