Title: Sandbox Payment Gateway for WooCommerce
Author: webmonk
Published: <strong>2021 年 8 月 18 日</strong>
Last modified: 2026 年 3 月 22 日

---

搜索插件

![](https://ps.w.org/sandbox-payment-gateway/assets/banner-772x250.png?rev=3488006)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/sandbox-payment-gateway/assets/icon-256x256.png?rev=3375925)

# Sandbox Payment Gateway for WooCommerce

 作者：[webmonk](https://profiles.wordpress.org/webmonk/)

[下载](https://downloads.wordpress.org/plugin/sandbox-payment-gateway.zip)

 * [详情](https://cn.wordpress.org/plugins/sandbox-payment-gateway/#description)
 * [评价](https://cn.wordpress.org/plugins/sandbox-payment-gateway/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/sandbox-payment-gateway/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/sandbox-payment-gateway/#developers)

 [支持](https://wordpress.org/support/plugin/sandbox-payment-gateway/)

## 描述

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](https://github.com/webmonk/sandbox-payment-gateway).

If you want to contribute, [fork the project](https://github.com/webmonk/sandbox-payment-gateway)
and send a pull request.

## 屏幕截图

[⌊Admin payments page showing all available payment gateways⌉⌊Admin payments page
showing all available payment gateways⌉[

Admin payments page showing all available payment gateways

[⌊Settings page for sandbox credit card⌉⌊Settings page for sandbox credit card⌉[

Settings page for sandbox credit card

[⌊Settings page for sandbox eCheck⌉⌊Settings page for sandbox eCheck⌉[

Settings page for sandbox eCheck

[⌊Credit card payment form on the checkout page⌉⌊Credit card payment form on the
checkout page⌉[

Credit card payment form on the checkout page

[⌊eCheck payment form on the checkout page⌉⌊eCheck payment form on the checkout 
page⌉[

eCheck payment form on the checkout page

[⌊Admin order page showing transaction status and order notes⌉⌊Admin order page 
showing transaction status and order notes⌉[

Admin order page showing transaction status and order notes

## 安装

 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.

## 常见问题

### 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.

## 评价

![](https://secure.gravatar.com/avatar/9ebb94ca5c0c1b25b66b478927e9e48a20fa259f81cb5a83e5366cb6cbc8367c?
s=60&d=retro&r=g)

### 󠀁[Useful](https://wordpress.org/support/topic/useful-846/)󠁿

 [webmonk](https://profiles.wordpress.org/webmonk/) 2021 年 8 月 30 日

Useful plugin.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/sandbox-payment-gateway/reviews/)

## 贡献者及开发者

「Sandbox Payment Gateway for WooCommerce」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ webmonk ](https://profiles.wordpress.org/webmonk/)

[帮助将「Sandbox Payment Gateway for WooCommerce」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/sandbox-payment-gateway)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/sandbox-payment-gateway/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/sandbox-payment-gateway/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/sandbox-payment-gateway/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/sandbox-payment-gateway/)。

## 更新日志

#### 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

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**7 月前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **6.8.11**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/sandbox-payment-gateway/)
 * 标签
 * [demo](https://cn.wordpress.org/plugins/tags/demo/)[payment gateways](https://cn.wordpress.org/plugins/tags/payment-gateways/)
   [sandbox](https://cn.wordpress.org/plugins/tags/sandbox/)[testing](https://cn.wordpress.org/plugins/tags/testing/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/sandbox-payment-gateway/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/sandbox-payment-gateway/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/sandbox-payment-gateway/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/sandbox-payment-gateway/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/sandbox-payment-gateway/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/sandbox-payment-gateway/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/sandbox-payment-gateway/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/sandbox-payment-gateway/reviews/)

## 贡献者

 *   [ webmonk ](https://profiles.wordpress.org/webmonk/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/sandbox-payment-gateway/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/scopes90?locale.x=en_GB)