Add missing sub_mchid and sub_appid fields to CombineCloseRequest.SubOrders #3656
+75
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
CombineCloseRequest.SubOrders
class was missing two required fields for WeChat Pay Combined Payment Close Order API, causing 403 NOAUTH errors when calling the API.Problem
When using the Combined Payment Close Order API (合单支付 - 关闭订单), the request was failing with a 403 error code "NOAUTH" (商户无权限) because the
SubOrders
class was missing the requiredsub_mchid
andsub_appid
fields.Changes Made
Added the missing fields to
CombineCloseRequest.SubOrders
:sub_mchid
(二级商户号) - Required field for service provider sub-merchant IDsub_appid
(子商户应用ID) - Required field for sub-merchant application IDBoth fields include:
@SerializedName
annotations for JSON serializationVerification
This fix resolves the WeChat Pay API authentication issue by providing the required merchant identification fields.
Fixes #3611.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.