Class SalesforceCardPaymentDetails
dw.extensions.payments
Class SalesforceCardPaymentDetails
Object
dw.extensions.payments.SalesforcePaymentDetails
dw.extensions.payments.SalesforceCardPaymentDetails
Details to a payment of type SalesforcePaymentDetails.TYPE_CARD.
Constants
BRAND_AMEX  :  String = "amex"
Card brand constant: American Express.
BRAND_DINERS  :  String = "diners"
Card brand constant: Diners Club.
BRAND_DISCOVER  :  String = "discover"
Card brand constant: Discover.
BRAND_JCB  :  String = "jcb"
Card brand constant: JCB.
BRAND_MASTERCARD  :  String = "mastercard"
Card brand constant: Mastercard.
BRAND_UNIONPAY  :  String = "unionpay"
Card brand constant: UnionPay.
BRAND_UNKNOWN  :  String = "unknown"
Card brand constant: unknown or unrecognized brand.
BRAND_VISA  :  String = "visa"
Card brand constant: Visa.
FUNDING_TYPE_CREDIT  :  String = "CREDIT"
Card funding type constant: credit card.
FUNDING_TYPE_DEBIT  :  String = "DEBIT"
Card funding type constant: debit card.
FUNDING_TYPE_PREPAID  :  String = "PREPAID"
Card funding type constant: prepaid card.
TOKEN_TYPE_GATEWAY  :  String = "GATEWAY"
Token type constant: gateway token.
TOKEN_TYPE_NETWORK  :  String = "NETWORK"
Token type constant: network token.
WALLET_TYPE_APPLE_PAY  :  String = "apple_pay"
Wallet type constant: Apple Pay.
WALLET_TYPE_GOOGLE_PAY  :  String = "google_pay"
Wallet type constant: Google Pay.
Properties
bin  :  String
The Bank Identification Number (BIN), which is the first 6 to 8 digits of the card number, or null if not known. This is not the full card number (PAN).
brand  :  String
The card brand, or null if not known.
dpanLast4  :  String
The last 4 digits of the Device PAN (DPAN) for tokenized wallet payments, or null if not applicable or not known. The DPAN is a device-specific token card number used by wallets such as Apple Pay and Google Pay. It is distinct from the funding card's actual card number (PAN). The DPAN is a separate number that identifies the tokenized representation on the device.
expirationMonth  :  Number
The card expiration month (1-12), or null if not known.
expirationYear  :  Number
The card expiration year as a 4-digit integer, such as 2028, or null if not known.
fundingType  :  String
The card funding type, or null if not known.
issuingCountry  :  String
The ISO-3166-1 alpha-2 country code of the card issuing bank, or null if not known.
last4  :  String
The last 4 digits of the card number, or null if not known.
token  :  String
The reference token, or null if not known. This is not the card number (PAN). It is an opaque identifier referencing the card.
tokenType  :  String
The type of token backing the reference token, or null if not known.
walletType  :  String
The type of wallet used to make the card payment, or null if no wallet was used.
Constructor Summary
SalesforceCardPaymentDetails()
Constructs an empty card payment details object.
Method Summary
getBin() : String
Returns the Bank Identification Number (BIN), which is the first 6 to 8 digits of the card number, or null if not known.
getBrand() : String
Returns the card brand, or null if not known.
getDpanLast4() : String
Returns the last 4 digits of the Device PAN (DPAN) for tokenized wallet payments, or null if not applicable or not known.
getExpirationMonth() : Number
Returns the card expiration month (1-12), or null if not known.
getExpirationYear() : Number
Returns the card expiration year as a 4-digit integer, such as 2028, or null if not known.
getFundingType() : String
Returns the card funding type, or null if not known.
getIssuingCountry() : String
Returns the ISO-3166-1 alpha-2 country code of the card issuing bank, or null if not known.
getLast4() : String
Returns the last 4 digits of the card number, or null if not known.
getToken() : String
Returns the reference token, or null if not known.
getTokenType() : String
Returns the type of token backing the reference token, or null if not known.
getWalletType() : String
Returns the type of wallet used to make the card payment, or null if no wallet was used.
setBin(bin : String) : void
Sets the Bank Identification Number (BIN), which is the first 6 to 8 digits of the card number.
setBrand(brand : String) : void
Sets the card brand.
setDpanLast4(dpanLast4 : String) : void
Sets the last 4 digits of the Device PAN (DPAN) for tokenized wallet payments.
setExpirationMonth(expirationMonth : Number) : void
Sets the card expiration month (1-12).
setExpirationYear(expirationYear : Number) : void
Sets the card expiration year as a 4-digit integer, such as 2028.
setFundingType(fundingType : String) : void
Sets the card funding type.
setIssuingCountry(issuingCountry : String) : void
Sets the ISO-3166-1 alpha-2 country code of the card issuing bank.
setLast4(last4 : String) : void
Sets the last 4 digits of the card number.
setToken(token : String) : void
Sets the reference token.
setTokenType(tokenType : String) : void
Sets the type of token backing the reference token.
setWalletType(walletType : String) : void
Sets the type of wallet used to make the card payment.
Methods inherited from class SalesforcePaymentDetails
Constructor Detail
SalesforceCardPaymentDetails
public SalesforceCardPaymentDetails()
Constructs an empty card payment details object.

Method Detail
getBin
getBin() : String
Returns the Bank Identification Number (BIN), which is the first 6 to 8 digits of the card number, or null if not known. This is not the full card number (PAN).
Returns:
BIN (first 6-8 digits of the card number)

getBrand
getBrand() : String
Returns the card brand, or null if not known.
Returns:
card brand

getDpanLast4
getDpanLast4() : String
Returns the last 4 digits of the Device PAN (DPAN) for tokenized wallet payments, or null if not applicable or not known. The DPAN is a device-specific token card number used by wallets such as Apple Pay and Google Pay. It is distinct from the funding card's actual card number (PAN). The DPAN is a separate number that identifies the tokenized representation on the device.
Returns:
last 4 digits of the device PAN for tokenized wallet payments

getExpirationMonth
getExpirationMonth() : Number
Returns the card expiration month (1-12), or null if not known.
Returns:
card expiration month (1-12)

getExpirationYear
getExpirationYear() : Number
Returns the card expiration year as a 4-digit integer, such as 2028, or null if not known.
Returns:
card expiration year (4-digit)

getFundingType
getFundingType() : String
Returns the card funding type, or null if not known.
Returns:
card funding type

getIssuingCountry
getIssuingCountry() : String
Returns the ISO-3166-1 alpha-2 country code of the card issuing bank, or null if not known.
Returns:
issuing country code, such as "US"

getLast4
getLast4() : String
Returns the last 4 digits of the card number, or null if not known.
Returns:
last 4 digits of the card number

getToken
getToken() : String
Returns the reference token, or null if not known. This is not the card number (PAN). It is an opaque identifier referencing the card.
Returns:
reference token

getTokenType
getTokenType() : String
Returns the type of token backing the reference token, or null if not known.
Returns:
token type

getWalletType
getWalletType() : String
Returns the type of wallet used to make the card payment, or null if no wallet was used.
Returns:
wallet type, or null if no wallet was used

setBin
setBin(bin : String) : void
Sets the Bank Identification Number (BIN), which is the first 6 to 8 digits of the card number. Do not set the full card number (PAN).
Parameters:
bin - BIN (first 6-8 digits of the card number)

setBrand
setBrand(brand : String) : void
Sets the card brand.
Parameters:
brand - card brand

setDpanLast4
setDpanLast4(dpanLast4 : String) : void
Sets the last 4 digits of the Device PAN (DPAN) for tokenized wallet payments. Do not set the card number (PAN). The DPAN is a separate number that identifies the tokenized representation on the device.
Parameters:
dpanLast4 - last 4 digits of the device PAN for tokenized wallet payments

setExpirationMonth
setExpirationMonth(expirationMonth : Number) : void
Sets the card expiration month (1-12).
Parameters:
expirationMonth - card expiration month (1-12)

setExpirationYear
setExpirationYear(expirationYear : Number) : void
Sets the card expiration year as a 4-digit integer, such as 2028.
Parameters:
expirationYear - card expiration year (4-digit)

setFundingType
setFundingType(fundingType : String) : void
Sets the card funding type.
Parameters:
fundingType - card funding type

setIssuingCountry
setIssuingCountry(issuingCountry : String) : void
Sets the ISO-3166-1 alpha-2 country code of the card issuing bank.
Parameters:
issuingCountry - issuing country code, such as "US"

setLast4
setLast4(last4 : String) : void
Sets the last 4 digits of the card number.
Parameters:
last4 - last 4 digits of the card number

setToken
setToken(token : String) : void
Sets the reference token. Do not set the card number (PAN). This is an opaque identifier referencing the card.
Parameters:
token - reference token

setTokenType
setTokenType(tokenType : String) : void
Sets the type of token backing the reference token.
Parameters:
tokenType - token type

setWalletType
setWalletType(walletType : String) : void
Sets the type of wallet used to make the card payment.
Parameters:
walletType - wallet type