Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Latest commit

 

History

History
19 lines (11 loc) · 1011 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 1011 Bytes

Example Lobby Boy Backend

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:

  1. /user, which takes 3 parameters (stripeToken, email, and name) to create a customer on your Stripe account.
  2. /charge, which takes 2 parameters (customerId and amount) 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:

Deploy

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!