Linux 软件免费装
Banner图

SablePay for WooCommerce

开发者 rahul153
更新时间 2026年12月2日 03:51
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: MIT
版权网址: 版权信息

标签

woocommerce payment gateway crypto payments usdc stablecoin

下载

1.3.13

详情介绍:

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 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.

安装:

  1. Make sure WooCommerce is installed and active.
  2. Go to Plugins → Add New Plugin, search for SablePay for WooCommerce, then click Install Now and Activate.
  3. Go to WooCommerce → Settings → Payments → SablePay.
  4. 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.
  5. Click Save changes, then Test connection.
  6. 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' );

屏幕截图:

  • Payment successful, with transaction details.
  • WooCommerce → Settings → Payments → SablePay: enable the gateway, set the title and description, and enter your API credentials.

升级注意事项:

1.3.13 Initial release.

常见问题:

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.

更新日志:

1.3.13