CardPaymentMethodResponse Class

This class contains details about the card payment method.

Namespace

CommercePayments

CardPaymentMethodResponse Methods

The following are methods for CardPaymentMethodResponse.

setAccountId(accountId)

Sets the Salesforce payments account to which this payment method is linked.

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)

Sets whether a token for recurring payments is being requested or not.

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)

Sets the card Bank Identification Number (BIN).

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)

Sets the card category.

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)

Sets the first name of the card holder.

Signature

public void setCardHolderFirstName(String cardHolderFirstName)

Parameters

cardHolderFirstName
Type: String
First name of the card holder.

Return Value

Type: void

setCardHolderLastName(cardHolderLastName)

Sets the last name of the card holder.

Signature

public void setCardHolderLastName(String cardHolderLastName)

Parameters

cardHolderLastName
Type: String
Last name of the card holder.

Return Value

Type: void

setCardHolderName(cardHolderName)

Sets the name of the card holder.

Signature

public void setCardHolderName(String cardHolderName)

Parameters

cardHolderName
Type: String
Card holder name.

Return Value

Type: void

setCardLastFour(cardLastFour)

Sets the last four digits of the card.

Signature

public void setCardLastFour(String cardLastFour)

Parameters

cardLastFour
Type: String
Last four digits of the card.

Return Value

Type: void

setCardType(cardType)

Specifies the type of the credit card issuer.

Signature

public void setCardType(String cardType)

Parameters

cardType
Type: String
Type of the credit card issuer.

Return Value

Type: void

setCardTypeCategory(cardTypeCategory)

Sets the credit card issuer.

Signature

public void setCardTypeCategory(commercepayments.CardType cardTypeCategory)

Parameters

cardTypeCategory
Type: CommercePayments.CardType
Credit card issuer.

Return Value

Type: void

setComments(comments)

Sets the notes added by a user for card payment.

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)

Sets the display card number.

Signature

public void setDisplayCardNumber(String displayCardNumber)

Parameters

displayCardNumber
Type: String
Displayed card number.

Return Value

Type: void

setEmail(email)

Sets the email address of the card holder.

Signature

public void setEmail(String email)

Parameters

email
Type: String
Email address of the card holder.

Return Value

Type: void

setExpiryMonth(expiryMonth)

Sets the month of expiry of the card.

Signature

public void setExpiryMonth(Integer expiryMonth)

Parameters

expiryMonth
Type: Integer
Month of expiry of the card.

Return Value

Type: void

setExpiryYear(expiryYear)

Sets the year of expiry of the card.

Signature

public void setExpiryYear(Integer expiryYear)

Parameters

expiryYear
Type: Integer
Year of expiry of the card.

Return Value

Type: void

setNickName(nickName)

Sets the nickname of the card.

Signature

public void setNickName(String nickName)

Parameters

nickName
Type: String
Card nickname.

Return Value

Type: void

setStartMonth(startMonth)

Sets the month the card becomes active.

Signature

public void setStartMonth(Integer startMonth)

Parameters

startMonth
Type: Integer
Determines from which month the card becomes active.

Return Value

Type: void

setStartYear(startYear)

Sets the year the card becomes active.

Signature

public void setStartYear(Integer startYear)

Parameters

startYear
Type: Integer
Determines from which year the card becomes active.

Return Value

Type: void