openedx / openedx-app-ios

The mobile app for iOS for the Open EdX Platform.
Apache License 2.0
19 stars 13 forks source link

feat: Course Upgrade Option with IAP #445

Closed saeedbashir closed 5 days ago

saeedbashir commented 4 weeks ago

This PR adds course upgrade option with IAP. At the moment, support is being added for non-consumable products.

Config:

Local Config: ECOMMERCE_URL: 'https://ecommerce.example.com' // e-commerce base URL for the course upgrade application

The feature is configurable via server config.

{
  "iap_config": {
    "enabled": true,
    "restore_enabled": false,
    "ios_disabled_versions": "[]"
  },
  "value_prop_enabled": true // to hide/show upgrade information messages.
}

https://github.com/openedx/openedx-app-ios/assets/5606473/6b3f6849-0b8c-43e0-a07a-b867f3e774c3

Note: The work is in progress and can have some issues, but the architecture is almost final and will not change much.

saeedbashir commented 5 days ago

It's decided that this change will not go upstream so closing it