Sha256: a07f6a5ada774d7ccb4a7a62fc15d4f79375320a16d663023ad84f4f10e4f226
Contents?: true
Size: 1.08 KB
Versions: 22
Compression:
Stored size: 1.08 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 - 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
22 entries across 22 versions & 1 rubygems