1. 程式人生 > >17年10月項目--快速充值

17年10月項目--快速充值

ima 第三方 pro des 不同 技術 二維 -- fin

1.選擇支付方式:

技術分享

接口1: 獲取可用的支付方式列表

http://ta.jinyazhou88.org/index.jsp?c=find&a=deposit2

返回:

“data”:[
    dt_id : 8, //充值方式ID
    bank_id:”209”,
    pay_name : “匯元支付寶”,
    card_id:”17”,
    trade_type:”9”,
    shopURL:c=fin&a=recharge,
    min_limit:”50”,
    max_limit:”3000”,
    card_codes:”asdfkjdshkhnvtvy”, 
//卡號加密字符串 is_href:1, // 是否跳轉 0:app內置,1:需跳轉 ]

下一步:

Intent mIntent = new Intent(getActivity(), PayHtml.class);
Bundle mBundle = new Bundle();
mBundle.putSerializable("rconfig", cardRecharge);
mIntent.putExtras(mBundle);
startActivity(mIntent);

2.充值中心

技術分享 技術分享

1.1.1 支付跳轉頁面

Protocol

GET

URL

默認API請求地址+?c=fin&a=recharge

參數

類型

示例值

備註

id

string

4.2.3接口返回bt_id字段

encry

string

Base64編碼 json字符串

示例:

$userinfo = array(

‘username’=>admin,

‘user_id’=>111,

)

Encry 值為:base64_encode(json_encode($userinfo))

trade_type

int

1

支付類型1|線下網銀[原轉賬];2|第三方網銀;3|快捷支付;7|QQ掃碼;8|微信掃碼;9|支付寶掃碼;

參數獲取從4.2.3

frm

Int

4

設備號碼:4=安卓,5=IOS

APP應使用內置瀏覽器請求,展示頁面為支付金額填寫頁面,通過不同支付類型,進行二維碼展示或第三方快捷支付跳轉。

example

17年10月項目--快速充值