In App Billing Component

Hello, I want to add three purchase products to my application using the In-App Billing component, but I see that some blocks are obsolete and I’m confused. Could someone provide an example of how to add a product using the non-obsolete blocks? Thank you.

Hi dear,

Welcome to the Kodular community!

Here you can find the official documentation:

Question:
Have you already created the products in the console?
If yes, it’s quite simple, you just call the purchase block with the productId and productType and that’s it.
After that, you should add checks like verify whether the purchase was successful.

If you’re starting from scratch instead, our dear securebugs has created a guide specifically about this.

1 Like

I have tried placing the blocks as in the image but it doesn’t work. I click on it and it does nothing. I upload capture of the blocks.
Thank you.

Thanks, I already have the Google Play Console ID.
I’ll try using the blocks from the screenshot.
One last question: Can you test the purchase from Companion?
Thanks in advance

I don’t think so, but the only way is to try (maybe enable test mode from the Play Store).

In App Billing - Test Mode


As for the blocks,
Product type can be either inapp or subs.

In App Billing - Product Details

1 Like

You didn’t follow My guide instruction carefully. There is few limitations you have to follow as it is in guide.
Please follow guide.
You can’t keep product id with _ etc.

It still doesn’t work.
I click the 25 coin button and nothing opens. These are the blocks I currently have. I have removed the “_” from the ID and the product type is “inapp” in lowercase. I am testing the sde google play console application in internal testers and it does not work. What could be wrong?
Thanks again.



Space?

1 Like

OMG
I thought Kodular added that space by default. Copying and pasting the ID probably caused the error.

Thank you so much.

haha :rofl:
no problem, it was a pleasure helping you.

Have a nice day, dear

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.