0

私はreact-native-billingを使用してPlayストアのIn App Purchaseを追加しようとしていますが、その方法はわかりません。 Googleがでアプリ内課金のための任意のチュートリアルを見つけることができないようAndroid用アプリ請求でネイティブ対策を実装するには?

私は非常に簡単です。この

InAppBilling.open() 
     .then(() => InAppBilling.purchase('android.test.purchased')) 
     .then((details) => { 
      this.setState({ 
       purchaseText: details.productId 
      }); 
      return InAppBilling.getProductDetails('android.test.purchased'); 
     }) 
     .then((productDetails) => { 
      this.setState({ 
       productDetailsText: productDetails.title 
      }); 
      return InAppBilling.close(); 
     }) 
     .catch((error) => { 
      this.setState({ 
       error: error 
      }); 
     }); 

のように見えるexampleを見てきました。しかし、私は理解していないと、多分それは私もdetails & productDetails &どこ彼らに

を実装することであるものを得ることはありませんアンドロイド

でアプリの購入でについての知識の私の不足のbcz android.test.purchased

をですさ

それを実装する方法は?

答えて

0

私はIn App Productsドロップダウンで書かれたことを読んでいません。これは書かれたTo add in-app products, you need to add the BILLING permission to your APK.今私は実装することができます。

関連する問題