Skip to content

Commit 886af7a

Browse files
committed
fix secret issue
1 parent 0b3cadb commit 886af7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config/initializers/stripe.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Rails.configuration.stripe = {
2+
:publishable_key => ENV['PUBLISHABLE_KEY'],
3+
:secret_key => ENV['SECRET_KEY']
4+
}
5+
6+
Stripe.api_key = Rails.configuration.stripe[:secret_key]

0 commit comments

Comments
 (0)