Help with IAP extension

Hi everyone,

I’m using the In-App Purchases (IAP) extension in GDevelop and overall everything works fine — purchases go through successfully. However, I’ve run into an issue with displaying the item’s price.

Instead of showing something like $2.99, the value returned is always 0. The purchase itself completes correctly, but the displayed price is not accurate.

Has anyone else run into this problem or know what might be causing it? Any help or suggestions would be greatly appreciated!

There is already a post regarding this problem.

My reply is the latest post here.

Make sure that you follow the In-App purchase guide by the letter and that you are typing everything correctly.

I also thought it was a problem with the extension, but it worked for me in the end.

thank you very much, i saw your message i will try what you did and i hope it works.

1 Like

No problem.

It’s a bit confusing at first.

Have you seen the example from Gdevelop’s website?

This is the one I used to create mine.

It turns out .price didn’t work but when I changed to .offers[0].pricingPhases[0].price it just worked :muscle:

1 Like

Great to hear! :smiley: Make sure to show the price for each currency!

Yah I will thank you