Sha256: 5fcc5102946bc5fb853ed37defbc13af6d4b62b3c0bcd0b3c4821d8cc6220d5c

Contents?: true

Size: 946 Bytes

Versions: 4

Compression:

Stored size: 946 Bytes

Contents

.card
  .card-body
    %h2 Save Card Info

    %p 
      = succeed('.') do
        - distance = distance_of_time_in_words(Time.zone.now, order.delayed_payment_date)

        The payment date for this order

        - if order.delayed_payment_date_future?
          is in #{distance} from now on #{order.delayed_payment_date.strftime('%F')}
        - elsif order.delayed_payment_date_today?
          was today
        - else
          was #{distance} ago on #{order.delayed_payment_date.strftime('%F')}

    %p
      Instead of charging your card right away, the following action will securely save a token
      representing your card information. The full amount will be charged on the payment date.

    - provider_locals = { order: order, deferred_url: deferred_url, declined_url: declined_url }

    - EffectiveOrders.delayed_providers.each do |provider|
      = render partial: "/effective/orders/#{provider}/form", locals: provider_locals

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_orders-6.12.3 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.12.2 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.12.1 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.12.0 app/views/effective/orders/delayed/_form.html.haml