AlternativePaymentMethodRequest Class

The class contains information about the alternative payment method that are required for a gateway to process the request.

CommercePayments

The following are constructors for AlternativePaymentMethodRequest.

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.

  • accountId

    Salesforce account ID to which this payment method is linked.

  • email

    Email address of the card holder.

  • gatewayToken

    A unique, alphanumeric ID, that a payment gateway generates when it first processes a payment.

  • gatewayTokenDetails

    Information about the gateway token.

  • name

    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.

  • 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.

  • hashCode()

    Maintains the integrity of lists of type AlternativePaymentMethodRequest by determining the uniqueness of the external object records in a list.

  • toString()

    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