module Braintree::Transaction::Sandbox::Card

Defined in:

models/sandbox/fraud_tool.cr
models/sandbox/transaction/card.cr

Constant Summary

ALL = StaticArray[AMERICAN_EXPRESS_1, AMERICAN_EXPRESS_2, DINERS_CLUB, DISCOVER, JCB, MAESTRO, MASTERCARD_1, MASTERCARD_2, VISA_1, VISA_2, VISA_3, VISA_4, VISA_5, VISA_6, VISA_7, VISA_8, VISA_PROCESSOR_DECLINED, MASTERCARD_PROCESSOR_DECLINED, AMERICAN_EXPRESS_PROCESSOR_DECLINED, DISCOVER_PROCESSOR_DECLINED, DINERS_CLUB_PROCESSOR_DECLINED, JCB_FAILED, PREPAID, COMMERCIAL, DURBIN_REGULATED, HEALTHCARE, DEBIT, PAYROLL, NO_VALUES, UNKNOWN_VALUES, VISA_USA, VISA_CAN, VISA_IRL, VISA_GBR, MASTERCARD_GBR, AMEX_GBR, AMEX_IRL, MASTERCARD_IRL, VISA_NETWORK_ONLY]
AMERICAN_EXPRESS = StaticArray[AMERICAN_EXPRESS_1, AMERICAN_EXPRESS_2]
AMERICAN_EXPRESS_1 = "378282246310005"
AMERICAN_EXPRESS_2 = "371449635398431"
AMERICAN_EXPRESS_PROCESSOR_DECLINED = "378734493671000"
AMEX_GBR = "374512431123241"
AMEX_IRL = "375529658790105"
COMMERCIAL = "4009040000000009"
COUNTRY_TYPE = StaticArray[VISA_USA, VISA_CAN, VISA_IRL, VISA_GBR, MASTERCARD_GBR, AMEX_GBR, AMEX_IRL, MASTERCARD_IRL, VISA_NETWORK_ONLY]
DEBIT = "4012000033330125"
DINERS_CLUB = "36259600000004"
DINERS_CLUB_PROCESSOR_DECLINED = "38520000009814"
DISCOVER = "6011000991300009"
DISCOVER_PROCESSOR_DECLINED = "6011000990139424"
DURBIN_REGULATED = "4005519200000004"
HEALTHCARE = "4012000033330026"
JCB = "3530111333300000"
JCB_FAILED = "3566002020360505"
MAESTRO = "6304000000000000"
MASTERCARD = StaticArray[MASTERCARD_1, MASTERCARD_2]
MASTERCARD_1 = "5555555555554444"
MASTERCARD_2 = "2223000048400011"
MASTERCARD_GBR = "5555444433331111"
MASTERCARD_IRL = "5101108206957373"
MASTERCARD_PROCESSOR_DECLINED = "5105105105105100"
NO_VALUES = "4012000033330422"
PAYROLL = "4012000033330224"
PREPAID = "4500600000000061"
TYPE_INDICATORS = StaticArray[PREPAID, COMMERCIAL, DURBIN_REGULATED, HEALTHCARE, DEBIT, PAYROLL, NO_VALUES, UNKNOWN_VALUES]
UNKNOWN_VALUES = "4012000033330323"
UNSUCCESSFUL_VERIFICATION = StaticArray[VISA_PROCESSOR_DECLINED, MASTERCARD_PROCESSOR_DECLINED, AMERICAN_EXPRESS_PROCESSOR_DECLINED, DISCOVER_PROCESSOR_DECLINED, DINERS_CLUB_PROCESSOR_DECLINED, JCB_FAILED]
VALID = StaticArray[AMERICAN_EXPRESS_1, AMERICAN_EXPRESS_2, DINERS_CLUB, DISCOVER, JCB, MAESTRO, MASTERCARD_1, MASTERCARD_2, VISA_1, VISA_2, VISA_3, VISA_4, VISA_5, VISA_6, VISA_7, VISA_8]
VISA = StaticArray[VISA_1, VISA_1, VISA_2, VISA_3, VISA_4, VISA_5, VISA_6, VISA_7]
VISA_1 = "4111111111111111"
VISA_2 = "4005519200000004"
VISA_3 = "4009348888881881"
VISA_4 = "4012000033330026"
VISA_5 = "4012000077777777"
VISA_6 = "4012888888881881"
VISA_7 = "4217651111111119"
VISA_8 = "4500600000000061"
VISA_CAN = "4012000033330729"
VISA_GBR = "4444333322221111"
VISA_IRL = "4023490000000008"
VISA_NETWORK_ONLY = "4012000033330521"
VISA_PROCESSOR_DECLINED = "4000111111111115"
VISA_USA = "4012000033330620"

Class Method Summary

Class Method Detail

def self.american_express #

[View source]
def self.country_type #

[View source]
def self.dinners_club #

[View source]
def self.discover #

[View source]
def self.gateway_rejected_fraud #

You can use the following test card numbers in the sandbox to simulate Advanced Fraud Management Tools or risk threshold rules rejecting a request.

more info: https://developers.braintreepayments.com/reference/general/testing/ruby#fraud-tools


[View source]
def self.gateway_rejected_risk_threshold #

You can use the following test card numbers in the sandbox to simulate Advanced Fraud Management Tools or risk threshold rules rejecting a request.

more info: https://developers.braintreepayments.com/reference/general/testing/ruby#fraud-tools


[View source]
def self.jcb #

[View source]
def self.maestro #

[View source]
def self.mastercard #

[View source]
def self.type_indicators #

[View source]
def self.unsuccessful_verification #

[View source]
def self.valid #

[View source]
def self.valid_expiration #

Expiration


[View source]
def self.visa #

[View source]