Skip to content

Use Cases by PeteOK

Pete Oliver-Krueger edited this page Jan 16, 2014 · 3 revisions

User Stories

  • Credit Card Authorization
    • User provides credit card information.
    • System verifies that it is a valid credit card.
  • Credit Card Charge
    • User selects various items.
    • (Another application totals the items and tracks the details of the transaction.)
    • User provides credit card information, or system pulls credit card info from secure storage.
    • Systems charges the credit card for the total amount.
  • Payment Gateways
    • Stripe
    • PayPal

Requirements

  • REST AJAX Service
    • Accessible from mobile device
    • Accessible for Web
  • Credit Cards
    • American Express
    • Visa
    • Mastercard

REST API

  • /transactions/
    • GET
      • data array
        • TransactionID
        • Amount
        • Date/Time Timestamp
        • Reversed?
        • ReverseTransactionID
  • /transaction/{transactionID}/
    • TransactionID
    • Amount
    • Date/Time Timestamp
    • Reversed?
    • ReverseTransactionID
  • /authorize/
    • POST
      • Credit Card Number
      • Credit Card Account Holder
      • Credit Card Expiration Month
      • Credit Card Expiration Year
      • Credit Card Zip Code (if required)
  • /charge/
    • POST
      • Credit Card Number
      • Credit Card Account Holder
      • Credit Card Expiration Month
      • Credit Card Expiration Year
      • Credit Card Zip Code (if required)
  • /reverse/
    • POST
      • Original TransactionID
      • Amount
      • Credit Card Number
      • Credit Card Account Holder
      • Credit Card Expiration Month (if required)
      • Credit Card Expiration Year (if required)
      • Credit Card Zip Code (if required)

Data Model

  • Transaction
    • TransactionID
    • Amount
    • (Does not store credit card information. Pull from other, secure location.)

Screenshots

Buy Postcards