Comments (17)
@proggeramlug Sounds perfect! Feel free to reach out to me over email ([email protected]) if you have questions about using Connect or want feedback on a proposed design.
from stripe.
@proggeramlug
Do you know if any of Stripes official libraries support this?
from stripe.
@Andrewangeta The PHP library has a global variable that you can adjust whenever you want. Like you just set another set of variables in this case:
https://github.com/stripe/stripe-php
Python makes you add the configuration to every request:
https://github.com/stripe/stripe-python
And in NodeJS you can simply reinitialize the stripe object with a new config:
https://github.com/stripe/stripe-node
I know that the Service-Structure is very convenient here because it saves variables globally in this case - I'm just wondering if there is a way that we could adjust that so that the config can also be modified on the fly.
from stripe.
@proggeramlug Yea we'll have to investigate it a little more to figure out an approach. I see the value though.
from stripe.
Sorry to resurrect a dormant thread, but while this behavior exists in some other Stripe client libraries, using this behavior to create Charge objects (or otherwise interact with the Stripe API) in the context of different Stripe accounts isn't really something that Stripe wants integrations to be doing. The canonical way to have one codebase interact with multiple Stripe accounts is to make use of Connect and have each Stripe account that the codebase needs to interact with be a Connected Account under the Connect Platform whose API keys the codebase is using.
I'd be curious to hear more about why you are doing this @proggeramlug and I might be able to help you come up with an integration path that is more closely aligned to a preferred integration path.
PS: I work at Stripe on the team that maintains the official API client libraries - feel free to email me at [email protected] if you don't want to discuss your integration in this public forum.
from stripe.
@zachwick I'm fully aware of Stripes capabilities and how this is supposed to work on a big scale. We are using stripe for some orders in our app (www.fuelish.de ) and have an order processing service that is doing that for us.
We have a small number of merchants (currently just one) that needs to process orders through the app. All of the stripe accounts are maintained by the merchant but we get full credentials.
The easiest way to integrate this now is to simply plug in the credentials for the respective merchant and chare them into their account. We are not interested in taking an application fee or have any other fee's other than the stripe fee associated with the purchase.
Since it is currently only one merchant we are okay with it as it is, but if and when there will be more we need to be able to change the credentials on the fly.
Making sense @zachwick ?
from stripe.
Hmmmmm so it sounds like merchants create their own accounts but give you access? What would be the point of them creating their own accounts at that point?
from stripe.
Unless their accounts aren’t dependent of your business.
from stripe.
For them to receive the money and us not being involved in the money part at all? :)
from stripe.
Either Stripe Connected Accounts or the money going through our stripe account will add significant overhead in terms of liability, legal responsibility, and management - compared to just use their accounts.
from stripe.
You can still do the same with standard connect accounts right? All the responsibility will be with them and the fees etc will be on the business not you. Standard or express might be worth looking into. https://stripe.com/docs/connect/accounts
from stripe.
@Andrewangeta does this current stripe package here provide functionality for connected accounts? the other thing is that it stripe connected accounts come with fee's for the platform: https://stripe.com/connect/pricing
how would that be worth it for less than 5 accounts total? I'd much rather just have their credentials used for this and don't have to pay the fees nor deal with the money at all.
from stripe.
@proggeramlug That makes sense, but is not an integration path that Stripe encourages. Using Connect, while it does require a small amount of additional engineering work, ensures that your integration and use of Stripe's products (and your client's use of Stripe's products) is in compliance with the Stripe TOS/SSA and all that. At some point, this copy-and-paste of your client's API keys will get caught by Stripe's monitoring around these kinds of integrations and you'll be reached out to with a strong suggestion to move to using Connect (you'd need more than a handful of clients using your software this way before we reach out).
Just because you are using Connect, you aren't required to take an application fee or otherwise insert your platform into the flow of funds. Using Standard Connect gives you legal protection in the guise of Stripe's TOS/SSA and ensures that the financial liability for chargesbacks and such remain with your client and not with you (you can read more here https://stripe.com/docs/connect/accounts#choosing-approach). Additionally, as is called out on the Connect Pricing page that you linked to, there are no additional per Connected Account fees for using Standard Connected accounts.
from stripe.
@zachwick so standard accounts are free? okay cool, we might do that at some point. for right now we only have one merchant and there is no point to over-engineer this quite yet. we'll cross that bridge when we get there.
from stripe.
@zachwick thank you! :)
@Andrewangeta is connected accounts in this library currently available? It looks like it is.
from stripe.
Yep the standard accounts with connect are supported
from stripe.
Perfect, I'll close this issue for now as it looks like that is a valid work-around.
from stripe.
Related Issues (20)
- Charges list request fails due to trailing / HOT 2
- Unable to prefill customer email when creating a checkout session HOT 11
- Bump to the lastest version of the Stripe-KIT that introduces Stripe Identity fixes HOT 1
- Better Setup Walkthrough HOT 4
- [ ERROR ] DecodingError.keyNotFound: Value required for key 'sources.data.Index 0.client_secret' HOT 5
- Nullable Source "creation" Date HOT 5
- Documentation HOT 2
- Unable to retrieve list of customers HOT 5
- Add file upload support.
- Typo in Customer.bussinessVATId HOT 1
- URL query injection HOT 1
- Make Models Parameterizable HOT 2
- Concrete Routes Don't Allow Optional Values HOT 9
- Upcoming Invoice has no id HOT 5
- Fix Refunds for connect accounts HOT 3
- [ ERROR ] DecodingError.valueNotFound - Token issue HOT 5
- Conform StripeError to AbortError HOT 1
- Add webhooks support HOT 3
- NIO based Stripe Client HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe.