summaryrefslogtreecommitdiff
path: root/billing/app/views/payments/confirm.html.haml
blob: fddbc4524cc0f5d723dcb07040eed8dda26d5f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%h1 Payment Result
%div Thank you for your payment.
%h2 Transaction Details
%table
  %tr
    %td Amount
    %td
      $#{@result.transaction.amount}
  %tr
    %td Transaction ID:
    %td= @result.transaction.id
  %tr
    %td First Name:
    %td= h @result.transaction.customer_details.first_name
  %tr
    %td Last Name:
    %td= h @result.transaction.customer_details.last_name
  %tr
    %td Email:
    %td= h @result.transaction.customer_details.email
  %tr
    %td Credit Card:
    %td= h @result.transaction.credit_card_details.masked_number
  %tr
    %td Card Type:
    %td= h @result.transaction.credit_card_details.card_type
- if current_user
  - customer = Customer.find_by_user_id(current_user.id)
  = link_to 'View Customer Info', customer_path(customer.braintree_customer_id), :class=> :btn