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.229 app/views/caboose/checkout/authnet.html.erb
caboose-cms-1.0.2 app/views/caboose/checkout/authnet.html.erb
caboose-cms-1.0.1 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.228 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.227 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.226 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.225 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.224 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.223 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.222 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.221 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.220 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.219 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.218 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.217 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.216 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.215 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.214 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.213 app/views/caboose/checkout/authnet.html.erb
caboose-cms-0.9.212 app/views/caboose/checkout/authnet.html.erb