Try our conversational search powered by Generative AI!

Interface IPaymentGateway

Authorizes and processes Payments.

Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 13.30.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.