go.stripe icon indicating copy to clipboard operation
go.stripe copied to clipboard

Allow non-global Stripe key configuration

Open jkassemi opened this issue 11 years ago • 2 comments

I'd like the possibility of using this library in environments with Client objects outside of the default set, which this change allows.

client := &PlanClient{ Client{key: "non-default"} }
client.List() // Use 'non-default' as key.

jkassemi avatar Jul 05 '13 05:07 jkassemi

And because I worked a little later than I should - added feature: account endpoint!

I know this makes this pull request undeniable, but if you do want to see these features separated I can do that ;)

jkassemi avatar Jul 11 '13 03:07 jkassemi

awesome! I've been meaning to remove the global key, so this is definitely a welcome change. I'm definitely going to merge this but first I need to run a bunch of regression tests against drone.io just to be safe. Bear with me!

bradrydzewski avatar Jul 11 '13 03:07 bradrydzewski