Feature: Subscription management
  In order to get my seedpod and control my expenditure
  As a signed up user
  I want to be able to manage my subscription

Scenario: I can click a button on the homepage to sign up
  Given I am signed in
  When GoCardless sends a subscription confirmation
  Then my subscription details should be stored
  #And I should be able to see my subscription ID on my account page
Feature: Subscription management
  In order to get my seedpod and control my expenditure
  As a signed up user
  I want to be able to manage my subscription

Scenario: I can click a button on the homepage to sign up
  Given I am signed in
  When GoCardless sends a subscription confirmation
  Then my subscription details should be stored
  #And I should be able to see my subscription ID on my account page
  
Scenario: Gocardless tells us a subscription is cancelled
  Given I am signed in
  And I have a subscription set up
  When GoCardless sends a subscription cancellation
  Then my subscription should be marked as cancelled
  
Scenario: Gocardless tells us a subscription has expired
  Given I am signed in
  And I have a subscription set up
  When GoCardless sends a subscription expiry notification
  Then my subscription should be marked as cancelled

Scenario: Gocardless tells us a payment has been made
  Given I am signed in
  And I have a subscription set up
  When GoCardless sends a bill paid notification
  Then my payment should be recorded
  And I should be able to see the next pod
  
Scenario: Gocardless tells us a payment has failed
  Given I am signed in
  And I have a subscription set up
  When GoCardless sends a bill failed notification
  Then my payment should be recorded as failed
  Then I should not be able to see the next pod

Write features for gocardless webhooks; paid, failed, cancelled, and expired.
Write features for gocardless webhooks; paid, failed, cancelled, and expired.
