winzou_state_machine:
  sylius_payment:
    callbacks:
      after:
        flux_se.sylius_payum_stripe_refund:
          # By default, this callback is disabled to avoid mistake
          # you can enable it using this plugin config : `refund_disabled: false`
          on: ["refund"]
          do: ["@flux_se.sylius_payum_stripe.state_machine.refund", "__invoke"]
          args: ["object", "event.getState()"]
        flux_se.sylius_payum_stripe_cancel:
          on: ["cancel"]
          do: ["@flux_se.sylius_payum_stripe.state_machine.cancel", "__invoke"]
          args: ["object", "event.getState()"]
        flux_se.sylius_payum_stripe_complete_authorized:
          on: ["complete"]
          do: ["@flux_se.sylius_payum_stripe.state_machine.capture_authorized", "__invoke"]
          args: ["object", "event.getState()"]
