• Resolved slate

    (@meanwood)


    This was the configuration page of the “old” plugin: https://i.imgur.com/KZ2DKdy.png, it seems “Paid after expiration” is gone now, which status will an invoice switch to if it is being paid after expiration in woocommerce?

    • This topic was modified 2 years, 8 months ago by slate.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ndeet

    (@ndeet)

    Good question, at the time of working on this part there was only InvoiceExpired and InvoiceSettled (among other events), which did not cover that case as the invoice would expire and not change or fire any event afterwards.

    But since a few releases there is an InvoicePaymentSettled event that fires even when an invoice is expired. In the payload it provides a boolean if the payment settled after expiration. We could use this to reproduce that status. I will work on that next week and update you here when it is ready.

    Thread Starter slate

    (@meanwood)

    Yeah, I mean in the old version it was possible to set it, so probably can use some of the “legacy” code?

    Plugin Author ndeet

    (@ndeet)

    No not really, the new plugin is completely new codebase and therefore not just an update of the old one. It is based on the Greenfield API which allows much more features like refunds than the old BitPay compatible API. Some things were done differently also because of learnings from limitations of the old API.

    With the above mentioned event it should be doable to get that same functionality back but there needs to be some upgrade functionality as we currently do not subscribe to that event, so the webhook needs to get updated with the installation the new release the plugin.

    Thread Starter slate

    (@meanwood)

    Understood, thanks for the explanation

    Plugin Author ndeet

    (@ndeet)

    Hey @meanwood!

    Took longer than expected as I needed to rework some webhook handling, introduce a new order status and do an update routine but this is now available as of version 1.0.3.

    Thread Starter slate

    (@meanwood)

    Great, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Option for “Paid after expiration” missing’ is closed to new replies.