-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project config and respect 'allowAdminChanges' => false #94
Comments
Hi, Please save your settings as the follow example from our docs <?php
return [
// Global settings
'*' => [
...
],
// Dev environment settings
'dev' => [
// Dev Mode (see https://craftcms.com/support/dev-mode)
'devMode' => true,
'stripePayments' => [
'testPublishableKey' => getenv('YOUR_TEST_PUBLISHABLE_KEY'),
'testSecretKey' => getenv('YOUR_TEST_SECRET_KEY'),
'testMode' => 1
]
],
// Production environment settings
'production' => [
'stripePayments' => [
'livePublishableKey' => getenv('YOUR_LIVE_PUBLISHABLE_KEY'),
'liveSecretKey' => getenv('YOUR_LIVE_SECRET_KEY'),
'testMode' => 0
]
],
]; Users will be unable to save livePublishableKey, liveSecretKey or testMode on the different environments This issue is more for a feature request to add user permissions to hide the settings right? |
It's more a question if the plugin will support project config (which was introduced in craft cms 3.1). As far as I can see this plugin (and the settings in the post above) will work nicely without project config, but with project config enabled it seems that you may run into some challenges. An example:
After installing enupal stripe payments the project config file got updated with alot of matrixblocks (see this file).
I guess maybe there are quite a few things that would need to be changed if the plugin should support project config (we use this on all projects now). |
@nettum Thanks for this info. I'll back to you if I have any questions |
I have reported a bug on Craft CMS here craftcms/cms#6161 |
Hi, we just release Stripe Payments v2.7.0 with a fix to this issue. Please let us know if that works. Please follow the next instructions:
The project config file should be fixed. Please let us know if it works. |
Description
Even if you have
'allowAdminChanges' => false
you can edit stripe settings (which I then assume will try to write settings back to project.yaml).To get this plugin to work across multiple envs without messing up project.yaml I added the following to general.php:
and it seems to work nicely, but I assume there will be some challenges if I now edit some settings on staging or production env. This is from production env:
Should the Settings nav menu be unavaiable in envs with
'allowAdminChanges' => false
?Additional info
The text was updated successfully, but these errors were encountered: