James Fallon

Joined

60 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Subscriptions with Stripe Discussion

Did you fix this? I'm getting the same problem.

Posted in Subscriptions with Stripe Discussion

Ahh, gotcha. I've got a lot to learn! Thanks for your quick reply.

Posted in Subscriptions with Stripe Discussion

Thank Chris! That's the meat of problem - how does one push up secrets to heroku or AWS or any other production server? I'm swimming in AWS documentation. The separate secrets.yml file would need to be shielded from the public. Sounds like a great future screencast! :)

Posted in Subscriptions with Stripe Discussion

No I'm using Dotenv.

Posted in Subscriptions with Stripe Discussion

I am using Stripe in development just fine, but when I push up to production on AWS, the logs are telling me "Stripe::AuthenticationError (No API key provided. Set your API key using "Stripe.api_key = <api-key>". " I am using "Stripe.api_key = ENV['STRIPE_SECRET']" which is pulling from the .env file, which is of course in my .gitignore file. So it's not pushing up to AWS as intended. How do I get Stipe production ready, as least in terms of the api key? I am using "ENV['STRIPE_PUBLIC']" in the meta tag just like the video. I'm not getting an AWS error here, which confuses me as it getting the key from .env as well. Any help would be appreciated!

Posted in Subscriptions with Stripe Discussion

anybody get this error: "Uncaught SecurityError: Blocked a frame with origin "https://js.stripe.com" from accessing a frame with origin "http://localhost:3000". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match." I'm stumped.

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.