Sha256: d25b942a19e0cf47565a0979aebfde40df62279f58f8105bc46601cd469160d5

Contents?: true

Size: 774 Bytes

Versions: 1

Compression:

Stored size: 774 Bytes

Contents

- deluxe = deluxe_hosted_payment_form_options(order)

.card
  .card-body
    %h2 Checkout

    .mt-4

    = effective_form_with(scope: :deluxe, url: effective_orders.deluxe_order_path(order), data: { 'deluxe-checkout': deluxe.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 deluxe.js javascript on Submit
      = f.hidden_field :payment_intent, required: true

      - if EffectiveOrders.deluxe[:environment] == 'sandbox'
        .alert.alert-info.mb-4
          This is the #{Rails.env.upcase} SERVER.
          %br
          Use credit card number 4242 4242 4242 4242 with any future expiry and any CVC.

      = render('effective/orders/deluxe/element')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_orders-6.14.1 app/views/effective/orders/deluxe/_form.html.haml