#大標=如何建置電子商店多重金流付款機制 #副標=電子商店開發的最後一哩路 ====<程式1>=================================== [程式1] iePay金流連接方式
一、 參數 storeid:授權商店代碼 password:密碼 orderid:訂單編號(不得重覆) account:金額(正整數) remark:訂單註解 param : 提供客戶自行運用(可不填) 二、 傳回參數 orderid:訂單編號 status:授權狀態 0:成功 其他:失敗 account:金額 paytype: 付款方式amount:金額(另一名稱) payformat: 付款種類(1:信用卡2:立即付款3:離線付款4:貨到收款) authdate:授權時間 param : 提供客戶自行運用 四、商店告知部份 回傳的網址:接收交易結果的商店端程式網址ex.http://www.xxx.xxx.xx/xxx.php ========<程式1 end>================= [程式2]======================== =====<程式2 end>======================= =====<程式3>=============== [程式3] =========<程式3 end>==================== ==============<程式4>==================== [程式4] Header("Cache-Control: no-cache, must-revalidate"); $orderid = $_POST['orderid']; //訂單編號 $status = $_POST['status']; //授權狀態 $amount = $_POST['amount']; //授權金額 $authdate = $_POST['authdate']; //授權時間 $paytype = $_POST['paytype']; //付款方式 $authcode = $_POST['authcode']; //授權碼 include_once("header.php"); OpenTable(); if ($status=="0" || $status=="00") $statusstr="授權完成"; else $statusstr="授權失敗"; echo "