Code Monkey home page Code Monkey logo

stripe-connect-managed-rails's Introduction

Deprecated

This repository has moved here.

Fundraising Marketplace: A Stripe Connect example app

An example application built using Stripe Connect custom accounts. This application is provided as an example, but isn't meant to be run in production.

Dashboard demo

Payout demo

Charge view demo

Demo

You can find a working demo of this application deployed and running in test mode at https://stripe-marketplace-demo.herokuapp.com/. Feel free to create an account, create a campaign, and make donations to see some data populated in the dashboard. You can find test card numbers, bank accounts, and identity verification details in Stripe's documentation.

Features

๐Ÿ”’ Uses Devise for user authentication.

๐Ÿ’ธ Create fundraising campaigns and custom Stripe Connect accounts.

๐Ÿ“ˆ Fairly complete seller dashboard to view charges, create refunds, view payouts, etc.

๐Ÿ“ฑ Fully responsive for mobile browsers.

๐Ÿฆ Add and modify connected bank accounts.

๐Ÿ’ณ Make donations with either Stripe Elements or Stripe Checkout. Make successful donations using valid test card numbers or see declines using test cards.

๐Ÿ˜Ž Take a 10% application fee from connected accounts for successful charges.

โšก Create payouts to debit cards using instant payouts and take a 3% platform fee in return using account debits.

๐Ÿ“‹ Identity verification example form and dashboard prompt to work through the identity verification process. Includes examples of collecting all info up front vs incrementally.

๐Ÿ’ฉ Create disputes and use webhooks to recover funds + dispute fees automatically via account debits.

โ†ช๏ธ Includes webhook signature validation for enhanced security.

Shortcomings, things still needed

  • Still pretty basic integration tests.
  • Email receipts/notifications/etc.
  • Additional features like pagination for charges/transfers, ACH payments, alternative payment methods, etc.

Specs

Built on Rails 5 and running Ruby 2.2. Uses the 2016-07-06 API version.

Setup

To run this locally, clone the repository and run bundler to install dependencies:

git clone https://github.com/adam-stripe/stripe-connect-managed-rails.git
cd stripe-connect-managed-rails
bundle install

Migrate:

$ rails db:migrate

Retrieve your Stripe API keys and set them as environment variables. You can run this app locally by starting Rails server:

PUBLISHABLE_KEY=YOUR_STRIPE_PUBLISHABLE_KEY SECRET_KEY=YOUR_STRIPE_SECRET_KEY ENDPOINT_SECRET=YOUR_WEBHOOK_ENDPOINT_SECRET rails s

stripe-connect-managed-rails's People

Contributors

adam-stripe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stripe-connect-managed-rails's Issues

Wordpress (Thema: Hirebee) custom connect

Hi,
i have site build in wordpress (Hirebee) which is working as job portal (freelancers, employers)
Have plugin which allows users to connect them self to stripe (standard connect), but there are fields which are not necessary for them (like company name, web adress...). I would like to use custom connect, so they donnt need to fill out so many fields (this looks very good to me: https://stripe-ach-example-app.herokuapp.com/)
Which .php file do I need to edit, so system would take the custom stripe connect? Or is it necessary to create new plugin? Thank you very much and i muss say great job you are doing

Missing required param: type.

Hi There,

I am testing out your example app and I'm running into an issue where I was getting an error "Missing required param: type."

I looks like it just needed some minor changes in the stripe_accounts_controller:
Remove "managed: true,"
Add "type: 'custom'," where "managed: true" used to be. *Do not remove type from legal_entity. Both are needed.

I guess this was due to API changes but I thought I'd add it here in case anyone else was running into the same issue.

Storing bank numbers

Anyone coming here..

Do not store the stripe account information in the DB. You should only be storing the stripe account token they get back to you.

Allow the params to pass, but DO NOT store the bank, routing, SS numbers, etc.

This is a huge liability.

This github is great for getting started but there is a bit more to get on for going live in produciton env.a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.