Class AbstractPaymentsResponse<T extends AbstractPaymentsResponse<T>>

    • Constructor Detail

      • AbstractPaymentsResponse

        public AbstractPaymentsResponse()
    • Method Detail

      • additionalData

        public T additionalData​(Map<String,​String> additionalData)
      • putAdditionalDataItem

        public T putAdditionalDataItem​(String key,
                                       String additionalDataItem)
      • 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** > **Settings** > **API and Response**.
        Returns:
        additionalData
      • setAdditionalData

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

        public String getAdditionalDataByKey​(String key)
      • fraudResult

        public T fraudResult​(FraudResult fraudResult)
      • getFraudResult

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

        public void setFraudResult​(FraudResult fraudResult)
      • pspReference

        public T pspReference​(String pspReference)
      • getPspReference

        public String getPspReference()
        Adyen's 16-digit unique reference associated with the transaction/the 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)
      • refusalReason

        public T refusalReason​(String refusalReason)
      • 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.
        Returns:
        refusalReason
      • setRefusalReason

        public void setRefusalReason​(String refusalReason)
      • refusalReasonCode

        public T refusalReasonCode​(String refusalReasonCode)
      • getRefusalReasonCode

        public String getRefusalReasonCode()
      • setRefusalReasonCode

        public void setRefusalReasonCode​(String refusalReasonCode)
      • getResultCode

        public PaymentsResponse.ResultCodeEnum getResultCode()
        The result of the payment. Possible values: * **Authorised** – Indicates the payment authorisation was successfully completed. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. For more information on handling a redirect, refer to [Handling a redirect](https://docs.adyen.com/developers/checkout/api-integration/payments#handlingaredirect). * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **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. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/developers/development-resources/payments-with-pending-status). * **Error** – Indicates an error occurred during processing of the payment. The reason is given in the `refusalReason` field. This is a final state.
        Returns:
        resultCode
      • shopperLocale

        public T shopperLocale​(String shopperLocale)
      • getShopperLocale

        public String getShopperLocale()
        The shopperLocale.
        Returns:
        shopperLocale
      • setShopperLocale

        public void setShopperLocale​(String shopperLocale)
      • getThreeDS2ResponseData

        public ThreeDS2ResponseData getThreeDS2ResponseData()
        Get threeDS2ResponseData
        Returns:
        threeDS2ResponseData
      • setThreeDS2ResponseData

        public void setThreeDS2ResponseData​(ThreeDS2ResponseData threeDS2ResponseData)
      • setServiceError

        public void setServiceError​(ServiceError serviceError)
      • getMerchantReference

        public String getMerchantReference()
      • setMerchantReference

        public void setMerchantReference​(String merchantReference)
      • getThreeDS2Result

        public ThreeDS2Result getThreeDS2Result()
        Result of the 3D Secure 2 authentication.
        Returns:
        threeDS2Result
      • setThreeDS2Result

        public void setThreeDS2Result​(ThreeDS2Result threeDS2Result)
      • threeDS2Result

        public T threeDS2Result​(ThreeDS2Result threeDS2Result)
      • threeDSPaymentData

        public T threeDSPaymentData​(String threeDSPaymentData)
      • getThreeDSPaymentData

        public String getThreeDSPaymentData()
        When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`.
        Returns:
        threeDSPaymentData
      • setThreeDSPaymentData

        public void setThreeDSPaymentData​(String threeDSPaymentData)
      • amount

        public T amount​(Amount amount)
      • getAmount

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

        public void setAmount​(Amount amount)
      • paymentMethod

        public T paymentMethod​(PaymentMethod paymentMethod)
      • getPaymentMethod

        public PaymentMethod getPaymentMethod()
        Get paymentMethod
        Returns:
        paymentMethod
      • setPaymentMethod

        public void setPaymentMethod​(PaymentMethod paymentMethod)
      • getDonationToken

        public String getDonationToken()
        Donation Token containing payment details for Adyen Giving.
        Returns:
        donationToken
      • setDonationToken

        public void setDonationToken​(String donationToken)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getCardBin

        public String getCardBin()
      • getCardHolderName

        public String getCardHolderName()
      • getCardSummary

        public String getCardSummary()
      • getAvsResult

        public String getAvsResult()
      • get3DOffered

        public boolean get3DOffered()
      • get3DAuthenticated

        public boolean get3DAuthenticated()
      • getAuthCode

        public String getAuthCode()
      • getExpiryDate

        public Date getExpiryDate()