AlternativePaymentMethodRequest Class
The class contains information about the alternative payment method that are required for a gateway to process the request.
The following are constructors for AlternativePaymentMethodRequest.
-
AlternativePaymentMethodRequest(gatewayToken)
Creates a new instance of the
CommercePayments.AlternativePaymentMethodRequestclass.
Creates a new instance of the CommercePayments.AlternativePaymentMethodRequest class.
public AlternativePaymentMethodRequest(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.
The following are properties for AlternativePaymentMethodRequest.
-
Salesforce account ID to which this payment method is linked.
-
Email address of the card holder.
-
A unique, alphanumeric ID, that a payment gateway generates when it first processes a payment.
-
Information about the gateway token.
-
Name that you assign to the PaymentMethod object.
Salesforce account ID to which this payment method is linked.
public String accountId {get; set;}
Type: String
Email address of the card holder.
public String email {get; set;}
Type: String
A unique, alphanumeric ID, 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.
public String gatewayToken {get; set;}
Type: String
Information about the gateway token.
public String gatewayTokenDetails {get; set;}
Type: String
Name that you assign to the PaymentMethod object.
public String name {get; set;}
Type: String
The following are methods for AlternativePaymentMethodRequest.
-
Maintains the integrity of lists of type
AlternativePaymentMethodRequestby determining the equality of external objects in a list. This method is dynamic and based on the equals method in Java. -
Maintains the integrity of lists of type
AlternativePaymentMethodRequestby determining the uniqueness of the external object records in a list. -
Converts a date to a string.
Maintains the integrity of lists of type AlternativePaymentMethodRequest by determining the equality of external objects in a list. This method is dynamic and based on the equals method in Java.
public Boolean equals(Object obj)
-
obj:
Type: Object External object whose key is to be validated.
Type: Boolean
Maintains the integrity of lists of type AlternativePaymentMethodRequest by determining the uniqueness of the external object records in a list.
public Integer hashCode()
Type: Integer
Converts a date to a string.
public String toString()
Type: String