rap2hpoutre / laravel-stripe-connect Goto Github PK
View Code? Open in Web Editor NEW๐ฆ Stripe Connect binding for Laravel
Home Page: https://stripe.com/connect
License: MIT License
๐ฆ Stripe Connect binding for Laravel
Home Page: https://stripe.com/connect
License: MIT License
It could be great with a trait for User
.
Something like Connectable
, Chargeable
+Payable
. Then we could do:
$client->transaction()->amount(1000, 'usd')->to($vendor)->create();
Or:
$vendor->transaction()->amount(1000, 'usd')->from($client)->create();
This looks very interesting. But, Iโd suggest making the documentation a bit better, with more explaination especially about the arguments being passed. For example, what is $token? What is $vendor? An App/User object? Or its own object? An ID? or, what?
Thank you.
The migration seems to be failing in Laravel 5.8,
Migrating: 2017_11_24_094130_create_stripes_table
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table `stripes` add constraint `stripes_user_id_foreign` foreign key (`user_id`) references `users` (`id`))
Probably related to the changes to Migrations & bigIncrements
Saved card is not updated, even if a new token (for a new card, let's say user changer her card number) is generated. It should be updated.
OOPS
OOPS
I need the ability to do subscriptions. Possible with your code? Im thinking the idea is to create a product under the vendors stripe connect account and then the user subscribes to that product. Thoughts?
Hi i received this error when i run composer command for install package. please guide me on it. thanks
Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for rap2hpoutre/laravel-stripe-connect ^0.2.1 -> satisfiable by rap2hpoutre/laravel-stripe-connect[v0.2.1]. - rap2hpoutre/laravel-stripe-connect v0.2.1 requires stripe/stripe-php ^5.0 -> satisfiable by stripe/stripe-php[v5.0.0, v5.1.0, v5.1.1, v5.1.2, v5.1.3, v5.2.0, v5.2.1, v5.2.2, v5.2.3, v5.3.0, v5.4.0, v5.5.0, v5.5.1, v5.6.0, v5.7.0, v5.8.0, v5.9.0, v5.9.1, v5.9.2] but these conflict with your requirements or minimum-stability. Installation failed, reverting ./composer.json to its original content.
How does StripeConnect::createAccount($vendor);
work? What all is included in that $vendar variable and does it send the user to the proper stripe.com connect page in order to setup their express account and link their banking info, etc? The docs are a bit sparse for your code, but I would really like to take advantage of it if I can.
To send invoices on the behalf of users to their customers. We have to connect users stripe account which we can do using this package.
My question is can we send invoice from user to customer ?
Hello @rap2hpoutre
I would suggest providing some examples other than just showing the code,
StripeConnect::transaction($token)
->amount(1000, 'usd')
->from($customer)
->to($vendor)
->create();
$token
about? Where should I retrieve the token
? From STRIPE_KEY
or STRIPE_SECRET
?$customer
and $vendor
are emails or texts? As you mentioned, $customer and $vendor must be User instances.
Assuming I do not have the knowledge of OOP, what is User instance? Is that referring to an Object
or an Array
or anything?Thank you for developing this package. :D
Hello,
Currently both $customer and $vendor needs to be User instances. Could it be possible to have something else than User instance?
In my project that would be Company instance
How do you transfer fees to multiple account? Take for example, the driver and restaurant for example.
https://stripe.com/docs/connect/charges-transfers#collecting-fees
OOPS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.