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

accountHolderType
Type: commercepayments.AccountHolderType

Return Value

Type: void

setAccountId(accountId)

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

Signature

public void setAccountId(String accountId)

Parameters

accountId
Type: String

Return Value

Type: void

setAccountType(accountType)

Sets the account type for the bank payment method.

Signature

public void setAccountType(commercepayments.AccountType accountType)

Parameters

accountType
Type: commercepayments.AccountType

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

bankCode
Type: String

Return Value

Type: void

setBankName(bankName)

Sets the bank name for the bank payment method.

Signature

public void setBankName(String bankName)

Parameters

bankName
Type: String

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

comments
Type: String

Return Value

Type: void

setEmail(email)

Sets the email address of the bank account holder.

Signature

public void setEmail(String email)

Parameters

email
Type: String

Return Value

Type: void

setGatewayToken(gatewayToken)

Sets the gateway token value that the gateway returned.

Signature

public void setGatewayToken(String gatewayToken)

Parameters

gatewayToken
Type: String

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

lastFour
Type: String

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

name
Type: String

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

standardEntryClassCode
Type: commercepayments.StandardEntryClassCode

Return Value

Type: void