Module: ActiveMerchant::Billing::EpsilonRiskBaseAuthParams

Defined in:
lib/active_merchant/billing/gateways/epsilon/epsilon_risk_base_auth_params.rb

Constant Summary collapse

KEYS =
%i[
  tds_flag billAddrCity billAddrCountry billAddrLine1 billAddrLine2 billAddrLine3
  billAddrPostCode billAddrState shipAddrCity shipAddrCountry shipAddrLine1 shipAddrLine2
  shipAddrLine3 shipAddrPostCode shipAddrState chAccAgeInd chAccChange
  chAccChangeIndchAccDate chAccPwdChange chAccPwChangeInd nbPurchaseAccount paymentAccAge
  paymentAccInd provisionAttemptsDay shipAddressUsage shipAddressUsageInd shipNameIndicator
  suspiciousAccActivity txnActivityDay txnActivityYear threeDSReqAuthData threeDSReqAuthMethod
  threeDSReqAuthTimestamp addrMatch cardholderName homePhone mobilePhone
  workPhone challengeInd deliveryEmailAddress deliveryTimeframe giftCardAmount
  giftCardCount preOrderDate preOrderPurchaseInd reorderItemsInd shipIndicator
].freeze
THREE_D_SECURE_2_INDICATORS =
[21, 22].freeze

Class Method Summary collapse

Class Method Details

.three_d_secure_2?(tds_flag) ⇒ Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/active_merchant/billing/gateways/epsilon/epsilon_risk_base_auth_params.rb', line 18

def three_d_secure_2?(tds_flag)
  THREE_D_SECURE_2_INDICATORS.include?(tds_flag)
end