有没有办法在Android应用程序购买中获取借记卡最后4位数。我正在使用以下代码。
IabHelper.OnIabPurchaseFinishedListener mPurchaseFinishedListener
= new IabHelper.OnIabPurchaseFinishedListener() {
public void onIabPurchaseFinished(IabResult result,
Purchase purchase)
{
try {
if (result.isFailure()) {
String temp =result.toString();
String a ="1";
Toast.makeText(getApplicationContext(),result.toString(),Toast.LENGTH_SHORT).show();
return;
}
else if (purchase.getSku().equals("myproduct_sku")) {
mHelper.consumeAsync(purchase, mConsumeFinished);
}
} catch (Exception e) {
e.printStackTrace();
}
我也尝试过库存方法,但没有办法获得用户用于交易的信用卡/借记卡的最后4位数。