Wechat sandbox payment error report

I am doing Wechat official account payment, and I have been able to successfully pull up WeChat Pay, but if I change it to a sandbox version, I will report an error, as follows

sandbox environment compared to formal environment

  1. there are more sandboxnew links to place orders in a unified way
  2. api key passes through https://api.mch.weixin.qq.com.

is there any other difference? Total_fee is the same as the formal environment.

Mar.09,2021

this is a pit, in fact, you have done the right thing.
what is wrong is that Wechat's official document did not tell you the following:

  1. sandbox payment does not need to pull up the interface that enters the password (it is normal if the payment interface is not pulled up)
  2. when the sandbox payment is successful, an error will be reported, that is, the error in the screenshot in the landlord question (the error is normal)

all you have to do is ignore this error and continue to pay for successful business. Call the sandbox's query order API, and the status is paid.

Menu