Package com.adyen.model.payment
Class AdditionalData3DSecure
- java.lang.Object
-
- com.adyen.model.payment.AdditionalData3DSecure
-
public class AdditionalData3DSecure extends Object
AdditionalData3DSecure
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdditionalData3DSecure.ChallengeWindowSizeEnumDimensions of the 3DS2 challenge window to be displayed to the cardholder.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOW3_D_S2static StringJSON_PROPERTY_CHALLENGE_WINDOW_SIZEstatic StringJSON_PROPERTY_EXECUTE_THREE_Dstatic StringJSON_PROPERTY_MPI_IMPLEMENTATION_TYPEstatic StringJSON_PROPERTY_SCA_EXEMPTIONstatic StringJSON_PROPERTY_THREE_D_S_VERSION
-
Constructor Summary
Constructors Constructor Description AdditionalData3DSecure()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdditionalData3DSecureallow3DS2(String allow3DS2)AdditionalData3DSecurechallengeWindowSize(AdditionalData3DSecure.ChallengeWindowSizeEnum challengeWindowSize)booleanequals(Object o)Return true if this AdditionalData3DSecure object is equal to o.AdditionalData3DSecureexecuteThreeD(String executeThreeD)static AdditionalData3DSecurefromJson(String jsonString)Create an instance of AdditionalData3DSecure given an JSON stringStringgetAllow3DS2()Indicates if you are able to process 3D Secure 2 transactions natively on your payment page.AdditionalData3DSecure.ChallengeWindowSizeEnumgetChallengeWindowSize()Dimensions of the 3DS2 challenge window to be displayed to the cardholder.StringgetExecuteThreeD()Indicates if you want to perform 3D Secure authentication on a transaction.StringgetMpiImplementationType()In case of Secure+, this field must be set to **CUPSecurePlus**.StringgetScaExemption()Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction.StringgetThreeDSVersion()Indicates your preference for the 3D Secure version.inthashCode()AdditionalData3DSecurempiImplementationType(String mpiImplementationType)AdditionalData3DSecurescaExemption(String scaExemption)voidsetAllow3DS2(String allow3DS2)Indicates if you are able to process 3D Secure 2 transactions natively on your payment page.voidsetChallengeWindowSize(AdditionalData3DSecure.ChallengeWindowSizeEnum challengeWindowSize)Dimensions of the 3DS2 challenge window to be displayed to the cardholder.voidsetExecuteThreeD(String executeThreeD)Indicates if you want to perform 3D Secure authentication on a transaction.voidsetMpiImplementationType(String mpiImplementationType)In case of Secure+, this field must be set to **CUPSecurePlus**.voidsetScaExemption(String scaExemption)Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction.voidsetThreeDSVersion(String threeDSVersion)Indicates your preference for the 3D Secure version.AdditionalData3DSecurethreeDSVersion(String threeDSVersion)StringtoJson()Convert an instance of AdditionalData3DSecure to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ALLOW3_D_S2
public static final String JSON_PROPERTY_ALLOW3_D_S2
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHALLENGE_WINDOW_SIZE
public static final String JSON_PROPERTY_CHALLENGE_WINDOW_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXECUTE_THREE_D
public static final String JSON_PROPERTY_EXECUTE_THREE_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE
public static final String JSON_PROPERTY_MPI_IMPLEMENTATION_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCA_EXEMPTION
public static final String JSON_PROPERTY_SCA_EXEMPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_THREE_D_S_VERSION
public static final String JSON_PROPERTY_THREE_D_S_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
allow3DS2
public AdditionalData3DSecure allow3DS2(String allow3DS2)
-
getAllow3DS2
public String getAllow3DS2()
Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration.- Returns:
- allow3DS2
-
setAllow3DS2
public void setAllow3DS2(String allow3DS2)
Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration.- Parameters:
allow3DS2-
-
challengeWindowSize
public AdditionalData3DSecure challengeWindowSize(AdditionalData3DSecure.ChallengeWindowSizeEnum challengeWindowSize)
-
getChallengeWindowSize
public AdditionalData3DSecure.ChallengeWindowSizeEnum getChallengeWindowSize()
Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen- Returns:
- challengeWindowSize
-
setChallengeWindowSize
public void setChallengeWindowSize(AdditionalData3DSecure.ChallengeWindowSizeEnum challengeWindowSize)
Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen- Parameters:
challengeWindowSize-
-
executeThreeD
public AdditionalData3DSecure executeThreeD(String executeThreeD)
-
getExecuteThreeD
public String getExecuteThreeD()
Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations.- Returns:
- executeThreeD
-
setExecuteThreeD
public void setExecuteThreeD(String executeThreeD)
Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations.- Parameters:
executeThreeD-
-
mpiImplementationType
public AdditionalData3DSecure mpiImplementationType(String mpiImplementationType)
-
getMpiImplementationType
public String getMpiImplementationType()
In case of Secure+, this field must be set to **CUPSecurePlus**.- Returns:
- mpiImplementationType
-
setMpiImplementationType
public void setMpiImplementationType(String mpiImplementationType)
In case of Secure+, this field must be set to **CUPSecurePlus**.- Parameters:
mpiImplementationType-
-
scaExemption
public AdditionalData3DSecure scaExemption(String scaExemption)
-
getScaExemption
public String getScaExemption()
Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis**- Returns:
- scaExemption
-
setScaExemption
public void setScaExemption(String scaExemption)
Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis**- Parameters:
scaExemption-
-
threeDSVersion
public AdditionalData3DSecure threeDSVersion(String threeDSVersion)
-
getThreeDSVersion
public String getThreeDSVersion()
Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error.- Returns:
- threeDSVersion
-
setThreeDSVersion
public void setThreeDSVersion(String threeDSVersion)
Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error.- Parameters:
threeDSVersion-
-
equals
public boolean equals(Object o)
Return true if this AdditionalData3DSecure object is equal to o.
-
fromJson
public static AdditionalData3DSecure fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AdditionalData3DSecure given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdditionalData3DSecure
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AdditionalData3DSecure
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AdditionalData3DSecure to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-