Sha256: 6b9388aa3e3e4cb6ebf1dc6e7226015fa8fdb87655240f5865c0bdd5fde7b960
Contents?: true
Size: 1.14 KB
Versions: 76
Compression:
Stored size: 1.14 KB
Contents
/= javascript_include_tag 'https://js.stripe.com/v3/' - stripe = stripe_payment_intent(order) .card .card-body %h2 Checkout %p %em This checkout is powered by stripe. .my-4.text-center = image_tag('effective_orders/stripe.png', alt: 'Stripe.com Logo') = effective_form_with(scope: :stripe, url: effective_orders.stripe_order_path(order), data: { 'stripe-form': stripe.to_json }) do |f| = f.hidden_field :purchased_url, value: purchased_url = f.hidden_field :declined_url, value: declined_url -# This is set by the stripe.js javascript = f.hidden_field :payment_intent_id, required: true - if stripe[:token_required] %p Please enter your credit card information. = render('effective/orders/stripe/element') - else %p Your existing card <strong>#{stripe[:active_card]}</strong> will be charged. = collapse('Use this card instead...', class: 'update-stripe-payment-method') do = render('effective/orders/stripe/element') .mt-4.stripe-submit-button{style: 'display: none;'} = f.submit order_checkout_label(:stripe), center: true, border: false
Version data entries
76 entries across 76 versions & 1 rubygems