iaphub / react-native-iaphub

The easiest way to implement IAP (In-app purchase) in your React Native app.
https://www.iaphub.com/
MIT License
319 stars 21 forks source link

getProductsForSale() doesn't work after updating to the production plan #64

Closed alan-dx closed 3 years ago

alan-dx commented 3 years ago

first of all, I want to thank you for making this incredible library available, it has helped me a lot.

For some reason, after upgrading to level 1 of the production plan, the function getProductsforSale() stopped working, but it worked well when in test mode.

i am getting the following error code: sku_not_for_sale

I didn't change anything in the code, I just updated to the production plan, however I was not charged the amount of USD 26.00, although in the settings of the IAPHUB dashboard it indicates that my plan is already level 1. I was only charged USD 1,00 that was returned to me later.

alan-dx commented 3 years ago

Solved, there was an error in my code in the implementation of the asynchronous function that made the request to IapHub.

I managed to solve it.