找不到postJson方法 #2465
Unanswered
dongzheng911
asked this question in
Q&A
找不到postJson方法
#2465
Replies: 1 comment 2 replies
-
改成腾讯云源,解决了。。。。。。。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
use EasyWeChat\Pay\Application;
$app = new Application($config);
$response = $app->getClient()->postJson("v3/pay/transactions/jsapi", [
"mchid" => "1518700000", // <---- 请修改为您的商户号
"out_trade_no" => "native12177525012012070352333'.rand(1,1000).'",
"appid" => "wx6222e9f48a0xxxxx", // <---- 请修改为服务号的 appid
"description" => "Image形象店-深圳腾大-QQ公仔",
"notify_url" => "https://weixin.qq.com/",
"amount" => [
"total" => 1,
"currency" => "CNY"
],
"payer" => [
"openid" => "o4GgauInH_RCEdvrrNGrnxxxxxx" // <---- 请修改为服务号下单用户的 openid
]
]);
ide提示找不到postjson方法。
client 里面确实没有这个方法。删掉了?文档没更新吗?
Beta Was this translation helpful? Give feedback.
All reactions