Closed akshetpandey closed 6 years ago
i guess this is fine but at the same time we should update the purchaseProduct calls to check if they can make payments.
It will error out both ways, so doesn't really make a difference in result.
difference being you will get a clear "not_available" error callback to handle it in the js. at the very least we should call out in the docs for buy products to check for payments before making a purchaseProduct request.
Fair enough, let me make that change.
i think it's a reasonable pattern to ask for users to check first. so let's just update the docs only.
Added README changes
Restricting IAPs doesn't prevent us from fetching product information. A better way to handle this is to check canMakePayments method and show appropriate message on the payment screen.