Sandbox Payment Gateway for WooCommerce

Description

Sandbox Payment Gateway eliminates the need to create coupons or configure real payment gateways when testing your WooCommerce checkout. It provides two fake payment methods that simulate real checkout behavior without processing any actual payments.

Sandbox Credit Card

Accepts any valid credit card number with Luhn algorithm validation, expiry date checks, and CVV verification.

Sandbox ACH / eCheck

Accepts check name, routing number (9 digits), and account number (4-17 digits). Successful payments are placed on-hold to simulate real-world eCheck verification.

Simulating a successful credit card transaction

Use any valid credit card details (e.g. card number 4111111111111111).

Simulating a failed credit card transaction

Use card number 4929000000022 with a valid expiry and CVV.

Simulating a successful eCheck transaction

Use any valid 9-digit routing number and 4-17 digit account number.

Simulating a failed eCheck transaction

Use routing number 000000000 with any valid account number.

Refunds

Both gateways support refunds from the WooCommerce admin order page. Since payments are simulated, refunds simply log a note on the order.

Development

The development of this plugin happens at GitHub.

If you want to contribute, fork the project and send a pull request.

Screenshots

  • Admin payments page showing all available payment gateways
  • Settings page for sandbox credit card
  • Settings page for sandbox eCheck
  • Credit card payment form on the checkout page
  • eCheck payment form on the checkout page
  • Admin order page showing transaction status and order notes

Installation

  1. Upload sandbox-payment-gateway to the /wp-content/plugins/ directory, or install directly from the WordPress plugin directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to WooCommerce > Settings > Payments to enable Sandbox Credit Card and/or Sandbox eCheck.

FAQ

Can I test with real credit cards?

Yes. No charges will be made as payments are fully simulated.

What status do eCheck payments receive?

Successful eCheck payments are set to “on-hold” to simulate the real-world verification period.

Reviews

Read all 1 review

Contributors & Developers

“Sandbox Payment Gateway for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.0

  • 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
  • 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 header for WooCommerce (WordPress 6.5+)

1.0.4

  • Compatibility: Marked as tested with WordPress 6.8
  • WooCommerce: Refactor gateways to extend WC_Payment_Gateway and harden input handling
  • DevOps: Add GitHub Action to auto-deploy WordPress.org assets

1.0.1

  • Initial Release