public abstract class BasePayMgr extends java.lang.Object implements OnActivityResultHandler
限定符和类型 | 类和说明 |
---|---|
static class |
BasePayMgr.PayTransBean
支付交互过程中,传递额外参数
|
static interface |
BasePayMgr.UICallback |
构造器和说明 |
---|
BasePayMgr(int source,
android.app.Activity activity,
android.os.Handler handler,
boolean isEnableReporter,
boolean isDelayFirstReport) |
BasePayMgr(int source,
android.app.Activity activity,
android.os.Handler handler,
GPBillingReporter reporter,
boolean isEnableReporter,
boolean isDelayFirstReport) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
complain(java.lang.String str) |
static CashDialog |
createInitFailedDialog(android.content.Context context) |
boolean |
dispatchActivityResult(int requestCode,
int resultCode,
android.content.Intent data) |
SkuDetailsProxy |
findSkuDetail(java.lang.String skuid) |
java.util.Collection<SkuDetailsProxy> |
getAllSkuDetails() |
java.lang.String |
getLastPendingServerOrderID() |
abstract int |
getPaymentType()
获取当前支付类型的档位参数,由服务端分配,如GP支付为1,华为支付为360
|
GPBillingReporter |
getReporter() |
void |
initPay() |
static boolean |
isGooglePay(int paymentType) |
static boolean |
isHuaweiPay(int paymentType) |
static boolean |
isHuaweiPayEnabled() |
boolean |
isRequestCodeMatch(int requestCode) |
static boolean |
isSamsungPay(int paymentType) |
static boolean |
isSamsungPayEnabled() |
boolean |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data) |
void |
onDestroy() |
void |
onPageLaunchCompleted(boolean succ,
GPBillingReporter.GPBillingUIDataContext context,
long ecode1,
long ecode2,
long ecode3,
long ecode4,
java.lang.String emsg,
java.lang.String rmsg) |
void |
PrepareSubscription(java.lang.String skuId) |
void |
refreshCommoditys(java.util.List<Commodity> mCommodity,
IabHelper.QueryInventoryFinishedListener queryInventoryFinishedListener) |
protected void |
refreshInitWait() |
protected void |
registerPurchaseBroadcast() |
void |
repairUnFinishOrders(boolean isSilenceMode) |
void |
resetSource(int srcType,
java.lang.String customSrcName)
重置埋点来源
|
void |
setContext(android.app.Activity context) |
void |
setHostId(java.lang.String hostId) |
protected void |
setLoadingContent(java.lang.String s)
只是修改loading的文案,如果loading没有显示,什么也不做
|
void |
setOuterUICallback(BasePayMgr.UICallback uiCallback) |
void |
setSessionid(java.lang.String sessionid) |
void |
setVideoId(java.lang.String videoId) |
protected void |
setWaitScreen(boolean state,
java.lang.String s) |
void |
startConsume(Commodity c) |
protected void |
unRegisterPurchaseBroadcast() |
void |
updateInitServer(boolean bWait) |
public static final int PAY_TYPE_GP
public static final int SUB_TYPE_GP
public static final int PAY_TYPE_SAMSUNG
public static final int PAY_TYPE_HUAWEI
public static final java.lang.String PAY_TYPE
public static final java.lang.String PRODUCT_ID
public static final int PAY_ABORT_CODE_HELPER_NULL
public static final int PAY_ABORT_CODE_PAY_INIT_WAIT
public static final int PAY_ABORT_CODE_PAY_LAUNCH_ERR
public static final int PAY_ABORT_CODE_NO_PURCHASE
public static final int PAY_QUERY_UNFINISH_IAB_BUSY
public static final int PAY_QUERY_UNFINISH_QUERY_FAIL
public static final int PAY_QUERY_UNFINISH_UNKNOWN_ERR
public static final int PAY_QUERY_UNFINISH_SERVER_FAIL
public static final int PAY_QUERY_UNFINISH_CONFIRM_FAIL
public static final int PAY_QUERY_UNFINISH_NOPRO
protected java.lang.String mVideoId
protected java.lang.String mHostId
public static final int PAY_STOP_CODE_NO_REPAIR
public static final int PAY_ABORT_GP_BUY
public static final int PAY_ABORT_GP_SUBSCRIBE
public static final java.lang.String PAY_PRODUCT_PRICE_FIRSTRECHARGE
public static final int PAY_TYPE_BUY
public static final int PAY_TYPE_SUBSCRIBE
public static final int SOURCE_FROM_LIVE_RECHARGE_FRA
public static final int SOURCE_FROM_LIVE_RECHARGE_DIALOG
public static final int SOURCE_FROM_ME_RECHARGE
public static final int SOURCE_FROM_OTHERS
public static final int SOURCE_FROM_MYATTRIBUTE
public static final int SOURCE_FROM_MYBAG
public static final int SOURCE_FROM_VIDEOLIST
public static final int SOURCE_FROM_WATCHLIVE
public static final int SOURCE_FROM_ECHARGE_H5
protected boolean mServerInitWait
protected android.view.View mProgressView
public boolean initPayResult
protected android.os.Handler mUiHandler
protected boolean mPayInitWait
protected BasePayMgr.UICallback mUICallBack
public int mResultValue
@Deprecated protected int mSource
protected android.app.Activity mContext
protected boolean mIsEnableReporter
public boolean mIsSilenceRepairConsumeMode
public int mSilenceRepairConsumeCount
public boolean mIsRepairConsumeMode
public java.lang.String mSessionid
public BasePayMgr(int source, android.app.Activity activity, android.os.Handler handler, boolean isEnableReporter, boolean isDelayFirstReport)
public BasePayMgr(int source, android.app.Activity activity, android.os.Handler handler, GPBillingReporter reporter, boolean isEnableReporter, boolean isDelayFirstReport)
public void setVideoId(java.lang.String videoId)
public void setHostId(java.lang.String hostId)
public void setSessionid(java.lang.String sessionid)
public void setContext(android.app.Activity context)
public void setOuterUICallback(BasePayMgr.UICallback uiCallback)
public void initPay()
public java.lang.String getLastPendingServerOrderID()
public void resetSource(int srcType, java.lang.String customSrcName)
srcType
- 来源类型,见SOURCE_FROM_OTHERS
等等customSrcName
- 自定义来源名称,可以为空;为空时会按照来源类型取默认值public GPBillingReporter getReporter()
public void startConsume(Commodity c)
public void repairUnFinishOrders(boolean isSilenceMode)
public void PrepareSubscription(java.lang.String skuId)
public boolean onActivityResult(int requestCode, int resultCode, @Nullable android.content.Intent data)
public boolean isRequestCodeMatch(int requestCode)
isRequestCodeMatch
在接口中 OnActivityResultHandler
public boolean dispatchActivityResult(int requestCode, int resultCode, @Nullable android.content.Intent data)
public void onDestroy()
public SkuDetailsProxy findSkuDetail(java.lang.String skuid)
public java.util.Collection<SkuDetailsProxy> getAllSkuDetails()
public abstract int getPaymentType()
public void updateInitServer(boolean bWait)
protected void setLoadingContent(java.lang.String s)
s
- protected void setWaitScreen(boolean state, java.lang.String s)
protected void refreshInitWait()
protected void complain(java.lang.String str)
protected void registerPurchaseBroadcast()
protected void unRegisterPurchaseBroadcast()
public static CashDialog createInitFailedDialog(android.content.Context context)
public void refreshCommoditys(java.util.List<Commodity> mCommodity, IabHelper.QueryInventoryFinishedListener queryInventoryFinishedListener)
public void onPageLaunchCompleted(boolean succ, GPBillingReporter.GPBillingUIDataContext context, long ecode1, long ecode2, long ecode3, long ecode4, java.lang.String emsg, java.lang.String rmsg)
public static boolean isGooglePay(int paymentType)
public static boolean isHuaweiPay(int paymentType)
public static boolean isSamsungPay(int paymentType)
public static boolean isHuaweiPayEnabled()
public static boolean isSamsungPayEnabled()