私は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
をですさ
それを実装する方法は?
'それで' 'details'をどうやって得るのですか? – deadcoder0904