diff --git a/src/components/order/credit-card-payment.js b/src/components/order/credit-card-payment.js index ad4db5ee..2906369b 100644 --- a/src/components/order/credit-card-payment.js +++ b/src/components/order/credit-card-payment.js @@ -1,7 +1,7 @@ import { mapGetters } from 'vuex'; import { LINK, BUTTON } from '@/shared/enums/paymentStrategy'; import { - leadgods, niubiz, datafast, pagoplux, pagopluxLink, + leadgods, niubiz, datafast, pagoplux, pagopluxLink, openpay, xchange, paymentez, placetopay, alignet, mercadopago, mercadopagoMp, } from '@/shared/enums/gatewayCodes'; @@ -15,6 +15,7 @@ const LeadGods = () => import('@/components/order/paymentsMethods/leadgods'); const PlaceToPay = () => import('@/components/order/paymentsMethods/place-to-pay'); const Alignet = () => import('@/components/order/paymentsMethods/alignet'); const MercadoPago = () => import('@/components/order/paymentsMethods/mercadopago'); +const OpenPay = () => import('@/components/order/paymentsMethods/open-pay'); /** * @param {object-function} h render function @@ -69,6 +70,7 @@ function paymentLinkCreator(h, gateway, ipAddress) { */ const paymentButtonCreator = (h, gateway, ipAddress) => { const buttonOptions = { + [openpay]: OpenPay, [alignet]: Alignet, [datafast]: DataFast, [mercadopago]: MercadoPago, diff --git a/src/components/order/paymentsMethods/open-pay-form.vue b/src/components/order/paymentsMethods/open-pay-form.vue new file mode 100644 index 00000000..ce0ec85a --- /dev/null +++ b/src/components/order/paymentsMethods/open-pay-form.vue @@ -0,0 +1,316 @@ + + + + + \ No newline at end of file diff --git a/src/components/order/paymentsMethods/open-pay.vue b/src/components/order/paymentsMethods/open-pay.vue new file mode 100644 index 00000000..8d4a38df --- /dev/null +++ b/src/components/order/paymentsMethods/open-pay.vue @@ -0,0 +1,239 @@ + + + diff --git a/src/mixins/global.js b/src/mixins/global.js index b3409e18..03c0566c 100644 --- a/src/mixins/global.js +++ b/src/mixins/global.js @@ -64,7 +64,7 @@ function replaceString(word, selectionStart, newWord) { return newWord; } -function showNotification(text, color = 'success', html = null, isBtn = false, timeout = 60000) { +function showNotification(text, color = 'success', html = null, isBtn = false, timeout = 5000) { this.$store.dispatch('showSnackBar', { text, color, html, isBtn, timeout }); } diff --git a/src/pages/page-buy.vue b/src/pages/page-buy.vue index f7adacef..f70f0636 100644 --- a/src/pages/page-buy.vue +++ b/src/pages/page-buy.vue @@ -1,10 +1,15 @@