#
# Module services
#
# Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
# See https://www.x-cart.com/license-agreement.html for license details.

services:
  _defaults:
    autowire: true

  XPay\XPaymentsCloud\LifetimeHook\Hook:
    tags:
      - { name: xcart.lifetime-hook, type: remove, method: onRemove }

  XPay\XPaymentsCloud\EventListener\PaymentProcessor:
    tags:
      - {name: kernel.event_listener, event: xcart.payment.action.generate_widget_data.xpay.xpayments_cloud.model.payment.processor.xpayments_cloud, method: onPaymentGenerateWidgetDataAction}
      - {name: kernel.event_listener, event: xcart.payment.action.init.xpay.xpayments_cloud.model.payment.processor.xpayments_cloud, method: onPaymentInitAction}
      - {name: kernel.event_listener, event: xcart.payment.action.pay.xpay.xpayments_cloud.model.payment.processor.xpayments_cloud, method: onPaymentPayAction}
