修改支付的参数名
This commit is contained in:
parent
4a67dc773a
commit
777d2a89e9
@ -72,7 +72,7 @@ public class MainActivity extends Activity {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private VivoPayCallback mVivoPayCallback = new VivoPayCallback() {
|
private final VivoPayCallback mVivoPayCallback = new VivoPayCallback() {
|
||||||
// 客户端返回的支付结果不可靠,请再查询服务器,以服务器端最终的支付结果为准;
|
// 客户端返回的支付结果不可靠,请再查询服务器,以服务器端最终的支付结果为准;
|
||||||
@Override
|
@Override
|
||||||
public void onVivoPayResult(int code, OrderResultInfo orderResultInfo) {
|
public void onVivoPayResult(int code, OrderResultInfo orderResultInfo) {
|
||||||
@ -282,8 +282,8 @@ public class MainActivity extends Activity {
|
|||||||
Log.i(TAG, "receive pay: " + message);
|
Log.i(TAG, "receive pay: " + message);
|
||||||
try {
|
try {
|
||||||
JSONObject jsonObject = new JSONObject(message);
|
JSONObject jsonObject = new JSONObject(message);
|
||||||
String cpOrderId = jsonObject.getString("orderId");
|
String cpOrderId = jsonObject.getString("orderid");
|
||||||
String productCode = jsonObject.getString("productCode");
|
String productCode = jsonObject.getString("goodid");
|
||||||
int count = jsonObject.getInt("count");
|
int count = jsonObject.getInt("count");
|
||||||
String money = jsonObject.getString("money"); // 未传
|
String money = jsonObject.getString("money"); // 未传
|
||||||
String notifyUrl = jsonObject.getString("notifyUrl"); // 未传
|
String notifyUrl = jsonObject.getString("notifyUrl"); // 未传
|
||||||
|
Loading…
x
Reference in New Issue
Block a user