Newer Version Available
SaleApiPaymentMethodRequest Class
Namespace
Usage
This class holds information about a payment method that was used for a Sale request. SaleApiPaymentMethodRequest contains all the possible payment methods as fields, but only one value is populated for a given request. Gateway adapters use this class when constructing a sale request. The object of this class is obtained through the paymentMethod field on the SaleRequest object.
Example
1commercepayments.SaleApiPaymentMethodRequest paymentMethod = saleRequest.paymentMethod;SaleApiPaymentMethodRequest Constructors
The following are constructors for SaleApiPaymentMethodRequest.
SaleApiPaymentMethodRequest(cardPaymentMethodRequest)
Signature
global SaleApiPaymentMethodRequest(commercepayments.CardPaymentMethodRequest cardPaymentMethodRequest)
Parameters
- cardPaymentMethodRequest
- Type: CardPaymentMethodRequest
SaleApiPaymentMethodRequest Properties
The following are properties for SaleApiPaymentMethodRequest.
cardPaymentMethod
Signature
global commercepayments.CardPaymentMethodRequest cardPaymentMethod {get; set;}
Property Value
Type: CardPaymentMethodRequest
standardEntryClassCode
Signature
public commercepayments.StandardEntryClassCode standardEntryClassCode {get; set;}
Property Value
Type: commercepayments.StandardEntryClassCode
SaleApiPaymentMethodRequest Methods
The following are methods for SaleApiPaymentMethodRequest.
equals(obj)
Signature
global Boolean equals(Object obj)
Parameters
- obj
- Type: Object
Return Value
Type: Boolean
hashCode()
Signature
global Integer hashCode()
Return Value
Type: Integer