Skip to content

Sylius payment callbacks are fired twice #5

Description

@Holicz

Hi there,

I am using this plugin on my Sylius eshop and I got a problem when some orders which are paid through GoPay fire the payment events twice.

My events are configured like this:

winzou_state_machine:
    sylius_payment:
        callbacks:
            after:
                generate_invoice:
                    on: [ 'complete' ]
                    do: [ '@App\StateMachine\Order\Callback\InvoiceGenerator', 'generateInvoice' ]
                    args: [ 'object' ]

Which e.g. means that most of the orders generated two invoices, send users duplicate emails, etc.

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions