Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed renewal orders ought to update the order status to failed. #38

Closed
peterwilsoncc opened this issue May 7, 2024 · 0 comments · Fixed by #40
Closed

Failed renewal orders ought to update the order status to failed. #38

peterwilsoncc opened this issue May 7, 2024 · 0 comments · Fixed by #40
Milestone

Comments

@peterwilsoncc
Copy link
Contributor

The process_subscription_payment() method throws an exception when a payment fails, instead it should call $order->update_status( 'failed' ); to allow subscriptions to action the failure correctly.

Subscriptions hooks in to the woocommerce_order_status_changed action to record whether a payment is successful or fails. This hook is used to trigger various flows, including the retrying of payments.

PR incoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants