order-payment-limiter-woo
v1.0.0Automatically cancels WooCommerce orders after failed payment attempts.
README
WooCommerce Order Payment Limiter
Automatically cancels WooCommerce orders after failed payment attempts.
Supported Gateways
- Official WooCommerce Stripe Gateway
- Payment Plugins for Stripe WooCommerce
Installation
- Upload plugin folder to
/wp-content/plugins/ - Activate through WordPress admin
- Configure at WooCommerce > Payment Limiter
Settings
- Max Attempts: Number of failed payments before auto-cancel (default: 3)
- Cancel Status: Order status after cancellation (default: cancelled)
- Custom Note: Optional cancellation message
- Logging: Enable/disable detailed logs
- Reset on Success: Clear attempt counter on successful payment
How It Works
- Tracks failed payment attempts per order
- Adds order notes for each failed attempt
- Cancels order when max attempts reached
- Logs all activity to WooCommerce logs
Requirements
- WordPress 5.0+
- WooCommerce 5.0+
- PHP 7.4+
- One of the supported Stripe plugins
Hooks
The plugin hooks into:
wc_gateway_stripe_process_payment_error(Official Stripe)wc_stripe_process_charge_failed(Payment Plugins)woocommerce_payment_failed(Fallback)
License
GPL v2 or later
Details
- Version
- 1.0.0
- Last updated
- September 11, 2025
- License
- Apache-2.0
- Language
- PHP
- Stars
- 0
- Forks
- 0
Download
Download ZIPSponsor us
Our software is free forever. Sponsorships help us maintain 30+ plugins and build new tools for the WordPress ecosystem.
Contact us about sponsoringCommunity
Write for us
Got a WordPress story, tutorial, or opinion? We welcome guest posts from the community.
Pitch a guest post