summaryrefslogtreecommitdiff
path: root/billing/app/views/payments/confirm.html.haml
blob: 640c30ab94b17b08892428828404aea742440373 (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 logged_in?
  - customer = Customer.find_by_user_id(@user.id)
  = link_to 'View Customer Info', show_customer_path(@user.id), :class=> :btn