| 开发者 | swartz13 |
|---|---|
| 更新时间 | 2026年12月2日 02:14 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
noncepay-for-woocommerce folder to /wp-content/plugins/, then activate it.Install and activate this plugin, go to WooCommerce > Settings > Payments > NoncePay, enter a receiving wallet for each coin and save. Customers can then pay with those coins at checkout.
Enter your Tron address in the "USDT Tron TRC-20" row, or your 0x address in the "USDT BNB Smart Chain BEP-20" row. One 0x address works for every EVM network (Ethereum, BNB Smart Chain, Polygon, Base, Arbitrum, Optimism, Avalanche).
NoncePay is non-custodial. Each payment address forwards what it receives to the wallet you configured, minus the fee and the network cost. There is no balance to withdraw.
No. The callback URL created for each order identifies the payment, and funds go to the wallets you configure.
When the confirmed payments add up to at least the quoted amount minus the underpayment tolerance (0.5% by default). The order goes on hold as soon as a payment is seen on the blockchain, and to processing (or completed, if you choose) once enough is confirmed and forwarded to your wallet.
Too little: the order stays on hold with a note giving the missing amount; the customer can send the rest to the same address. When the rest is below the coin's minimum payment, the payment page asks for the minimum instead, because smaller payments are not processed. Too much: the order is paid and the excess is noted on the order. Too late: payment addresses never expire, so a late payment is still credited, but the order is marked paid only if the coins received still cover the order total at the rate of the moment; otherwise it is held for your review. A payment arriving on an order that was already cancelled always puts it on hold for review. Customers can also refresh an expired quote from the payment page before paying.
Orders created before the change keep their payment address, which forwards to the old wallet. When a customer pays such an order again, a new address forwarding to the new wallet is created, and payments still arriving on the old address are noted on the order for review.
Yes. Each transaction is credited once, and the amounts add up.
Yes. NoncePay only sends payment notifications to a public HTTPS address: on a site served over plain HTTP, the payment address cannot be created.
Notifications are delivered as signed POST requests to /wp-json/noncepay/v1/callback; the signature covers the request body, so path rewrites do not matter. Orders placed before version 1.3.0 still receive the older callbacks, which are signed over the exact URL NoncePay called. The plugin rebuilds it from the scheme, host and port of the callback URL saved on the order and the request path received. If your proxy changes the path, or you need another base, set it with a filter:
add_filter( 'noncepay_callback_base_url', function () { return 'https://shop.example.com'; } );
Make sure security plugins or firewalls do not block that REST route for anonymous requests.
Concurrent payment notifications for the same order are serialized with a MySQL/MariaDB named lock (GET_LOCK). It works on a single primary database server, which is what almost every WordPress host uses. Setups that send queries to several servers (read/write splitting across replicas, Galera multi-primary clusters, Vitess or PlanetScale) do not share named locks between servers; on those, make sure WordPress writes and these locks go to a single primary.
Yes. Define NONCEPAY_PUBLIC_KEY_PEM in wp-config.php with the pem value from https://api.noncepay.app/v2/public-key. By default the key is fetched from that URL and cached.
WooCommerce > Status > Logs, source noncepay-for-woocommerce. Errors are always logged; enable "Debug log" in the settings for API calls and callbacks. Per-order secrets are never logged.
No. Payments are already in your wallet: refund the customer from your wallet, then mark the order refunded.
/v2, and payment notifications are v2 events signed over a timestamp and the body. Orders created before this version keep working: their callbacks are still accepted and verified as before.noncepay-for-woocommerce), API at https://api.noncepay.app, callback route /wp-json/noncepay/v1/callback, filters noncepay_callback_base_url and noncepay_api_base_url, constant NONCEPAY_PUBLIC_KEY_PEM.