2017-08-09 3 views
3

は私の実装です:Androidインスタントアプリでアプリの請求を行うことは可能ですか?ここで

private IabHelper mIabHelper; 
@Override 
protected void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    mIabHelper = new IabHelper(this, GOOGLE_BASE64_KEY); 
    mIabHelper.startSetup(this); 
} 

@Override 
public void onIabSetupFinished(IabResult result) { 
    if (result.isSuccess()){ 
     mIabHelper.queryInventoryAsync(true, this); 
    } else { 
     Log.e("test","onIabSetupFinished-result:"+result.getMessage()); 
    } 
} 

それから私はこの得た:

08-09 21:44:00.859 5839-5839/? D/IabHelper: IAB helper created. 
08-09 21:44:00.859 5839-5839/? D/IabHelper: Starting in-app billing setup. 
08-09 21:44:00.923 5839-5839/? D/IabHelper: Billing service connected. 
08-09 21:44:00.925 5839-5839/? D/IabHelper: Checking for in-app billing 3 support. 
08-09 21:44:00.934 17057-17069/? I/Finsky: [430] com.google.android.finsky.billing.iab.z.b(44): ...: Account from first account - [...] 
08-09 21:44:00.937 17057-17069/? W/Finsky: [430] com.google.android.finsky.billing.iab.z.a(64): Package name ... does not match UID 99089 
08-09 21:44:00.938 5839-5839/? E/test: onIabSetupFinished-result:Error checking for billing v3 support. (response: 5:Developer Error) 
+1

答えを

より多くの更新は今のところありませんまだですが、あなたはでアップデートを探すことができます:https://developer.android.com/google/play/billing/billing_library_releases_notes.htmlとhttps: //developer.android.com/topic/instant-apps/release-notes.html – ManmeetP

答えて

3

Googleが請求を再生し、まだインスタントAppsでサポートされていませんが、我々はそれに取り組んでいます。 Android Instant Apps policyを参照して

0

ndroidインスタントは、これらの購入はアプリ内課金はGoogle Playでサポートされていないと、開発者は、ファイル上のユーザーの支払い情報を持っていない場合、Googleの決済APIを使用する必要があり、開発者Appsの。デベロッパーは、Google Payment APIを使用して、ユーザーの新規または代替の支払い情報を収集する必要があります。

インスタントアプリでGoogle Payment APIを実装したデベロッパーは、現金での引き渡しなどのオフライン支払いやインスタントアプリにストアギフトカードを提供することもできます。 Play Billing Library

関連する問題