<% 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") { %>
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 %> <% } } %>
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:
<%= confirmation[i].accountNumber %>
<%= utils.formatCurrencyDisplay(confirmation[i].paymentDetail.amount, "$") %>
<%= confirmation[i].confirmationNumber %>
<% } else { %>
Account:
<%= confirmation[i].accountNumber %>
<%= utils.formatCurrencyDisplay(confirmation[i].paymentDetail.amount, "$") %>
<%= confirmation[i].message.errorMessage %>
<% } %>
<% }%>
<%}%>