## 掃碼付
~~~[api]
get:/Pays/Qrcode/pay_zk_index
*domain_auth=默認值#授權碼,平臺方提供
*storeid=默認值#門店編號
*amount=默認值#支付金額
*zk_order=默認值#商品訂單號
*key=默認值#校驗密鑰
<<<
success
{"status":"0000","codemsg":"預下單成功","info":"http://www.xxxx.com"}
<<<
error
{"status":errorcode,"codemsg":error msg}
~~~
>key生成的通用步驟如下:
str=qf_2019
key=md5(str.domain_auth.storeid.amount.zk_order);
```
例如:
$getKey=md5($str.$domain_auth.$storeid.$amount.$zk_order);
$array = array(
'domain_auth'=>$domain_auth, 授權碼(我 提供) A1bB2n5cso
'storeid'=>$storeid, 門店編號
'amount'=>$amount, 消費金額
'zk_order'=>$zk_order, 商品訂單號
'key'=>$getKey 校驗密鑰
);
$sendString=json_encode($array);
$sen = encode($sendString);
url:/Pays/Qrcode/pay_zk_index?data=$sen
```