You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My first time implementing in-app purchase so I might have a bit less knowledge about the whole lifecycle of the IAP. I only have in-app products to buy virtual coins that the user can buy as many times as they like hence isConsumable will be true for my case.
My implementation if IAP can be summed up to three changes:
App.tsx the entry point of the app which has my navigator etc I did initConnection
In the Home.tsx which is the first screen that the App.tsx loads in any case i.e. auth or non-auth users is where I added purchaseUpdatedListener and this is also where finishTransaction happens.
The BuyCoins.tsx screen is where I getProducts as well as requestPurchase when a buy button is pressed.
The "acknowledged":false should be true as it's a consumable product and as soon as user buys any product it should return true because i did call it after await finishTransaction...
Description
My first time implementing in-app purchase so I might have a bit less knowledge about the whole lifecycle of the IAP. I only have in-app products to buy virtual coins that the user can buy as many times as they like hence
isConsumable
will be true for my case.My implementation if IAP can be summed up to three changes:
App.tsx
the entry point of the app which has my navigator etc I didinitConnection
Home.tsx
which is the first screen that the App.tsx loads in any case i.e. auth or non-auth users is where I addedpurchaseUpdatedListener
and this is also wherefinishTransaction
happens.BuyCoins.tsx
screen is where IgetProducts
as well asrequestPurchase
when a buy button is pressed.For all the three points above here is the code:
App.tsx
Home.tsx
BuyCoins.tsx
Expected Behavior
When I purchase it goes through successfully but in finish payment if I try to print the
transactionReceipt
I get:The
"acknowledged":false
should be true as it's a consumable product and as soon as user buys any product it should return true because i did call it afterawait finishTransaction...
Screenshots
N/A
Environment:
[Optional] Additional Context
I sometimes get error in finishTransaction
[Error: Purchase failed with code: 8]
The text was updated successfully, but these errors were encountered: