Commit e9a2f24b3550d7f0ce3535bc43bb0e3bec1f7763
1 parent
bfa81dd823
Exists in
master
修改支付方法说明
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
doc/AndroidDocument.md
| ... | ... | @@ -161,7 +161,7 @@ InitializeCallback为初始化回调接口,此接口只有一个回调方法init |
| 161 | 161 | |
| 162 | 162 | |
| 163 | 163 | 3.支付功能 |
| 164 | - 1)使用gump通行证登录,其中serverId为必传参数 | |
| 164 | + 1)使用gump通行证登录,其中除nick外所有参数为必传参数 | |
| 165 | 165 | |
| 166 | 166 | Bundle payInfo = new Bundle(); |
| 167 | 167 | payInfo.putString("nick", "thi"); |
| ... | ... | @@ -171,8 +171,8 @@ InitializeCallback为初始化回调接口,此接口只有一个回调方法init |
| 171 | 171 | payInfo.putString("serverId", "B4003"); |
| 172 | 172 | payInfo.putString("roleId", "10010"); |
| 173 | 173 | GumpSDK.pay(MainActivity.this, payInfo,PurchaseCallback); |
| 174 | -调用pay方法时,必须穿入一个bundle对象,包含如上字段,除serverId外可以设置值为空,但是字段必须全部包含 | |
| 175 | - 2)未使用gump通行证登录,需要传入用户id,serverId为必传参数 | |
| 174 | +调用pay方法时,必须穿入一个bundle对象,包含如上字段,除nick外所有字段必须全部包含 | |
| 175 | + 2)未使用gump通行证登录,需要传入用户id | |
| 176 | 176 | |
| 177 | 177 | Bundle payInfo = new Bundle(); |
| 178 | 178 | payInfo.putString("nick", "thi"); |
| ... | ... | @@ -181,7 +181,7 @@ InitializeCallback为初始化回调接口,此接口只有一个回调方法init |
| 181 | 181 | payInfo.putString("extraInfo", "This is demo!"); |
| 182 | 182 | payInfo.putString("serverId", "B4003"); |
| 183 | 183 | payInfo.putString("roleId", "10010"); |
| 184 | - GumpSDK.pay(MainActivity.this, payInfo,"1021",PurchaseCallback); | |
| 184 | + GumpSDK.pay(MainActivity.this, payInfo,userId,PurchaseCallback); | |
| 185 | 185 | |
| 186 | 186 | PurchaseCallback为支付状态回调接口,此接口含有3个方法 |
| 187 | 187 |