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/_customer_data.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/_customer_data.html.haml')
-rw-r--r-- | billing/app/views/payments/_customer_data.html.haml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/billing/app/views/payments/_customer_data.html.haml b/billing/app/views/payments/_customer_data.html.haml new file mode 100644 index 0000000..900fbd8 --- /dev/null +++ b/billing/app/views/payments/_customer_data.html.haml @@ -0,0 +1,15 @@ +%h2 Customer Information +%dl + %dt First Name + %dd= @braintree_data.first_name + %dt Last Name + %dd= @braintree_data.last_name + %dt Phone + %dd= @braintree_data.phone +%h2 Credit Card Information +%dl + %dt Number + %dd= @default_cc.masked_number + %dt Expiration Date + %dd= @default_cc.expiration_date += link_to 'edit saved data', edit_customer_path(@customer.braintree_customer_id), :class => :btn |