CardPaymentMethodResponse Class

This class contains details about the card payment method.

CommercePayments

The following are methods for CardPaymentMethodResponse.

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

public void setAccountId(Id accountId)

  • accountId: Type: Id Salesforce Payments account to which this payment method is linked.

Type: void

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

public void setAutoPay(Boolean autoPay)

  • 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.

Type: void

Sets the card Bank Identification Number (BIN).

public void setCardBin(String cardBin)

  • cardBin: Type: String Bank Identification Number (BIN). The BIN is the first 4-6 numbers on a payment card that identifies the card issuer.

Type: void

Sets the card category.

public void setCardCategory(commercepayments.CardCategory cardCategory)

Type: void

Sets the first name of the card holder.

public void setCardHolderFirstName(String cardHolderFirstName)

  • cardHolderFirstName: Type: String First name of the card holder.

Type: void

Sets the last name of the card holder.

public void setCardHolderLastName(String cardHolderLastName)

  • cardHolderLastName: Type: String Last name of the card holder.

Type: void

Sets the name of the card holder.

public void setCardHolderName(String cardHolderName)

  • cardHolderName: Type: String Card holder name.

Type: void

Sets the last four digits of the card.

public void setCardLastFour(String cardLastFour)

  • cardLastFour: Type: String Last four digits of the card.

Type: void

Specifies the type of the credit card issuer.

public void setCardType(String cardType)

  • cardType: Type: String Type of the credit card issuer.

Type: void

Sets the credit card issuer.

public void setCardTypeCategory(commercepayments.CardType cardTypeCategory)

Type: void

Sets the notes added by a user for card payment.

public void setComments(String comments)

  • comments: Type: String Details about a record added by a user, maximum is 1000 characters.

Type: void

Sets the display card number.

public void setDisplayCardNumber(String displayCardNumber)

  • displayCardNumber: Type: String Displayed card number.

Type: void

Sets the email address of the card holder.

public void setEmail(String email)

  • email: Type: String Email address of the card holder.

Type: void

Sets the month of expiry of the card.

public void setExpiryMonth(Integer expiryMonth)

  • expiryMonth: Type: Integer Month of expiry of the card.

Type: void

Sets the year of expiry of the card.

public void setExpiryYear(Integer expiryYear)

  • expiryYear: Type: Integer Year of expiry of the card.

Type: void

Sets the nickname of the card.

public void setNickName(String nickName)

  • nickName: Type: String Card nickname.

Type: void

Sets the month the card becomes active.

public void setStartMonth(Integer startMonth)

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

Type: void

Sets the year the card becomes active.

public void setStartYear(Integer startYear)

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

Type: void