mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 22:21:11 +00:00
fix typo. change secrets.yml config.
This commit is contained in:
parent
a9ab1186f8
commit
048f20bcfc
4 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Stripe.api_key = Rails.application.secret.stripe_secret_key
|
||||
Stripe.api_key = Rails.application.secrets.stripe_secret_key
|
||||
|
|
|
|||
|
|
@ -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'] %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue