Sha256: a4e8dd1731953cdcddc6245d976ff4550a1da0e88ff258df376c400031fc304a

Contents?: true

Size: 814 Bytes

Versions: 21

Compression:

Stored size: 814 Bytes

Contents

= javascript_include_tag "https://checkout.stripe.com/checkout.js"

#effective-orders-new-charge-form{data: {'stripe-publishable-key' => EffectiveOrders.stripe[:publishable_key], 'site-title' => EffectiveOrders.stripe[:site_title], 'site-image' => EffectiveOrders.stripe[:site_image], 'user-email' => current_user.try(:email), 'amount' => order.total, 'description' => "#{order.num_items} items (#{price_to_currency(order.total)})"}}
  = simple_form_for(@stripe_charge || Effective::Providers::StripeCharge.new(order), (EffectiveOrders.simple_form_options || {}).merge(url: effective_orders.stripe_charges_path)) do |f|
    = f.input :effective_order_id, as: :hidden
    = f.input :token, as: :hidden
    = f.submit order_checkout_label(:stripe), class: 'stripe-button', data: {'disable_with' => 'Continuing...' }

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
effective_orders-2.0.0 app/views/effective/orders/stripe/_form.html.haml