All Projects → rap2hpoutre → laravel-stripe-connect

rap2hpoutre / laravel-stripe-connect

Licence: MIT license
🦓 Stripe Connect binding for Laravel

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-stripe-connect

Stripe Connect Rocketrides
Sample on-demand platform built on Stripe: Connect onboarding for pilots, iOS app for passengers to request rides.
Stars: ✭ 426 (+483.56%)
Mutual labels:  marketplace, stripe
Yclas
Yclas Self Hosted is a powerful script that can transform any domain into a fully customizable classifieds site within a few seconds.
Stars: ✭ 276 (+278.08%)
Mutual labels:  marketplace, stripe
Penny-Seed
PennySeed is an alternative crowdfunding platform where the funding goal is divided by the number of pledgers
Stars: ✭ 18 (-75.34%)
Mutual labels:  stripe, stripe-connect
connect-direct-charge-checkout
Accept a payment with direct charges and Checkout
Stars: ✭ 18 (-75.34%)
Mutual labels:  stripe, stripe-connect
netlify-lambda-function-example
An example Netlify Lambda function that processes payments with Stripe.
Stars: ✭ 93 (+27.4%)
Mutual labels:  stripe
koa-better-error-handler
A better error-handler for Lad and Koa. Makes `ctx.throw` awesome (best used with koa-404-handler)
Stars: ✭ 51 (-30.14%)
Mutual labels:  stripe
charging-for-multiple-plan-subscriptions
Getting started with Stripe Elements and Stripe Billing to charge a customer for a monthly subscription with multiple items.
Stars: ✭ 54 (-26.03%)
Mutual labels:  stripe
Artion-Client
Client app for Artion, a global NFT marketplace on Fantom Opera.
Stars: ✭ 71 (-2.74%)
Mutual labels:  marketplace
code-samples
Find code samples and building blocks for your NativeScript app in the Marketplace
Stars: ✭ 35 (-52.05%)
Mutual labels:  marketplace
nean-stack-starter
neo4j, express, angular, node
Stars: ✭ 30 (-58.9%)
Mutual labels:  stripe
firebase-mobile-payments
Firebase Cloud Functions to create payments in native Android and iOS applications.
Stars: ✭ 48 (-34.25%)
Mutual labels:  stripe
invoicing
GetPaid (Formerly the Invoicing plugin) is a lightweight Payments and Invoicing system for WordPress. It can be used to sell anything online via payment forms or buy now buttons that can be added to any landing page. It can also be used by freelancers to manage their Invoices or by 3rd party Themes and Plugins as their payment system. GeoDirecto…
Stars: ✭ 34 (-53.42%)
Mutual labels:  stripe
cashier-register
Cashier Register is a simple quota feature usage tracker for Laravel Cashier subscriptions.
Stars: ✭ 93 (+27.4%)
Mutual labels:  stripe
discourse-subscriptions
A Discourse plugin that allows payments and subscription management via Stripe.
Stars: ✭ 24 (-67.12%)
Mutual labels:  stripe
yii2-fullcalendar-scheduler
Yii 2 component for easy fullcalendar scheduler integration
Stars: ✭ 24 (-67.12%)
Mutual labels:  packagist
proof-of-kyc
An NFT that proves you've gone through an identity verification process, powered by Stripe Identity.
Stars: ✭ 78 (+6.85%)
Mutual labels:  stripe
packagist
🐳 Dockette out-of-box Packagist (Nginx / Solr 6 / PHP 7.1+FPM)
Stars: ✭ 32 (-56.16%)
Mutual labels:  packagist
wp-simple-pay-lite
Add high conversion Stripe payment forms to your WordPress site in minutes.
Stars: ✭ 31 (-57.53%)
Mutual labels:  stripe
react-native-stripe
Unofficial integration of the payment APIs from the Stripe SDK on react-native
Stars: ✭ 21 (-71.23%)
Mutual labels:  stripe
generator-composer
🐘 Yeoman (http://yeoman.io) generator for a PHP Composer project
Stars: ✭ 16 (-78.08%)
Mutual labels:  packagist

Laravel Stripe Connect

Packagist Packagist Build Status Scrutinizer Code Quality

⚠️ Deprecated, looking for a competitor. See this reddit post.

Marketplaces and platforms use Stripe Connect to accept money and pay out to third parties. Connect provides a complete set of building blocks to support virtually any business model, including on-demand businesses, e‑commerce, crowdfunding, fintech, and travel and events.

Create a marketplace application with this helper for Stripe Connect.

Installation

Install via composer

composer require rap2hpoutre/laravel-stripe-connect

Add your stripe credentials in .env:

STRIPE_KEY=pk_test_XxxXXxXXX
STRIPE_SECRET=sk_test_XxxXXxXXX

Run migrations:

php artisan migrate

Usage

You can make a single payment from a user to another user or save a customer card for later use. Just remember to import the base class via:

use Rap2hpoutre\LaravelStripeConnect\StripeConnect;

Example #1: direct charge

The customer gives his credentials via Stripe Checkout and is charged. It's a one shot process. $customer and $vendor must be User instances. The $token must have been created using Checkout or Elements.

StripeConnect::transaction($token)
    ->amount(1000, 'usd')
    ->from($customer)
    ->to($vendor)
    ->create(); 

Example #2: save a customer then charge later

Sometimes, you may want to register a card then charge later. First, create the customer.

StripeConnect::createCustomer($token, $customer);

Then, (later) charge the customer without token.

StripeConnect::transaction()
    ->amount(1000, 'usd')
    ->useSavedCustomer()
    ->from($customer)
    ->to($vendor)
    ->create(); 

Exemple #3: create a vendor account

You may want to create the vendor account before charging anybody. Just call createAccount with a User instance.

StripeConnect::createAccount($vendor);

Exemple #4: Charge with application fee

StripeConnect::transaction($token)
    ->amount(1000, 'usd')
    ->fee(50)
    ->from($customer)
    ->to($vendor)
    ->create(); 
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].