public class GPBillingReporter
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
GPBillingReporter.GPBillingUIDataContext |
构造器和说明 |
---|
GPBillingReporter(android.content.Intent intent,
boolean isEnableReporter,
boolean isDelayFirstReport) |
GPBillingReporter(int srcType,
java.lang.String srcName,
long baseTime,
boolean isEnableReporter,
boolean isDelayFirstReport) |
限定符和类型 | 方法和说明 |
---|---|
void |
beginPayment(java.lang.String skuid,
java.lang.String money,
java.lang.String coins,
java.lang.String currency) |
void |
beginSelectChannel() |
boolean |
beginStep(int index) |
void |
clearPay() |
void |
clearStep() |
void |
endStep(boolean succ,
long v1,
long v2,
long v3,
long v4,
java.lang.String emsg,
java.lang.String rmsg) |
void |
endStep(boolean succ,
long v1,
long v2,
long v3,
long v4,
java.lang.String emsg,
java.lang.String rmsg,
boolean isReportAndClear) |
static GPBillingReporter |
fromIntent(android.content.Intent intent,
boolean isEnableReporter,
boolean isDelayFirstReport) |
int |
getActionIndex() |
java.lang.String |
getCPayID() |
java.lang.String |
getSessionID() |
int |
getStepIndex() |
boolean |
invalid() |
boolean |
isInvalidPayment() |
void |
onPageDestroy() |
void |
onPageLaunchCompleted(boolean succ,
GPBillingReporter.GPBillingUIDataContext context,
long ecode1,
long ecode2,
long ecode3,
long ecode4,
java.lang.String emsg,
java.lang.String rmsg) |
void |
onSelectProduct_GoogleServiceUnavailable(java.lang.String skuID,
java.lang.String money,
java.lang.String gold,
java.lang.String currency,
long ecode,
int conn,
java.lang.String emsg) |
void |
refreshPaymentID() |
static void |
reportForceConsume(int rcode,
java.lang.String skuID,
long googleOrderTime,
java.lang.String googleOrderID,
java.lang.String googleOrderPayload,
java.lang.String googleOrderToken,
java.lang.String serverOrderID,
java.lang.String transactionID) |
void |
resetSource(int srcType,
java.lang.String srcName) |
void |
setCoins(java.lang.String coins) |
void |
setCurrency(java.lang.String currency) |
GPBillingReporter |
setError(int etype,
java.lang.String edesc) |
void |
setMoney(java.lang.String money) |
void |
setSDKTransID(java.lang.String transID) |
void |
setSelectChannel(int channel) |
void |
setServerOrderID(java.lang.String orderID) |
void |
setServerStransID(java.lang.String stransID) |
void |
setSkuID(java.lang.String skuID) |
GPBillingReporter |
setStepSDKOrderID(java.lang.String id) |
GPBillingReporter |
setStepServerOrderID(java.lang.String id) |
GPBillingReporter |
setStepStransID(java.lang.String id) |
GPBillingReporter |
setStepV1(long v) |
GPBillingReporter |
setStepV2(long v) |
GPBillingReporter |
setStepV3(long v) |
GPBillingReporter |
setStepV4(long v) |
public static final java.lang.String GPBILLING_DATAREPORT_TABLE_NAME
public static final java.lang.String GPBILLING_SHENCE_TABLE_NAME
public static final java.lang.String GPBILLING_SHENCE_FORCE_CONSUME
public static boolean GPBILLING_DEVICE_ROOT
public static final int GPBILLING_SRCTYPE_OTHER
public static final int GPBILLING_SRCTYPE_LIVE_GIFT_BUTTON
public static final int GPBILLING_SRCTYPE_LIVE_GIFT_NOMONEY
public static final int GPBILLING_SRCTYPE_LIVE_CHAT_GIFT_BUTTON
public static final int GPBILLING_SRCTYPE_LIVE_GUARD
public static final int GPBILLING_SRCTYPE_LIVE_FANSGROUP
public static final int GPBILLING_SRCTYPE_LIVE_PLATE
public static final int GPBILLING_SRCTYPE_ONE_GOLD_GIFT
public static final int GPBILLING_SRCTYPE_LIVE_FIRST_RECHARGE
public static final int GPBILLING_SRCTYPE_LIVE_BONUS_TASK_COIN_REMAIN_BUTTON
public static final int GPBILLING_SRCTYPE_LIVE_BONUS_TASK_COIN_NOT_ENOUGH_TIP_BUTTON
public static final int GPBILLING_SRCTYPE_LIVE_PK_RIDICULE_GIFT
public static final int GPBILLING_SRCTYPE_MY_RECHARGE_BUTTON
public static final int GPBILLING_SRCTYPE_MY_GOLD_BUTTON
public static final int GPBILLING_SRCTYPE_MY_SHOP
public static final int GPBILLING_SRCTYPE_MY_FANSGROUP
public static final int GPBILLING_SRCTYPE_MY_GROUP
public static final int GPBILLING_SRCTYPE_MY_GROUP_EXPAND
public static final int GPBILLING_SRCTYPE_UPDATE_GROUP
public static final int GPBILLING_SRCTYPE_MY_FANSTAG
public static final int GPBILLING_SRCTYPE_MARKET
public static final int GPBILLING_SRCTYPE_CHAT_GIFT_BUTTON
public static final int GPBILLING_SRCTYPE_CHAT_OR_SYS_LINK
public static final int GPBILLING_SRCTYPE_CHAT_GIFT_LACK
public static final int GPBILLING_SRCTYPE_MINI_GAME
public static final int GPBILLING_SRCTYPE_H5
public static final int GPBILLING_SRCTYPE_BANNER
public static final int GPBILLING_SRCTYPE_SHOTVIDEO_BIG_GIFT
public static final int GPBILLING_SRCTYPE_NOT_FREE_LIVE
public static final int GPBILLING_SRCTYPE_SPLASH
public static final int GPBILLING_SRCTYPE_SYS_MSG
public static final int GPBILLING_SRCTYPE_FIRST_TIP_OR_BAG_FIRST_RECHARGE
public static final int GPBILLING_SRCTYPE_PANDORA
public static final int GPBILLING_SCRTYPE_BAG_RENEW
public static final int GPBILLING_SCRTYPE_VALID_MAX
public static final int GPBILLING_SCRTYPE_SUBS
public static final int GPBILLING_SCRTYPE_MONSTER
public static final int GPBILLING_SCRTYPE_SUBS_COIN
public static final int GPBILLING_SCRTYPE_VIP_ENTER
public static final int GPBILLING_SCRTYPE_PERSONAL_CARD
public static final int GPBILLING_SCRTYPE_UPLIVE_CARD
public static final int GPBILLING_SCRTYPE_UPLIVE_USER
public static final int GPBILLING_SCRTYPE_VIP_UPGRADE
public static final int GPBILLING_SCRTYPE_UPLIE_END
public static final int GPBILLING_SCRTYPE_REPALYS
public static final int GPBILLING_SCRTYPE_HIDENN
public static final int GPBILLING_SCRTYPE_PERSONAL_CARD_TAG
public static final int GPBILLING_SCRTYPE_LUCKY_TURNPLATE
public static final int GPBILLING_SCRTYPE_BUY_PRIVATE_LIVE
public static final int GPBILLING_SCRTYPE_FREEZE_GOLD
public static final int GPBILLING_SRCTYPE_MAX
public static final java.util.Map<java.lang.Integer,java.lang.String> GPBILLING_SRCTYPE_NAMES
public static final int PAYMENT_CHANNEL_NONE
public static final int PAYMENT_CHANNEL_GOOGLE
public static final int PAYMENT_CHANNEL_SAMSUNG
public static final int PAYMENT_CHANNEL_HUAWEI_IAP
public static final int PAYMENT_CHANNEL_CODAPAY
public static final int PAYMENT_CHANNEL_CODAPAY_SMS
public static final int PAYMENT_CHANNEL_CODAPAY_ATM
public static final int PAYMENT_CHANNEL_CODAPAY_ALFAMART
public static final int PAYMENT_CHANNEL_BLUEPAY
public static final int PAYMENT_CHANNEL_BLUEPAY_SMS
public static final int PAYMENT_CHANNEL_BLUEPAY_RECHARGE_CARD
public static final int PAYMENT_CHANNEL_BLUEPAY_BANK_CARD
public static final int PAYMENT_CHANNEL_CODAPAY_INA_TRANSFER
public static final int PAYMENT_CHANNEL_BLUEPAY_VN
public static final int PAYMENT_CHANNEL_BLUEPAY_INA_TRANSFER
public static final int PAYMENT_CHANNEL_PAYTM
public static final int PAYMENT_CHANNEL_FORTUMO
public static final int GPBILLING_STEP_NONE
public static final int GPBILLING_STEP_CHANNEL_SHOW
public static final int GPBILLING_STEP_CHANNEL_SELECTED
public static final int GPBILLING_STEP_SHOW
public static final int GPBILLING_STEP_SELECTED
public static final int GPBILLING_STEP_SDK_UNFINISH_QUERY
public static final int GPBILLING_STEP_SERVER_CREATE
public static final int GPBILLING_STEP_SDK_PAYMENT
public static final int GPBILLING_STEP_SERVER_CONSUME
public static final int GPBILLING_STEP_SDK_CONSUME
public static final int GPBILLING_STEP_SERVER_OPTIONAL
public static final int GPBILLING_STEP_RECOVER_START
public static final int GPBILLING_STEP_RECOVER_SERVER
public static final int GPBILLING_STEP_RECOVER_GP
public static final int GPBILLING_STEP_SERVER_UNFINISH_QUERY
public static final int GPBILLING_STEP_MAX
public int mStepIndex
public long mBeginTime
public long mEndTime
public long mDuration
public int mErrType
public java.lang.String mErrDesc
public long mV1
public long mV2
public long mV3
public long mV4
public GPBillingReporter(android.content.Intent intent, boolean isEnableReporter, boolean isDelayFirstReport)
public GPBillingReporter(int srcType, java.lang.String srcName, long baseTime, boolean isEnableReporter, boolean isDelayFirstReport)
public static GPBillingReporter fromIntent(android.content.Intent intent, boolean isEnableReporter, boolean isDelayFirstReport)
intent
- 意图信息public void onPageLaunchCompleted(boolean succ, GPBillingReporter.GPBillingUIDataContext context, long ecode1, long ecode2, long ecode3, long ecode4, java.lang.String emsg, java.lang.String rmsg)
context
- public void onPageDestroy()
public boolean invalid()
public boolean isInvalidPayment()
public void resetSource(int srcType, java.lang.String srcName)
srcType
- 来源类型srcName
- 自定义来源名称public void setSkuID(java.lang.String skuID)
skuID
- 商品IDpublic void setMoney(java.lang.String money)
money
- 价值public void setCoins(java.lang.String coins)
coins
- 金币public void setCurrency(java.lang.String currency)
currency
- 币种public void setServerOrderID(java.lang.String orderID)
public void setServerStransID(java.lang.String stransID)
public void setSDKTransID(java.lang.String transID)
public void refreshPaymentID()
public void setSelectChannel(int channel)
channel
- 渠道编号public java.lang.String getSessionID()
public java.lang.String getCPayID()
public int getStepIndex()
public int getActionIndex()
public void onSelectProduct_GoogleServiceUnavailable(java.lang.String skuID, java.lang.String money, java.lang.String gold, java.lang.String currency, long ecode, int conn, java.lang.String emsg)
skuID
- 商品IDmoney
- 价值gold
- 金币数量currency
- 币种ecode
- 错误码conn
- 连接状态emsg
- 错误消息public void beginSelectChannel()
public void beginPayment(java.lang.String skuid, java.lang.String money, java.lang.String coins, java.lang.String currency)
skuid
- money
- coins
- currency
- public void clearPay()
public void clearStep()
public boolean beginStep(int index)
index
- 步骤编号public void endStep(boolean succ, long v1, long v2, long v3, long v4, java.lang.String emsg, java.lang.String rmsg)
succ
- 是否成功了v1
- 自定义错误码1v2
- 自定义错误码2v3
- 自定义错误码3v4
- 自定义错误码4emsg
- 自定义错误信息rmsg
- 自定义响应信息public void endStep(boolean succ, long v1, long v2, long v3, long v4, java.lang.String emsg, java.lang.String rmsg, boolean isReportAndClear)
succ
- 是否成功了v1
- 自定义错误码1v2
- 自定义错误码2v3
- 自定义错误码3v4
- 自定义错误码4emsg
- 自定义错误信息rmsg
- 自定义响应信息isReportAndClear
- 是否回报埋点并清除步骤信息public GPBillingReporter setStepServerOrderID(java.lang.String id)
id
- 订单IDpublic GPBillingReporter setStepStransID(java.lang.String id)
id
- 订单IDpublic GPBillingReporter setStepSDKOrderID(java.lang.String id)
id
- 订单IDpublic GPBillingReporter setError(int etype, java.lang.String edesc)
etype
- 错误类型(目前只有0和1,表示这一步是否有错误)edesc
- 错误描述public GPBillingReporter setStepV1(long v)
v
- 返回值public GPBillingReporter setStepV2(long v)
v
- 返回值public GPBillingReporter setStepV3(long v)
v
- 返回值public GPBillingReporter setStepV4(long v)
v
- 返回值public static void reportForceConsume(int rcode, java.lang.String skuID, long googleOrderTime, java.lang.String googleOrderID, java.lang.String googleOrderPayload, java.lang.String googleOrderToken, java.lang.String serverOrderID, java.lang.String transactionID)
rcode
- 响应代码skuID
- 商品IDgoogleOrderTime
- 谷歌订单时间googleOrderID
- 谷歌订单IDgoogleOrderToken
- 谷歌订单TOKENgoogleOrderPayload
- 谷歌订单PayloadserverOrderID
- 服务端订单IDtransactionID
- 小白楼订单ID