The CheckoutPaymentViewModel is used for the checkout view that customers use to complete their purchase. 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 CheckoutPaymentViewModel object will contain all of the necessary details about payment for an instance of your customer completing an order in your Hotcakes Commerce store.


The following table gives you details on the various members of the CheckoutPaymentViewModel object.  The descriptions are based upon default functionality and the default Viewset included with Hotcakes.

Member Type Description
AcceptedCardTypes List<CardType>

Contains the acceptable cart types for payment on checkout, as defined in the administration area.

DataCompanyAccountNumber String If an order uses "Company Account" as payment method, this will have a value.
DataCreditCard CardData Stores PA-DSS compliant information about the credit card whichever entered by customer during checkout.
DataPurchaseOrderNumber String If the checkout uses the "Purchase Order" payment method, this should contain a purchase order (PO) number.
NoPaymentNeeded Bool If order total is zero and order is not recurring then this is set as true.
PaymentMethods List<PaymentMethod> List of enabled payment methods availalbe to use during checkout.
SelectedMethodId String Payment method that was selected by the customer. Customers may only choose and use one.


Have more questions? Submit a request

Need More Help?

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