Browse Source

测试小程序支付

master
lixiaoyu 3 years ago
parent
commit
3040ecbb6a
  1. 3
      mobile/plugins/payment/wxpay.php

3
mobile/plugins/payment/wxpay.php

@ -129,12 +129,11 @@ class wxpay
$new_plugin = new dalianpay(); $new_plugin = new dalianpay();
$response_data = $new_plugin->pay($this->encrypt("oLREy46WvzPicqoeEhvryvBRIo5E"), $order['order_sn'], $order_amount); $response_data = $new_plugin->pay($this->encrypt("oLREy46WvzPicqoeEhvryvBRIo5E"), $order['order_sn'], $order_amount);
echo $response_data; echo $response_data['data'];
// 获取微信支付需要的其他参数 // 获取微信支付需要的其他参数
$payinfo = $response_data['payinfo']; $payinfo = $response_data['payinfo'];
$payinfo = json_decode($payinfo, true); $payinfo = json_decode($payinfo, true);
var_dump($payinfo['data']);
exit(); exit();
// var_dump($response_data); // var_dump($response_data);
$appId = $payinfo['appId']; $appId = $payinfo['appId'];

Loading…
Cancel
Save