Skip to content

Commit bc05773

Browse files
committed
fix secret issue
1 parent 18276ec commit bc05773

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

config/initializers/stripe.rb

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

6-
Stripe.api_key = Rails.configuration.stripe[:secret_key]
6+
Stripe.api_key = Rails.configuration.stripe[:secret_key]

0 commit comments

Comments
 (0)