Newer Version Available
AlternativePaymentMethodRequest Class
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)
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
Signature
public String accountId {get; set;}
Property Value
Type: String
Signature
public String email {get; set;}
Property Value
Type: String
gatewayToken
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
Signature
public String gatewayTokenDetails {get; set;}
Property Value
Type: String
name
Signature
public String name {get; set;}
Property Value
Type: String
AlternativePaymentMethodRequest Methods
The following are methods for AlternativePaymentMethodRequest.
equals(obj)
Signature
public Boolean equals(Object obj)
Parameters
- obj
- Type: Object
- External object whose key is to be validated.
Return Value
Type: Boolean
hashCode()
Signature
public Integer hashCode()
Return Value
Type: Integer