dmjio / stripe

:moneybag: Stripe API
http://hackage.haskell.org/package/stripe-haskell
177 stars 74 forks source link

Adding a "Stripe-Account" header #67

Open emhoracek opened 7 years ago

emhoracek commented 7 years ago

First off, thanks for maintaining this great library!

So, I have an app with a Stripe account that needs to make charges for and charge fees to other accounts. So, we can use Stripe Connect for that! And just using API keys from the other accounts along with the ApplicationFee param works great.

However, Stripe prefers that apps use this form of authentication instead, a header with a Stripe account id.

I can't figure out if stripe-haskell doesn't have this capability or if I'm just missing it?

Appreciate any help!

dmjio commented 7 years ago

Hi @emhoracek, and thank you :)

Unfortunately, this library does not (yet?) support Stripe Connect. It was actually added to the old stripe library by @LukeHoersten. If you ask nicely maybe he'll make a PR into this project :)

I'm not too familiar with your specific use case, but if your use case is simply to add a header to a request I can most likely create functionality to accommodate it. Let me know. I'm not as familiar with Stripe Connect since at the time (in 2014) Connect's docs were separate from the main stripe API docs.

aviaviavi commented 5 years ago

Hi @dmjio - Just checking, is Stripe Connect still unsupported by this library? I don't see much in this repo for it, but just wanted to make sure I'm not missing it somewhere before writing the bindings for that part of the API myself.

dmjio commented 5 years ago

@aviaviavi that's correct. PRs always welcome. Let me know if you want to collaborate on it.