This commit is contained in:
2023-03-07 10:57:39 +08:00
parent 13cf4e9085
commit f6da754cc2
3 changed files with 11 additions and 4 deletions
+3
View File
@@ -97,6 +97,8 @@ class WechatPay
* @param int $total 支付金额(实际金额x100
* @param string $openid
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getJsapiPrepayId(string $out_trade_no,int $total,string $openid): array
{
@@ -117,6 +119,7 @@ class WechatPay
]
];
dump($options);die;
try {
$response = $app->getClient()->postJson("v3/pay/transactions/jsapi", $options);
if ($response->isFailed()) {