Skip to content

Instantly share code, notes, and snippets.

@ritchiey
Created December 3, 2014 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ritchiey/d250fee4b0a7fcb627f7 to your computer and use it in GitHub Desktop.
Save ritchiey/d250fee4b0a7fcb627f7 to your computer and use it in GitHub Desktop.
Pin API Workflow
Feature: Receiving Payment
As a website owner
In order to monetize my site
I want to receive credit card payments into my back account
Background:
Given I have a valid Pin Account
Scenario: Receiving a once-off payment
Given the customer is on the payment page
When she fills in her payment details
And presses the "Pay Now" button
Then I should receive the paid amount into my Pin account
Scenario: Receiving a repeat payment
Given the customer is authenticated to my site
And I've previously stored the customer's payment details with the Pin Payment API
When the customer makes a payment
Then the payment is completed using the customer's previously stored payment details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment