Class PaymentManager
Payment manager acts as proxy between methods that call data layer functions and the facade layer. The methods here check if the appropriate security is set and that the data is cached.
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Orders.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public static class PaymentManager
Methods
GetPaymentMethod(Guid)
Returns active payment method by id.
Declaration
public static PaymentMethodDto GetPaymentMethod(Guid paymentMethodId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | paymentMethodId | The payment method id. |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethod(Guid, Boolean)
Returns payment method by id.
Declaration
public static PaymentMethodDto GetPaymentMethod(Guid paymentMethodId, bool returnInactive)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | paymentMethodId | PaymentMethodId |
System.Boolean | returnInactive | if set to |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethodBySystemName(String, String)
Returns active payment method by system name.
Declaration
public static PaymentMethodDto GetPaymentMethodBySystemName(string name, string languageid)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.String | languageid | The languageid. |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethodBySystemName(String, String, Boolean)
Returns active payment method by system name.
Declaration
public static PaymentMethodDto GetPaymentMethodBySystemName(string name, string languageid, bool returnInactive)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.String | languageid | The languageid. |
System.Boolean | returnInactive | if set to |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethodBySystemName(String, String, String)
Returns active payment method by system name.
Declaration
public static PaymentMethodDto GetPaymentMethodBySystemName(string name, string languageid, string marketId)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.String | languageid | The languageid. |
System.String | marketId | The marketid |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethodBySystemName(String, String, String, Boolean)
Returns payment method by system name.
Declaration
public static PaymentMethodDto GetPaymentMethodBySystemName(string name, string languageid, string marketId, bool returnInactive)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | PaymentMethod SystemKeyword |
System.String | languageid | The languageid. |
System.String | marketId | The marketid. |
System.Boolean | returnInactive | if set to |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethods(String)
Returns list of active payment methods.
Declaration
public static PaymentMethodDto GetPaymentMethods(string languageid)
Parameters
Type | Name | Description |
---|---|---|
System.String | languageid | The languageid. |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethods(String, Boolean)
Gets the payment methods.
Declaration
public static PaymentMethodDto GetPaymentMethods(string languageid, bool returnInactive)
Parameters
Type | Name | Description |
---|---|---|
System.String | languageid | The languageid. |
System.Boolean | returnInactive | if set to |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethodsByMarket(String)
Returns list of active payment methods.
Declaration
public static PaymentMethodDto GetPaymentMethodsByMarket(string marketid)
Parameters
Type | Name | Description |
---|---|---|
System.String | marketid | The marketid. |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethodsByMarket(String, String)
Returns list of active payment methods.
Declaration
public static PaymentMethodDto GetPaymentMethodsByMarket(string marketid, string languageid)
Parameters
Type | Name | Description |
---|---|---|
System.String | marketid | The marketid. |
System.String | languageid | The languageid. |
Returns
Type | Description |
---|---|
PaymentMethodDto |
GetPaymentMethodsByMarket(String, String, Boolean)
Gets the payment methods.
Declaration
public static PaymentMethodDto GetPaymentMethodsByMarket(string marketid, string languageid, bool returnInactive)
Parameters
Type | Name | Description |
---|---|---|
System.String | marketid | The marketId. |
System.String | languageid | The languageid. |
System.Boolean | returnInactive | if set to |
Returns
Type | Description |
---|---|
PaymentMethodDto |
SavePayment(PaymentMethodDto)
Saves the payment.
Declaration
public static void SavePayment(PaymentMethodDto dto)
Parameters
Type | Name | Description |
---|---|---|
PaymentMethodDto | dto | The dto. |