Confirm the key mode first
Alipay supports public-key mode and certificate mode, with different parameters and signing behaviour. Signing certificate-mode requests as public-key mode fails every time, and vice versa. This is the most frequent cause.
Check the app’s current key status in the open platform console rather than going from memory. Apps that have rotated certificates are especially prone to confusion.
Parameter-level problems
Parameters must be sorted and URL-encoded according to the rules; Chinese characters and special symbols handled incorrectly break verification. Empty values must not participate in signing. Amounts must use the unit and format the API expects — the string "0.01" and the number 0.01 behave differently across languages.
A subtler one: the gateway URL points at sandbox or an old domain, so the request never reaches production while the error looks like a signature problem.
When the app will not open the cashier
If server-side signing is correct but the app cannot start payment, the order string is usually malformed, or the app package name and signing certificate do not match what was registered on the open platform, or the merchant account is not bound to the app. Verify all three on a real device; emulators often hide the problem.
We help with key configuration, signing implementation and integration debugging. App review and merchant qualification are decided by the platform.
FAQ
Is a signature error the same as verification failure?
Not exactly. A signature error often means your locally generated signature is wrong (keys or parameters); a verification failure means the counterparty rejected it (public key mismatch or altered parameters). The error code and message usually tell them apart.
How soon do new keys take effect?
Configuration is usually immediate, but caches and old processes may still use the previous keys. Restart the service and run a small verification transaction.
Can one key pair sign for several apps?
Not recommended. Each app has its own key configuration; sharing them creates confusion during troubleshooting and adds security risk.
Related questions
Further reading
- WeChat Pay Merchant Setup Service details
- Debugging WeChat Pay Callbacks: Did the Request Arrive
- What Are the Common API Configuration Errors in Official Account Development? A Checklist Approach
- What to Do When Alipay Merchant Setup Documents Are Rejected? Correction Tips and Document Checklist
- Why WeChat Pay Settlements Get Delayed: Checking Order, Records and Bank Side
Sources & References
The following are public sources. Always check the latest requirements on the official authority or platform page.
