ruudk / PaymentMollieBundle

NO LONGER MAINTAINED
MIT License
15 stars 20 forks source link

Dynamic mollie api keys #26

Closed tonyellow closed 4 years ago

tonyellow commented 7 years ago

It would be nice to have an option to provide dynamic API keys. At the moment we can only provide an API key through the config.

If someone knows a solution for the time being, please share it!

ruudk commented 7 years ago

What about:

$container->get('ruudk_payment_mollie.gateway')->setApiKey('my-key');

?

tonyellow commented 7 years ago

Wow, didn't realize it was that simple! I hope this topic can help others looking for this feature. Thanks for your message (AND THIS GREAT PLUGIN)!