- La transacción {{transactionId}} fue rechazada
- Nro pedido: {{getOrderInfo.id}}
- fecha: {{getOrderInfo.createdAt | formatDate}}
- Razón: {{ getOrderInfo.additionalInformation.paymentGateway.status }}
+
+
+
+
Nro pedido: {{ getOrderInfo.id }}
+ Fecha: {{ getOrderInfo.createdAt | formatDate }}
+ Razón: {{ getOrderInfo.additionalInformation.paymentGateway.status }}
+
import { mapGetters } from 'vuex';
import { getDeeper } from '@/shared/lib';
-import { niubiz } from '@/shared/enums/gatewayCodes';
+import { niubiz, openpay } from '@/shared/enums/gatewayCodes';
import appButton from '@/components/shared/buttons/app-button';
import productInCar from '@/components/products/product-in-car';
import summaryOrder from '@/components/order/summary-order';
@@ -182,6 +187,7 @@ function data() {
section: '/static/icons/arrow.svg',
},
productsBuys: [],
+ isVisible: true,
};
}
@@ -202,6 +208,13 @@ export default {
'isCollapseProduct',
]),
isNiubiz,
+ isOpenPay() {
+ const codeOpenPay = getDeeper('additionalInformation.gatewayCode')(this.getOrderInfo);
+ return codeOpenPay === openpay;
+ },
+ showTransactionInfo() {
+ return (this.isNiubiz || this.isOpenPay) && this.isVisible;
+ },
stepOneAndTwo,
stepThree,
stepTwo,
@@ -216,6 +229,9 @@ export default {
getProductToBuyHandler,
loadProductsQuery,
toogleCollapse,
+ closeTransaction() {
+ this.isVisible = false;
+ },
},
mounted,
watch: {
@@ -349,4 +365,36 @@ export default {
.container-routes {
margin-top: -30px;
}
+ .rejected-transaction {
+ background-color: #ffebee;
+ border: 1px solid #f44336;
+ border-radius: 8px;
+ padding: 16px;
+ margin: 20px 0;
+ position: relative;
+ color: #b71c1c;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+}
+
+.header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.close-btn {
+ background: transparent;
+ border: none;
+ font-size: 24px;
+ cursor: pointer;
+ color: #b71c1c;
+}
+
+.close-btn:hover {
+ color: #f44336;
+}
+
+.content h5 {
+ margin: 8px 0;
+}
diff --git a/src/pages/page-new-summary-order.vue b/src/pages/page-new-summary-order.vue
index 58219e93..cb055e10 100644
--- a/src/pages/page-new-summary-order.vue
+++ b/src/pages/page-new-summary-order.vue
@@ -138,7 +138,7 @@
/>