How to choose an offering for in app purchase?

My post is related to IAP on Android.

I have read through the available IAP documents and am struggling to understand or use the content on the following page to help me with my issue.

What I am trying to do is:

  • Make the user buy a package from an offering that is not the default offering.

What I have tried so far is:

  • *I tried using the block structure that is proposed everywhere, “in app purchase offerings” block, followed by a “buy in app purchase package” and using the identifier “availablePackages.0” and that works fine, the user can buy the first package within the default offering. However, I have many offerings, and I don’t see a way to specify the name of the offering. I would like to make the user buy a specific package in a specific offering, if that makes sense.

    I appreciate any help!
    *

Hi @pn9pdrkvq955v3ix
It is not possible to call a different offering.

All the products should be on the same offering,

To call different products you can use the “availablePackages.” and a number. The number corresponds to the order in which the products are listed in the offering. For example, the first product is 0, the second 1, etc.

For the second product, the property needs to be “availablePackages.1”:

Understood! Thanks :slight_smile:

1 Like