Post History
#2: Post edited
Stripe setup is handled in [`config/initializers/stripe.rb`](https://github.com/codidact/qpixel/blob/a3198da169c6ecdcce38202fb1f60a07cbcb0389/config/initializers/stripe.rb), where the Stripe API key is set based on the values saved in the Rails credentials file.You _should_ be able to run `rails credentials:edit` (set the EDITOR environment variable to whatever command line editor you use first), and set `stripe_test_public` and `stripe_test_secret` to any non-empty string, and that should work as long as you're not actually running any Stripe related operations.
- I have this error in my local environment too, and I've not been able to figure it out yet. It's somehow related to ImageMagick being built (or not) with the right image libraries, but as far as I can tell my environment has all the right libraries already...
- As a workaround, you can just skip running these particular tests and only run the tests relating to what you're working on - this doesn't affect production.
#1: Initial revision
Stripe setup is handled in [`config/initializers/stripe.rb`](https://github.com/codidact/qpixel/blob/a3198da169c6ecdcce38202fb1f60a07cbcb0389/config/initializers/stripe.rb), where the Stripe API key is set based on the values saved in the Rails credentials file. You _should_ be able to run `rails credentials:edit` (set the EDITOR environment variable to whatever command line editor you use first), and set `stripe_test_public` and `stripe_test_secret` to any non-empty string, and that should work as long as you're not actually running any Stripe related operations.