Hey,
because of how our subscriptions work in general, we have decided to not use the RevenueCat SDK to create purchases, but announce them to our own API, which will in turn make an HTTP call to RecenueCat’s /receipts route, passing the neccessary data.
Arguably the most important piece of data is the fetch_token from the app store.
The problem arises when we’re trying to run automated integration tests via our CI server - without doing an actual purchase on an actual hardware device, we won’t have a valid fetch token, so the API will always answer with the (reasonable) error: "The receipt is not valid.".
So my question is two-fold:
- is there any way to simulate a purchase for testing purposes?
- how to others solve the testing issue?
Or is our use-case really this particularly rare?
Regards,
Markus