Huifu (Adapay)
Channel Overview
Adapay is Huifu's aggregated payment product. DaxPay integrates the Adapay API in direct mode (product ada_pay); one app ID covers the full WeChat, Alipay, and UnionPay scenarios — with 16 methods it is the most complete extended channel. It shares the huifu channel with Dougong, distinguished by payment product.
Adapay is a commercial-edition extended channel; after purchasing the flagship edition the official team assists with onboarding and integration. See the channel overview.
Supported Payment Methods
| Underlying rail | Supported methods |
|---|---|
| QR code, JSAPI (Official Account), APP, H5, mini-program, barcode | |
| Alipay | QR code, JSAPI, APP, H5, PC web, barcode |
| UnionPay (QuickPass) | QR code, JSAPI, H5, barcode |
WeChat JSAPI and mini-program payments require a bound WeChat app (AppId) in the channel configuration.
Configuration Structure
The Adapay app ID and keys are configured per channel merchant; creating the merchant only registers the basics:
- Create the channel merchant: Merchant Workbench → Channel Merchants → Create, pick the Adapay product and fill in the merchant name (post-onboarding details are maintained under key configuration);
- Configure keys (Channel Merchant Detail → Key Configuration):
| Field | Notes |
|---|---|
| App ID | Adapay payment app app_id |
| API Key | Authorization header credential |
| Merchant RSA private key | Base64 string (PKCS#8), signs requests |
| Platform public key | Base64 string (X509), verifies responses and callbacks; leave empty to use the global default |
Signature & Callback
- Request signing: SHA1withRSA — merchant private key signs, Adapay platform public key verifies;
- Keys are bare Base64 strings (not PEM format) from the Adapay merchant portal;
- WeChat/UnionPay aggregate dynamic QR codes go through a special pre-order path handled automatically by the platform.
Notes
- Adapay has no sandbox — verify directly in production after configuring;
- Adapay and Dougong share the Huifu channel but are independent products; do not mix keys;
- The callback URL must be configured in the Adapay merchant portal.