Class ThreeDSecureBase

java.lang.Object
com.onlinepayments.domain.ThreeDSecureBase

public class ThreeDSecureBase extends Object
  • Constructor Details

    • ThreeDSecureBase

      public ThreeDSecureBase()
  • Method Details

    • getAuthenticationAmount

      public Long 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

      public void setAuthenticationAmount(Long value)
      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

      public ThreeDSecureBase withAuthenticationAmount(Long value)
      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

      public String 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

      public void setChallengeCanvasSize(String value)
      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

      public ThreeDSecureBase withChallengeCanvasSize(String value)
      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

      public String 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

      public void setChallengeIndicator(String value)
      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

      public ThreeDSecureBase withChallengeIndicator(String value)
      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
    • getExemptionRequest

      public String 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

      public void setExemptionRequest(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.
      • 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

      public ThreeDSecureBase 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.
      • 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
    • getMerchantFraudRate

      public Integer 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

      public void setMerchantFraudRate(Integer value)
      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

      public ThreeDSecureBase withMerchantFraudRate(Integer value)
      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

      public ThreeDSecureData getPriorThreeDSecureData()
      Object containing data regarding the customer authentication that occurred prior to the current transaction
    • setPriorThreeDSecureData

      public void setPriorThreeDSecureData(ThreeDSecureData value)
      Object containing data regarding the customer authentication that occurred prior to the current transaction
    • withPriorThreeDSecureData

      public ThreeDSecureBase withPriorThreeDSecureData(ThreeDSecureData value)
      Object containing data regarding the customer authentication that occurred prior to the current transaction
    • getSecureCorporatePayment

      public Boolean 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

      public void setSecureCorporatePayment(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. 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

      public ThreeDSecureBase withSecureCorporatePayment(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. 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

      public Boolean 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

      public void setSkipAuthentication(Boolean value)
      • 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

      public ThreeDSecureBase withSkipAuthentication(Boolean value)
      • 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

      public Boolean 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

      public void setSkipSoftDecline(Boolean value)
      • 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

      public ThreeDSecureBase withSkipSoftDecline(Boolean value)
      • 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.