laravel / cashier-mollie

MIT License
375 stars 63 forks source link

Multiple Mollie API Key #247

Closed andreasbakir closed 4 years ago

andreasbakir commented 4 years ago

Hi, I am working on a project where the client has two separate mollie accounts, which results in having to use two api keys, is there a way to set the api key programmatically?

sandervanhooft commented 4 years ago

It's not supported by Cashier Mollie, but you may be able to do this by overriding the MollieApiWrapper behavior in the underlying mollie/laravel-mollie. It's loaded in the service container.

sandervanhooft commented 4 years ago

Hint: app("mollie.api");

Other than that I can offer no support here.