jwplayer / ott-web-app

Reference implementation for JWP-powered apps
Apache License 2.0
70 stars 52 forks source link

Handle subscriptions purchased via external payment gateways or in-app #471

Open ChristiaanScheermeijer opened 6 months ago

ChristiaanScheermeijer commented 6 months ago

Users can cancel their subscription on the payments page, but when it is purchased in-app, the cancel subscription call fails. Instead of showing the Cancel subscription button, we should explain how the subscription can be managed.

We could show a link to the relevant provider:

const STORE_LINKS = {
  Apple: 'https://support.apple.com/en-qa/118428',
  Android: 'https://support.google.com/googleplay/answer/7018481?hl=en',
  Roku: 'https://support.roku.com/article/208756478',
};