Package com.adyen.model.checkout
Enum PaymentsResponse.ResultCodeEnum
- java.lang.Object
-
- java.lang.Enum<PaymentsResponse.ResultCodeEnum>
-
- com.adyen.model.checkout.PaymentsResponse.ResultCodeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PaymentsResponse.ResultCodeEnum>
- Enclosing class:
- PaymentsResponse
public static enum PaymentsResponse.ResultCodeEnum extends Enum<PaymentsResponse.ResultCodeEnum>
The result of the payment. 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. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentsResponse.ResultCodeEnum.Adapter
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICATIONFINISHEDAUTHENTICATIONNOTREQUIREDAUTHORISEDCANCELLEDCHALLENGESHOPPERERRORIDENTIFYSHOPPERPARTIALLYAUTHORISEDPENDINGPRESENTTOSHOPPERRECEIVEDREDIRECTSHOPPERREFUSEDUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentsResponse.ResultCodeEnumfromValue(String text)StringgetValue()StringtoString()static PaymentsResponse.ResultCodeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PaymentsResponse.ResultCodeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTHENTICATIONFINISHED
public static final PaymentsResponse.ResultCodeEnum AUTHENTICATIONFINISHED
-
AUTHENTICATIONNOTREQUIRED
public static final PaymentsResponse.ResultCodeEnum AUTHENTICATIONNOTREQUIRED
-
AUTHORISED
public static final PaymentsResponse.ResultCodeEnum AUTHORISED
-
CANCELLED
public static final PaymentsResponse.ResultCodeEnum CANCELLED
-
CHALLENGESHOPPER
public static final PaymentsResponse.ResultCodeEnum CHALLENGESHOPPER
-
ERROR
public static final PaymentsResponse.ResultCodeEnum ERROR
-
IDENTIFYSHOPPER
public static final PaymentsResponse.ResultCodeEnum IDENTIFYSHOPPER
-
PENDING
public static final PaymentsResponse.ResultCodeEnum PENDING
-
RECEIVED
public static final PaymentsResponse.ResultCodeEnum RECEIVED
-
REDIRECTSHOPPER
public static final PaymentsResponse.ResultCodeEnum REDIRECTSHOPPER
-
REFUSED
public static final PaymentsResponse.ResultCodeEnum REFUSED
-
PARTIALLYAUTHORISED
public static final PaymentsResponse.ResultCodeEnum PARTIALLYAUTHORISED
-
PRESENTTOSHOPPER
public static final PaymentsResponse.ResultCodeEnum PRESENTTOSHOPPER
-
UNKNOWN
public static final PaymentsResponse.ResultCodeEnum UNKNOWN
-
-
Method Detail
-
values
public static PaymentsResponse.ResultCodeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PaymentsResponse.ResultCodeEnum c : PaymentsResponse.ResultCodeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentsResponse.ResultCodeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromValue
public static PaymentsResponse.ResultCodeEnum fromValue(String text)
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<PaymentsResponse.ResultCodeEnum>
-
-