數據處理軟件開發(fā) 個人
需求類型 允許服務商類型
1. 菜單和頁面:
登錄頁
儀表盤(后續(xù)開發(fā))
交易記錄
交易統計(后續(xù)開發(fā))
相關主檔(后續(xù)開發(fā))
退出登錄 - 放右上解
2. 登錄頁面
user_login_name, password
3. 主頁面
顯示欄位:
merchant_name 商戶名稱
transaction_id 交易號
merchant_order_id 商戶訂單號
currency 幣種
order_amount 訂單金額
pay_amount 支付金額
status 支付狀態(tài)
shopper_id 購物者ID
email 郵箱
shopper_name 購物者名稱
order_note 訂單備注
create_time 創(chuàng)建時間
pay_time 支付時間
cancel_time 取消時間
confirm_time 確認時間
remark 備注
過濾:
所有欄位可以過濾,其中order_note,email,remark,shopper_name可以模糊過濾, merchant_name,status可以下拉選擇
功能按鈕:
查詢
清除過濾
確認收款
未收到款
4. Tables
merchant:
merchant_id PK
merchant_code
merchant_name
api_key
create_time
user:
user_id
user_id PK
user_login_name UK
user_name
password
Permission_type edit or view
create_time
user_merchant:
user_id
merchant_id
create_time
payment_method:
payment_method_id
payment_method CASH or BANK_TRANSFER
create_time
payment_account:
payment_method_id
account_name CASH or BANK_TRANSFER
account_number
qr_code_image for CASH only
limit_volume_daily 每天支付限額
current_volume 當天支付累計金額
create_time
transactions:
transaction_id
merchant_code
merchant_order_id
currency
order_amount
pay_amount
shopper_id
email
shopper_name
notify_url
order_note
encryption_data
status
create_time
pay_time
cancel_time
confirm_time
remark
5. API接口參數
API URL:
http://xxx.xxx.xxx.xxx/api/checkout.jsp
Json REQUEST:
merchant_id (非空)
merchant_order_id (非空)
request_type (非空) CREATE or PAY or CANCEL
currency (非空)
order_amount (非空)
payment_method (非空) CASH or BANK_TRANSFER
shopper_id (非空)
email
shopper_name
notify_url (非空)
encryption_data (非空)
Json RESPONSE:
merchant_id
merchant_order_id
request_type
currency
order_amount
pay_amount
shopper_id
email
shopper_name
status (PAID,CANCELLED,PROCESSING, PENDING)
Payment_method
account_name
account_number
qr_code_image
pay_time
confirm_time
6. 請求與回調步驟:
1. request_type = CREATE時,RESPONSE status=PROCESSING,當payment_method=CASH qr_code_image有值,payment_method=BANK_TRANSFER 沒有qr_code_image。
2. request_type = PAY,RESPONSE status=PENDING
request_type = CANCEL,RESPONSE status=CANCELLED
3. 當在后臺確認收款情況時,核對收到款就點確認收款并輸入實際收到款的金額(默認與order_amount一樣)后就回調notify_url,這時回返回pay_amount和status=PAID
7. 加密:
$encryption_data=sha256(merchant_id+merchant_order_id+request_type+currency+order_amount+payment_method+shopper_id+apikey);
8. 相關邏輯
抓**的時候需要控制每個**每天限制的交易額,每筆交易支付后需要更新當天payment_account.current_volume,超過payment_account.limit_volume_daily這個設置的值就不要抓出來輪詢了。
已完結 2022-12-18發(fā)布
招標-按項目付費