代收代付API接口開(kāi)發(fā)
4000元
數(shù)據(jù)處理軟件開(kāi)發(fā) 個(gè)人
需求類(lèi)型 允許服務(wù)商類(lèi)型
1. 菜單和頁(yè)面:
登錄頁(yè)
儀表盤(pán)(后續(xù)開(kāi)發(fā))
交易記錄
交易統(tǒng)計(jì)(后續(xù)開(kāi)發(fā))
相關(guān)主檔(后續(xù)開(kāi)發(fā))
退出登錄 - 放右上解
2. 登錄頁(yè)面
user_login_name, password
3. 主頁(yè)面
顯示欄位:
merchant_name 商戶(hù)名稱(chēng)
transaction_id 交易號(hào)
merchant_order_id 商戶(hù)訂單號(hào)
currency 幣種
order_amount 訂單金額
pay_amount 支付金額
status 支付狀態(tài)
shopper_id 購(gòu)物者ID
email 郵箱
shopper_name 購(gòu)物者名稱(chēng)
order_note 訂單備注
create_time 創(chuàng)建時(shí)間
pay_time 支付時(shí)間
cancel_time 取消時(shí)間
confirm_time 確認(rèn)時(shí)間
remark 備注
過(guò)濾:
所有欄位可以過(guò)濾,其中order_note,email,remark,shopper_name可以模糊過(guò)濾, merchant_name,status可以下拉選擇
功能按鈕:
查詢(xún)
清除過(guò)濾
確認(rèn)收款
未收到款
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 當(dāng)天支付累計(jì)金額
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接口參數(shù)
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. 請(qǐng)求與回調(diào)步驟:
1. request_type = CREATE時(shí),RESPONSE status=PROCESSING,當(dāng)payment_method=CASH qr_code_image有值,payment_method=BANK_TRANSFER 沒(méi)有qr_code_image。
2. request_type = PAY,RESPONSE status=PENDING
request_type = CANCEL,RESPONSE status=CANCELLED
3. 當(dāng)在后臺(tái)確認(rèn)收款情況時(shí),核對(duì)收到款就點(diǎn)確認(rèn)收款并輸入實(shí)際收到款的金額(默認(rèn)與order_amount一樣)后就回調(diào)notify_url,這時(shí)回返回pay_amount和status=PAID
7. 加密:
$encryption_data=sha256(merchant_id+merchant_order_id+request_type+currency+order_amount+payment_method+shopper_id+apikey);
8. 相關(guān)邏輯
抓**的時(shí)候需要控制每個(gè)**每天限制的交易額,每筆交易支付后需要更新當(dāng)天payment_account.current_volume,超過(guò)payment_account.limit_volume_daily這個(gè)設(shè)置的值就不要抓出來(lái)輪詢(xún)了。
已完結(jié) 2022-12-18發(fā)布
招標(biāo)-按項(xiàng)目付費(fèi)