This is an an example app using Stripe Connect and Devise.
-
Create an app in Stripe’s account: manage.stripe.com/account/applications
-
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.
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