Skip to content

Possible problem where a paid_out event arrives after a failed event #7

@nicdwilson

Description

@nicdwilson

Describe the Bug

This is a potential bug. I don't have access to enough data to be 100% sure on this. However, this thread should serve as a point to collect more data.

In 9285450-zen we see that a failed order did not run payment_complete when the successful transaction is received after a failed notice.

Since the site had no logs activated, it's pretty tough to figure out what is going on here, but logs from GoCardless appear to confirm that a paid_out was received after a failed first attempt to charge this subscription.

In the order note we have The payment failed but the reason for the failure was not provided, usually for regulatory reasons. Status der Bestellung von In Bearbeitung auf Fehlgeschlagen geändert.

We can see no _gocardless_temporary_activated data in the database. This would be correct, because if an end status (failed) is received, it is removed.

I think the problem here is that submitted was received for this payment before failed and therefore the paid_out arrived with:

  • The order in a failed state
  • _gocardless_temporary_activated had been removed.

The paid_out event in GoCardless shows a 200 response from the site. Assuming that the order was marked failed, the problem is the logic here.

However: we need more data and a potential confirmation on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions