Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

feat: Integration of the payment SDK #1592

Merged
merged 2 commits into from
Sep 30, 2021
Merged

Conversation

farhan-arshad-dev
Copy link
Contributor

@farhan-arshad-dev farhan-arshad-dev commented Sep 22, 2021

Description

LEARNER-8429

  • Set up the app & store it for IAPs
  • No communication will be made with the backend
  • Hardcoded sample product id.

Tapping “upgrade now” brings up the option to make an in-app purchase, Payment can be made “successfully”, and considered complete on receiving a receipt for an IAP.

Testing

  • Tapping “upgrade now” brings up the option to make an in app purchase
  • Payment can be made “successfully” (i.e., Apple/Google IAP integration works correctly)
  • This story can be considered complete if we successfully receive a receipt for an IAP (no need to do anything with the receipt)
  • This story is dependent on the Task ticket to set up the app & store for IAPs
  • This story does not address actually purchasing the course, only paying for it – i.e., just the successful integration of the payment SDK
  • No communication will be made with the backend

Ref

- Set up the app & store for IAPs
- No communication will be made with the backend
- Hardcoded sample product id.

Tapping “upgrade now” brings up the option to make an in-app purchase, Payment can be made “successfully”, and considered complete on receiving a receipt for an IAP.

fixes: LEARNER-8429
Copy link
Contributor

@omerhabib26 omerhabib26 left a comment

Choose a reason for hiding this comment

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

Only some minor changes are requested

private val logger = Logger(TAG)

private var RECONNECT_TIMER_START_MILLISECONDS = 1L * 1000L
private val RECONNECT_MAX_TIME = 3 // retry connect max times
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, we should update the name according to its use. i.e, RECONNECT_MAX_COUNT

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed.

*
* This BillingProcessor knows nothing about the application, all necessary information is either
* passed into the constructor, exported as observable Flows, or exported through callbacks.
* */
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add refenence.
Need some doc for all the methods where possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added.

Copy link
Contributor

@omerhabib26 omerhabib26 left a comment

Choose a reason for hiding this comment

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

LGTM (Y)

@farhan-arshad-dev farhan-arshad-dev merged commit 81ee441 into master Sep 30, 2021
@farhan-arshad-dev farhan-arshad-dev deleted the farhan_ar/LEARNER-8429 branch September 30, 2021 06:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants