欧美超清VA在线视频

<del id="nfxdv"><ruby id="nfxdv"></ruby></del>
    <dl id="nfxdv"><ol id="nfxdv"><ol id="nfxdv"></ol></ol></dl>

    <strike id="nfxdv"><em id="nfxdv"><ol id="nfxdv"></ol></em></strike>
      <menuitem id="nfxdv"></menuitem>
      <noframes id="nfxdv">
      <em id="nfxdv"></em>
      <dfn id="nfxdv"></dfn>
      <th id="nfxdv"></th>

      <i id="nfxdv"><track id="nfxdv"></track></i>

      跨境系統-東方支付對接跨境系統常見問題

      更新時間:2020-09-18 點擊量:280


      ecshop 東方支付對接到跨境系統,常用的有2個支付接口(微信支付寶以及微信公眾號支付接口),一個海關接口

      通過post固定數據,并且加簽傳值


      微信支付寶調用的接口大同小異。


      主要代碼有(微信和支付寶返回信息不一樣,微信返回是二維碼圖,支付寶是一串URL,需要自行生成二維碼)

      $mrchntCode = 'XXXXXX';//商戶號 111111111
      $outOrderNo = $order['order_sn'];
      //$add_time = date("YmdHis",$order['add_time']);
      $add_time = date("YmdHis",gmtime());
      $ptime = date("Y-m-d\TH:i:s");
      $order_total = $order['order_amount'];//總價order_amount	total_fee
      $msgContent ='{"trxCd":"1302","outOrderNo":"'.$outOrderNo.'","outOrderTime":"'.$add_time.'","mrchntCode":"'.$mrchntCode.'","trxCcyCd":"CNY","trxAmt":"'.$order_total.'","goodsName":"'.$order_g_name.'","frontUrl":"","backUrl":"http://www.adamlancelot.com/easipay.php?act=respond","payMethod":"3","productType":"SCAN","tradeType":"aggregate","remoteIp":"","areaInfo":"1561234"}';
      $msgContent = encrypt($msgContent,$pub_key);
      $signValue = getSign($msgContent, $sh_siyao);//加簽
      $json = '{"msgVersion": "1.0","msgCode": "QR_PAY","msgSerialNo": "'.$order['order_sn'].'","msgSender": "XXXXXX","msgSenderKey": "XXXXXX_key","timestamp":"'.$ptime.'","msgContent":"'.$msgContent.'","sign": {"signType": "RSA","signValue":"'.$signValue.'"},"encryptType": "RSA"}';
      $sign[sign_type]= 'md5';
      $sign[version]	= '1.0';		
      ksort($sign);
      $sign[appsecret]= 'XXXXX000000';//密鑰		
      $link = '';
      foreach($sign as $key=> $val){
      	if($val){
      		$link .= ($key."=".strtolower($val)."&");//strtolower
      	}
      }
      $link = rtrim($link, "&");//簽名OK		
      $sign[sign] = md5($link);		
      unset($sign[appsecret]);//注銷掉
      $url = 'https://api.easipay.net/scan/order/precreate';//正式接口
      $headers ="Content-Type: application/json; charset=utf-8";
      $text = $Http->doPost($url,$json,4,$headers);		
      $text = json_decode($text,true);
      $respons = decrypt3($text['body'],$key_path);
      $respons = json_decode($respons,true);



      支付寶掃碼打賞 微信打賞

      如果文章對您有幫助,就打賞一個吧

      在線客服

      客戶服務

      熱線電話:

      0755-36656507 15889489919 服務時間:

      周一到周六:9:00-18:00

      在線QQ客服

      在線微信客服

      關于我們 常見問題

      支付方式 加盟合作

      提交需求
      優惠紅包 購物車0 反饋留言 返回頂部
      欧美超清VA在线视频
      <del id="nfxdv"><ruby id="nfxdv"></ruby></del>
        <dl id="nfxdv"><ol id="nfxdv"><ol id="nfxdv"></ol></ol></dl>

        <strike id="nfxdv"><em id="nfxdv"><ol id="nfxdv"></ol></em></strike>
          <menuitem id="nfxdv"></menuitem>
          <noframes id="nfxdv">
          <em id="nfxdv"></em>
          <dfn id="nfxdv"></dfn>
          <th id="nfxdv"></th>

          <i id="nfxdv"><track id="nfxdv"></track></i>