- There is a form on my page which collects credit card information
- The user fills this out, it is sent via JavaScript to Stripe
- Stripe returns a status code and if it worked, a token
- The callback then submits the token to your server where you associate it to that user by passing it as the card when you create a customer via their api
- The customer has a customer id, which you need to associate to your user
- You can then charge the customer through the api using the customer id
- Presumably reponse has a payment id or something which you can then save in your db to record that the user has paid you
Created
April 29, 2014 16:40
-
-
Save JoshCheek/11405678 to your computer and use it in GitHub Desktop.
Is this how stripe works?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment