{% extends 'frontend/layouts/index.html.twig' %} {% block title %}View Order{% endblock %} {% set active = 'app_front_my_payment' %} {% set breadcrumbs = [ { 'link': path('app_front_dashboard'), 'title': 'Home' }, { 'link': path('app_front_my_payment'), 'title': 'My Payments', }, { 'title': 'View', } ] %} {% block content %}
| Name | {{ payment.orderid.customerfirstname ?? "" }} {{ payment.orderid.customerlastname ?? "" }} | |
|---|---|---|
| Email Id | {{ payment.orderid.customeremailid ?? "" }} | |
| Mobile Number | {{ payment.orderid.customerphonenumber ?? "" }} | |
| Billing Address | {{ payment.orderid.customerbillingaddress ?? "" }} | |
| Country Name | {{ payment.orderid.customercountry.name ?? "" }} | |
| State Name | {{ payment.orderid.customerstate.name ?? "" }} | |
| City Name | {{ payment.orderid.CustomerCity ?? "" }} | |
| Postal Code | {{ payment.orderid.postalcode ?? "" }} | |
| Product Name | {{payment.orderid.productid.name ?? "N/A"}} | |
| Payment Amount | {{payment.PaymentAmount ? payment.PaymentAmount|number_format(2, ',', '.')~"€" : "N/A" }} | |
| Payment Method | {{payment.PaymentMethod ?? "N/A"}} | |
| Payment status | {% if payment.paymentstatus is null %} N/A {% else %} {% set badgeClass = '' %} {% set statusText = payment.paymentstatus is not null ? payment.paymentstatus : 'N/A' %} {% if statusText == 'success' %} {% set badgeClass = 'badge bg-success' %} {% elseif statusText == 'incompleted' or statusText == 'failed' %} {% set badgeClass = 'badge bg-danger' %} {% else %} {% set badgeClass = 'badge bg-warning' %} {% endif %} {{ statusText|upper }} {% endif %} | |
| Payment Date | {% if payment.paymentDate is not null %}{{ payment.paymentDate|date("Y-m-d\\TH:i:s") }} | {% else %}N/A | {% endif %}
| Payment Actual Price | {{ payment.ActualPrice ? payment.ActualPrice|number_format(2, ',', '.')~"€" : "N/A" }} | |
| Payment Discount | {{payment.Discount~"%" ?? "" }} | |
| Payment Texes Apply | {{ payment.TaxPrice ? payment.TaxPrice|number_format(2, ',', '.')~"€" : "N/A" }} | |
| Payment Transaction Id | {{payment.PaymentIntentId ?? "" }} |