---
schema_version: "1"
id: 9167c477451302bf2c83bb17398dda7838b191a920172422dbb3545fb36bb85b
title: PostAuthApiPaymentMethodRequest Constructors
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_commercepayments_PostAuthApiPaymentMethodRequest_constructors.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthApiPaymentMethodRequest_constructors.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1fd8d2330fe4b534d8fc3aa7877584141274258452912d9cb845d50c927d00b8
description: Lists the constructors for the PostAuthApiPaymentMethodRequest.
---
# PostAuthApiPaymentMethodRequest Constructors

Lists the constructors for the PostAuthApiPaymentMethodRequest.

The following are constructors for PostAuthApiPaymentMethodRequest.

- **[PostAuthApiPaymentMethodRequest(cardPaymentMethodRequest)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthApiPaymentMethodRequest_ctor.htm)**  
    Constructs a sample cardPaymentMethodRequest. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.
- **[PostAuthApiPaymentMethodRequest(AlternativePaymentMethodRequest)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthApiPaymentMethodRequest_ctor_alt.htm)**  
    Constructs a sample alternativePaymentMethodRequest. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.
- **[PostAuthApiPaymentMethodRequest()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthApiPaymentMethodRequest_ctor_2.htm)**  
    Constructor for PostAuthApiPaymentMethodRequest.