ConnectApi.AlternativePaymentMethod

A payment method that doesn’t have a defined Salesforce entity such as CardPaymentMethod or DigitalWallet. Common examples of alternative payment methods include CashOnDeliver, Klarna, and Direct Debit. AlternativePaymentMethod functions the same as any other type of payment method for processing transactions in the payment gateway.

Subclass of ConnectApi.BasePaymentMethodRequest

PropertyTypeDescriptionRequired or OptionalAvailable Version
accountIdStringSalesforce Payments account to which this payment method is linked.Required54.0
commentsStringDetails about a record added by a user. Maximum of 1,000 characters.Optional54.0
emailStringEmail address of the card holder.Optional54.0
gatewayTokenStringA unique, alphanumeric ID, called a token, that a payment gateway generates when it first processes a payment. The token replaces the actual payment data so that the data is kept secure. This token is stored as encrypted text, and can be used for recurring payments.Required54.0
gatewayToken​DetailsStringDetailed information about the gateway token.Required54.0
nameStringName that you assign to the payment method object.Optional54.0