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.
CardPaymentMethodRequest Class
Namespace
Usage
This class contains details about the card used as a payment method for authorization, sale, or tokenization transaction requests. The gateway adapter reads the fields of this class object while constructing a transaction JSON request to send to the payment gateway. The object of this class is available as the cardPaymentMethod field in the SaleApiPaymentMethodRequest Class, AuthApiPaymentMethodRequest Class, and PaymentMethodTokenizationRequest Class.
Example
This code sample retrieves the cardPaymentMethodRequest object from the paymentMethod class.
1commercepayments.CardPaymentMethodRequest cardPaymentMethod = paymentMethod.cardPaymentMethod;CardPaymentMethodRequest Constructors
The following are constructors for CardPaymentMethodRequest.
CardPaymentMethodRequest(cardCategory)
Signature
global CardPaymentMethodRequest(commercepayments.CardCategory cardCategory)
Parameters
- cardCategory: Type: CardCategory Defines whether the card payment method is a credit card or a debit card.
CardPaymentMethodRequest Properties
The following are properties for CardPaymentMethodRequest.
autoPay
Signature
global Boolean autoPay {get; set;}
Property Value
Type: Boolean
cardCategory
Signature
global commercepayments.CardCategory cardCategory {get; set;}
Property Value
Type: CardCategory
cardHolderFirstName
Signature
global String cardHolderFirstName {get; set;}
Property Value
Type: String
cardHolderLastName
Signature
global String cardHolderLastName {get; set;}
Property Value
Type: String
inputCardType
Signature
global String inputCardType {get; set;}
Property Value
Type: String
CardPaymentMethodRequest Methods
The following are methods for CardPaymentMethodRequest.
equals(obj)
Signature
global Boolean equals(Object obj)
Parameters
- obj: Type: Object External object whose key is to be validated.
Return Value
Type: Boolean