Im using
setup({ storekitMode: "STOREKIT2_MODE" });
But the problem is:
When trying to purchase subscription directly sandbox environment works correctly and Im not charged (and sandbox account is detected) and same is with in all other cases (getting receipts, getting previous purchases) so everything works for sandbox account EXCEPT offer activation, when trying to do it, it tries to activate the code using original Apple id and trying to charge, but ok I will just set low price to test it, the problem is that offer activation is for Real Apple Id and all other environment is for sandbox account, so they are not synced and I can’t get receipt for purchase.
Loging out from sandbox account and testing on TestFlight does not work, because in dev mode or on TestFlight environment is sandbox anyway, so how can I test this scenario?