Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
  • Sign in / Register
P
Purser - LDH WooCommerce
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • liberty
  • host
  • Purser - LDH WooCommerce
  • Issues
  • #3

Closed
Open
Opened Sep 13, 2019 by David Seaward@david.seaward
  • Report abuse
  • New issue
Report abuse New issue

Restrict subscriptions to valid pending accounts only

Problem statement

User story: I am a brand new user. I want to subscribe to LDH services, so that I can use them.

User story: I am an existing shop customer. I want to subscribe to LDH services, so that I can use them.

User story: I am an operator. I want to restrict subscriptions, so that users of invalid accounts are not frustrated.

Suggested solution

1. Restriction

Restrict the LDH subscription product so that only pending LDH users can purchase it. Existing LDH users cannot purchase it. Existing non-LDH WooCommerce users cannot purchase it.

2. Optional migration

Existing non-LDH WooCommerce users can migrate to an LDH account.

This ticket covers part 1, restriction. For part 2, see https://source.puri.sm/liberty/ldh_woocommerce/issues/4

Use cases

Scenario 1: New users can subscribe

Given the WooCommerce user is signed in
And they have an LDH address
And they do not already have a subscription
When they attempt to subscribe
Then they should succeed

In all other cases they should fail, specifically:

Scenario 2: Non-LDH users cannot subscribe

Given user is anonymous (not signed in)
Or they do not have an LDH address
When they view the product list
Then the LDH product does not appear
(And attempts to directly use the LDH product URL must also fail)

Scenario 3: Existing subscribers cannot subscribe again

Given the user is signed in
And they have an LDH address
And they already have a subscription
When they attempt to subscribe a second time
Then they should fail
(And attempts to directly use the LDH product URL must also fail)
Edited Sep 13, 2019 by David Seaward
  • Discussion
  • Designs

The one place for your designs

To enable design management, you'll need to meet the requirements. If you need help, reach out to our support team for assistance.

Assignee
Assign to
Feisty first launch
Milestone
Feisty first launch
Assign milestone
Time tracking
None
Due date
None
1
Labels
In progress
Assign labels
  • View project labels
Reference: liberty/host/woocommerce#3