Search Unity

2 IAP script?

Discussion in 'Unity IAP' started by domdev, Mar 19, 2018.

  1. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    can I add 2 iap script? cause 1 iap will be for store, and 2nd iap for deals which be schedule..
     
  2. Benvictus

    Benvictus

    Joined:
    Sep 12, 2013
    Posts:
    87
    @domdev

    It is best to have all products added to one single builder.

    So I understand correctly; You have deals that you want to make live or disable, depending on the season, event or other occasion?

    If so, I'd recommend setting it up so the deal products are added to the builder, however, unless the deal is active, it won't be presented as a possible purchase.

    You can use Remote Settings to achieve this. Remote settings can allow you to set up a variable who's value is linked in your game. You can then enable and disable certain deal packages remotely, without having to update or change the products assigned to the builder.