diff --git a/app/controllers/payments_controller.rb b/app/controllers/payments_controller.rb index d637f1f5..39f6df58 100644 --- a/app/controllers/payments_controller.rb +++ b/app/controllers/payments_controller.rb @@ -22,7 +22,7 @@ class PaymentsController < ApplicationController if @payment.purchase && @payment.save update_purchased_ticket_purchases redirect_to conference_conference_registration_path(@conference.short_title), - notice: 'Thanks! You have purchased your tickets successfully.' + notice: 'Thanks! You have purchased your tickets successfully.' else @total_amount_to_pay = Ticket.total_price(@conference, current_user, paid: false) @unpaid_ticket_purchases = current_user.ticket_purchases.unpaid.by_conference(@conference) diff --git a/app/controllers/ticket_purchases_controller.rb b/app/controllers/ticket_purchases_controller.rb index 4a334a08..fb937dec 100644 --- a/app/controllers/ticket_purchases_controller.rb +++ b/app/controllers/ticket_purchases_controller.rb @@ -12,7 +12,7 @@ class TicketPurchasesController < ApplicationController notice: 'Please pay here to purchase tickets.' else redirect_to conference_tickets_path(@conference.short_title), - error: 'Please purchase atleast one ticket to continue.' + error: 'Please purchase at least one ticket to continue.' end else redirect_to conference_conference_registration_path(@conference.short_title), diff --git a/config/initializers/stripe.rb b/config/initializers/stripe.rb index fe10a25c..555cc16f 100644 --- a/config/initializers/stripe.rb +++ b/config/initializers/stripe.rb @@ -1 +1 @@ -Stripe.api_key = Rails.application.secret.stripe_secret_key +Stripe.api_key = Rails.application.secrets.stripe_secret_key diff --git a/config/secrets.yml.example b/config/secrets.yml.example index 8603a189..744267a8 100644 --- a/config/secrets.yml.example +++ b/config/secrets.yml.example @@ -64,5 +64,5 @@ production: # Register on stripe and add LIVE keys here # https://dashboard.stripe.com/account/apikeys - stripe_publishable_key: '' - stripe_secret_key: '' + stripe_publishable_key: <%= ENV['STRIPE_PUBLISHABLE_KEY'] %> + stripe_secret_key: <%= ENV['STRIPE_SECRET_KEY'] %>