A WooCommerce plugin that provides fake Credit Card and ACH/eCheck payment gateways for testing checkout flows — no real payments, no coupon workarounds, no third-party sandbox accounts needed.
- Sandbox Credit Card Gateway — accepts any valid card number, validates with Luhn algorithm, expiry date, and CVV checks
- Sandbox ACH/eCheck Gateway — accepts check name, routing number (9 digits), and account number (4-17 digits)
- Failure Simulation — trigger failed payments on demand for testing error handling
- Refund Support — process test refunds from the WooCommerce admin order page
- Admin Configurable — customize gateway titles and descriptions from WooCommerce settings
- Secure — nonce verification, input sanitization, and output escaping throughout
| Scenario | Card Number | Expiry | CVV |
|---|---|---|---|
| Success | Any valid card number (e.g. 4111111111111111) |
Any future date | Any 3-4 digits |
| Failure | 4929000000022 |
Any future date | Any 3-4 digits |
| Scenario | Routing Number | Account Number |
|---|---|---|
| Success (on-hold) | Any valid 9-digit number (e.g. 121000248) |
Any 4-17 digit number |
| Failure | 000000000 |
Any 4-17 digit number |
- Go to Plugins > Add New in your WordPress admin
- Search for "Sandbox Payment Gateway"
- Click Install Now, then Activate
- Download the latest release and upload the
sandbox-payment-gatewayfolder to/wp-content/plugins/ - Activate through the Plugins menu in WordPress
- Go to WooCommerce > Settings > Payments to enable the sandbox gateways
Yes. Since payments are simulated, no charges will ever be made regardless of the card number used.
Successful eCheck payments are placed in on-hold status to simulate the real-world verification period.
Development happens at GitHub. Pull requests welcome.
Plugin page assets are in .wordpress-org/ and deployed automatically via GitHub Actions when changes are pushed to main.
- Fix: ACH payment form now renders correctly on checkout
- Fix: ACH eCheck icon loads correctly
- Fix: Visa card icon now shown in credit card gateway
- Fix: Class name typo (WpsgAch → WspgAch)
- Security: WooCommerce dependency check with admin notice
- Security: Nonce verification on payment processing
- Enhancement: ACH routing and account number validation
- Enhancement: ACH failure simulation (routing number
000000000) - Enhancement: Refund support for both gateways
- Enhancement: Proper text domain (
sandbox-payment-gateway) - Enhancement:
Requires Plugins: woocommerceheader (WordPress 6.5+)
- Compatibility: Tested with WordPress 6.8
- WooCommerce: Refactored gateways to extend WC_Payment_Gateway with hardened input handling
- DevOps: GitHub Action to auto-deploy WordPress.org assets
- Initial release
This plugin is licensed under the GPLv2 or later.