Newer Version Available
CardPaymentMethodResponse Class
Namespace
CardPaymentMethodResponse Methods
The following are methods for CardPaymentMethodResponse.
setAccountId(accountId)
Signature
public void setAccountId(Id accountId)
Parameters
- accountId
- Type: Id
- Salesforce Payments account to which this payment method is linked.
Return Value
Type: void
setAutoPay(autoPay)
Signature
public void setAutoPay(Boolean autoPay)
Parameters
- autoPay
- Type: Boolean
- Indicates whether a token for recurring payments is being requested (true) or not (false). The token lets the payment method be used for recurring payments.
Return Value
Type: void
setCardBin(cardBin)
Signature
public void setCardBin(String cardBin)
Parameters
- cardBin
- Type: String
- Bank Identification Number (BIN). The BIN is the first 4-6 numbers on a payment card that identifies the card issuer.
Return Value
Type: void
setCardCategory(cardCategory)
Signature
public void setCardCategory(commercepayments.CardCategory cardCategory)
Parameters
- cardCategory
- Type: CommercePayments.CardCategory
- Specifies whether it is a credit card or debit card.
Return Value
Type: void
setCardHolderFirstName(cardHolderFirstName)
Signature
public void setCardHolderFirstName(String cardHolderFirstName)
Parameters
- cardHolderFirstName
- Type: String
- First name of the card holder.
Return Value
Type: void
setCardHolderLastName(cardHolderLastName)
Signature
public void setCardHolderLastName(String cardHolderLastName)
Parameters
- cardHolderLastName
- Type: String
- Last name of the card holder.
Return Value
Type: void
setCardHolderName(cardHolderName)
Signature
public void setCardHolderName(String cardHolderName)
Parameters
- cardHolderName
- Type: String
- Card holder name.
Return Value
Type: void
setCardLastFour(cardLastFour)
Signature
public void setCardLastFour(String cardLastFour)
Parameters
- cardLastFour
- Type: String
- Last four digits of the card.
Return Value
Type: void
setCardType(cardType)
Signature
public void setCardType(String cardType)
Parameters
- cardType
- Type: String
- Type of the credit card issuer.
Return Value
Type: void
setCardTypeCategory(cardTypeCategory)
Signature
public void setCardTypeCategory(commercepayments.CardType cardTypeCategory)
Parameters
- cardTypeCategory
- Type: CommercePayments.CardType
- Credit card issuer.
Return Value
Type: void
setComments(comments)
Signature
public void setComments(String comments)
Parameters
- comments
- Type: String
- Details about a record added by a user, maximum is 1000 characters.
Return Value
Type: void
setDisplayCardNumber(displayCardNumber)
Signature
public void setDisplayCardNumber(String displayCardNumber)
Parameters
- displayCardNumber
- Type: String
- Displayed card number.
Return Value
Type: void
setEmail(email)
Signature
public void setEmail(String email)
Parameters
- Type: String
- Email address of the card holder.
Return Value
Type: void
setExpiryMonth(expiryMonth)
Signature
public void setExpiryMonth(Integer expiryMonth)
Parameters
- expiryMonth
- Type: Integer
- Month of expiry of the card.
Return Value
Type: void
setExpiryYear(expiryYear)
Signature
public void setExpiryYear(Integer expiryYear)
Parameters
- expiryYear
- Type: Integer
- Year of expiry of the card.
Return Value
Type: void
setNickName(nickName)
Signature
public void setNickName(String nickName)
Parameters
- nickName
- Type: String
- Card nickname.
Return Value
Type: void
setStartMonth(startMonth)
Signature
public void setStartMonth(Integer startMonth)
Parameters
- startMonth
- Type: Integer
- Determines from which month the card becomes active.
Return Value
Type: void
setStartYear(startYear)
Signature
public void setStartYear(Integer startYear)
Parameters
- startYear
- Type: Integer
- Determines from which year the card becomes active.
Return Value
Type: void