Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

BankPaymentMethodResponse Class

This class contains information about the bank payment method response. The gateway adapter reads the gateway response and generates a BankPaymentMethodResponse, populating the required fields to create a bank payment method.

Namespace

CommercePayments

BankPaymentMethodResponse Methods

The following are methods for BankPaymentMethodResponse.

setAccountHolderType(accountHolderType)

Sets the account holder type for the bank payment method.

Signature

public void setAccountHolderType(commercepayments.AccountHolderType accountHolderType)

Parameters

Return Value

Type: void

setAccountId(accountId)

Sets the Payments account ID associated with the bank payment method.

Signature

public void setAccountId(String accountId)

Parameters

Return Value

Type: void

setAccountType(accountType)

Sets the account type for the bank payment method.

Signature

public void setAccountType(commercepayments.AccountType accountType)

Parameters

Return Value

Type: void

setBankCode(bankCode)

Sets the unique nine-digit code that identifies the bank code for the bank payment method.

Signature

public void setBankCode(String bankCode)

Parameters

Return Value

Type: void

setBankName(bankName)

Sets the bank name for the bank payment method.

Signature

public void setBankName(String bankName)

Parameters

Return Value

Type: void

setBankType(bankType)

Sets the bank type for the bank payment method.

Signature

public void setBankType(commercepayments.BankType bankType)

Parameters

  • bankType: Type: commercepayments.BankType

Return Value

Type: void

setComments(comments)

Sets any additional details about the bank account.

Signature

public void setComments(String comments)

Parameters

Return Value

Type: void

setEmail(email)

Sets the email address of the bank account holder.

Signature

public void setEmail(String email)

Parameters

Return Value

Type: void

setGatewayToken(gatewayToken)

Sets the gateway token value that the gateway returned.

Signature

public void setGatewayToken(String gatewayToken)

Parameters

Return Value

Type: void

setGatewayTokenDetails(gatewayTokenDetails)

Sets any additional information that the gateway returned about the payment token.

Signature

public void setGatewayTokenDetails(String gatewayTokenDetails)

Parameters

  • gatewayTokenDetails: Type: String

Return Value

Type: void

setLast4(lastFour)

Sets the last four digits of the bank account number.

Signature

public void setLast4(String lastFour)

Parameters

Return Value

Type: void

setName(name)

Sets the name of the account holder for the bank payment method.

Signature

public void setName(String name)

Parameters

Return Value

Type: void

setSavedPaymentMethodId(savedPaymentMethodId)

Sets the saved payment method ID for the bank account holder.

Signature

public void setSavedPaymentMethodId(String savedPaymentMethodId)

Parameters

  • savedPaymentMethodId: Type: String

Return Value

Type: void

setStandardEntryClassCode(standardEntryClassCode)

Sets the code that identifies the type of electronic payment transaction being processed within the Automated Clearing House (ACH) network.

Signature

public void setStandardEntryClassCode(commercepayments.StandardEntryClassCode standardEntryClassCode)

Parameters

Return Value

Type: void