C# Класс Nop.Plugin.Payments.GoogleCheckout.GoogleCheckoutPaymentProcessor

GoogleCheckout payment processor
Наследование: Nop.Core.Plugins.BasePlugin, IPaymentMethod
Показать файл Открыть проект

Открытые методы

Метод Описание
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
GetNotificationAcknowledgmentText ( ) : string

Get notification acknowledgment text

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

Gets a route for payment info

GoogleCheckoutPaymentProcessor ( ISettingService settingService, IWebHelper webHelper, ITaxService taxService, IShippingService shippingService, IOrderTotalCalculationService orderTotalCalculationService, IProductAttributeFormatter productAttributeFormatter, IPriceCalculationService priceCalculationService, IWorkContext workContext, ICustomerService customerService, IGenericAttributeService genericAttributeService, ICountryService countryService, IStateProvinceService stateProvinceService, IOrderProcessingService orderProcessingService, IOrderService orderService, ILogger logger, System.Web.HttpContextBase httpContext ) : System
Install ( ) : void
PostCartToGoogle ( GCheckout.Checkout.CheckoutShoppingCartRequest req, IList cart ) : GCheckout.Util.GCheckoutResponse

Post cart to google

PostProcessPayment ( Nop.Services.Payments.PostProcessPaymentRequest postProcessPaymentRequest ) : void

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

ProcessCallBackRequest ( string xmlData ) : void

Process google callback request

ProcessPayment ( Nop.Services.Payments.ProcessPaymentRequest processPaymentRequest ) : Nop.Services.Payments.ProcessPaymentResult

Process a payment

ProcessRecurringPayment ( Nop.Services.Payments.ProcessPaymentRequest processPaymentRequest ) : Nop.Services.Payments.ProcessPaymentResult

Process recurring payment

Refund ( Nop.Services.Payments.RefundPaymentRequest refundPaymentRequest ) : Nop.Services.Payments.RefundPaymentResult

Refunds a payment

Uninstall ( ) : void
VerifyMessageAuthentication ( string authStr ) : bool

Verifies message authentication

Void ( Nop.Services.Payments.VoidPaymentRequest voidPaymentRequest ) : Nop.Services.Payments.VoidPaymentResult

Voids a payment

Приватные методы

Метод Описание
GetMerchantOrderByGoogleOrderId ( string googleOrderId ) : Nop.Core.Domain.Orders.Order
LogMessage ( string message ) : void
ProcessErrorNotification ( string xmlData ) : void
ProcessNewOrderNotification ( string xmlData ) : void
ProcessOrderStateChangeNotification ( string xmlData ) : void
ProcessRiskInformationNotification ( string xmlData ) : void

Описание методов

CanRePostProcessPayment() публичный Метод

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
Результат bool

CancelRecurringPayment() публичный Метод

Cancels a recurring payment
public CancelRecurringPayment ( Nop.Services.Payments.CancelRecurringPaymentRequest cancelPaymentRequest ) : Nop.Services.Payments.CancelRecurringPaymentResult
cancelPaymentRequest Nop.Services.Payments.CancelRecurringPaymentRequest Request
Результат Nop.Services.Payments.CancelRecurringPaymentResult

Capture() публичный Метод

Captures payment
public Capture ( Nop.Services.Payments.CapturePaymentRequest capturePaymentRequest ) : Nop.Services.Payments.CapturePaymentResult
capturePaymentRequest Nop.Services.Payments.CapturePaymentRequest Capture payment request
Результат Nop.Services.Payments.CapturePaymentResult

GetAdditionalHandlingFee() публичный Метод

Gets additional handling fee
public GetAdditionalHandlingFee ( IList cart ) : decimal
cart IList Shoping cart
Результат decimal

GetConfigurationRoute() публичный Метод

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
Результат void

GetControllerType() публичный Метод

public GetControllerType ( ) : Type
Результат System.Type

GetNotificationAcknowledgmentText() публичный Метод

Get notification acknowledgment text
public GetNotificationAcknowledgmentText ( ) : string
Результат string

GetPaymentInfoRoute() публичный Метод

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
Результат void

GoogleCheckoutPaymentProcessor() публичный Метод

public GoogleCheckoutPaymentProcessor ( ISettingService settingService, IWebHelper webHelper, ITaxService taxService, IShippingService shippingService, IOrderTotalCalculationService orderTotalCalculationService, IProductAttributeFormatter productAttributeFormatter, IPriceCalculationService priceCalculationService, IWorkContext workContext, ICustomerService customerService, IGenericAttributeService genericAttributeService, ICountryService countryService, IStateProvinceService stateProvinceService, IOrderProcessingService orderProcessingService, IOrderService orderService, ILogger logger, System.Web.HttpContextBase httpContext ) : System
settingService ISettingService
webHelper IWebHelper
taxService ITaxService
shippingService IShippingService
orderTotalCalculationService IOrderTotalCalculationService
productAttributeFormatter IProductAttributeFormatter
priceCalculationService IPriceCalculationService
workContext IWorkContext
customerService ICustomerService
genericAttributeService IGenericAttributeService
countryService ICountryService
stateProvinceService IStateProvinceService
orderProcessingService IOrderProcessingService
orderService IOrderService
logger ILogger
httpContext System.Web.HttpContextBase
Результат System

Install() публичный Метод

public Install ( ) : void
Результат void

PostCartToGoogle() публичный Метод

Post cart to google
public PostCartToGoogle ( GCheckout.Checkout.CheckoutShoppingCartRequest req, IList cart ) : GCheckout.Util.GCheckoutResponse
req GCheckout.Checkout.CheckoutShoppingCartRequest Pre-generated request
cart IList Shopping cart
Результат GCheckout.Util.GCheckoutResponse

PostProcessPayment() публичный Метод

Post process payment (used by payment gateways that require redirecting to a third-party URL)
public PostProcessPayment ( Nop.Services.Payments.PostProcessPaymentRequest postProcessPaymentRequest ) : void
postProcessPaymentRequest Nop.Services.Payments.PostProcessPaymentRequest Payment info required for an order processing
Результат void

ProcessCallBackRequest() публичный Метод

Process google callback request
public ProcessCallBackRequest ( string xmlData ) : void
xmlData string xml data
Результат void

ProcessPayment() публичный Метод

Process a payment
public ProcessPayment ( Nop.Services.Payments.ProcessPaymentRequest processPaymentRequest ) : Nop.Services.Payments.ProcessPaymentResult
processPaymentRequest Nop.Services.Payments.ProcessPaymentRequest Payment info required for an order processing
Результат Nop.Services.Payments.ProcessPaymentResult

ProcessRecurringPayment() публичный Метод

Process recurring payment
public ProcessRecurringPayment ( Nop.Services.Payments.ProcessPaymentRequest processPaymentRequest ) : Nop.Services.Payments.ProcessPaymentResult
processPaymentRequest Nop.Services.Payments.ProcessPaymentRequest Payment info required for an order processing
Результат Nop.Services.Payments.ProcessPaymentResult

Refund() публичный Метод

Refunds a payment
public Refund ( Nop.Services.Payments.RefundPaymentRequest refundPaymentRequest ) : Nop.Services.Payments.RefundPaymentResult
refundPaymentRequest Nop.Services.Payments.RefundPaymentRequest Request
Результат Nop.Services.Payments.RefundPaymentResult

Uninstall() публичный Метод

public Uninstall ( ) : void
Результат void

VerifyMessageAuthentication() публичный Метод

Verifies message authentication
public VerifyMessageAuthentication ( string authStr ) : bool
authStr string Authenticatio string
Результат bool

Void() публичный Метод

Voids a payment
public Void ( Nop.Services.Payments.VoidPaymentRequest voidPaymentRequest ) : Nop.Services.Payments.VoidPaymentResult
voidPaymentRequest Nop.Services.Payments.VoidPaymentRequest Request
Результат Nop.Services.Payments.VoidPaymentResult