From 87dc4f9d11af4610f534d57d5e51fabca9bb328a Mon Sep 17 00:00:00 2001 From: jessib Date: Mon, 10 Jun 2013 10:25:37 -0700 Subject: Back to singular-customer controller, in hopes that would help some confusions. --- billing/app/views/customer/confirm.html.haml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 billing/app/views/customer/confirm.html.haml (limited to 'billing/app/views/customer/confirm.html.haml') diff --git a/billing/app/views/customer/confirm.html.haml b/billing/app/views/customer/confirm.html.haml new file mode 100644 index 0000000..5551622 --- /dev/null +++ b/billing/app/views/customer/confirm.html.haml @@ -0,0 +1,14 @@ +%h1 Payment Info Confirmation +%p Your payment information was successfully saved. +%dl + %dt First Name + %dd= @result.customer.first_name + %dt Last Name + %dd= @result.customer.last_name + %dt Phone + %dd= @result.customer.phone + %dt Credit Card + - @result.customer.credit_cards.each do |cc| + %dd= cc.masked_number +- customer = Customer.find_by_user_id(current_user.id) += link_to 'View Customer Info', show_customer_path(customer.braintree_customer_id), :class=> :btn \ No newline at end of file -- cgit v1.2.3