On localhost everything is ok but on heroku I'm getting some errors.
On Heroku :
and card input is missing:
And on localhost:
I believe is something with Api key but I don't understand what I did wrong:
config/initializers/stripe.rb :
Stripe.api_key = Rails.application.secrets.stripe_private_key
StripeEvent.signing_secret = Rails.application.secrets.stripe_webhook_secret
StripeEvent.configure do |config|
config.subscribe "charge." do |event|
Webhooks::Charge.new(event).call
end
end
secrets.yml:
development:
stripe_private_key: 'sk_test_*********'
stripe_public_key: 'pk_test_**********'
stripe_webhook_secret: 'whsec_**********'
in production I'm using the same test keys because I didn't setup live keys
production:
stripe_private_key: 'sk_test_********'
stripe_public_key: 'pk_test_*********'
stripe_webhook_secret: 'whsec_*********'
if I'm pushing submit button on heroku :
Thank you for your time.
Update:
I have multiple because I tried so manny things.