Select one or more tags, then press “Search Plugins”

Find Plugin with any / all of the selected criteria
Search Plugin

SablePay For WooCommerce Wordpress Plugin - Rating, Reviews, Demo & Download

SablePay For WooCommerce Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

SablePay for WooCommerce adds a stablecoin payment method to your store. It works with both the classic checkout and the Cart & Checkout blocks.

  1. The customer chooses SablePay at checkout and places the order.
  2. 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.
  3. The plugin checks the payment status automatically.
  4. 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.php for 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

  1. The payment window: amount, converted stablecoin amount, QR code and expiry countdown.

    The payment window: amount, converted stablecoin amount, QR code and expiry countdown.

  2. Payment successful, with transaction details.

    Payment successful, with transaction details.

  3. WooCommerce → Settings → Payments → SablePay: enable the gateway, set the title and description, and enter your API credentials.

    WooCommerce → Settings → Payments → SablePay: enable the gateway, set the title and description, and enter your API credentials.


Reviews & Comments