Sha256: e1b732bb76f8f3ee30d225bbeab0caac4aa2ce3227cb426ccdcc25b081ae3017
Contents?: true
Size: 1.11 KB
Versions: 17
Compression:
Stored size: 1.11 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 = link_to(image_tag('effective_orders/stripe.png'), 'https://www.stripe.com', target: '_blank') = 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 - 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 = f.submit order_checkout_label(:stripe), center: true, border: false
Version data entries
17 entries across 17 versions & 1 rubygems