Commit a45abd9d21084e5ebdea917017f406b20a6f532e
1 parent
7068819c59
Exists in
master
init
Showing 1 changed file with 14 additions and 5 deletions Inline Diff
webpay.md
1 | GumpTech页面支付 | 1 | GumpTech页面支付 |
2 | ----------------------- | 2 | ----------------------- |
3 | 3 | ||
4 | 使用方式: | 4 | 接入使用方式: |
5 | ----------------------- | 5 | ----------------------- |
6 | 请使用iframe方式嵌套GumpTech支付地址: | 6 | 请使用iframe方式嵌套GumpTech支付地址: |
7 | 7 | ||
8 | http://sdk.letsgame.mobi/v1/pay/mol_web.do | 8 | http://sdk.letsgame.mobi/v1/pay/mol_web.do |
9 | 需要传入参数: | 9 | 需要传入参数: |
10 | 1. appId | 10 | 1. appId |
11 | 2. queryRoleUrl 用户向第三方查询角色名字接口 | 11 | 2. queryRoleUrl 用户向第三方查询角色名字接口 |
12 | 3. servers 区服列表字符串,传入前做utf8编码 | 12 | 3. servers 区服列表字符串,传入前做utf8编码 |
13 | 字符串格式json串,如下: | 13 | 字符串格式json串,如下: |
14 | [ | 14 | [ |
15 | {"serverId":"s2", "serverName":"测试1"}, | 15 | {"serverId":"s2", "serverName":"测试1"}, |
16 | {"serverId":"s2", "serverName":"测试1"} | 16 | {"serverId":"s2", "serverName":"测试1"} |
17 | ... | 17 | ... |
18 | ] | 18 | ] |
19 | 19 | ||
20 | 20 | ||
21 | 21 | 第三方查询角色接口 | |
22 | 22 | ------------------------- | |
23 | 23 | 在接入中传入queryRoleUrl参数,即第三方查询角色接口 | |
24 | GumpTech调用过程如下: | ||
25 | 请求接口:传入queryRoleUrl的值 | ||
26 | 参数: | ||
27 | serverId servers参数json中的serverId的值 | ||
28 | roleName 用户填入的角色名字 | ||
29 | 返回值: | ||
30 | { | ||
31 | "userId":5104 | ||
32 | } | ||
33 | userId为GumpTech平台的用户id | ||
24 | 34 | ||
25 | 35 | ||
26 | http://devsdk.letsgame.mobi/v1/pay/mol_web.do?appId=100&queryRoleUrl=http://devsdk.letsgame.mobi/v1/user/query_role.do&servers=[{%22serverId%22:%22s2%22,%20%22serverName%22:%22%E6%B5%8B%E8%AF%951%22},{%22serverId%22:%22s2%22,%20%22serverName%22:%22%E6%B5%8B%E8%AF%952%22}] |