AlternativePaymentMethodResponse Class
The class contains the response details of the alternative payment method.
The following are methods for AlternativePaymentMethodResponse.
-
Sets the ID of the Salesforce payments account to which the payment method is linked.
-
Sets the notes about the payment method added by users.
-
Sets the email ID of the card holder.
-
Sets the token ID that a payment gateway generates when it first processes a payment.
-
setGatewayTokenDetails(gatewayTokenDetails)
Sets the details about the payment gateway token.
-
Sets the name that is assigned to the PaymentMethod object.
Sets the ID of the Salesforce payments account to which the payment method is linked.
public void setAccountId(Id accountId)
-
accountId:
Type: Id
Salesforce payments account ID.
Type: void
Sets the notes about the payment method added by users.
public void setComments(String comments)
-
comments:
Type: String
Notes about
the payment method added by users, maximum 1000 characters.
Type: void
Sets the email ID of the card holder.
public void setEmail(String email)
-
email:
Type: String
Email
ID of the card holder.
Type: void
Sets the token ID that a payment gateway generates when it first processes a payment.
public void setGatewayToken(String gatewayToken)
-
gatewayToken:
Type: String
A 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.
Type: void
Sets the details about the payment gateway token.
public void setGatewayTokenDetails(String gatewayTokenDetails)
-
gatewayTokenDetails:
Type: String
Detailed information about
the gateway token.
Type: void
Sets the name that is assigned to the PaymentMethod object.
public void setName(String name)
-
name:
Type: String
Name that you assign to the payment method object.
Type: void