Sha256: a8f0b579ba29f330b6ad8d979e5dd1781955ac1305799538606902c33802a775

Contents?: true

Size: 1.01 KB

Versions: 312

Compression:

Stored size: 1.01 KB

Contents

<iframe style='width: 450px; height: 475px; border: 0;' id='authnet_iframe' name='authnet_iframe'>
  <p class='loading'>Loading...</p>    
</iframe>

<%
if @logged_in_user.authnet_payment_id 
#if false 
%>
  <form method="post" action="https://secure.authorize.net/profile/editPayment" id="authnet_form" target='authnet_iframe'>    
    <input type="hidden" name="token" value="<%= raw @token %>" />  
    <input type="hidden" name="PaymentProfileId" value="<%= raw @logged_in_user.authnet_payment_id %>" />
  </form>
<% else %>
  <form method="post" action="https://secure.authorize.net/profile/manage" id="authnet_form" target='authnet_iframe'>    
    <input type="hidden" name="token" value="<%= raw @token %>" />      
  </form>
<% end %>

<%= content_for :caboose_js do %>
<script type='text/javascript'>

var modal = false;
$(document).ready(function() { 
  modal = new CabooseModal(435, 465);
  $('#authnet_form').submit();    
});

function authnet_response_handler()
{
  parent.location.reload(true);  
}

</script>
<% end %>

Version data entries

312 entries across 312 versions & 1 rubygems

Version Path
caboose-cms-0.9.190 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.189 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.188 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.187 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.186 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.185 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.184 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.183 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.182 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.181 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.180 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.179 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.178 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.177 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.176 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.175 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.174 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.173 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.172 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.171 app/views/caboose/checkout/authnet.html.erb