Skip to content

Instantly share code, notes, and snippets.

@sushant-j
Created February 2, 2017 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sushant-j/3e9212e69b177287da64fbdc32b37f2c to your computer and use it in GitHub Desktop.
Save sushant-j/3e9212e69b177287da64fbdc32b37f2c to your computer and use it in GitHub Desktop.

Scenrarios

One - Subscription and Consultation Charges

Not member
Monetized queue
No Force Payment

e.g. S S Ingle

Scenario 1

- Not a member
- Buy the token
- Make the payment - payment page
- Subscription Only
    - 1. 50/180 - Pay Online
- Final amount should match subscription
- Points should get credited
- Should go to paymentStatus
- Membership succesful notification

Scenario 1.1

- Not a member
- Buy the token
- Make the payment - payment page
- Subscription Only
    - 1. 50/180 - Pay Clinic
- Payment review page > Cancel Consultation Payment
- Should go to Tokens page

Scenario 2

- Not a member
- Subscription at Clinic
- Consultation only
- Fixed consultation
- Final amount should match consultation
- Should go to paymentStatus
- paymentSummary and Account page should show consultation

Scenario 2.1

- Already a member
- Consultation only
- Fixed consultation
- Final amount should match consultation
- Should go to paymentStatus
- paymentSummary and Account page should show both, subscription and consulation

Scenario 3

- User not a member
- Buy the token
- Make the payment - payment page
- Subscription and consultation
- Fixed consultation
- Final amount should match above
- Points should get credited
- Should go to paymentStatus
- Membership succesful notification
- paymentSummary and Account page should show both, subscription and consulation

Scenario 3.1

- User not a member
- Buy the token
- Make the payment - payment page
- Skip both Subscription and consultation
- Fixed consultation

Two - Discounts

Scenario 4.0

- Already a member
- Current token processed and closed

Scenario 4.1

- Already a member
- Buys a token for same queue
- Future date or future time of same day
- Pay consultation
- Eligible for Discount
- Eligible for Discount notification on Apps
- User does _NOT_ use it.
- Takes token (token 2) for another, monetized queue
- Pays consultation for token 2
- No discount for token 2.

Scenario 4.1.1

- Already a member
- Eligible for discount
- Discount >= consultation
- Should be billed as Cash
- Discount availed as <actual paid amount> (Not actual discount amount)

Scenario 4.1.2

- Already a member
- Eligible for discount
- Discount < consultation
- Remaining amount - Online [LINK PAYMENT]
- User gets a link on SMS and Email
- Uses the link to pay
- Discount availed as <discount amount>
- Paid amount as consultation-discount

Scenario 4.1.3

- Already a member
- Eligible for discount
- Discount < consultation
- Remaining amount - Cash
- User gets NO link on SMS and Email
- Discount availed as <discount amount>
- Paid amount as consultation-discount
- Notifications for discount availed

Scenario 4.1.4

- Not a member
- Buys a token
- Buys subscription
- Pays  online for subscription
- Token processed and closed.
- Buys another token (token 2)
- Eligible for discount
- Cancel a token for another monetized queue (NOT token 2)
- User becomes non-member, points go to 0
- Not eleigible for discount
- Notifications for discount availed

Three - Force Payment

Scenario 5

- Not a member
- Force pyament clinic, monetized
- Consulation payment page, MANDATORY
- Subscription optional
- Subscription + Consulatation
- Got a token

Scenario 5.1

- Not a member
- Force pyament clinic, monetized
- Consulation payment page, MANDATORY
- Subscription optional
- Subscription + Consulatation
- Got a token
  - Another token
  - Should get discount for force payment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment