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
|
||||
%a
|
||||
= humanized_money_with_symbol @total_amount_to_pay
|
||||
%script.stripe-button{"data-amount" => @total_amount_to_pay.cents,
|
||||
"data-currency" => @total_amount_to_pay.currency,
|
||||
"data-image" => image_url('suse.svg'),
|
||||
"data-name" => ENV['OSEM_NAME'] || 'OSEM',
|
||||
"data-description" => "book your tickets",
|
||||
"data-key" => "#{Rails.configuration.stripe[:publishable_key]}",
|
||||
"data-locale" => "auto", :src => "https://checkout.stripe.com/checkout.js"}
|
||||
%script.stripe-button{ src: "https://checkout.stripe.com/checkout.js",
|
||||
data: { amount: @total_amount_to_pay.cents,
|
||||
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,
|
||||
locale: "auto"}}
|
||||
= link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-primary'
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ FactoryGirl.define do
|
|||
factory :payment do
|
||||
user
|
||||
conference
|
||||
last4 4242
|
||||
authorization_code 1234567890
|
||||
last4 '4242'
|
||||
authorization_code '1234567890'
|
||||
amount 10
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue