The CreditCardViewModel is used primarily by the PaymentViewModel class to update billing information when payment issues occur during checkout. This article will help you understand what's available to you in the view model.
The following pre-requisites will be necessary to accomplish the goals of this article:
- General understanding of template engines
- Familiarity with template languages
- Familiarity with ASP.NET MVC Razor
There are no tasks needed to get started with understanding this object.
The CreditCardViewModel object will contain all of the details of a credit card payment in your Hotcakes Commerce store.
The following table gives you details on the various members of the CreditCardViewModel object. The descriptions are based upon default functionality and the default Viewset included with Hotcakes.
List of enabled card types to be shown on the payment area of the checkout view.
|CardHolderName||String||Name of the person authorized to use the card, as it appears on the card.|
|CardNumber||String||The number on the front of the card.|
|ExpirationMonth||Int||Month when the card expires.|
|ExpirationYear||Int||Year when the card expires.|
|SecurityCode||String||Security code, normally found on the back of the card.|