AlternativePaymentMethodRequest Class
The class contains information about the alternative payment method that are required for
a gateway to process the request.
Namespace
Example
1commercepayments.PostAuthApiPaymentMethodRequest apiPaymentMethod =(commercepayments.PostAuthApiPaymentMethodRequest) postAuthRequest.paymentMethod;
2commercepayments.AlternativePaymentMethodRequest alternativePaymentMethod= (commercepayments.AlternativePaymentMethodRequest) apiPaymentMethod.alternativePaymentMethod;
3String gatewayToken = (String)alternativePaymentMethod.gatewayToken;
4String gatewayTokenDetails = (String)alternativePaymentMethod.gatewayTokenDetails;
5String name = (String)alternativePaymentMethod.name;
6String accountId = (String)alternativePaymentMethod.accountId;
7String email = (String)alternativePaymentMethod.email;AlternativePaymentMethodRequest Constructors
The following are constructors for AlternativePaymentMethodRequest.
AlternativePaymentMethodRequest(gatewayToken)
Creates a new instance of the CommercePayments.AlternativePaymentMethodRequest class.
Signature
public AlternativePaymentMethodRequest(String gatewayToken)
Parameters
- 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.
AlternativePaymentMethodRequest Properties
The following are properties for AlternativePaymentMethodRequest.
accountId
Salesforce account ID to which this payment method is linked.
Signature
public String accountId {get; set;}
Property Value
Type: String
Email address of the card holder.
Signature
public String email {get; set;}
Property Value
Type: String
gatewayToken
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.
Signature
public String gatewayToken {get; set;}
Property Value
Type: String
gatewayTokenDetails
Information about the gateway token.
Signature
public String gatewayTokenDetails {get; set;}
Property Value
Type: String
name
Name that you assign to the PaymentMethod object.
Signature
public String name {get; set;}
Property Value
Type: String
AlternativePaymentMethodRequest Methods
The following are methods for AlternativePaymentMethodRequest.
equals(obj)
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.
Signature
public Boolean equals(Object obj)
Parameters
- obj
- Type: Object
- External object whose key is to be validated.
Return Value
Type: Boolean
hashCode()
Maintains the integrity of lists of type AlternativePaymentMethodRequest by determining the uniqueness of the external object
records in a list.
Signature
public Integer hashCode()
Return Value
Type: Integer