There's an issue when working with Grouped Subscriptions.
Suppose we have a Subscription group with 3 subscriptions: sub1, sub2 and sub3.
The code originally validated against the first item of whatever Apple returned. The problem is that the list can contain any item of the group, thus, if the first purchase is for ID sub1, that's going to be the only item picked when validating the fields. Thus, if the last subscription purchased was for ID sub3, we will get an error when validating against the parameters sent to this module since the current productId would be sub3, yet it will be validated against the first item returned by Apple, with ID sub1.
There's an issue when working with Grouped Subscriptions.
Suppose we have a Subscription group with 3 subscriptions:
sub1
,sub2
andsub3
.The code originally validated against the first item of whatever Apple returned. The problem is that the list can contain any item of the group, thus, if the first purchase is for ID
sub1
, that's going to be the only item picked when validating the fields. Thus, if the last subscription purchased was for IDsub3
, we will get an error when validating against the parameters sent to this module since the currentproductId
would besub3
, yet it will be validated against the first item returned by Apple, with IDsub1
.Hope this helps. It's working on my side.