Sha256: 044427f146bf202d10e62d8fb6ab6c295b3c1bd399ac46c63d5f2a5bfb8c5594

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

- if current_user.present? || Workarea.config.use_paypal_hosted_fields
  - set_paypal_client_token

- if Workarea.config.use_paypal_hosted_fields
  %div{ data: { paypal_hosted_fields: { show_save_card: logged_in? }.to_json, updated_checkout_submit_text: { prevent: step.credit_card?, text: t('workarea.storefront.paypal.checkout_review_text') }.to_json } }

.checkout-payment__primary-method.checkout-payment__primary-method--paypal{ class: ('checkout-payment__primary-method--selected' if step.paypal?) }
  .button-property
    .value= radio_button_tag 'payment', 'paypal', step.paypal?, data: { update_checkout_submit_text: { prevent: step.paypal?, disabled: true, text: t('workarea.storefront.paypal.checkout_submit_text') }.to_json }
    = label_tag 'payment[paypal]', nil, class: 'button-property__name' do
      %span.button-property__text= t('workarea.storefront.paypal.paypal')
  %p.checkout-payment__primary-method-description
    - if step.paypal? && step.payment.errors.none?
      %span= t('workarea.storefront.paypal.payment_recieved')
    - elsif step.paypal? && step.payment.errors.present?
      %span= t('workarea.storefront.paypal.payment_failed')
    - else
      %span= t('workarea.storefront.paypal.on_continue')
  - unless step.paypal? && step.payment.errors.none?
    .checkout-payment__primary-method-edit
      .grid
        .grid__cell.grid__cell--50-at-medium
          #paypal-button-container.cart__checkout-action.cart__checkout-action--paypal

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-paypal-3.0.3 app/views/workarea/storefront/checkouts/_paypal_payment.html.haml
workarea-paypal-3.0.2 app/views/workarea/storefront/checkouts/_paypal_payment.html.haml
workarea-paypal-3.0.1 app/views/workarea/storefront/checkouts/_paypal_payment.html.haml
workarea-paypal-3.0.0 app/views/workarea/storefront/checkouts/_paypal_payment.html.haml