The payment methods are represented by the Telerik.Sitefinity.Ecommerce.Orders.Model.PaymentMethod class. The PaymentMethod class exposes the following specific properties:
Gets or sets the title of the payment method.
Gets or sets the description of the payment method.
Gets or sets the type of the payment method. For more information, see the Types of payment method section of this article.
Gets or sets the ID of the payment processor provider. This property is only required when creating a payment method of type payment processor. For more information, see the Payment processors article.
Gets or sets the serialized JSON string of the settings of the payment processor. This property is only required when creating a payment method of type payment processor. For more information, see the Payment processors article.
Types of payment methods
To specify the type of the payment method you use the PaymentMethodType property of the PaymentMethod class. It is of type Telerik.Sitefinity.Ecommerce.Orders.Model.PaymentMethodType. The enumeration has the following values:
Payment will be processed through a payment processor (e.g PayPal, Authorize.net).
Payment will be processed offline (e.g. bank wire, cash).
This section contains the following examples: