Linux 软件免费装

Xcash for WooCommerce

开发者 xcash
更新时间 2026年8月19日 16:23
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce payments blockchain crypto USDT

下载

详情介绍:

Overview Xcash for WooCommerce enables merchants to accept crypto payments through the Xcash payment gateway. Customers complete payments on Xcash’s hosted checkout while WooCommerce stays in sync via secure webhooks. The gateway works with both classic shortcodes and WooCommerce Checkout Blocks, supports fiat-denominated invoices, and offers bilingual (English/Chinese) strings out of the box. Features Requirements How It Works
  1. Shopper chooses “Xcash” during checkout.
  2. The plugin creates an invoice through the Xcash API using a bounded unique WooCommerce order reference as out_no and the order's WooCommerce currency as the pricing currency.
  3. Customer is redirected to the Xcash-hosted payment page (pay_url) to finalize the crypto transfer.
  4. Xcash notifies the store via webhook once the payment is detected and confirmed.
  5. The order is automatically marked as paid and annotated with invoice/transaction details.
External Service This plugin connects to Xcash, a cryptocurrency payment gateway, to create hosted crypto checkout invoices and receive payment status notifications. Xcash service information is available at https://xca.sh, developer documentation is available at https://docs.xca.sh, the Xcash Terms of Service are available at https://xca.sh/terms/, and the Xcash Privacy Policy is available at https://xca.sh/privacy/. The merchant must create an Xcash account at https://dash.xca.sh and enter the project App ID and HMAC key in the WooCommerce gateway settings. The gateway URL defaults to https://pay.xca.sh and can be changed if the merchant runs their own compatible Xcash gateway. When a shopper places an order with this payment method, or when an administrator uses the “Test Configuration” button, the plugin sends a signed HTTP(S) request to the configured Xcash gateway invoice API (https://pay.xca.sh/v1/invoice by default). The request includes authentication headers (XC-Appid, XC-Nonce, XC-Timestamp, and XC-Signature) and an invoice JSON body containing the WooCommerce order reference (out_no), order title, order total amount, pricing currency, invoice duration, the store return URL, the store webhook notification URL, and optional merchant-configured payment method restrictions. After the invoice is created, the shopper is redirected to the hosted Xcash payment URL returned by the service. When Xcash detects and confirms payment, Xcash sends a signed webhook request back to the store. The plugin validates the signature and stores invoice/payment identifiers and transaction details from the webhook, such as Xcash invoice ID (sys_no), merchant order reference (out_no), confirmation flag, cryptocurrency, payment amount, pay address, transaction hash, chain, and block number, as WooCommerce order metadata and displays the core fields on the admin order screen. Gateway Configuration Webhook & Security Localization Compatibility

安装:

  1. Download the plugin ZIP or clone the repository.
  2. Upload the xcash-for-woocommerce folder to /wp-content/plugins/.
  3. Activate Xcash for WooCommerce via Plugins → Installed Plugins.
  4. Go to WooCommerce → Settings → Payments, enable “Xcash”, fill in your credentials, and save.

升级注意事项:

1.0.8 Loads admin scripts and styles through the WordPress enqueue API and keeps admin notices scoped to the Plugins screen. 1.0.7 Shows core Xcash payment details on admin orders. 1.0.6 Removes the obsolete webhook URL display from the gateway settings and changes the default payment duration to 20 minutes. 1.0.5 Adds the configurable gateway URL setting and refreshed Simplified Chinese language files. 1.0.4 Fixes invoice creation against the current Xcash API and aligns the pricing currency with your store currency. Recommended for all users. 1.0.3 Initial release submitted to the WordPress.org plugin directory.

常见问题:

Where do I find my App ID and HMAC key?

Log in to your Xcash merchant dashboard (https://dash.xca.sh), open your project, and copy the App ID and HMAC key from the project settings.

Why does the “Test Configuration” button fail?

Ensure App ID and HMAC key are filled, and that your WooCommerce store currency is a fiat currency supported by Xcash. If you restrict methods, confirm the JSON is valid and that the configured payment methods exist in your Xcash project. Check WooCommerce → Status → Logs for xcash-for-woocommerce entries.

How do I verify webhook delivery?

The plugin sends the store webhook endpoint as invoice-level notify_url for each new invoice. Keep Xcash project notifications enabled. Payments will trigger a POST request with the same signature scheme as the API. Successful processing returns ok. You can resend failed notifications from the Xcash console.

Does the plugin support WooCommerce HPOS?

Yes, the gateway declares compatibility with HPOS/custom order tables and works on both legacy and HPOS-enabled stores.

Is there Chinese language support?

All strings ship with Simplified Chinese translations (xcash-for-woocommerce-zh_CN.po source and xcash-for-woocommerce-zh_CN.mo runtime file). WordPress will load the locale automatically when the site language is set to Simplified Chinese; English remains the default for other locales.

更新日志:

1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3