Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Payments and upgrade execution for the course #1

Merged

Conversation

farhan-arshad-dev
Copy link
Member

@farhan-arshad-dev farhan-arshad-dev commented Jun 24, 2024

Payments and upgrade execution for the course

  • Learners can purchase a course and unlock the gated content
  • Loading course price on upgrade buttons successfully
  • Calling necessary APIs on interaction with the upgrade button
  • Processing the course upgrade

fixes: LEARNER-9956

Config:

Feature Flag

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 | false,
    "productPrefix": "exmaple.usd100"
    "android_disabled_versions": "[]"
  },
  "value_prop_enabled": true | false // to hide/show upgrade information messages.
}

IAP Flow Example

My Courses Course Home Tab Settings
Course_dashboard.IAP.Flow.webm
My.Courses.IAP.Flow.webm
Profile.webm

@farhan-arshad-dev farhan-arshad-dev changed the base branch from develop to 2U/develop June 24, 2024 06:10
Copy link
Collaborator

@k1rill k1rill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review done, some little changes requested
Pending review from QA

@farhan-arshad-dev
Copy link
Member Author

@k1rill PR is ready for another pass.

Copy link

@HamzaIsrar12 HamzaIsrar12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing the edge cases now.

@k1rill k1rill self-requested a review July 8, 2024 12:35
@farhan-arshad-dev farhan-arshad-dev force-pushed the farhan_ar/LEARNER-9956 branch from 548b673 to 1fc7be2 Compare July 8, 2024 16:18
Copy link
Collaborator

@k1rill k1rill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit

farhan-arshad-dev and others added 16 commits July 10, 2024 12:21
- Learners can purchase a course and unlock the gated content from the main dashboard
- Loading course price on upgrade buttons successfully
- Calling necessary APIs on interaction with the upgrade button
- Processing the course upgrade
- IAP Analytics
fixes: LEARNER-9956
- Fix unit test cases
- Issues after rebase
- Moved upgrade button to course dashboard container
- Address PR comments and code/structure improvement
- Code improvements & fixes
- In this case, the app relaunch must rerun the course upgrade flow with the available course upgrade data.

fixes: LEARNER-9917
- fix IAP Analytics issues
- Code improvements

fixes: LEARNER-10042
- Full screen loader whille course is upgarding
- Code improvements
@farhan-arshad-dev farhan-arshad-dev merged commit 8b5722f into edx:2U/develop Jul 10, 2024
4 checks passed
@farhan-arshad-dev farhan-arshad-dev deleted the farhan_ar/LEARNER-9956 branch July 10, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants