|
@@ -66,20 +66,20 @@ public class WXPayEntryActivity extends AppCompatActivity implements View.OnClic
|
|
|
@Override
|
|
@Override
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
super.onCreate(savedInstanceState);
|
|
super.onCreate(savedInstanceState);
|
|
|
- setContentView(R.layout.activity_pay_test);
|
|
|
|
|
- setTitle("支付测试");
|
|
|
|
|
- findViewById(R.id.btn_wxPay).setOnClickListener(this);
|
|
|
|
|
- findViewById(R.id.btn_wxRefund).setOnClickListener(this);
|
|
|
|
|
- lvWxPay = findViewById(R.id.lv_wxPay);
|
|
|
|
|
- findViewById(R.id.btn_aliPay).setOnClickListener(this);
|
|
|
|
|
- findViewById(R.id.btn_aliRefund).setOnClickListener(this);
|
|
|
|
|
- lvAliPay = findViewById(R.id.lv_aliPay);
|
|
|
|
|
- wxAdapter = new PayTestAdapter(this, wxDatas);
|
|
|
|
|
- aliAdapter = new PayTestAdapter(this, aliDatas);
|
|
|
|
|
- lvWxPay.setAdapter(wxAdapter);
|
|
|
|
|
- lvAliPay.setAdapter(aliAdapter);
|
|
|
|
|
- initEvent();
|
|
|
|
|
- initData();
|
|
|
|
|
|
|
+// setContentView(R.layout.activity_pay_test);
|
|
|
|
|
+// setTitle("支付测试");
|
|
|
|
|
+// findViewById(R.id.btn_wxPay).setOnClickListener(this);
|
|
|
|
|
+// findViewById(R.id.btn_wxRefund).setOnClickListener(this);
|
|
|
|
|
+// lvWxPay = findViewById(R.id.lv_wxPay);
|
|
|
|
|
+// findViewById(R.id.btn_aliPay).setOnClickListener(this);
|
|
|
|
|
+// findViewById(R.id.btn_aliRefund).setOnClickListener(this);
|
|
|
|
|
+// lvAliPay = findViewById(R.id.lv_aliPay);
|
|
|
|
|
+// wxAdapter = new PayTestAdapter(this, wxDatas);
|
|
|
|
|
+// aliAdapter = new PayTestAdapter(this, aliDatas);
|
|
|
|
|
+// lvWxPay.setAdapter(wxAdapter);
|
|
|
|
|
+// lvAliPay.setAdapter(aliAdapter);
|
|
|
|
|
+// initEvent();
|
|
|
|
|
+// initData();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void initEvent() {
|
|
private void initEvent() {
|
|
@@ -130,8 +130,8 @@ public class WXPayEntryActivity extends AppCompatActivity implements View.OnClic
|
|
|
private void initData() {
|
|
private void initData() {
|
|
|
api = WXAPIFactory.createWXAPI(this, Constants.WXPAY_APPID, false);
|
|
api = WXAPIFactory.createWXAPI(this, Constants.WXPAY_APPID, false);
|
|
|
api.handleIntent(getIntent(), this);
|
|
api.handleIntent(getIntent(), this);
|
|
|
- getWxOrders();
|
|
|
|
|
- getAliPayOrders();
|
|
|
|
|
|
|
+// getWxOrders();
|
|
|
|
|
+// getAliPayOrders();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -362,7 +362,7 @@ public class WXPayEntryActivity extends AppCompatActivity implements View.OnClic
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void onFailure(String resultStatus, String resultInfo) {
|
|
public void onFailure(String resultStatus, String resultInfo) {
|
|
|
- getAliPayOrders();
|
|
|
|
|
|
|
+ //getAliPayOrders();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|