此付款方式已被拒绝。 (信用卡、借记卡、PayPal 和兑换)
This payment method has been declined. (Credit card, debit, PayPal and Redeem)
可以访问该产品,但我无法使用任何方式付款。此付款方式已被拒绝。 (信用卡、借记卡、贝宝和兑换)这些都不起作用。我不知道在哪里修改,或者我是否必须在我的应用程序控制台中添加一些特殊设置。请帮忙!
我的代码:
public void inAppBilling (){
ArrayList<String> skuList = new ArrayList<> ();
skuList.add(idReal);
Bundle querySkus = new Bundle();
querySkus.putStringArrayList("ITEM_ID_LIST", skuList);
Bundle skuDetails;
try{
//Toast.makeText(PurchaseActivity.this, "Ya has entrado chaval", Toast.LENGTH_LONG).show(); (“inapp” or "subs").
skuDetails = mService.getSkuDetails(3,getPackageName(),"inapp",querySkus);
int response = skuDetails.getInt("RESPONSE_CODE");
if (response == 0) {
ArrayList<String> responseList
= skuDetails.getStringArrayList("DETAILS_LIST");
for (String thisResponse : responseList) {
JSONObject object = new JSONObject(thisResponse);
String sku = object.getString("productId");
String price = object.getString("price");
System.out.println("price "+price+" Sku" +sku+" "+currentUser.getBoolean("completeContent"));
if (sku.equals(idReal)){
System.out.println("price "+price+" Sku" +sku+" "+currentUser.getBoolean("completeContent"));
//Bundle buyIntentBundle = mService.getBuyIntent(3, getPackageName(), sku, "inapp", "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ");
Bundle buyIntentBundle = mService.getBuyIntent(3, getPackageName(), sku, "inapp",null);
//"+U7F9DbU//IE+Xl1kOuMM2xkTIpL58FjWAoyh5WriyC8jqoQYMOvMrpwIDAQAB");
PendingIntent pendingIntent = buyIntentBundle.getParcelable("BUY_INTENT");
startIntentSenderForResult(pendingIntent.getIntentSender(), 1001,
new Intent(), Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0));
}
}
}
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IntentSender.SendIntentException e) {
e.printStackTrace();
}
}
大家好看到这个问题,这是 Google 开发者帐户的问题,似乎已经有 7 或 8 年了,所以不支持应用内购买或付款。干杯!
可以访问该产品,但我无法使用任何方式付款。此付款方式已被拒绝。 (信用卡、借记卡、贝宝和兑换)这些都不起作用。我不知道在哪里修改,或者我是否必须在我的应用程序控制台中添加一些特殊设置。请帮忙!
我的代码: public void inAppBilling (){
ArrayList<String> skuList = new ArrayList<> ();
skuList.add(idReal);
Bundle querySkus = new Bundle();
querySkus.putStringArrayList("ITEM_ID_LIST", skuList);
Bundle skuDetails;
try{
//Toast.makeText(PurchaseActivity.this, "Ya has entrado chaval", Toast.LENGTH_LONG).show(); (“inapp” or "subs").
skuDetails = mService.getSkuDetails(3,getPackageName(),"inapp",querySkus);
int response = skuDetails.getInt("RESPONSE_CODE");
if (response == 0) {
ArrayList<String> responseList
= skuDetails.getStringArrayList("DETAILS_LIST");
for (String thisResponse : responseList) {
JSONObject object = new JSONObject(thisResponse);
String sku = object.getString("productId");
String price = object.getString("price");
System.out.println("price "+price+" Sku" +sku+" "+currentUser.getBoolean("completeContent"));
if (sku.equals(idReal)){
System.out.println("price "+price+" Sku" +sku+" "+currentUser.getBoolean("completeContent"));
//Bundle buyIntentBundle = mService.getBuyIntent(3, getPackageName(), sku, "inapp", "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ");
Bundle buyIntentBundle = mService.getBuyIntent(3, getPackageName(), sku, "inapp",null);
//"+U7F9DbU//IE+Xl1kOuMM2xkTIpL58FjWAoyh5WriyC8jqoQYMOvMrpwIDAQAB");
PendingIntent pendingIntent = buyIntentBundle.getParcelable("BUY_INTENT");
startIntentSenderForResult(pendingIntent.getIntentSender(), 1001,
new Intent(), Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0));
}
}
}
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IntentSender.SendIntentException e) {
e.printStackTrace();
}
}
大家好看到这个问题,这是 Google 开发者帐户的问题,似乎已经有 7 或 8 年了,所以不支持应用内购买或付款。干杯!