Sha256: 31a68a39ded74abc081de459cd8dc7f983c105186f312883b3a0364d281fa93d
Contents?: true
Size: 1.17 KB
Versions: 20
Compression:
Stored size: 1.17 KB
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_upcoming? 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')} - provider_locals = { order: order, deferred_url: deferred_url, declined_url: declined_url } - if order.deferred? && order.delayed? %p Your existing #{order.delayed_payment_method} will be charged on the payment date. = collapse('Change my card info') do - EffectiveOrders.delayed_providers.each do |provider| = render partial: "/effective/orders/#{provider}/form", locals: provider_locals - else %p Please enter your card information so it can be charged on the payment date. - EffectiveOrders.delayed_providers.each do |provider| = render partial: "/effective/orders/#{provider}/form", locals: provider_locals
Version data entries
20 entries across 20 versions & 1 rubygems