Browse Source

test

master
用户名 3 years ago
parent
commit
c4e6356d59
  1. 18
      mobile/plugins/payment/dalianpay/demo/dalianpay.php
  2. 2
      mobile/plugins/payment/wxpay.php

18
mobile/plugins/payment/dalianpay/demo/dalianpay.php

@ -28,8 +28,8 @@ class dalianpay{
// $reqsn = $_GET['reqsn'];
// $trxamt = $_GET['trxamt'];
// $openid = $this->decrypt($openid_crypt);
$openid = $openid_crypt;
$openid = $this->decrypt($openid_crypt);
// $openid = $openid_crypt;
$reqsn = $order_sn;
$trxamt = $order_amount;
@ -165,13 +165,13 @@ class dalianpay{
}
}
echo 'hi there.....\r\n';
$new_plugin = new dalianpay();
$openid_crypt = 'oCTanxBeiVFWIekJT_GiPZM2UiGY';
$order_sn = '2023080355427';
$order_amount = '600';
$response_data = $new_plugin->pay($openid_crypt,$order_sn,$order_amount);
echo $response_data;
// echo 'hi there.....\n\r';
// $new_plugin = new dalianpay();
// $openid_crypt = 'oCTanxBeiVFWIekJT_GiPZM2UiGY';
// $order_sn = '2023080355427';
// $order_amount = '600';
// $response_data = $new_plugin->pay($openid_crypt,$order_sn,$order_amount);
// echo $response_data;
?>

2
mobile/plugins/payment/wxpay.php

@ -138,7 +138,7 @@ class wxpay
// exit; // 终止当前脚本的执行,确保页面跳转生效
echo "Hi there........";
echo "Hi there........\n\r";
require_once('./dalianpay/demo/dalianpay.php');
$new_plugin = new dalianpay();
$response_data = $new_plugin->pay($this->encrypt($_SESSION['openid']), $order['order_sn'], $order_amount);

Loading…
Cancel
Save