Local Testing with a .storekit File
Develop and QA the purchase and restore flows offline with a bundled StoreKit configuration file, without a backend or a real account.
Last updated
Was this helpful?
Was this helpful?
Onside.resetLocalTestingState(){
"products": [
{
"productID": "remove_ads",
"referenceName": "Remove Ads",
"type": "NonConsumable",
"displayPrice": "4.99",
"localizations": [
{ "locale": "en_US", "displayName": "Remove Ads", "description": "Removes all ads." }
]
}
],
"subscriptionGroups": [
{
"id": "21F5C0E3",
"name": "Premium",
"localizations": [
{ "locale": "en_US", "displayName": "Premium", "description": "" }
],
"subscriptions": [
{
"productID": "subscription_monthly",
"referenceName": "Premium Monthly",
"type": "RecurringSubscription",
"displayPrice": "9.99",
"recurringSubscriptionPeriod": "P1M",
"localizations": [
{ "locale": "en_US", "displayName": "Premium Monthly", "description": "Monthly premium." }
]
}
]
}
],
"settings": {
"_locale": "en_US",
"_storefront": "US"
}
}