WeChat Pay selected the wrong amount to cancel the payment. Why is it that the wrong amount is still selected before re-selecting the amount to pay? The order number is regenerated. Including the prepay_id generated by repayment is also different. But the amount is still the same as before
The parameters are different if the amounts are different twice. But why is the amount paid still the same? consult! !
Then I guess the amount you sent is wrong. This is related to the program.
Refer to jsapi official account payment: php official account payment
It is estimated that the same merchant order number does not support modifying the amount. Please generate a new order number and try it
In fact, the amount you transfer to WeChat will be displayed when paying. It seems that the amount you sent to the WeChat interface is incorrect.
When calling WxPayUnifiedOrder, is there any change to parameter SetTotal_fee
If you initiate WeChat payment
The order number passed by the merchant is bound to the amount. If the amount changes, your order number will have to be regenerated and other information will also change accordingly
There is also the payment amount The format is specific
You only have the front-end code here and can’t see your specific problem