Newer Version Available
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.
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