Sha256: 5a6fbc49bedc37137557583da1591399321a98e4c6e9d9cda1882fba210c5530

Contents?: true

Size: 1009 Bytes

Versions: 26

Compression:

Stored size: 1009 Bytes

Contents

<% if @result && @result.message %>
	<ul class="gateway_messages">
		<% @result.message.split("\n").each do |message| %>
			<li><%= message %></li>
		<% end %>
	</ul>
<% end %>

<%= form_for :customer,
	:url => Braintree::TransparentRedirect.url,
	:html => {:autocomplete => "off"} do |customer| -%>
	<% tr_data = Braintree::TransparentRedirect.create_customer_data(
		:redirect_url => mtwarden.subscribe_account_url(:plan_id => params[:plan_id]),
	) %>
	<%= hidden_field_tag "tr_data", tr_data %>
	<%= customer.fields_for :credit_card do |cc| -%>
		<p>
			<%= cc.label :number, "Credit card number" %><br>
			<%= cc.text_field :number %>
		</p>

		<p>
			<%= cc.label :cardholder_name, "Name on card" %><br>
			<%= cc.text_field :cardholder_name %>
		</p>

		<p>
			<%= cc.label :expiration_date, "Expiration date" %><br>
			<%= cc.text_field :expiration_date %>
		</p>

		<p>
			<%= cc.label :cvv, "CVV" %><br>
			<%= cc.text_field :cvv %>
		</p>
		<%= customer.submit "Change plan" %>
	<% end %>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mtwarden-17.1.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-17.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-16.2.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-16.1.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-16.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-15.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-14.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-13.0.1 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-13.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-12.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-11.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-9.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-8.1.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-8.0.1 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-8.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-7.2.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-7.1.2 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-7.1.1 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-7.1.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb
mtwarden-7.0.0 app/views/mtwarden/account/accounts/_new_subscription.html.erb