blob: d1d0aa9d793aafaab0e38a4c27e6803d30bec3d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
%h1
Payment
- if @result
%div{:style => "color: red;"}
= h @result.errors.size
error(s)
= form_for :transaction, :params => @result && @result.params[:transaction], :errors => @result && @result.errors.for(:transaction), :builder => BraintreeFormHelper::BraintreeFormBuilder, :url => Braintree::TransparentRedirect.url, :html => {:autocomplete => "off"} do |f| #TODO: add helper
= f.label :amount, "Amount"
= f.text_field :amount
- if !@customer
= render :partial => 'non_customer_fields', :locals => {:f => f}
- else
= render :partial => 'customer_data'
= hidden_field_tag :tr_data, @tr_data
= f.submit "Submit Payment", :class => :btn
|