Class CheckoutCreateOrderResponse


  • public class CheckoutCreateOrderResponse
    extends Object
    CheckoutCreateOrderResponse
    • Constructor Detail

      • CheckoutCreateOrderResponse

        public CheckoutCreateOrderResponse()
    • Method Detail

      • getAdditionalData

        public Map<String,​String> getAdditionalData()
        This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**.
        Returns:
        additionalData
      • setAdditionalData

        public void setAdditionalData​(Map<String,​String> additionalData)
      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
      • getExpiresAt

        public String getExpiresAt()
        The date that the order will expire.
        Returns:
        expiresAt
      • setExpiresAt

        public void setExpiresAt​(String expiresAt)
      • getFraudResult

        public FraudResult getFraudResult()
        Get fraudResult
        Returns:
        fraudResult
      • setFraudResult

        public void setFraudResult​(FraudResult fraudResult)
      • getOrderData

        public String getOrderData()
        The encrypted data that will be used by merchant for adding payments to the order.
        Returns:
        orderData
      • setOrderData

        public void setOrderData​(String orderData)
      • getPspReference

        public String getPspReference()
        Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > `pspReference` is returned only for non-redirect payment methods.
        Returns:
        pspReference
      • setPspReference

        public void setPspReference​(String pspReference)
      • getRefusalReason

        public String getRefusalReason()
        If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons).
        Returns:
        refusalReason
      • setRefusalReason

        public void setRefusalReason​(String refusalReason)
      • getRemainingAmount

        public Amount getRemainingAmount()
        Get remainingAmount
        Returns:
        remainingAmount
      • setRemainingAmount

        public void setRemainingAmount​(Amount remainingAmount)
      • getResultCode

        public CheckoutCreateOrderResponse.ResultCodeEnum getResultCode()
        The result of the payment. For more information, see [Result codes](https://docs.adyen.com/checkout/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state.
        Returns:
        resultCode
      • getReference

        public String getReference()
      • setReference

        public void setReference​(String reference)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object