jalendport / craft-stripecheckout

Bringing the power of Stripe Checkout to your Craft templates.
MIT License
43 stars 9 forks source link

Use Craft 3.1's environmental settings feature #21

Open benface opened 5 years ago

benface commented 5 years ago

It seems like all the config settings of this plugin would be good candidates for Craft 3.1's environmental settings feature: https://docs.craftcms.com/v3/extend/environmental-settings.html

That would make it possible to use environment variables for them directly within the CP. It's possible right now by overriding the saved settings with a config/stripe-checkout.php file, but that's causing issues with project config, where saving the settings form in the CP writes the secret key in project.yaml and in the database.