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.

AuthApiPaymentMethodRequest Class

Sends information about a payment method to a gateway adapter during an authorization service call.

Namespace

CommercePayments

Usage

Contains information about the payment method that is used for an authorization request. It contains all available payment methods as fields, but populates only one field for each request. The gateway adapter uses this class when constructing an authorization request. An object of this class is available through the paymentMethod field on the AuthorizationRequest Class object.

AuthApiPaymentMethodRequest Constructors

The following are constructors for AuthApiPaymentMethodRequest.

AuthApiPaymentMethodRequest(cardPaymentMethodRequest)

Constructs a sample cardPaymentMethodRequest. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

Signature

global AuthApiPaymentMethodRequest(commercepayments.CardPaymentMethodRequest cardPaymentMethodRequest)

Parameters

AuthApiPaymentMethodRequest()

Constructor for AuthApiPaymentMethodRequest.

Signature

global AuthApiPaymentMethodRequest()

AuthApiPaymentMethodRequest Properties

The following are properties for AuthApiPaymentMethodRequest.

cardPaymentMethod

The card payment method object used in a payment method request.

Signature

global commercepayments.CardPaymentMethodRequest cardPaymentMethod {get; set;}