C# Class Nop.Plugin.Payments.AuthorizeNet.AuthorizeNetPaymentProcessor

AuthorizeNet payment processor
Inheritance: Nop.Core.Plugins.BasePlugin, IPaymentMethod
显示文件 Open project: emilianionascu/NopCommerce

Public Methods

Method Description
AuthorizeNetPaymentProcessor ( Nop.Plugin.Payments.AuthorizeNet.AuthorizeNetPaymentSettings authorizeNetPaymentSettings, ISettingService settingService, ICurrencyService currencyService, ICustomerService customerService, Nop.Core.Domain.Directory.CurrencySettings currencySettings, IWebHelper webHelper, IOrderTotalCalculationService orderTotalCalculationService, Nop.Core.Domain.StoreInformationSettings storeInformationSettings ) : System
CanRePostProcessPayment ( Nop.Core.Domain.Orders.Order order ) : bool

Gets a value indicating whether customers can complete a payment after order is placed but not completed (for redirection payment methods)

CancelRecurringPayment ( Nop.Services.Payments.CancelRecurringPaymentRequest cancelPaymentRequest ) : Nop.Services.Payments.CancelRecurringPaymentResult

Cancels a recurring payment

Capture ( Nop.Services.Payments.CapturePaymentRequest capturePaymentRequest ) : Nop.Services.Payments.CapturePaymentResult

Captures payment

GetAdditionalHandlingFee ( IList cart ) : decimal

Gets additional handling fee

GetConfigurationRoute ( string &actionName, string &controllerName, RouteValueDictionary &routeValues ) : void

Gets a route for provider configuration

GetControllerType ( ) : Type
GetPaymentInfoRoute ( string &actionName, string &controllerName, RouteValueDictionary &routeValues ) : void

Gets a route for payment info

Install ( ) : void
PostProcessPayment ( PostProcessPaymentRequest postProcessPaymentRequest ) : void

Post process payment (used by payment gateways that require redirecting to a third-party URL)

ProcessPayment ( ProcessPaymentRequest processPaymentRequest ) : ProcessPaymentResult

Process a payment

ProcessRecurringPayment ( ProcessPaymentRequest processPaymentRequest ) : ProcessPaymentResult

Process recurring payment

Refund ( RefundPaymentRequest refundPaymentRequest ) : RefundPaymentResult

Refunds a payment

Uninstall ( ) : void
Void ( VoidPaymentRequest voidPaymentRequest ) : VoidPaymentResult

Voids a payment

Private Methods

Method Description
GetApiVersion ( ) : string

Gets Authorize.NET API version

GetAuthorizeNETUrl ( ) : string

Gets Authorize.NET URL

GetErrors ( ANetApiResponseType response ) : string

Get errors (ARB Support)

PopulateMerchantAuthentication ( ) : MerchantAuthenticationType

Method Details

AuthorizeNetPaymentProcessor() public method

public AuthorizeNetPaymentProcessor ( Nop.Plugin.Payments.AuthorizeNet.AuthorizeNetPaymentSettings authorizeNetPaymentSettings, ISettingService settingService, ICurrencyService currencyService, ICustomerService customerService, Nop.Core.Domain.Directory.CurrencySettings currencySettings, IWebHelper webHelper, IOrderTotalCalculationService orderTotalCalculationService, Nop.Core.Domain.StoreInformationSettings storeInformationSettings ) : System
authorizeNetPaymentSettings Nop.Plugin.Payments.AuthorizeNet.AuthorizeNetPaymentSettings
settingService ISettingService
currencyService ICurrencyService
customerService ICustomerService
currencySettings Nop.Core.Domain.Directory.CurrencySettings
webHelper IWebHelper
orderTotalCalculationService IOrderTotalCalculationService
storeInformationSettings Nop.Core.Domain.StoreInformationSettings
return System

CanRePostProcessPayment() public method

Gets a value indicating whether customers can complete a payment after order is placed but not completed (for redirection payment methods)
public CanRePostProcessPayment ( Nop.Core.Domain.Orders.Order order ) : bool
order Nop.Core.Domain.Orders.Order Order
return bool

CancelRecurringPayment() public method

Cancels a recurring payment
public CancelRecurringPayment ( Nop.Services.Payments.CancelRecurringPaymentRequest cancelPaymentRequest ) : Nop.Services.Payments.CancelRecurringPaymentResult
cancelPaymentRequest Nop.Services.Payments.CancelRecurringPaymentRequest Request
return Nop.Services.Payments.CancelRecurringPaymentResult

Capture() public method

Captures payment
public Capture ( Nop.Services.Payments.CapturePaymentRequest capturePaymentRequest ) : Nop.Services.Payments.CapturePaymentResult
capturePaymentRequest Nop.Services.Payments.CapturePaymentRequest Capture payment request
return Nop.Services.Payments.CapturePaymentResult

GetAdditionalHandlingFee() public method

Gets additional handling fee
public GetAdditionalHandlingFee ( IList cart ) : decimal
cart IList Shoping cart
return decimal

GetConfigurationRoute() public method

Gets a route for provider configuration
public GetConfigurationRoute ( string &actionName, string &controllerName, RouteValueDictionary &routeValues ) : void
actionName string Action name
controllerName string Controller name
routeValues RouteValueDictionary Route values
return void

GetControllerType() public method

public GetControllerType ( ) : Type
return Type

GetPaymentInfoRoute() public method

Gets a route for payment info
public GetPaymentInfoRoute ( string &actionName, string &controllerName, RouteValueDictionary &routeValues ) : void
actionName string Action name
controllerName string Controller name
routeValues RouteValueDictionary Route values
return void

Install() public method

public Install ( ) : void
return void

PostProcessPayment() public method

Post process payment (used by payment gateways that require redirecting to a third-party URL)
public PostProcessPayment ( PostProcessPaymentRequest postProcessPaymentRequest ) : void
postProcessPaymentRequest PostProcessPaymentRequest Payment info required for an order processing
return void

ProcessPayment() public method

Process a payment
public ProcessPayment ( ProcessPaymentRequest processPaymentRequest ) : ProcessPaymentResult
processPaymentRequest ProcessPaymentRequest Payment info required for an order processing
return ProcessPaymentResult

ProcessRecurringPayment() public method

Process recurring payment
public ProcessRecurringPayment ( ProcessPaymentRequest processPaymentRequest ) : ProcessPaymentResult
processPaymentRequest ProcessPaymentRequest Payment info required for an order processing
return ProcessPaymentResult

Refund() public method

Refunds a payment
public Refund ( RefundPaymentRequest refundPaymentRequest ) : RefundPaymentResult
refundPaymentRequest RefundPaymentRequest Request
return RefundPaymentResult

Uninstall() public method

public Uninstall ( ) : void
return void

Void() public method

Voids a payment
public Void ( VoidPaymentRequest voidPaymentRequest ) : VoidPaymentResult
voidPaymentRequest VoidPaymentRequest Request
return VoidPaymentResult