我正在使用app billing v3和Iabhelper接口,我的实现还可以(希望如此),但是最近我遇到了一些寄存器的问题:
“对于2012年12月5日之前的交易,您将获得”556515565155651“..”
但这是一个2015年的应用程序,此注册表未在我的Google商家帐户和财务报告中显示。 我的代码是......
IabHelper.OnIabPurchaseFinishedListener mPurchaseFinishedListener= new IabHelper.OnIabPurchaseFinishedListener() {
public void onIabPurchaseFinished(IabResult result,Purchase purchase)
{
if (result.isFailure()) {
if (purchase!=null){
try {
String price = Helper.getPriceSKU("mypackage", "mysku, "subs");
String currency = mHelper.getCurrencySKU("mypackage","mysku", "subs" );
} catch (RemoteException e) {
e.printStackTrace();
} catch (JSONException e) {
e.printStackTrace();
}
String orderId = purchase.getOrderId();
send_to_server(price, currency, orderId, "rejected");
}
} else {
try {
String price = Helper.getPriceSKU("mypackage", "mysku, "subs");
String currency = mHelper.getCurrencySKU("mypackage","mysku", "subs" );
} catch (RemoteException e) {
e.printStackTrace();
} catch (JSONException e) {
e.printStackTrace();
}
String orderId = purchase.getOrderId();
send_to_server(price, currency, orderId, "Aproved");
}
}