meh*_*met 7 android in-app-billing
好吧,我已经阅读了很多关于"开发者有效载荷"的时间但是我不清楚,"开发者有效载荷"用于什么.所以我试图将此作为空白使用:
public void onUpgradeAppButtonClicked(String SKU) {
Log.d(TAG,"Upgrade button clicked; launching purchase flow for upgrade.");
/*
* TODO: for security, generate your payload here for verification. See
* the comments on verifyDeveloperPayload() for more info. Since this is
* a SAMPLE, we just use an empty string, but on a production app you
* should carefully generate this.
*/
String payload = "";
mHelper.launchPurchaseFlow(this, SKU, RC_REQUEST,
mPurchaseFinishedListener, payload);
}
Run Code Online (Sandbox Code Playgroud)
还有这个:
boolean verifyDeveloperPayload(Purchase p) {
String payload = p.getDeveloperPayload();
return true;
}
Run Code Online (Sandbox Code Playgroud)
所以我做了一个图像.适用于3种情况.我想了解条件后会发生什么
是的,情景2中最可能发生的屎.
但是场景2中有多少用户?我想这不会很多.大多数人不共享他们的设备.
但是,如果这个有效负载字符串留空,我正在考虑另一种破解可能性.破解它很容易.
唯一令我生气的是这个东西应该在谷歌API方面.Google的工作是验证并确定谁购买了该商品.为什么我们需要自己的服务器?
归档时间: |
|
查看次数: |
3373 次 |
最近记录: |