mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
That feature is gone and we already use environment variables... https://github.com/rails/rails/pull/47801
27 lines
1 KiB
Text
27 lines
1 KiB
Text
.div
|
|
.col-md-12.table-responsive
|
|
%table.table.table-hover
|
|
%thead
|
|
%tr
|
|
%th Ticket
|
|
%th Quantity
|
|
%th Price
|
|
%th Total
|
|
%tbody
|
|
- @unpaid_ticket_purchases.each do |ticket|
|
|
%tr
|
|
%td
|
|
= ticket.title
|
|
%td
|
|
= ticket.quantity
|
|
%td
|
|
= humanized_money_with_symbol ticket.price
|
|
%td
|
|
= humanized_money_with_symbol ticket.quantity * ticket.price
|
|
|
|
= form_tag conference_payments_path 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}",
|
|
email: current_user.email, currency: @total_amount_to_pay.currency, name: ENV.fetch('OSEM_NAME', 'OSEM'),
|
|
description: "book your tickets", key: ENV.fetch('STRIPE_PUBLISHABLE_KEY'), locale: "auto"}}
|
|
= link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-default'
|