
- the sheet is summoned when the webapp sends the app postmessage with
{ name: 'upgradeUser', value: userId, appleSubscriptionId }
- when the sheet closes , the app can send the webview a postmessage with
{name: 'upgradedUser', isSuccess: bool, userId}
- webapp receives postmessage and upgrades the user for the session
- on payment success storekit can send a webhook with the userid to the kinopio-server. kinopio-server, verifies the webhook and updates the user db so the user is upgraded for all sessions
POST SERVER_URL/billing/webhooks-apple
[`https://api.kinopio.club](<http://api.kinopio.club/>)/billing/webhooks-apple`
[<https://650a-35-128-25-127.ngrok-free.app>](<https://650a-35-128-25-127.ngrok-free.app/>)/billing/webhooks-apple
- when payment is cancelled later on, storekit can send a webhook with the userid to the kinopio-server. kinopio-server verifies the webhook and updates the user db and they'll be un-upgraded from their next session
App Store Connect tasks
Other stuff
- [x] student discounts and referral credits are not available in the ios app, so hide those
- [x] update help site price page
- [ ] Q: @Lucas one thing i'm also not sure of , when we resubmit the app with a new build do we have to continue the same app review response thread (eg do we have to send vids etc.) , or does resubmitting get us a whole new app review?
- [ ] pirijan: after testing, remove console.logs from server
/webhooks-apple
Polar Sight TEMP – Kinopio