summaryrefslogtreecommitdiff
path: root/billing/app/views/payments/confirm.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'billing/app/views/payments/confirm.html.erb')
-rw-r--r--billing/app/views/payments/confirm.html.erb16
1 files changed, 16 insertions, 0 deletions
diff --git a/billing/app/views/payments/confirm.html.erb b/billing/app/views/payments/confirm.html.erb
new file mode 100644
index 0000000..5ab851e
--- /dev/null
+++ b/billing/app/views/payments/confirm.html.erb
@@ -0,0 +1,16 @@
+<h1>Payment Result</h1>
+
+<div>Thank you for your payment.</div>
+
+<h2>Transaction Details</h2>
+
+<table>
+ <tr><td>Amount</td><td>$<%= @result.transaction.amount %></td></tr>
+ <tr><td>Transaction ID:</td><td><%= @result.transaction.id %></td></tr>
+ <tr><td>First Name:</td><td><%= h @result.transaction.customer_details.first_name %></td></tr>
+ <tr><td>Last Name:</td><td><%= h @result.transaction.customer_details.last_name %></td></tr>
+ <tr><td>Email:</td><td><%= h @result.transaction.customer_details.email %></td></tr>
+ <tr><td>Credit Card:</td><td><%= h @result.transaction.credit_card_details.masked_number %></td></tr>
+ <tr><td>Card Type:</td><td><%= h @result.transaction.credit_card_details.card_type %></td></tr>
+</table>
+