Get catalogue In IAP (codeless One)

Hi, there Im building my game store, I have included 100 characters. Some are of 1.99$ and some are 3.99$.
I have defined them all in the catalogue. But I want only one button to buy them Kind of like in crossy road.

Check the picture.

Do you have a specific question? Do you have IAP already working, and you now want to customize? You can get the localizedPrice from the Product object. https://answers.unity.com/questions/1153163/unity-in-app-purchase-is-there-a-way-to-localize-p.html I might suggest to start with the Sample IAP Project here https://discussions.unity.com/t/700293

It is not tightly related to IAPs. I have it working. I was just wondering if i have 100 characters do i have to make 100 Buy buttons? What i wanted was to learn if is there a way to just have one button in the scene and change the prices and functions on it when a certain character is selected. For that I thought maybe I’ll grab the catalogue and cache all ids and prices in a list and show accordingly.

No, seems only want one button that you change.

1 Like

How to do that?

Sorry, that would not be specific to IAP. The links I shared show you how to get the price that you could use for the button label. But before considering your customizations, you might want to get the basics working first with the Sample IAP Project

1 Like

Hi, I have played around with the sample projects and I understand it better now. I am able to implement what I asked for.
Everything is smooth works fine in the editor, But does not showup in the build. I am only using unity IAP I have not implement stuff on google play store.

Here’s In editor

7085335--843382--ezgif.com-gif-maker (1).gif

Here On Device. (build)
7085335--843385--ezgif.com-gif-maker.gif

I am using unity 2019.4.18f1

I tested it a bit more.

The IAP is not initializing on device. (works fine in editor tho) but on device the bool "CodelessIAPStoreListener.initializationComplete " alawys returns false

I would recommend to get the basics working first, as suggested. Are you downloading your app from Google Play for testing? Do you have your products configured on Google? https://docs.unity3d.com/Manual/UnityIAPGoogleConfiguration.html

I have already told you I have got the basics working. Its working fine in the editor. On the device its not working.
No I have not linked the app to google at all right now.

Are you downloading your app from Google Play for testing? NO
Do you have your products configured on Google? NO.

Kindly point me in the right direction as to why it is not initializing when build. I couldnt find any help regarding this in the sample projects.

You must link to Google, that is how IAP operates. Your NO comments must be changed to YES for IAP to work properly.

Okay, I thought It would show the products and prices on device after build as it shows in the editor without linking to google.

Ok, I’ll Link to google and post here if i hit a wall.

Step 1, you’ll need a Google developer account if you don’t have one already, $25 fee https://support.google.com/googleplay/android-developer/answer/6112435?hl=en