Skip to content

Instantly share code, notes, and snippets.

@A412
Last active January 6, 2019 03:40
Show Gist options
  • Save A412/23cd531395f55c2dee979711c31b8a60 to your computer and use it in GitHub Desktop.
Save A412/23cd531395f55c2dee979711c31b8a60 to your computer and use it in GitHub Desktop.
geeni stripe api
base url is www.geeni.org
first two indentations are paths
CAPITALS are request methods
last identation is queries
return is in {}
state is 1 for success 0 for anything else
message is "success" or failure message
stripeid/chargeid is stripe internal id for object, already written to firebase so no need to
site will use HTTPS/SSL in future but currently does not so stick to test ccs / bank accounts
available from https://stripe.com/docs/testing
example request
curl -X POST www.geeni.org/stripe/customer?id=5ytnsd58DmdNV6OCfg4voI6WhkA2&cc=4242424242424242&expm=07&expy=19&cvc=788
stripe
customer
POST
id
cc
expm
expy
cvc
{state: , message: , stripeid: }
id
token
{state: , message: , stripeid: }
PUT/PATCH
id
cc
expm
expy
cvc
{state: , message: , stripeid: }
id
token
{state: , message: , stripeid: }
DELETE
{state: , message: }
tutor
POST
id
account_number
routing_number
{state: , message: , stripeid: }
id
token
{state: , message: , stripeid: }
PUT/PATCH
id
account_number
routing_number
{state: , message: , stripeid: }
id
token
{state: , message: , stripeid: }
DELETE
id
{state: , message: }
charge
POST
from_id
to_id
amount
fee
{state: , message: , chargeid: }
token
GET
id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment