diff options
author | jessib <jessib@leap.se> | 2013-03-21 13:51:58 -0700 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-17 10:46:26 +0200 |
commit | 04288c2a2179d7aa71a2fa21267e6f02fb0400e2 (patch) | |
tree | cf760c8a4ee578071ee24f613d07f62ef28b55fa /billing/app/views/payments/_non_customer_fields.html.haml | |
parent | a1837914b8f989e2c45fb7b78fc648f0d3f957d6 (diff) |
Unauthenticated users can make single payments (like donations), but payments from authenticated users will be as a Braintree Customer stored in the braintree vault.
Diffstat (limited to 'billing/app/views/payments/_non_customer_fields.html.haml')
-rw-r--r-- | billing/app/views/payments/_non_customer_fields.html.haml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/billing/app/views/payments/_non_customer_fields.html.haml b/billing/app/views/payments/_non_customer_fields.html.haml new file mode 100644 index 0000000..99b420d --- /dev/null +++ b/billing/app/views/payments/_non_customer_fields.html.haml @@ -0,0 +1,16 @@ += field_set_tag "Customer" do + = f.fields_for :customer do |c| + %div= c.label :first_name, "First Name" + %div= c.text_field :first_name + %div= c.label :last_name, "Last Name" + %div= c.text_field :last_name + %div= c.label :email, "Email" + %div= c.text_field :email += field_set_tag "Credit Card" do + = f.fields_for :credit_card do |c| + %div= c.label :number, "Number" + %div= c.text_field :number + %div= c.label :expiration_date, "Expiration Date (MM/YY)" + %div= c.text_field :expiration_date + %div= c.label :cvv, "CVV" + %div= c.text_field :cvv
\ No newline at end of file |