Description
SablePay for WooCommerce adds a stablecoin payment method to your store. It works with both the classic checkout and the Cart & Checkout blocks.
- The customer chooses SablePay at checkout and places the order.
- A payment window opens with the order total, a QR code and an expiry countdown. The customer scans the code with their wallet app or clicks to pay on the same device.
- The plugin checks the payment status automatically.
- As soon as SablePay confirms the payment, the order is marked paid (Processing or Completed, as usual in WooCommerce), stock is reduced and the customer sees the order confirmation page.
Features
- WooCommerce payment gateway: classic checkout and Checkout block, HPOS (High-Performance Order Storage) compatible.
- Ready-made payment window: QR code, converted stablecoin amount, “click to pay” link and an expiry countdown. The same window as the SablePay WordPress plugin and the SablePay web SDKs.
- The amount is always the order total: it is computed on your server, never taken from the browser.
- Orders are marked paid from SablePay’s own status: the browser never decides that an order is paid. The amount paid is checked against the order total; mismatches put the order on hold.
- Reliable even if the customer closes the tab: open payments are re-checked in the background every minute (Action Scheduler), and again when the customer reaches the confirmation page.
- Order details: SablePay payment ID, transaction hash, token and network are saved on the order and shown on the order screen, with order notes for every step.
- “Check SablePay payment status” order action for administrators.
- Secure by design: your API key stays on your server. Browser requests go through your own site (
/wp-json/sablepay-wc/v1/), protected by the order key, a nonce and per-IP rate limits. - Sandbox and live modes: the environment is detected from your API key. Connection test on the settings screen.
- Works with the SablePay WordPress plugin: leave the credentials empty to reuse the ones from Settings SablePay, or define them once in
wp-config.phpfor both plugins. - No external scripts: the QR code encoder and all assets are included in the plugin.
For developers
// PHP: the SDK instance used by the gateway
$status = sablepay_wc()->getPaymentStatus( $payment_id );
// Re-check an order against SablePay (marks it paid when completed)
sablepay_wc_sync_order( $order_id );
// React to a completed payment (fires once per order)
add_action( 'sablepay_wc_payment_completed', function ( WC_Order $order, array $status ) {
// $status['txHash'], $status['paidToken'], $status['paidNetwork'] ...
}, 10, 2 );
Actions: 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.
External services
This plugin connects to the SablePay payment API, operated by SablePay, to create stablecoin payments for orders and check their status. This connection is required: the plugin cannot take payments without it.
When data is sent
- When a customer reaches the payment page after placing an order with SablePay, the plugin creates a payment (or reuses the open one).
- While the payment window is open, the plugin checks the payment status every few seconds until the payment finishes.
- In the background, about once a minute while a payment is open, and when the customer reaches the order confirmation page.
- When an administrator clicks “Test connection” (fetches the most recent payment) or “Check SablePay payment status” on an order.
What data is sent
- Your SablePay API key and Merchant ID, sent from your server only and never exposed to visitors.
- The order total, the order’s line items (product name, quantity, price, SKU), shipping and fees, and order metadata: order ID, order number, currency and your site’s domain.
- Payment IDs, when checking a payment’s status.
The plugin does not send customers’ names, email addresses, addresses or IP addresses to SablePay. Requests go from your web server to:
- Sandbox:
https://sandbox-api.sablepay.io/api/v1/ - Production:
https://api.sablepay.io/api/v1/ - or a custom API base URL that you set on the settings screen.
The customer completes the payment on SablePay’s payment page, which is linked from the QR code, using their own wallet.
- SablePay Terms of Service: https://www.sablepay.io/terms-of-service
- SablePay Privacy Policy: https://www.sablepay.io/privacy-policy
Third-party libraries
- qrcode-generator 1.4.4 by Kazuhiko Arase, MIT License: https://github.com/kazuhikoarase/qrcode-generator
Screenshots



Installation
- Make sure WooCommerce is installed and active.
- Go to Plugins Add New Plugin, search for SablePay for WooCommerce, then click Install Now and Activate.
- Go to WooCommerce Settings Payments SablePay.
- Tick Enable SablePay stablecoin payments, enter your API Key (
sable_sk_sand_…for sandbox,sable_sk_live_…for production) and your Merchant ID. You can find both in your SablePay dashboard. - Click Save changes, then Test connection.
- Place a test order with a sandbox key.
Already using the SablePay plugin? Leave the API key and Merchant ID empty: the gateway uses the credentials from Settings SablePay.
Optional: define the credentials in 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' );
FAQ
-
Do I need a SablePay account?
-
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. -
Which coins and networks are supported?
-
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.
-
Which currency is the amount in?
-
The plugin sends the order total in your store currency. Make sure your SablePay merchant account uses the same currency as your WooCommerce store.
-
When is an order marked as paid?
-
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.
-
What happens if the customer closes the payment window?
-
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.
-
What happens when the QR code expires?
-
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.
-
Can I refund through SablePay?
-
Not from WooCommerce yet. Issue the refund from SablePay or your wallet, then record it in WooCommerce with a manual refund.
-
Does it work with the block-based checkout?
-
Yes. It works with the Checkout block and with the classic
[woocommerce_checkout]shortcode. -
Is my API key safe?
-
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.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“SablePay for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “SablePay for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.3.13
- Initial release.
- WooCommerce payment gateway for SablePay stablecoin payments: classic checkout and Checkout block, HPOS compatible.
- Payment window with QR code, live status tracking and expiry countdown (same as the SablePay WordPress plugin).
- Orders marked paid from the SablePay API status, with amount verification, background checks and an admin “Check SablePay payment status” action.
- Secure REST proxy: the API key never reaches the browser; the amount always comes from the order.
- Credentials from the gateway settings,
wp-config.phpconstants or the SablePay WordPress plugin.
