Edomaia

Heroku Deploy

Jan 29th, 2021 (edited)
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.60 KB | None | 0 0
  1.  
  2. ../initializers/stripe.rb
  3.  
  4. Rails.configuration.stripe = {
  5.   publishable_key: Rails.application.credentials.stripe[:publishable_key],
  6.   secret_key: Rails.application.credentials.stripe[:secret_key],
  7.   webhook_secret: Rails.application.credentials.stripe[:webhook_secret],
  8. }
  9. Stripe.api_key = Rails.configuration.stripe[:secret_key]
  10.  
  11. ../config/credentials/production.yml.enc
  12.  
  13. stripe:
  14.   secret_key: sk_test_xxxx
  15.   publishable_key: pk_test_xxx
  16.   webhook_secret: whsec_xxx
  17.  
  18. Heroku Config:
  19.  
  20. PUBLISHABLE_KEY:          pk_test_xxx
  21. SECRET_KEY:               sk_test_xxx
  22. SECRET_KEY_BASE:          xxxxx
Add Comment
Please, Sign In to add comment