Hi, I'm trying to add new functional testing using StoreKitTest.
I would like to implement a functional testing end-to-end. Retrieving a product, then buying it, sending the receipt to the server to validate it and giving the access.
And then adding simple purchase test, upgrade, downgrade...
I was very very excited when I discovered StoreKitTest, but I'm facing to an error when the server is trying to validate it.
Do I'm doing something wrong ? Is it possible ?
I heard that the verifyReceipt endpoint can't valide receipt generated by StoreKitTest. Do someone has an idea do implement a real end-to-end functional testing ?
To be honest I'm a bit disappointed, the documentation says "implement a server-side validation", so following this recommendation the application should not do anything with this receipt excepted giving it to the server. So why adding a StoreKitTest if we can't send it to the server ?
I think that most companies are using the server as source of truth because the validation is there so, for example, this method is a bit weird IMO refundTransaction(identifier:). 🙂
Post
Replies
Boosts
Views
Activity
We have a service offering a 1-month auto-renewal subscription with a free-trial period.
We have 3 products, all on the same subscription-group, renewing every month, all offering 1-month free-trial.
What happens if the user subscribe to the level-1, get its free-trial then upgrade to the level-2 during this free-trial period ?
Will it loose its free-trial period ? or will it be migrated to the level-2 until the end of the free-trial ?
Thanks :)