Sha256: 9d199abb8622f3b84c35109e4e86c4024cdc87cba819f7d95c847d43ee2eb115

Contents?: true

Size: 642 Bytes

Versions: 3

Compression:

Stored size: 642 Bytes

Contents

<%= link_to pagseguro_init_transaction_url(:payment_method_id => payment_method.id), :method => :post, :id => "pagseguro_button", class: 'btn' do %>
    <%= image_tag "https://p.simg.uol.com.br/out/pagseguro/i/botoes/pagamentos/209x48-pagar-roxo-assina.gif", alt: "Pague com PagSeguro - é rápido e seguro!" %>
<% end %>

<script>
    (function(spreePagSeguro){
        $('div[data-hook="checkout_payment_step"] input[type="radio"]')
            .on('click', spreePagSeguro.showOrHide('.continue,[data-hook="coupon_code"]'))
            .filter(':checked').trigger('click');
    })(new SpreePagSeguro("<%= payment_method.id %>"));
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_pagseguro_oficial-1.1.2 app/views/spree/checkout/payment/_pagseguro.html.erb
solidus_pagseguro_oficial-1.1.1 app/views/spree/checkout/payment/_pagseguro.html.erb
solidus_pagseguro_oficial-1.1.0 app/views/spree/checkout/payment/_pagseguro.html.erb