Interface IPaymentGateway
Payment Gateway Interface. Every payment option should implement this interface.
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public interface IPaymentGateway
Properties
Settings
Returns the configuration data associated with a gateway. 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 the 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. |
System.String | message | The message. |
Returns
Type | Description |
---|---|
System.Boolean |