Dougong
Channel Overview
Dougong is an aggregated payment product by Huifu (Adapay). DaxPay integrates via Huifu V2 Trade SDK, covering WeChat, Alipay, and UnionPay.
Supported Payment Methods
- WeChat QR (merchant scan): Returns QR code link
- Alipay QR (merchant scan): Returns QR code link
- UnionPay QR (merchant scan): Returns QR code link
- WeChat JSAPI (Official Account): Requires openId, returns invoke params
- WeChat Mini-program: Requires openId, returns invoke params
- Alipay JSAPI: Requires openId / buyerId, returns tradeNO
Configuration
Add this channel in the Admin panel under "Channel Management":
- Huifu Merchant ID (huifuId, required per transaction)
- Merchant App ID
- Service Provider System ID (sysId)
- Product ID (productId)
- Merchant RSA private key (PEM PKCS#8)
- Dougong RSA public key (PEM, for verification)
Signature
RSA (PEM PKCS#8, merchant private key sign / Dougong public key verify)
Callback Handling
- Async notification callback supported
- Callback URL must be configured in the Dougong merchant platform
Notes
- Configure callback URL in Huifu merchant platform
- Ensure server IP is whitelisted
- Sandbox and production use different gateway URLs