Skip to content

lele0108/Posters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lob and Stripe API

RESTful API built using Lob and Stripe to charge customers and print posters

Built by the fine folks at Hacker Supply Co.

Requires MongoDB.

##API usage:

###POST /api/buy:

####parameters: name: String
address_line1: String
address_line2: String (optional)
address_city: String
address_state: String
address_zip: Number
address_country: String
email: String
phone: Number
stripe_token: String

#####response: 200OK
{
"message": "Poster has been purchased and sent to printing!",
"confirmation": "53d9e428a4338e1610000001"
}

GET /api/status/:confirmation

####paramters: confirmation: String (MongoDB _id)

####response: 200OK
{
"name": "Jimmy Liu",
"status": "processed",
"packaging": "Smart Packaging",
"tracking": null
}
##License (The MIT License)

Copyright (c) Jimmy Liu.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Store API for Stripe + Lob used for printing posters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published