generalise application icon for Stripe iFrame
This commit is contained in:
parent
be6d046154
commit
52c30af642
3 changed files with 10 additions and 9 deletions
BIN
app/assets/images/OSEM_ICON.jpg
Normal file
BIN
app/assets/images/OSEM_ICON.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
|
|
@ -25,11 +25,12 @@
|
||||||
%li
|
%li
|
||||||
%a
|
%a
|
||||||
= humanized_money_with_symbol @total_amount_to_pay
|
= humanized_money_with_symbol @total_amount_to_pay
|
||||||
%script.stripe-button{"data-amount" => @total_amount_to_pay.cents,
|
%script.stripe-button{ src: "https://checkout.stripe.com/checkout.js",
|
||||||
"data-currency" => @total_amount_to_pay.currency,
|
data: { amount: @total_amount_to_pay.cents,
|
||||||
"data-image" => image_url('suse.svg'),
|
currency: @total_amount_to_pay.currency,
|
||||||
"data-name" => ENV['OSEM_NAME'] || 'OSEM',
|
image: image_url('OSEM_ICON.jpg'),
|
||||||
"data-description" => "book your tickets",
|
name: ENV['OSEM_NAME'] || 'OSEM',
|
||||||
"data-key" => "#{Rails.configuration.stripe[:publishable_key]}",
|
description: "book your tickets",
|
||||||
"data-locale" => "auto", :src => "https://checkout.stripe.com/checkout.js"}
|
key: Rails.application.secrets.stripe_publishable_key,
|
||||||
|
locale: "auto"}}
|
||||||
= link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-primary'
|
= link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-primary'
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ FactoryGirl.define do
|
||||||
factory :payment do
|
factory :payment do
|
||||||
user
|
user
|
||||||
conference
|
conference
|
||||||
last4 4242
|
last4 '4242'
|
||||||
authorization_code 1234567890
|
authorization_code '1234567890'
|
||||||
amount 10
|
amount 10
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue