修改三星支付回调

This commit is contained in:
18142669586 2024-09-11 14:41:22 +08:00
parent 61b1101c3f
commit 8e860b80d4
2 changed files with 14 additions and 10 deletions

View File

@ -40,7 +40,7 @@ public class SamsungUtil {
public void init() { public void init() {
iapHelper = IapHelper.getInstance(mContext); iapHelper = IapHelper.getInstance(mContext);
//设置支付模式 OPERATION_MODE_PRODUCTION 正式模式 OPERATION_MODE_TEST 测试模式 //设置支付模式 OPERATION_MODE_PRODUCTION 正式模式 OPERATION_MODE_TEST 测试模式
iapHelper.setOperationMode(HelperDefine.OperationMode.OPERATION_MODE_PRODUCTION); iapHelper.setOperationMode(HelperDefine.OperationMode.OPERATION_MODE_TEST);
} }
public void dispose() { public void dispose() {

View File

@ -1,6 +1,8 @@
package com.yunbao.main.activity; package com.yunbao.main.activity;
import static com.yunbao.main.activity.MyWalletActivity.dis;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
@ -14,6 +16,8 @@ import android.webkit.WebView;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import com.yunbao.common.http.CommonHttpUtil;
import com.yunbao.common.http.HttpCallback;
import com.yunbao.common.pay.samsung.OnSamsungPaymentListener; import com.yunbao.common.pay.samsung.OnSamsungPaymentListener;
import com.yunbao.common.pay.samsung.SamsungUtil; import com.yunbao.common.pay.samsung.SamsungUtil;
import com.yunbao.common.utils.StringUtil; import com.yunbao.common.utils.StringUtil;
@ -103,15 +107,15 @@ public class SamsungFragment extends Fragment {
payHandler.post(new Runnable() { payHandler.post(new Runnable() {
@Override @Override
public void run() { public void run() {
// CommonHttpUtil.notifySamsung(_purchaseVO.getPurchaseId(), mOrderid, new HttpCallback() { CommonHttpUtil.notifySamsung(purchaseVo, mOrderid, new HttpCallback() {
// @Override @Override
// public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {
// if (code == 0) { if (code == 0) {
// ToastUtil.show(getString(R.string.pay_suc)); ToastUtil.show(getString(R.string.pay_suc));
// dis(); dis();
// } }
// } }
// }); });
} }
}); });
} }