Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
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