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
  • Understanding HTML, CSS, JavaScript
  • Familiarity with template languages
  • Familiarity with ASP.NET MVC Razor

Getting Started

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.

Member Type Description
AvailableCardTypes List<CardType>

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.


Have more questions? Submit a request

Need More Help?

Do you need more assistance with this article? Please review your support options.