簡體   English   中英

此付款方式已被拒絕。 (信用卡,借記卡,貝寶和贖回)

[英]This payment method has been declined. (Credit card, debit, PayPal and Redeem)

我的錯誤的圖片示例

可以使用該產品,但我無法使用任何方法付款。 此付款方式已被拒絕。 (信用卡,借記卡,貝寶(PayPal)和贖回)均無效。 我不知道要在哪里修改,或者我是否必須在應用程序的控制台中添加一些特殊設置。 請幫忙!

我的代碼: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年了,所以不支持應用內購買或付款方式。 干杯!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM