PaymentViewModel

Overview

The PaymentViewModel is used anywhere that payment is rendered view to customers, such as checkout and payment error. This article will help you understand what's available to you in the view model.

Requirements

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. 

PaymentViewModel

The PaymentViewModel object will contain all of the details required to render the payment section of a view in your Hotcakes Commerce store.

Members

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

Member Type Description
CreditCardForm CreditCardViewModel

Contains all of the properties required to render the credit card form to customers.

PaymentMethods List<PaymentMethod> This property lists all of the payment methods that may be made available to customers when checking out.
SelectedMethodId String This property contains the payment method that the customer chose to use during checkout.

 

Have more questions? Submit a request

Need More Help?

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