In my app I need to purchase multiple paid subscription products in a different purchasing sessions
For instance:
(user) become pro ----> single user purchase
(page) purchase BASE ----> multiple pages
(page) purchase SILVER ----> multiple pages
(page) purchase GOLD ----> multiple pages
there could be multiple and different page type and an user could, potentially, purchase:
3 pages type X
2 pages type Y
the purchase flow works perfectly the first time, but I cannot understand how to achieve the renewal process because the Iaptic webhook send me data not related to a single purchase, but related to the customer who made the purchase.
I tried to change the applicationUsername before making the purchase based on the specific case I need, and the first time (before the renewal) it works fine
"applicationUsername": "page_<ID>",
in case the user is purchasing a "page" item
or
"applicationUsername": "user_<ID>",
in case the user is purchasing the "user pro" item
So, my question is:
is there a way to "link" a purchase to a specific product (user/page) or a way to add additionalData to the purchase so my webhook code can understand which item is renewing?
In my app I need to purchase multiple paid subscription products in a different purchasing sessions For instance:
there could be multiple and different page type and an user could, potentially, purchase:
the purchase flow works perfectly the first time, but I cannot understand how to achieve the renewal process because the Iaptic webhook send me data not related to a single purchase, but related to the customer who made the purchase.
I tried to change the applicationUsername before making the purchase based on the specific case I need, and the first time (before the renewal) it works fine
in case the user is purchasing a "page" item or
in case the user is purchasing the "user pro" item
So, my question is: is there a way to "link" a purchase to a specific product (user/page) or a way to add additionalData to the purchase so my webhook code can understand which item is renewing?