chargebee / chargebee-react-native

MIT License
8 stars 15 forks source link

I can not retrieve products even though i can retrieve the product identifiers #153

Closed samynaj closed 7 months ago

samynaj commented 9 months ago

I have an issue retrieving products on my iOS platform even though I can retrieve their identifiers. this is how i fetch the product identifiers and i get them back: const fetchProductsIdentifiers = async () => { const queryParams = new Map(); queryParams.set("limit", "10"); try { const result = await Chargebee.retrieveProductIdentifiers(queryParams); console.log("product identifiers:", result); } catch (error) { console.log("Error when fetching product identifiers", error); console.log( "=========================", Platform.OS, "=========================" ); } };

but when i call the fetchProducts api with the array returned from the endpoint, i get an [Error: Products not found.] const fetchProducts = async () => { try { const productList = await Chargebee.retrieveProducts([ "Gold_999_1m", "Silver_199_1m", "Gold_999_1y", "Half_yearly_plan_1", "Yearly_plan_1", "Monthly_plan_1", "Weekly_plan_1", "Daily_plan_1", ]); setProductIds(productList); console.log("products:", productList); } catch (error) { console.log("Error when fetching product", error); console.log( "=========================", Platform.OS, "=========================" ); } };

I have the products i have called all setup on app store connect So I don't know what might be wrong.

cb-haripriyan commented 9 months ago

Hi @samynaj

Does this happen for iOS or Android or both ?

samynaj commented 9 months ago

hello @cb-haripriyan so I have not checked for android but this is happening on iOS, I have imported products using the CSV template to Chargebee site and the products are listed in my product catalogue, I am able to retrieve product identifiers, but not the product themselves.

cb-haripriyan commented 9 months ago

@samynaj The 'retrieveProducts' API depends on the native iOS/Android SDK's method to fetch the products. If it doesn't return any products for iOS, it can be due to missing AppStore configurations. Can you verify the following cases in your AppStore connect page?

If none of these seem to solve the problem, we can get on a call to look into this.

kauan777 commented 9 months ago

i have same problem

als260502 commented 9 months ago

Mr Kauan did you managed to solve the problem?

ViniciusGG commented 9 months ago

Please God help me I have this problem please. Helpppppppppp

lukasfkt commented 9 months ago

I'm having the same problem too, please, can anyone help us??? :((

cb-haripriyan commented 9 months ago

Hello Buzzvel folks @kauan777 / @als260502 / @ViniciusGG / @lukasfkt - Can you please confirm if the points mentioned in https://github.com/chargebee/chargebee-react-native/issues/153#issuecomment-1740503904 have been setup correctly?

If all of these are setup correctly, and issue still persist, recommend getting on a call and solving your particular case.

als260502 commented 9 months ago

Hello Buzzvel folks @kauan777 / @als260502 / @ViniciusGG / @lukasfkt - Can you please confirm if the points mentioned in #153 (comment) have been setup correctly?

If all of these are setup correctly, and issue still persist, recommend getting on a call and solving your particular case.

Hello, how and when can we schedule this call?

cb-haripriyan commented 8 months ago

Hey @als260502 - I believe that our support team is in touch with your team. You can set up the call through them. If not you can get in touch with us through our support https://support.chargebee.com

cb-haripriyan commented 7 months ago

Closing this as this is related to App Store configuration.