| 开发者 | rahul153 |
|---|---|
| 更新时间 | 2026年12月2日 03:51 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | MIT |
| 版权网址: | 版权信息 |
/wp-json/sablepay-wc/v1/), protected by the order key, a nonce and per-IP rate limits.wp-config.php for both plugins.sablepay_wc_loaded, sablepay_wc_payment_created, sablepay_wc_payment_status_checked, sablepay_wc_payment_completed, sablepay_wc_payment_failed, sablepay_wc_payment_expired, sablepay_wc_payment_amount_mismatch.
Filters: sablepay_wc_settings, sablepay_wc_payment_request, sablepay_wc_is_available, sablepay_wc_icon, sablepay_wc_client_config, sablepay_wc_rest_permission, sablepay_wc_rest_require_nonce, sablepay_wc_rate_limits.
sable_sk_sand_… for sandbox, sable_sk_live_… for production) and your Merchant ID. You can find both in your SablePay dashboard.wp-config.php instead (used by both SablePay plugins):
define( 'SABLEPAY_API_KEY', 'sable_sk_live_...' ); define( 'SABLEPAY_MERCHANT_ID', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' );Yes. Sign up at https://www.sablepay.io to get an API key and Merchant ID. Use a sandbox key (sable_sk_sand_…) for testing.
That depends on your SablePay account. Customers can pay with the stablecoins and networks enabled for your merchant account. The token and network actually used are saved on the order.
The plugin sends the order total in your store currency. Make sure your SablePay merchant account uses the same currency as your WooCommerce store.
Only when the SablePay API reports the payment as COMPLETED. The plugin then calls WooCommerce's standard payment completion, so the order moves to Processing (or Completed for virtual/downloadable orders), stock is reduced and the usual emails are sent. If the amount does not match the order total, the order is put On hold instead.
The order stays Pending payment. They can pay later from the link in their account or from the "Return to payment" link. If they had already paid, the background check marks the order paid within a few minutes.
The payment expires (default: 10 minutes, configurable). The order stays Pending payment, and a new payment is created when the customer clicks "Pay with SablePay" again.
Not from WooCommerce yet. Issue the refund from SablePay or your wallet, then record it in WooCommerce with a manual refund.
Yes. It works with the Checkout block and with the classic [woocommerce_checkout] shortcode.
Yes. The key is stored on your server and is only used for server-to-server requests. The settings screen never shows the saved key.
wp-config.php constants or the SablePay WordPress plugin.