Interface IPaymentOption

Summary description for IPaymentOption

Namespace: Mediachase.Commerce.Website
Assembly: Mediachase.Commerce.Website.dll
Version: 10.8.0
Syntax
public interface IPaymentOption

Methods

PostProcess(OrderForm)

This method is called after the order is placed. This method should be used by the gateways that want to redirect customer to their site.

Declaration
bool PostProcess(OrderForm orderForm)
Parameters
Type Name Description
OrderForm orderForm

The order form.

Returns
Type Description
System.Boolean

PreProcess(OrderForm)

This method is called before the order is completed. This method should check all the parameters and validate the credit card or other parameters accepted.

Declaration
Payment PreProcess(OrderForm form)
Parameters
Type Name Description
OrderForm form

The form.

Returns
Type Description
Payment

The payment information.

ValidateData()

Validates input data for the control. In case of Credit card pre authentication will be the best way to validate. The error message if any should be displayed within a control itself.

Declaration
bool ValidateData()
Returns
Type Description
System.Boolean

Returns false if validation is failed.