change rails initialisation.

repair abilities. add ticket purchasing check.
This commit is contained in:
Rishabh Saxena 2016-08-05 20:17:27 +05:30
parent 72ef33cbe6
commit a9ab1186f8
9 changed files with 14 additions and 14 deletions

View file

@ -26,8 +26,8 @@
= humanized_money_with_symbol @total_amount_to_pay
%script.stripe-button{ src: "https://checkout.stripe.com/checkout.js",
data: { amount: @total_amount_to_pay.cents,
email: current_user.email,
currency: @total_amount_to_pay.currency,
image: image_url('OSEM_ICON.jpg'),
name: ENV['OSEM_NAME'] || 'OSEM',
description: "book your tickets",
key: Rails.application.secrets.stripe_publishable_key,