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.

CommercePayments

The following are methods for BankPaymentMethodResponse.

Sets the account holder type for the bank payment method.

public void setAccountHolderType(commercepayments.AccountHolderType accountHolderType)

Type: void

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

public void setAccountId(String accountId)

Type: void

Sets the account type for the bank payment method.

public void setAccountType(commercepayments.AccountType accountType)

Type: void

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

public void setBankCode(String bankCode)

Type: void

Sets the bank name for the bank payment method.

public void setBankName(String bankName)

Type: void

Sets the bank type for the bank payment method.

public void setBankType(commercepayments.BankType bankType)

  • bankType: Type: commercepayments.BankType

Type: void

Sets any additional details about the bank account.

public void setComments(String comments)

Type: void

Sets the email address of the bank account holder.

public void setEmail(String email)

Type: void

Sets the gateway token value that the gateway returned.

public void setGatewayToken(String gatewayToken)

Type: void

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

public void setGatewayTokenDetails(String gatewayTokenDetails)

  • gatewayTokenDetails: Type: String

Type: void

Sets the last four digits of the bank account number.

public void setLast4(String lastFour)

Type: void

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

public void setName(String name)

Type: void

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

public void setSavedPaymentMethodId(String savedPaymentMethodId)

  • savedPaymentMethodId: Type: String

Type: void

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

public void setStandardEntryClassCode(commercepayments.StandardEntryClassCode standardEntryClassCode)

Type: void