SablePay Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
SablePay lets your customers pay in stablecoins by scanning a QR code with their phone or clicking to pay on the same device. The plugin handles the whole payment flow for you:
- A payment is created through the SablePay API.
- A payment window opens with the amount, a QR code and an expiry countdown.
- The plugin checks the payment status automatically until it is completed, failed or expired.
- The customer sees a success or failure screen, and your site can react to the result.
Features
- Payment button shortcode: add
[sablepay_button amount="10.50"]to any page or post. No code needed. - Ready-made payment window: QR code, converted stablecoin amount, “click to pay” link and an expiry countdown.
- Live status tracking: checks every 3 seconds for the first minute, then backs off to every 10 seconds.
- Secure by design: your API key is stored on your server and is never sent to visitors’ browsers. Browser requests go through your own site (
/wp-json/sablepay/v1/), protected by a nonce and per-IP rate limits. - Sandbox and live modes: the environment is detected from your API key.
- Connection test: check your credentials from the settings screen.
- Developer SDKs: a JavaScript SDK (
window.SablePay) and a PHP SDK (sablepay()), with the same API as the SablePay Angular, React and Android SDKs. - Hooks for fulfilment:
sablepay_payment_completed,sablepay_payment_created,sablepay_create_payment_requestand more. - No external scripts: the QR code encoder and all assets are included in the plugin.
Shortcode
[sablepay_button amount="10.50" label="Pay with SablePay" item="Coffee" metadata="order_id:123" success_url="/thank-you/"]
amount(required): payment amount, 0.01 to 1,000,000.label: button text.item/quantity: optional line item sent with the payment.metadata: optionalkey:valuepairs, separated by commas.success_url: where to send the customer after payment.?sablepay_payment_id=…is added to the URL.
For developers
// JavaScript (enqueue with sablepay_enqueue() in PHP)
SablePay.initializeFromWordPress();
SablePay.launchPayment(
{ amount: 10.5, metadata: { order_id: '123' } },
{ onSuccess: (r) => console.log(r.transactionHash), onFailure: (e) => console.log(e.message) }
);
// PHP: always verify on the server before fulfilling an order
$status = sablepay()->getPaymentStatus( $payment_id );
if ( SablePayPaymentStatus::isCompleted( $status['status'] ) ) { /* fulfil */ }
Hooks and filters: sablepay_payment_created, sablepay_payment_status_checked, sablepay_payment_completed, sablepay_create_payment_request, sablepay_rest_permission, sablepay_rest_require_nonce, sablepay_rate_limits, sablepay_settings, sablepay_client_config.
External services
This plugin connects to the SablePay payment API, operated by SablePay, to create stablecoin payments and check their status. This connection is required: the plugin cannot take payments without it.
When data is sent
- When a visitor clicks a SablePay payment button, or your site calls
SablePay.launchPayment(), the plugin creates a payment. - While the payment window is open, the plugin checks the payment status every few seconds until the payment finishes.
- When an administrator clicks “Test connection” on the settings screen, the plugin fetches the most recent payment.
- When your own code calls the PHP SDK (for example
sablepay()->getPaymentStatus()).
What data is sent
- Your SablePay API key and Merchant ID, sent from your server only and never exposed to visitors.
- The payment amount, any line items (name, quantity, price, SKU) and any metadata you add (for example an order ID).
- Payment IDs, when checking a payment’s status.
The plugin does not send visitors’ names, email addresses or IP addresses to SablePay. Requests go from your web server to:
- Sandbox:
https://sandbox-app.sablepay.io/api/v1/ - Production:
https://app.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
The payment window: amount, converted stablecoin amount, QR code and expiry countdown.
Payment successful, with transaction details.

