Skip to content
Sign in
Npcink Pay Refund icon

Npcink Pay Refund

Admin refund workflow for Alipay and WeChat Pay orders with operator permissions, logs, and duplicate-refund locking.

Not scanned yet WordPress plugin

Install in

No install steps yet

Follow the steps on the source page.

Npcink Pay Refund adds a WordPress admin refund console for merchants who need to query and refund Alipay and WeChat Pay orders by payment order number.

The plugin is not a checkout gateway and does not create payments. It focuses on controlled refund operations after a payment has already been created by your existing payment flow.

Features:

  • Query Alipay and WeChat Pay orders from the WordPress admin.
  • Run full refunds for eligible paid orders.
  • Restrict refund actions to administrators and selected refund operators through a dedicated capability.
  • Store refund records in a custom WordPress database table.
  • Keep payment secrets in a separate non-autoloaded option.
  • Prevent duplicate refund submissions with order-level locking.
  • Export refund records for internal review.
  • Check local payment configuration before running live refund operations.

Third-party services

This plugin connects to external payment APIs only after an administrator configures the related merchant credentials and an authorized WordPress user performs a query, refund, or configuration check.

Alipay:

  • Service: Alipay Open Platform / Alipay EasySDK.
  • Endpoint used by the SDK: openapi.alipay.com.
  • Data sent for order queries: Alipay app credentials and the payment order number entered by the operator.
  • Data sent for refunds: Alipay app credentials, payment order number, refund amount, refund request number, and the refund reason entered by the operator.
  • Service information: https://open.alipay.com/

WeChat Pay:

  • Service: WeChat Pay API v3 through the official wechatpay/wechatpay PHP SDK.
  • Endpoint used by the SDK: official WeChat Pay API v3 endpoints, including refund and transaction APIs.
  • Data sent for order queries: WeChat Pay merchant credentials and the payment order number entered by the operator.
  • Data sent for refunds: WeChat Pay merchant credentials, payment order number, refund number, full refund amount, and the refund reason entered by the operator.
  • Service information: https://pay.weixin.qq.com/

By default, merchant private keys and public keys are stored in the site’s WordPress database options. Keep access to administrator accounts, backups, and database exports restricted.

For deployments that keep secrets outside the database, define NPCINK_PAY_REFUND_ZFB_PRIVATE_KEY, NPCINK_PAY_REFUND_ZFB_PUBLIC_KEY, NPCINK_PAY_REFUND_WX_CERT_KEY, and NPCINK_PAY_REFUND_WX_PLATFORM_PUBLIC_KEY in wp-config.php. These constants take precedence over saved option values and are never written by the settings form.

Written by Joobi from the project's own listing. See the source page

Admin Toolsalipaypaymentrefundwechat pay
27 Nov 2026
Version 1.3.10 released. Not scanned yet.

1.3.10

  • Confirm synchronous Alipay refunds only when the signed response confirms funds changed and the order and amount match. Otherwise, check the original refund request before retrying.
  • Update bundled Guzzle and PSR-7 dependencies.
  • Keep refund records, settings and credentials on deletion by default; respect existing saved cleanup choices.
  • Distinguish closed from refunded Alipay orders and invalid payment times from expired refund windows.

1.3.9

  • Hide empty pending queues and collapse actionable state details by default; retain immediate refund errors.
  • Fold advanced record filters, saved-key editors, legacy links and uninstall settings; hide unused pagination.
  • Show compact configuration check results and avoid duplicate pending notices on the refund page.
  • Released on November 6, 2026, after merchant confirmation for both payment channels.

1.3.8

  • Hardened refund response matching, terminal transitions, concurrency, secret access, key validation, and audit timestamps.
  • Isolated operator queues and added server-side record search and pagination.
  • Added real WordPress/MySQL failure-path checks and made full verification require an isolated site.
  • Local candidate only; live merchant validation must be recorded for the exact ZIP and SHA-256.

1.3.7

  • Removed legacy order-number suffix rewriting so provider queries use the exact entered order number.
  • Updated bundled Guzzle dependencies to versions without the August 2026 security advisories.
  • Added explicit confirmation, pending/uncertain refund visibility, and operator-scoped refund records.
  • Added dedicated refund capabilities, optional wp-config.php secret injection, and safer WordPress-timezone validation.
  • Advanced WeChat refund request numbers after terminal refund states so a later attempt does not reuse a closed refund number.

1.3.6

  • Updated the bundled Guzzle HTTP stack to versions without the July 2026 security advisories.
  • Kept plugin-header, runtime, and WordPress.org versions synchronized without hard-coded release numbers in tests.

1.3.5

  • Removed development-only documentation and Tea SDK source specifications from the release package.

1.3.4

  • Added stable provider refund request numbers and query-first retries for ambiguous Alipay and WeChat responses.
  • Required the response returned by EasySDK’s signature-verified Alipay execution path to match the submitted order and amount before recording local success.
  • Persisted the minimum refund context before provider submission so network interruptions cannot silently release duplicate-refund protection.
  • Allowed WeChat resubmission only after the signed refund query explicitly reports RESOURCE_NOT_EXISTS, reusing the original request parameters.
  • Added an admin reconciliation notice for uncertain provider results, pending WeChat refunds, and failed local audit writes.
  • Added GitHub Actions verification across PHP 8.1 and 8.4.

1.3.3

  • Declared the official WordPress.org contributor account.
  • Removed deprecated manual translation-domain loading for the WordPress.org directory.
  • Aligned the published PHP requirement with the packaged Composer dependencies at PHP 8.1.
  • Fixed full WeChat refunds for orders that used coupons by sending the original order total.
  • Preserved a reconciliation marker and duplicate-refund lock when local audit recording fails, with a gateway-free local retry path.
  • Removed the invalid placeholder Alipay callback URL from signed requests.

1.3.2

  • Made the WeChat refund result card more compact for WordPress admin use.
  • Displayed WeChat refund channel status in Chinese instead of raw API status codes.

1.3.1

  • Added cache-busting versions for admin CSS and JavaScript assets.
  • Improved WeChat refund status polling and processing-state handling.

1.3.0

  • Raised the development baseline to WordPress 6.0 and PHP 7.4.
  • Added order-level duplicate refund locking.
  • Improved refund button state handling while requests are in progress.
  • Hardened refund record queries and uninstall table removal.
  • Switched WeChat Pay integration to the official wechatpay/wechatpay SDK.
  • Added WeChat Pay public key ID / platform certificate serial number and public key / platform certificate fields for API v3 response verification.

1.2.0

  • Removed Vite admin assets and moved settings to native WordPress admin UI.
  • Stored payment secrets in a separate non-autoloaded option.
  • Added nonce and capability checks for refund query, refund action, and export requests.
  • Improved refund record export limits and CSV injection handling.
  • Added refund table indexes and schema version upgrades.
26 Jul 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)