Package com.adyen.model.checkout
Class CheckoutCreateOrderResponse
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutCreateOrderResponse
-
public class CheckoutCreateOrderResponse extends Object
CheckoutCreateOrderResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutCreateOrderResponse.ResultCodeEnumThe result of the payment.
-
Constructor Summary
Constructors Constructor Description CheckoutCreateOrderResponse()
-
Method Summary
-
-
-
Method Detail
-
additionalData
public CheckoutCreateOrderResponse additionalData(Map<String,String> additionalData)
-
putAdditionalDataItem
public CheckoutCreateOrderResponse 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** > **Account** > **API URLs** > **Additional data settings**.- Returns:
- additionalData
-
amount
public CheckoutCreateOrderResponse amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
expiresAt
public CheckoutCreateOrderResponse expiresAt(String expiresAt)
-
getExpiresAt
public String getExpiresAt()
The date that the order will expire.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(String expiresAt)
-
fraudResult
public CheckoutCreateOrderResponse fraudResult(FraudResult fraudResult)
-
getFraudResult
public FraudResult getFraudResult()
Get fraudResult- Returns:
- fraudResult
-
setFraudResult
public void setFraudResult(FraudResult fraudResult)
-
orderData
public CheckoutCreateOrderResponse orderData(String orderData)
-
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)
-
pspReference
public CheckoutCreateOrderResponse pspReference(String pspReference)
-
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)
-
refusalReason
public CheckoutCreateOrderResponse 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. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons).- Returns:
- refusalReason
-
setRefusalReason
public void setRefusalReason(String refusalReason)
-
remainingAmount
public CheckoutCreateOrderResponse remainingAmount(Amount remainingAmount)
-
getRemainingAmount
public Amount getRemainingAmount()
Get remainingAmount- Returns:
- remainingAmount
-
setRemainingAmount
public void setRemainingAmount(Amount remainingAmount)
-
resultCode
public CheckoutCreateOrderResponse resultCode(CheckoutCreateOrderResponse.ResultCodeEnum resultCode)
-
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
-
setResultCode
public void setResultCode(CheckoutCreateOrderResponse.ResultCodeEnum resultCode)
-
getReference
public String getReference()
-
setReference
public void setReference(String reference)
-
reference
public CheckoutCreateOrderResponse reference(String reference)
-
-