This is a really simple webapp that you can use to test your own Stripe account instead of the default one in Lobby Boy. This code is based off of Stripe's example.
It has a two endpoints:
/user
, which takes 3 parameters (stripeToken
,email
, andname
) to create a customer on your Stripe account./charge
, which takes 2 parameters (customerId
andamount
) to create a charge for a customer on your Stripe account.
This is intended for example purposes only: you'll likely need something more serious for your production apps.
To deploy this for free on Heroku, click this button:
Then set the kPaymentServerBaseUrl
variable in our Lobby Boy app to your Heroku URL (by default it's set to https://lobbyboy.herokuapp.com).
Happy Lobby Boying!