Class ThreeDSecure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe amount to be authenticated.Dimensions of the challenge window that potentially will be displayed to the customer.Allows you to indicate if you want the customer to be challenged for extra security on this transaction.Determines whether the call is coming from an application or from a browser * AppBased - Call is coming from an application.In PSD2, the ExemptionRequest field is used by merchants requesting an exemption when not using authentication on a transaction, in order to keep the conversion up.Object containing 3D secure details.Merchant fraud rate in the EEA (all EEA card fraud divided by all EEA card volumes) calculated as per PSD2 RTS.Object containing data regarding the customer authentication that occurred prior to the current transactionObject containing browser specific redirection related dataIndicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies Logically this field should only be set to yes if the acquirer exemption field is blank.true = 3D Secure authentication will be skipped for this transaction.true = Soft Decline retry mechanism will be skipped for this transaction.voidsetAuthenticationAmount(Long value) The amount to be authenticated.voidsetChallengeCanvasSize(String value) Dimensions of the challenge window that potentially will be displayed to the customer.voidsetChallengeIndicator(String value) Allows you to indicate if you want the customer to be challenged for extra security on this transaction.voidsetDeviceChannel(String value) Determines whether the call is coming from an application or from a browser * AppBased - Call is coming from an application.voidsetExemptionRequest(String value) In PSD2, the ExemptionRequest field is used by merchants requesting an exemption when not using authentication on a transaction, in order to keep the conversion up.voidObject containing 3D secure details.voidsetMerchantFraudRate(Integer value) Merchant fraud rate in the EEA (all EEA card fraud divided by all EEA card volumes) calculated as per PSD2 RTS.voidObject containing data regarding the customer authentication that occurred prior to the current transactionvoidObject containing browser specific redirection related datavoidsetSecureCorporatePayment(Boolean value) Indicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies Logically this field should only be set to yes if the acquirer exemption field is blank.voidsetSkipAuthentication(Boolean value) true = 3D Secure authentication will be skipped for this transaction.voidsetSkipSoftDecline(Boolean value) true = Soft Decline retry mechanism will be skipped for this transaction.withAuthenticationAmount(Long value) The amount to be authenticated.withChallengeCanvasSize(String value) Dimensions of the challenge window that potentially will be displayed to the customer.withChallengeIndicator(String value) Allows you to indicate if you want the customer to be challenged for extra security on this transaction.withDeviceChannel(String value) Determines whether the call is coming from an application or from a browser * AppBased - Call is coming from an application.withExemptionRequest(String value) In PSD2, the ExemptionRequest field is used by merchants requesting an exemption when not using authentication on a transaction, in order to keep the conversion up.Object containing 3D secure details.withMerchantFraudRate(Integer value) Merchant fraud rate in the EEA (all EEA card fraud divided by all EEA card volumes) calculated as per PSD2 RTS.Object containing data regarding the customer authentication that occurred prior to the current transactionObject containing browser specific redirection related dataIndicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies Logically this field should only be set to yes if the acquirer exemption field is blank.withSkipAuthentication(Boolean value) true = 3D Secure authentication will be skipped for this transaction.withSkipSoftDecline(Boolean value) true = Soft Decline retry mechanism will be skipped for this transaction.
-
Constructor Details
-
ThreeDSecure
public ThreeDSecure()
-
-
Method Details
-
getAuthenticationAmount
The amount to be authenticated. This field should be populated if the amount to be authenticated differs from the amount to be authorized (by default they are considered equal). Amount in cents and always having 2 decimals. -
setAuthenticationAmount
The amount to be authenticated. This field should be populated if the amount to be authenticated differs from the amount to be authorized (by default they are considered equal). Amount in cents and always having 2 decimals. -
withAuthenticationAmount
The amount to be authenticated. This field should be populated if the amount to be authenticated differs from the amount to be authorized (by default they are considered equal). Amount in cents and always having 2 decimals. -
getChallengeCanvasSize
Dimensions of the challenge window that potentially will be displayed to the customer. The challenge content is formatted to appropriately render in this window to provide the best possible user experience. Preconfigured sizes are width x height in pixels of the window displayed in the customer browser window. Possible values are- 250x400 (default)
- 390x400
- 500x600
- 600x400
- full-screen
-
setChallengeCanvasSize
Dimensions of the challenge window that potentially will be displayed to the customer. The challenge content is formatted to appropriately render in this window to provide the best possible user experience. Preconfigured sizes are width x height in pixels of the window displayed in the customer browser window. Possible values are- 250x400 (default)
- 390x400
- 500x600
- 600x400
- full-screen
-
withChallengeCanvasSize
Dimensions of the challenge window that potentially will be displayed to the customer. The challenge content is formatted to appropriately render in this window to provide the best possible user experience. Preconfigured sizes are width x height in pixels of the window displayed in the customer browser window. Possible values are- 250x400 (default)
- 390x400
- 500x600
- 600x400
- full-screen
-
getChallengeIndicator
Allows you to indicate if you want the customer to be challenged for extra security on this transaction. Possible values:- no-preference - You have no preference whether or not to challenge the customer (default)
- no-challenge-requested - you prefer the cardholder not to be challenged
- challenge-requested - you prefer the customer to be challenged
- challenge-required - you require the customer to be challenged
- no-challenge-requested-risk-analysis-performed – letting the issuer know that you have already assessed the transaction with fraud prevention tool
- no-challenge-requested-data-share-only – sharing data only with the DS
- no-challenge-requested-consumer-authentication-performed – authentication already happened at your side – when login in to your website
- no-challenge-requested-use-whitelist-exemption – cardholder has whitelisted you at with the issuer
- challenge-requested-whitelist-prompt-requested – cardholder is trying to whitelist you
- request-scoring-without-connecting-to-acs – sending information to CB DS for a fraud scoring
-
setChallengeIndicator
Allows you to indicate if you want the customer to be challenged for extra security on this transaction. Possible values:- no-preference - You have no preference whether or not to challenge the customer (default)
- no-challenge-requested - you prefer the cardholder not to be challenged
- challenge-requested - you prefer the customer to be challenged
- challenge-required - you require the customer to be challenged
- no-challenge-requested-risk-analysis-performed – letting the issuer know that you have already assessed the transaction with fraud prevention tool
- no-challenge-requested-data-share-only – sharing data only with the DS
- no-challenge-requested-consumer-authentication-performed – authentication already happened at your side – when login in to your website
- no-challenge-requested-use-whitelist-exemption – cardholder has whitelisted you at with the issuer
- challenge-requested-whitelist-prompt-requested – cardholder is trying to whitelist you
- request-scoring-without-connecting-to-acs – sending information to CB DS for a fraud scoring
-
withChallengeIndicator
Allows you to indicate if you want the customer to be challenged for extra security on this transaction. Possible values:- no-preference - You have no preference whether or not to challenge the customer (default)
- no-challenge-requested - you prefer the cardholder not to be challenged
- challenge-requested - you prefer the customer to be challenged
- challenge-required - you require the customer to be challenged
- no-challenge-requested-risk-analysis-performed – letting the issuer know that you have already assessed the transaction with fraud prevention tool
- no-challenge-requested-data-share-only – sharing data only with the DS
- no-challenge-requested-consumer-authentication-performed – authentication already happened at your side – when login in to your website
- no-challenge-requested-use-whitelist-exemption – cardholder has whitelisted you at with the issuer
- challenge-requested-whitelist-prompt-requested – cardholder is trying to whitelist you
- request-scoring-without-connecting-to-acs – sending information to CB DS for a fraud scoring
-
getDeviceChannel
Determines whether the call is coming from an application or from a browser * AppBased - Call is coming from an application. * Browser - Call is coming from a browser -
setDeviceChannel
Determines whether the call is coming from an application or from a browser * AppBased - Call is coming from an application. * Browser - Call is coming from a browser -
withDeviceChannel
Determines whether the call is coming from an application or from a browser * AppBased - Call is coming from an application. * Browser - Call is coming from a browser -
getExemptionRequest
In PSD2, the ExemptionRequest field is used by merchants requesting an exemption when not using authentication on a transaction, in order to keep the conversion up.- none = No exemption requested
- transaction-risk-analysis = Fraud analysis has been done already by your own fraud module and transaction scored as low risk
- low-value = Bellow 30 euros
- whitelist = The cardholder has whitelisted you with their issuer
-
setExemptionRequest
In PSD2, the ExemptionRequest field is used by merchants requesting an exemption when not using authentication on a transaction, in order to keep the conversion up.- none = No exemption requested
- transaction-risk-analysis = Fraud analysis has been done already by your own fraud module and transaction scored as low risk
- low-value = Bellow 30 euros
- whitelist = The cardholder has whitelisted you with their issuer
-
withExemptionRequest
In PSD2, the ExemptionRequest field is used by merchants requesting an exemption when not using authentication on a transaction, in order to keep the conversion up.- none = No exemption requested
- transaction-risk-analysis = Fraud analysis has been done already by your own fraud module and transaction scored as low risk
- low-value = Bellow 30 euros
- whitelist = The cardholder has whitelisted you with their issuer
-
getExternalCardholderAuthenticationData
Object containing 3D secure details. -
setExternalCardholderAuthenticationData
Object containing 3D secure details. -
withExternalCardholderAuthenticationData
public ThreeDSecure withExternalCardholderAuthenticationData(ExternalCardholderAuthenticationData value) Object containing 3D secure details. -
getMerchantFraudRate
Merchant fraud rate in the EEA (all EEA card fraud divided by all EEA card volumes) calculated as per PSD2 RTS. Mastercard will not calculate or validate the merchant fraud score Values accepted :- 1 - represents fraud rate less than or equal to 1 basis point [bp], which is 0.01%
- 2 - represents fraud rate between 1 bp + - and 6 bps
- 3 - represents fraud rate between 6 bps + - and 13 bps
- 4 - represents fraud rate between 13 bps + - and 25 bps
- 5 - represents fraud rate greater than 25 bps
-
setMerchantFraudRate
Merchant fraud rate in the EEA (all EEA card fraud divided by all EEA card volumes) calculated as per PSD2 RTS. Mastercard will not calculate or validate the merchant fraud score Values accepted :- 1 - represents fraud rate less than or equal to 1 basis point [bp], which is 0.01%
- 2 - represents fraud rate between 1 bp + - and 6 bps
- 3 - represents fraud rate between 6 bps + - and 13 bps
- 4 - represents fraud rate between 13 bps + - and 25 bps
- 5 - represents fraud rate greater than 25 bps
-
withMerchantFraudRate
Merchant fraud rate in the EEA (all EEA card fraud divided by all EEA card volumes) calculated as per PSD2 RTS. Mastercard will not calculate or validate the merchant fraud score Values accepted :- 1 - represents fraud rate less than or equal to 1 basis point [bp], which is 0.01%
- 2 - represents fraud rate between 1 bp + - and 6 bps
- 3 - represents fraud rate between 6 bps + - and 13 bps
- 4 - represents fraud rate between 13 bps + - and 25 bps
- 5 - represents fraud rate greater than 25 bps
-
getPriorThreeDSecureData
Object containing data regarding the customer authentication that occurred prior to the current transaction -
setPriorThreeDSecureData
Object containing data regarding the customer authentication that occurred prior to the current transaction -
withPriorThreeDSecureData
Object containing data regarding the customer authentication that occurred prior to the current transaction -
getRedirectionData
Object containing browser specific redirection related data -
setRedirectionData
Object containing browser specific redirection related data -
withRedirectionData
Object containing browser specific redirection related data -
getSecureCorporatePayment
Indicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies Logically this field should only be set to yes if the acquirer exemption field is blank. A merchant cannot claim both acquirer exemption and secure payment. However, the DS will not validate the conditions in the extension. DS will pass data as presented. -
setSecureCorporatePayment
Indicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies Logically this field should only be set to yes if the acquirer exemption field is blank. A merchant cannot claim both acquirer exemption and secure payment. However, the DS will not validate the conditions in the extension. DS will pass data as presented. -
withSecureCorporatePayment
Indicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies Logically this field should only be set to yes if the acquirer exemption field is blank. A merchant cannot claim both acquirer exemption and secure payment. However, the DS will not validate the conditions in the extension. DS will pass data as presented. -
getSkipAuthentication
- true = 3D Secure authentication will be skipped for this transaction. This setting should be used when isRecurring is set to true and recurringPaymentSequenceIndicator is set to "recurring"
- false = 3D Secure authentication will not be skipped for this transaction
Note: This is only possible if your account in our system is setup for 3D Secure authentication and if your configuration in our system allows you to override it per transaction
-
setSkipAuthentication
- true = 3D Secure authentication will be skipped for this transaction. This setting should be used when isRecurring is set to true and recurringPaymentSequenceIndicator is set to "recurring"
- false = 3D Secure authentication will not be skipped for this transaction
Note: This is only possible if your account in our system is setup for 3D Secure authentication and if your configuration in our system allows you to override it per transaction
-
withSkipAuthentication
- true = 3D Secure authentication will be skipped for this transaction. This setting should be used when isRecurring is set to true and recurringPaymentSequenceIndicator is set to "recurring"
- false = 3D Secure authentication will not be skipped for this transaction
Note: This is only possible if your account in our system is setup for 3D Secure authentication and if your configuration in our system allows you to override it per transaction
-
getSkipSoftDecline
- true = Soft Decline retry mechanism will be skipped for this transaction. The transaction will result in "Authorization Declined" status. This setting should be used when skipAuthentication is set to true and the merchant does not want to use Soft Decline retry mechanism.
- false = Soft Decline retry mechanism will not be skipped for this transaction.
Note: skipSoftDecline defaults to false if empty. This is only possible if your account in our system is setup for 3D Secure authentication and if your configuration in our system allows you to override it per transaction.
-
setSkipSoftDecline
- true = Soft Decline retry mechanism will be skipped for this transaction. The transaction will result in "Authorization Declined" status. This setting should be used when skipAuthentication is set to true and the merchant does not want to use Soft Decline retry mechanism.
- false = Soft Decline retry mechanism will not be skipped for this transaction.
Note: skipSoftDecline defaults to false if empty. This is only possible if your account in our system is setup for 3D Secure authentication and if your configuration in our system allows you to override it per transaction.
-
withSkipSoftDecline
- true = Soft Decline retry mechanism will be skipped for this transaction. The transaction will result in "Authorization Declined" status. This setting should be used when skipAuthentication is set to true and the merchant does not want to use Soft Decline retry mechanism.
- false = Soft Decline retry mechanism will not be skipped for this transaction.
Note: skipSoftDecline defaults to false if empty. This is only possible if your account in our system is setup for 3D Secure authentication and if your configuration in our system allows you to override it per transaction.
-