[feat] remove unintended check; add auto-redirect to non-free ticket

This commit is contained in:
Jimmy 2021-03-04 21:50:26 -08:00
parent 1ca58961c1
commit da8939dd3a
4 changed files with 24 additions and 21 deletions

View file

@ -19,7 +19,7 @@
%td
= humanized_money_with_symbol ticket.quantity * ticket.price
= form_tag conference_payments_path do
= form_tag conference_payments_path(@conference.short_title, :has_registration_ticket => @has_registration_ticket) do
%script.stripe-button{'src': "https://checkout.stripe.com/checkout.js",
'data': {amount: @total_amount_to_pay.cents,
label: "Pay #{humanized_money_with_symbol @total_amount_to_pay}",