fix typo. change secrets.yml config.

This commit is contained in:
Rishabh Saxena 2016-08-05 22:56:29 +05:30
parent a9ab1186f8
commit 048f20bcfc
4 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,7 @@ class PaymentsController < ApplicationController
if @payment.purchase && @payment.save if @payment.purchase && @payment.save
update_purchased_ticket_purchases update_purchased_ticket_purchases
redirect_to conference_conference_registration_path(@conference.short_title), 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 else
@total_amount_to_pay = Ticket.total_price(@conference, current_user, paid: false) @total_amount_to_pay = Ticket.total_price(@conference, current_user, paid: false)
@unpaid_ticket_purchases = current_user.ticket_purchases.unpaid.by_conference(@conference) @unpaid_ticket_purchases = current_user.ticket_purchases.unpaid.by_conference(@conference)

View file

@ -12,7 +12,7 @@ class TicketPurchasesController < ApplicationController
notice: 'Please pay here to purchase tickets.' notice: 'Please pay here to purchase tickets.'
else else
redirect_to conference_tickets_path(@conference.short_title), 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 end
else else
redirect_to conference_conference_registration_path(@conference.short_title), redirect_to conference_conference_registration_path(@conference.short_title),

View file

@ -1 +1 @@
Stripe.api_key = Rails.application.secret.stripe_secret_key Stripe.api_key = Rails.application.secrets.stripe_secret_key

View file

@ -64,5 +64,5 @@ production:
# Register on stripe and add LIVE keys here # Register on stripe and add LIVE keys here
# https://dashboard.stripe.com/account/apikeys # https://dashboard.stripe.com/account/apikeys
stripe_publishable_key: '' stripe_publishable_key: <%= ENV['STRIPE_PUBLISHABLE_KEY'] %>
stripe_secret_key: '' stripe_secret_key: <%= ENV['STRIPE_SECRET_KEY'] %>