Skip to content

Commit

Permalink
Merge pull request #387 from snap-cloud/bugfix
Browse files Browse the repository at this point in the history
Add loading currenncies in purchase create
  • Loading branch information
cycomachead authored Jul 31, 2024
2 parents 95bdd82 + 023570f commit fdb8db9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/payments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def new

def create
@payment = Payment.new payment_params
session[:selected_currency] = params[:currency] if params[:currency].present?
selected_currency = session[:selected_currency] || @conference.tickets.first.price_currency
from_currency = @conference.tickets.first.price_currency

if @payment.purchase && @payment.save
update_purchased_ticket_purchases
Expand Down

0 comments on commit fdb8db9

Please sign in to comment.