Giter Site home page Giter Site logo

killermonkeys / stripe-connect-rocketrides Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stripe/stripe-connect-rocketrides

0.0 1.0 0.0 20.16 MB

Sample on-demand platform built on Stripe: Connect onboarding for pilots, iOS app for passengers to request rides.

Home Page: https://rocketrides.io

License: MIT License

Ruby 0.11% Swift 43.39% JavaScript 28.91% CSS 16.55% HTML 11.05%

stripe-connect-rocketrides's Introduction

Rocket Rides: Stripe Connect Demo

Rocket Rides is a sample on-demand platform that offers passengers rides with pilots, built on top of Stripe Connect and the Stripe iOS SDK.

You can try the web app live on rocketrides.io.

This repository contains two components:

Web Onboarding for Pilots

Rocket Rides showcases how to sign up pilots and use Connect Express accounts for them to get paid. It uses pre-built UI components to be up and running quickly and customize the user experience.

This platform uses the Stripe API to create payments for pilots, fetch their available and pending balance, and let them view transfers. It also creates instant payouts for pilots to be paid immediately to a debit card.

To integrate Stripe Connect in your own app, check out these two files in particular:

  1. server/routes/pilots/stripe.js shows how to easily create Connect Express accounts and interact with the Stripe API.
  2. server/routes/pilots/pilots.js shows how to create payments going straight to pilots.

Requirements

You'll need a Stripe account to manage pilot onboarding and payments. Sign up for free, then enable Connect by filling in your Platform Settings. In the Development section, take note of your client_id, and enter the following in the Redirect URIs field: http://localhost:3000/pilots/stripe/token.

For instant payouts to work, you'll need to turn off automatic payouts in your settings.

You'll need to have Node.js >= 7.x and MongoDB installed to run this app.

Getting Started

Install dependencies using npm (or yarn):

cd server
npm install

Copy the configuration file and add your own Stripe API keys and client ID:

cp config.default.js config.js

Make sure MongoDB is running. If you're using Homebrew on macOS:

brew services start mongodb

Run the app:

npm start

Go to http://localhost:3000 in your browser to start using the app.

iOS App for Passengers

The Rocket Rides iOS app is written in Swift and is built using the Stripe iOS SDK to accept both card payments and Apple Pay.

Requirements

This project is written in Swift and requires Xcode 8 to build and run, and CocoaPods to install the dependencies. The app is compatible with iOS 10.0+. You can use it both the iOS Simulator or on your iPhone.

Getting Started

To get started, install the dependencies using CocoaPods:

cd ios
pod install

Open RocketRides.xcworkspace (not RocketRides.xcodeproj) in Xcode. Build and run the app!

To try out the full payment experience, run the server locally as described above, then follow these steps:

  1. Create a new pilot using the Rocket Rides web onboarding.
  2. Fill in the publishableKey property in AppDelegate.swift. You can find your publishable key in your Stripe Dashboard.
  3. Fill in the baseURLString property in AppDelegate.swift. This should be http://localhost:3000 if you haven't modified the server configuration.
  4. Relaunch the app! Tapping on "Payment" and "Price" should now work.
  5. Enter a destination, your payment option, and request a ride! You should see the payment in your Stripe Dashboard.

Credits

stripe-connect-rocketrides's People

Contributors

romainhuet avatar romain-stripe avatar joeydong-stripe avatar basta-stripe avatar adreyfus-stripe avatar mattbasta avatar ob-stripe avatar sfeeney-stripe avatar puppycodes avatar

Watchers

 avatar

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.