We own backend services that react to the receipts generated after making in-app purchases (specifically subscriptions). Right now we are using few pre-generated test receipts for validating changes in our services.
But using these pre-generated receipts (generated using sandbox environment) restricts automation of tests as the products associated with these receipts renew/cancel/expire when we run these tests over a period of time. Looking at the apple documentation, I couldn't find any such APIs. So, is there a way I could generate these test receipts dynamically for my tests (without using UI, of course)?