<% utils.showConfirmationHeader(); %>
eBill Paperless Billing. Save time and trees by receiving your monthly statements electronically.
<% if (confirmation[0].message.errorCode != "MakePayment.400.0097") { %>
<% } %>
<% var confirmationCount = 0; %> <% if (confirmation.length >= 1) { %> <% for (var i = 0 ; i < confirmation.length; i++) { %> <% if (confirmation[i].confirmationNumber != "") { %> <% confirmationCount++; %> <% } %> <% } %> <% } %> <% if(confirmationCount > 0) { %> Thank you
for your payment of:
<% var totalPayment = 0; for (var i = 0 ; i < confirmation.length; i++) { if(confirmation[i].confirmationNumber != "") { totalPayment += confirmation[i].paymentDetail.amount; } } %> <%=utils.displayFloatWithDecimals(totalPayment)%> <% } else { %> Your Payment was unable
to be processed. See below for details.
<% } %> <% if (confirmation.length > 1) { %> <%=mainMessage%> <% } %> <% if (confirmation.length == 1) { if (confirmation[0].confirmationNumber != "") { %> Confirmation Number: <%= confirmation[0].confirmationNumber %> <% } else { %> <%= confirmation[0].message.errorMessage %> <% } } %>
<% if (confirmation[0].message.errorCode != "MakePayment.400.0097") { %>
A confirmation email has been sent to the email registered to your dteenergy.com account.
<% } %>
<%if (confirmation.length > 1) {%> <% for (var i = 0 ; i < confirmation.length; i++) { %>
<% if (confirmation[i].confirmationNumber != "") { %> Confirmation Number for Account: <%= utils.formatCurrencyDisplay(confirmation[i].paymentDetail.amount, "$") %> <%= confirmation[i].confirmationNumber %> <% } else { %> Account: <%= utils.formatCurrencyDisplay(confirmation[i].paymentDetail.amount, "$") %> <%= confirmation[i].message.errorMessage %> <% } %>
<% }%> <%}%>
<% ga('send', 'event', 'Payment Center', 'Confirmation', 'Payment Center Confirmation'); %>