当你的参数没问题的时候,检查下你的微信商户平台,看看违规里面是不是有消息,大概率是闲置商家收款了、
use Yansongda\Pay\Pay;
// 启用调试模式
Pay::config(['_force' => true]);
// 示例:发起APP支付
result = Pay::wechat()->app(
result); // 打印响应结果
} catch (\Exception e->getMessage();
// 打印更多异常细节
echo '详细异常: ' . print_r($e, true);
}
或者调一下错误详情