Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Interface IPaymentGateway

Authorizes and processes Payments.

Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public interface IPaymentGateway

Properties

Settings

Gets or sets the configuration gateway data. This data typically includes information like gateway URL, account info and so on.

Declaration
IDictionary<string, string> Settings { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

The settings.

Methods

ProcessPayment(Payment, ref String)

Processes a payment. Can be used for both positive and negative transactions.

Declaration
bool ProcessPayment(Payment payment, ref string message)
Parameters
Type Name Description
Payment payment

The payment to be processed.

System.String message

The message passed back, most often an error if transaction failed.

Returns
Type Description
System.Boolean

True if process successfully; otherwise False.