expressCart/views/themes/Cloth/payment_complete.hbs

22 lines
1.0 KiB
Handlebars

<div class="col-md-10 offset-md-1 col-sm-12 top-pad-50">
<div class="row">
<div class="text-center col-md-10 offset-md-1">
{{#ifCond result.orderStatus '==' 'Paid'}}
<h2 class="text-success">{{ @root.__ "Your payment has been successfully processed" }}</h2>
{{else}}
<h2 class="text-danger">{{ @root.__ "Your payment has failed. Please try again or contact us." }}</h2>
{{/ifCond}}
{{#if result}}
<div>
<p><strong>{{ @root.__ "Order ID" }}:</strong> {{result._id}}</p>
<p><strong>{{ @root.__ "Payment ID" }}:</strong> {{result.orderPaymentId}}</p>
</div>
{{/if}}
{{#ifCond result.orderStatus '==' 'Paid'}}
<h3 class="text-warning">{{ @root.__ "Please retain the details above as a reference of payment." }}</h3>
{{/ifCond}}
<a href="/" class="btn btn-outline-warning">Home</a>
</div>
</div>
</div>