• Resolved mpmurphy

    (@mpmurphy)


    We are using authorization-only Transaction Type and capturing the charge when order status is changed to Completed. We need the order status to be changed to Failed if the capture/settlement fails. What is the best way to achieve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hey @mpmurphy,

    Great question. If the capture does indeed fail (like if it expired), you can go on and manually set the order status to “failed” at that point. Just click on the “status” drop-down and select “failed.” Then update the order and that should do it for you.

    If you have any questions or trouble, let us know.

    Thanks!

    Thread Starter mpmurphy

    (@mpmurphy)

    @3sonsdevelopment,

    Thanks for the response. We are looking for a programmatic solution to this issue through a hook. I found documentation for wc_payment_gateway_[gateway_id]_complete_payment that fires after a successful payment transaction. I was hoping there would be something similar for a failed transaction.

    Hi @mpmurphy. Thanks for clarifying. Custom code questions like this are outside the scope of our support, but you can check out our Code Reference to track down more hooks to use.

    I’ll also leave this thread open in case others can recommend a hook to use.

    We also have a customizations page with resources for contacting a developer for help, and you can check out the WooCommerce Slack Community or WooCommerce FB group, which are great places for customization questions like this.

    Plugin Support Augustus – a11n

    (@augustuswp)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Capture / Settlement failures’ is closed to new replies.