bcackerman / stripeconnector

Stripe Connect with Devise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stripe Connect & Devise Rails Example

This is an an example app using Stripe Connect and Devise.

Steps

  1. Create an app in Stripe’s account: manage.stripe.com/account/applications

  2. Add your keys to your ‘config/initializers/devise.rb` file

Make sure to go to Stripe’s Account Settings > Applications and set your Redirect URL to: localhost:3003/users/auth/stripe_connect/callback

The Webhook URL will be something similar: www.yourdomain.com/users/auth/stripe_connect/callback

Then you can go to this url to test it: /auth/stripe_connect

If you go to that url with any query params, they will be passed along to Stripe. Read [Stripe’s OAuth Reference] (stripe.com/docs/connect/reference) for more information.

Notes

I haven’t had time yet to write the unit tests but will get to it.

More info on the stripe-connect gem here: github.com/isaacsanders/omniauth-stripe-connect

About

Stripe Connect with Devise


Languages

Language:JavaScript 58.1%Language:Ruby 41.7%Language:CoffeeScript 0.2%