diff --git a/changelog.txt b/changelog.txt
index bac7b1e..7c6530b 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,6 @@
+2024-05-10 - version 3.1.1
+Fix: Add sonic brand visa
+
2024-04-19 - version 3.1.0
Fix: Integ. with CustomCheckout
diff --git a/includes/3rd-party/plugins/woocommerce/assets/js/wc-checkout.js b/includes/3rd-party/plugins/woocommerce/assets/js/wc-checkout.js
index a66f479..76c4cdc 100644
--- a/includes/3rd-party/plugins/woocommerce/assets/js/wc-checkout.js
+++ b/includes/3rd-party/plugins/woocommerce/assets/js/wc-checkout.js
@@ -389,12 +389,18 @@ Culqi3DS.publicKey = fullculqi_vars.public_key;
}
}, 1000);
} else {
- console.log(response);
if (response.data.charge.data.card_brand.toUpperCase() == "MASTERCARD") {
jQuery("body").append('
');
jQuery('#loadingloginculqi').remove();
FullCulqi.playSonic(fullculqi_vars.url_success);
- } else {
+ } else if (response.data.charge.data.card_brand.toUpperCase() == "VISA") {
+ const url_plugin = visa_lib.plugin_url;
+ jQuery("body").append('');
+ jQuery("body").children().first().before('');
+ jQuery("body").append('');
+ FullCulqi.stopVisa(fullculqi_vars.url_success);
+ }
+ else {
location.href = fullculqi_vars.url_success;
}
}
@@ -465,11 +471,16 @@ Culqi3DS.publicKey = fullculqi_vars.public_key;
}
}, 1000);
} else {
- console.log(response);
if (response.data.charge.data.card_brand.toUpperCase() == "MASTERCARD") {
jQuery("body").append('
');
jQuery('#loadingloginculqi').remove();
FullCulqi.playSonic(fullculqi_vars.url_success);
+ } else if (response.data.charge.data.card_brand.toUpperCase() == "VISA") {
+ const url_plugin = visa_lib.plugin_url;
+ jQuery("body").append('');
+ jQuery("body").children().first().before('');
+ jQuery("body").append('');
+ FullCulqi.stopVisa(fullculqi_vars.url_success);
} else {
location.href = fullculqi_vars.url_success;
}
@@ -500,6 +511,18 @@ Culqi3DS.publicKey = fullculqi_vars.public_key;
});
},
+ stopVisa: function (succes_url) {
+ jQuery('#loadingloginculqi').remove();
+ document.addEventListener('sonicCompletion', FullCulqi.onCompletion(succes_url));
+
+ setTimeout(function() {
+ jQuery("#visa-css").remove();
+ jQuery("#visa-branding").remove();
+ jQuery("#visa-js").remove();
+ }, 1500);
+
+ },
+
playSonic: function (succes_url) {
const mc_component = document.getElementById("mc-sonic");
console.log(mc_component);
@@ -508,7 +531,7 @@ Culqi3DS.publicKey = fullculqi_vars.public_key;
},
onCompletion: function (succes_url) {
- console.log("mastercard success");
+ console.log("Sonic success");
setTimeout(() => {
location.href = succes_url;
}, 2000);
diff --git a/includes/3rd-party/plugins/woocommerce/assets/css/mastercard.css b/includes/3rd-party/plugins/woocommerce/assets/lib/mastercard/css/mastercard.css
similarity index 100%
rename from includes/3rd-party/plugins/woocommerce/assets/css/mastercard.css
rename to includes/3rd-party/plugins/woocommerce/assets/lib/mastercard/css/mastercard.css
diff --git a/includes/3rd-party/plugins/woocommerce/assets/js/mc-sonic.min.js b/includes/3rd-party/plugins/woocommerce/assets/lib/mastercard/js/mc-sonic.min.js
similarity index 100%
rename from includes/3rd-party/plugins/woocommerce/assets/js/mc-sonic.min.js
rename to includes/3rd-party/plugins/woocommerce/assets/lib/mastercard/js/mc-sonic.min.js
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/css/visa.css b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/css/visa.css
new file mode 100644
index 0000000..15e0215
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/css/visa.css
@@ -0,0 +1,425 @@
+.no-animation *,
+.no-animation :after,
+.no-animation :before {
+ animation: none !important
+}
+
+.no-animation .visa-container {
+ display: none !important
+}
+
+#visa-branding,
+body,
+html {
+ height: 100vh;
+ width: 100vw;
+ margin: 0;
+ overflow: hidden;
+}
+
+#visa-branding {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ z-index: 99999999;
+ align-items: center;
+ animation: 1.88s scaleXY 0ms steps(117);
+ -webkit-animation: 1.88s scaleXY 0ms steps(117);
+}
+
+@keyframes scaleXY {
+ 0% {
+ transform: scale(1)
+ }
+
+ to {
+ transform: scale(1.141)
+ }
+}
+
+#visa-branding.background-dark,
+#visa-branding.background-dark .checkmark-mask,
+#visa-branding.background-dark .constrained-flag-mask,
+#visa-branding.background-dark .flag-container,
+#visa-branding.background-dark .flag-mask,
+#visa-branding.background-dark .visa-container,
+#visa-branding.background-dark .wiper-left,
+#visa-branding.background-dark .wiper-middle,
+#visa-branding.background-dark .wiper-right {
+ background-color: #15195a
+}
+
+#visa-branding.background-dark .top-flag-fade-mask {
+ background: linear-gradient(270deg, rgba(21, 25, 90, 0) 0, #15195a 95%)
+}
+
+#visa-branding.background-dark .bottom-flag-fade-mask {
+ background: linear-gradient(90deg, rgba(21, 25, 90, 0) 0, #15195a 95%)
+}
+
+#visa-branding.background-light,
+#visa-branding.background-light .checkmark-mask,
+#visa-branding.background-light .constrained-flag-mask,
+#visa-branding.background-light .flag-container,
+#visa-branding.background-light .flag-mask,
+#visa-branding.background-light .visa-container,
+#visa-branding.background-light .wiper-left,
+#visa-branding.background-light .wiper-middle,
+#visa-branding.background-light .wiper-right {
+ background-color: #fff
+}
+
+#visa-branding.background-light .top-flag-fade-mask {
+ background: linear-gradient(270deg, hsla(0, 0%, 100%, 0) 0, #fff 95%)
+}
+
+#visa-branding.background-light .bottom-flag-fade-mask {
+ background: linear-gradient(90deg, hsla(0, 0%, 100%, 0) 0, #fff 95%)
+}
+
+#visa-branding.no-checkmark .checkmark-circle,
+#visa-branding.no-checkmark .checkmark-container,
+#visa-branding.no-checkmark .rotate-container {
+ display: none
+}
+
+.flag-container {
+ flex: 1 1 auto;
+ width: 100vw;
+ position: relative
+}
+
+.visa-container {
+ min-height: 1px;
+ width: 40vw;
+ display: flex;
+ align-items: center;
+ justify-content: center
+}
+
+.visa-logo {
+ width: 100%;
+ transform: scale(.85)
+}
+
+.visa-wrapper {
+ width: 100%;
+ position: relative
+}
+
+.checkmark-container,
+.wipers-container {
+ position: absolute;
+ width: 100%;
+ top: 0;
+ bottom: 0
+}
+
+.wiper {
+ position: absolute;
+ top: 0;
+ height: 100%;
+ width: 50%;
+ transform: skew(-22.8deg) translate(0)
+}
+
+@keyframes logo-mask-slide-left {
+ to {
+ transform: skew(-22.8deg) translate(-100%)
+ }
+}
+
+@keyframes logo-mask-slide-right {
+ to {
+ transform: skew(-22.8deg) translate(100%)
+ }
+}
+
+.wiper-left {
+ left: -7%;
+ animation: .2s logo-mask-slide-left 0ms steps(13) forwards
+}
+
+.wiper-right {
+ right: -7%;
+ animation: .2s logo-mask-slide-right 0ms steps(13) forwards
+}
+
+@keyframes logo-mask-mask-middle {
+ 0% {
+ opacity: 1;
+ transform: skew(-22.8deg) scaleX(1)
+ }
+
+ to {
+ opacity: 1;
+ transform: skew(-22.8deg) scaleX(125)
+ }
+}
+
+.wiper-middle {
+ left: 50%;
+ width: 2%;
+ opacity: 0;
+ will-change: transform;
+ animation: .2068s logo-mask-mask-middle .6956s steps(13) forwards
+}
+
+.flag-mask {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ width: 30%;
+ z-index: 101
+}
+
+.flag-mask-bottom {
+ left: 0
+}
+
+.flag-mask-top {
+ right: 0
+}
+
+.flag {
+ position: absolute;
+ transform: rotate(180deg) scale(.8524, .8124);
+ width: 40vw;
+ backface-visibility: hidden;
+ z-index: 100
+}
+
+@keyframes slide-left {
+ to {
+ animation-timing-function: linear;
+ transform: translate(-108%)
+ }
+}
+
+@keyframes slide-right {
+ to {
+ animation-timing-function: linear;
+ transform: translate(108%)
+ }
+}
+
+.flag-slider {
+ position: absolute;
+ width: 100%;
+ top: 0;
+ bottom: 0
+}
+
+.flag-slider-bottom {
+ will-change: transform;
+ animation: .4078s slide-right 30.2ms forwards steps(29)
+}
+
+.flag-slider-top {
+ will-change: transform;
+ animation: .4078s slide-left 30.2ms forwards steps(29)
+}
+
+.top-flag {
+ right: -8%;
+ bottom: 10%
+}
+
+.bottom-flag {
+ left: -8%;
+ top: 10%
+}
+
+@keyframes checkmark-rotate {
+ 0% {
+ transform: rotate(80deg)
+ }
+
+ to {
+ transform: rotate(0deg)
+ }
+}
+
+@keyframes checkmark-fadeIn {
+ 0% {
+ opacity: 0
+ }
+
+ 40% {
+ opacity: 1
+ }
+
+ 80% {
+ opacity: 1
+ }
+
+ to {
+ opacity: 0
+ }
+}
+
+.checkmark-container {
+ opacity: 0;
+ will-change: opacity;
+ animation: 1.1296s checkmark-fadeIn .7504s steps(70) forwards
+}
+
+.checkmark-circle {
+ height: 100%!important;
+ width: 100%;
+ position: absolute;
+ transform: scale(.965);
+ z-index: 10
+}
+
+.rotate-container {
+ position: relative;
+ width: 50%;
+ height: 100%;
+ margin: auto;
+ transform: rotate(80deg);
+ will-change: transform;
+ animation: .4228s checkmark-rotate .7804s steps(25) forwards
+}
+
+.checkmark {
+ width: 100%;
+ height: 100%;
+ transform: rotate(-3deg) scale(.4);
+ z-index: 0
+}
+
+@keyframes checkmark-cover {
+ 0% {
+ transform: translate(-50%, -50%) rotate(-43deg)
+ }
+
+ 50% {
+ transform: translate(-16%, -5%) rotate(-43deg)
+ }
+
+ to {
+ transform: translate(50%, -97%) rotate(-43deg)
+ }
+}
+
+.checkmark-mask {
+ position: absolute;
+ height: 25%;
+ width: 25%;
+ top: 45%;
+ left: 50%;
+ z-index: 5;
+ transform: translate(-50%, -50%) rotate(-43deg);
+ animation: .3664s checkmark-cover .7804s forwards
+}
+
+.constrained-flag-mask {
+ display: none
+}
+
+#visa-branding.constrained .visa-container {
+ width: 90vw
+}
+
+#visa-branding.constrained .flag {
+ width: 80vw
+}
+
+#visa-branding.constrained .flag-mask {
+ width: 5%
+}
+
+@keyframes constrained-slide-left {
+ to {
+ animation-timing-function: linear;
+ transform: translate(-168%)
+ }
+}
+
+@keyframes constrained-slide-right {
+ to {
+ animation-timing-function: linear;
+ transform: translate(168%)
+ }
+}
+
+#visa-branding.constrained .flag-slider-bottom {
+ will-change: transform;
+ animation: .4078s constrained-slide-right 30.2ms forwards steps(29)
+}
+
+#visa-branding.constrained .flag-slider-top {
+ will-change: transform;
+ animation: .4078s constrained-slide-left 30.2ms forwards steps(29)
+}
+
+#visa-branding.constrained .top-flag {
+ right: -69%
+}
+
+#visa-branding.constrained .bottom-flag {
+ left: -69%
+}
+
+#visa-branding.constrained .flag-fade-mask {
+ width: 30%
+}
+
+#visa-branding.constrained .constrained-flag-mask {
+ display: block;
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ z-index: 101;
+ width: 7%
+}
+
+#visa-branding.constrained .flag-fade-mask {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ width: 10%;
+ z-index: 102
+}
+
+#visa-branding.constrained .top-flag-fade-mask {
+ left: 5%
+}
+
+#visa-branding.constrained .bottom-flag-fade-mask {
+ right: 5%
+}
+
+#visa-branding.constrained .constrained-bottom-flag-mask {
+ right: 0
+}
+
+#visa-branding.constrained .constrained-top-flag-mask {
+ left: 0
+}
+
+#visa-branding.constrained #visa-branding.greater-than-ar .flag-mask {
+ width: calc((100vw - 150vh) / 2)
+}
+
+#visa-branding.constrained #visa-branding.greater-than-ar .constrained-flag-mask {
+ width: calc(((100vw - (100vh * 1.5)) / 1.9))
+}
+
+#visa-branding.constrained #visa-branding.greater-than-ar .flag-fade-mask {
+ width: 37.5vh
+}
+
+#visa-branding.constrained #visa-branding.greater-than-ar .bottom-flag-fade-mask {
+ right: calc((100vw - 150vh) / 2)
+}
+
+#visa-branding.constrained #visa-branding.greater-than-ar .top-flag-fade-mask {
+ left: calc((100vw - 150vh) / 2)
+}
+
+#visa-branding.greater-than-ar .flag,
+#visa-branding.greater-than-ar .visa-container {
+ width: 150vh
+}
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/js/visa-sonic-min.js b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/js/visa-sonic-min.js
new file mode 100644
index 0000000..a14b9e4
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/js/visa-sonic-min.js
@@ -0,0 +1,235 @@
+/* eslint-disable */
+!(function (e) {
+ function r(a) {
+ if (t[a]) return t[a].exports
+ var n = (t[a] = { i: a, l: !1, exports: {} })
+ return e[a].call(n.exports, n, n.exports, r), (n.l = !0), n.exports
+ }
+ var t = {}
+ ;(r.m = e),
+ (r.c = t),
+ (r.d = function (e, t, a) {
+ r.o(e, t) ||
+ Object.defineProperty(e, t, {
+ configurable: !1,
+ enumerable: !0,
+ get: a,
+ })
+ }),
+ (r.n = function (e) {
+ var t =
+ e && e.__esModule
+ ? function () {
+ return e.default
+ }
+ : function () {
+ return e
+ }
+ return r.d(t, 'a', t), t
+ }),
+ (r.o = function (e, r) {
+ return Object.prototype.hasOwnProperty.call(e, r)
+ }),
+ (r.p = ''),
+ r((r.s = 1))
+ })([
+ ,
+ function (e, r, t) {
+ 'use strict'
+ t(2),
+ (function () {
+ function e(e, r) {
+ r || (r = window.location.href),
+ (e = e.replace(/[\[\]]/g, '\\$&'))
+ var t = new RegExp('[?&]' + e + '(=([^]*)|&|#|$)').exec(r)
+ return t
+ ? t[2]
+ ? decodeURIComponent(t[2].replace(/\+/g, ' '))
+ : ''
+ : null
+ }
+ function r(e) {
+ return document.getElementsByClassName(e)
+ }
+ function t(e) {
+ var r = e
+ 4 === r.length &&
+ (r = '#' + r[1] + r[1] + r[2] + r[2] + r[3] + r[3])
+ var t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r)
+ return t
+ ? {
+ r: parseInt(t[1], 16),
+ g: parseInt(t[2], 16),
+ b: parseInt(t[3], 16),
+ }
+ : null
+ }
+ function a(e, r, t) {
+ var a = [e, r, t].map(function (e) {
+ return (e /= 255) <= 0.03928
+ ? e / 12.92
+ : Math.pow((e + 0.055) / 1.055, 2.4)
+ })
+ return 0.2126 * a[0] + 0.7152 * a[1] + 0.0722 * a[2]
+ }
+ function n(e, r) {
+ var t = (a(e.r, e.g, e.b) + 0.05) / (a(r.r, r.g, r.b) + 0.05)
+ return t < 1 && (t = 1 / t), t
+ }
+ function c() {
+ var e = d.play()
+ void 0 !== e && e.then(function () {}).catch(function (e) {})
+ }
+ var o = /^((?!chrome|android).)*safari/i.test(
+ navigator.userAgent,
+ ),
+ s = document.getElementById('visa-branding'),
+ i = e('constrained'),
+ l = !!i && 'true' === i,
+ u =
+ Math.max(
+ document.documentElement.clientWidth,
+ window.innerWidth || 0,
+ ) /
+ Math.max(
+ document.documentElement.clientHeight,
+ window.innerHeight || 0,
+ )
+ l
+ ? (s.classList.add('constrained'),
+ u > 1.5 &&
+ document
+ .getElementById('visa-branding')
+ .classList.add('greater-than-ar'))
+ : u > 4.6 &&
+ document
+ .getElementById('visa-branding')
+ .classList.add('greater-than-ar')
+ var g = e('sound')
+ if (!g || 'true' === g) {
+ var d = new Audio(visa_lib.plugin_url + 'theme/visa_branding_sound.mp3')
+ o
+ ? c()
+ : setTimeout(function () {
+ c()
+ }, 220)
+ }
+ var m = e('checkmark')
+ !m || 'true' === m || s.classList.add('no-checkmark')
+ var f = e('color') || 'blue',
+ h = f.toLowerCase()
+ if ('blue' !== h.toLowerCase() && 'white' !== h.toLowerCase())
+ if (/(^[0-9A-F]{6}$)|(^[0-9A-F]{3}$)/i.test(f)) {
+ var v = '#' + f,
+ k = (function (e) {
+ var r = t(v),
+ a = n(t('#ffffff'), r),
+ c = n(t('#1a1f71'), r),
+ o = { theme: '', error: '' }
+ return a < 3 && c < 3
+ ? ((o.error =
+ "Your custom color doesn't provide enough contrast. Please enter another color."),
+ o)
+ : a === c
+ ? ((o.theme = 'custom_dark'), o)
+ : ((o.theme = a > c ? 'custom_dark' : 'custom_light'),
+ o)
+ })()
+ k.error
+ ? (console.error(k.error), (f = 'blue'))
+ : (f = k.theme),
+ (function (e) {
+ var a = [
+ 'flag-container',
+ 'visa-container',
+ 'wiper-left',
+ 'wiper-right',
+ 'wiper-middle',
+ 'flag-mask-top',
+ 'flag-mask-bottom',
+ 'checkmark-mask',
+ 'constrained-bottom-flag-mask',
+ 'constrained-top-flag-mask',
+ ]
+ s.style.backgroundColor = e
+ for (var n = 0; n < a.length; n++)
+ r(a[n])[0].style.backgroundColor = e
+ var c = t(e),
+ o = 'linear-gradient(to $DIRECTION, $TRANSPARENT_COLOR 0%, $COLOR 95%)'.replace(
+ '$COLOR',
+ e,
+ )
+ ;(o = o.replace(
+ '$TRANSPARENT_COLOR',
+ 'rgba(' + c.r + ',' + c.g + ',' + c.b + ',0)',
+ )),
+ (r(
+ 'top-flag-fade-mask',
+ )[0].style.background = o.replace(
+ '$DIRECTION',
+ 'left',
+ )),
+ (r(
+ 'bottom-flag-fade-mask',
+ )[0].style.background = o.replace(
+ '$DIRECTION',
+ 'right',
+ ))
+ })(v)
+ } else
+ console.error('An invalid hex color was passed:', f),
+ (f = 'blue')
+ var b = visa_lib.plugin_url + 'theme',
+ _ = r('top-flag')[0],
+ p = r('checkmark-circle')[0],
+ w = r('checkmark')[0],
+ C = r('visa-logo')[0],
+ L = r('bottom-flag')[0]
+ switch (f.toLowerCase()) {
+ case 'white':
+ ;(b += '/white_theme'),
+ (_.src = b + '/flag_blue.svg'),
+ (p.src = b + '/checkmark_circle_blue.svg'),
+ (w.src = b + '/checkmark_check_blue.svg'),
+ (C.src = b + '/logo_blue.svg'),
+ (L.src = b + '/flag_gold.svg'),
+ s.classList.add('background-light')
+ break
+ case 'custom_light':
+ ;(b += '/custom_light'),
+ (_.src = b + '/flag_blue.svg'),
+ (p.src = b + '/checkmark_circle_blue.svg'),
+ (w.src = b + '/checkmark_check_blue.svg'),
+ (C.src = b + '/logo_blue.svg'),
+ (L.src = b + '/flag_blue.svg')
+ break
+ case 'custom_dark':
+ ;(b += '/custom_dark'),
+ (_.src = b + '/flag_white.svg'),
+ (p.src = b + '/checkmark_circle_white.svg'),
+ (w.src = b + '/checkmark_check_white.svg'),
+ (C.src = b + '/logo_white.svg'),
+ (L.src = b + '/flag_white.svg')
+ break
+ case 'blue':
+ default:
+ ;(b += '/blue_theme'),
+ (_.src = b + '/flag_bluegradient.svg'),
+ (p.src = b + '/checkmark_circle_white.svg'),
+ (w.src = b + '/checkmark_check_white.svg'),
+ (C.src = b + '/logo_white.svg'),
+ (L.src = b + '/flag_goldgradient.svg'),
+ s.classList.add('background-dark')
+ }
+ s.addEventListener(
+ 'animationend',
+ function (e) {
+ 'scaleXY' === e.animationName &&
+ window.parent.postMessage('visa-sensory-branding-end', '*')
+ },
+ !1,
+ )
+ })()
+ },
+ function (e, r) {},
+ ])
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/checkmark_check_white.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/checkmark_check_white.svg
new file mode 100644
index 0000000..4dd2b6f
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/checkmark_check_white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/checkmark_circle_white.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/checkmark_circle_white.svg
new file mode 100644
index 0000000..680ec4c
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/checkmark_circle_white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/flag_bluegradient.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/flag_bluegradient.svg
new file mode 100644
index 0000000..70d4fba
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/flag_bluegradient.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/flag_goldgradient.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/flag_goldgradient.svg
new file mode 100644
index 0000000..e81e026
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/flag_goldgradient.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/logo_white.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/logo_white.svg
new file mode 100644
index 0000000..cd53c60
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/blue_theme/logo_white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/checkmark_check_white.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/checkmark_check_white.svg
new file mode 100644
index 0000000..4dd2b6f
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/checkmark_check_white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/checkmark_circle_white.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/checkmark_circle_white.svg
new file mode 100644
index 0000000..680ec4c
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/checkmark_circle_white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/flag_white.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/flag_white.svg
new file mode 100644
index 0000000..4620a4d
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/flag_white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/logo_white.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/logo_white.svg
new file mode 100644
index 0000000..cd53c60
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_dark/logo_white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/checkmark_check_blue.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/checkmark_check_blue.svg
new file mode 100644
index 0000000..db0c11f
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/checkmark_check_blue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/checkmark_circle_blue.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/checkmark_circle_blue.svg
new file mode 100644
index 0000000..f1b9f73
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/checkmark_circle_blue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/flag_blue.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/flag_blue.svg
new file mode 100644
index 0000000..a9f55cf
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/flag_blue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/logo_blue.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/logo_blue.svg
new file mode 100644
index 0000000..36a6cb2
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/custom_light/logo_blue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/visa_branding_sound.mp3 b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/visa_branding_sound.mp3
new file mode 100644
index 0000000..07fb77a
Binary files /dev/null and b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/visa_branding_sound.mp3 differ
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/checkmark_check_blue.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/checkmark_check_blue.svg
new file mode 100644
index 0000000..db0c11f
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/checkmark_check_blue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/checkmark_circle_blue.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/checkmark_circle_blue.svg
new file mode 100644
index 0000000..f1b9f73
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/checkmark_circle_blue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/flag_blue.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/flag_blue.svg
new file mode 100644
index 0000000..2454db0
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/flag_blue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/flag_gold.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/flag_gold.svg
new file mode 100644
index 0000000..f65b854
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/flag_gold.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/logo_blue.svg b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/logo_blue.svg
new file mode 100644
index 0000000..36a6cb2
--- /dev/null
+++ b/includes/3rd-party/plugins/woocommerce/assets/lib/visa/theme/white_theme/logo_blue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-method.php b/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-method.php
index a7016df..a80bcb9 100644
--- a/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-method.php
+++ b/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-method.php
@@ -997,14 +997,19 @@ function enqueue_culqi_checkout_script() {
// Register the Culqi script
wp_register_script('culqi-checkout', MPCULQI_URLAPI_CHECKOUT_PROD, array(), null, true);
wp_register_script('culqi-3ds', MPCULQI_URLAPI_PROD_3DS, array(), null, true);
- wp_register_script('mastercardjs', MPCULQI_WC_URL.'/assets/js/mc-sonic.min.js?_='.time(), array(), null, true);
+ wp_register_script('mastercardjs', MPCULQI_WC_URL.'/assets/lib/mastercard/js/mc-sonic.min.js?_='.time(), array(), null, true);
+
+ wp_localize_script('culqi-checkout', 'visa_lib', array(
+ 'plugin_url' => MPCULQI_WC_URL . '/assets/lib/visa/'
+ ));
// Enqueue the Culqi script
wp_enqueue_script('culqi-checkout');
wp_enqueue_script('culqi-3ds');
wp_enqueue_script('mastercardjs');
+
//
- wp_enqueue_style( 'mastercardcss', MPCULQI_WC_URL.'/assets/css/mastercard.css?_='.time() );
+ wp_enqueue_style('mastercardcss', MPCULQI_WC_URL.'/assets/lib/mastercard/css/mastercard.css?_='.time() );
}
// Hook the function to the 'wp_enqueue_scripts' action, which loads scripts on the front end
@@ -1015,4 +1020,4 @@ function culqi_enqueue_styles() {
wp_enqueue_style( 'my_theme_style', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'culqi_enqueue_styles' );
-?>
\ No newline at end of file
+?>
diff --git a/index.php b/index.php
index 6db7851..a7f744f 100644
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
Plugin Name: Culqi
Plugin URI:https://wordpress.org/plugins/culqi-checkout
Description: Culqi acepta pagos con tarjetas de débito y crédito, Yape, Cuotéalo BCP y PagoEfectivo (billeteras móviles, agentes y bodegas).
-Version: 3.1.0
+Version: 3.1.1
Author: Culqi
Author URI: https://culqi.com/
Developer: Culqi Team
@@ -22,7 +22,7 @@
if ( ! defined( 'WPINC' ) ) {
die;
}
-define( 'MPCULQI_PLUGIN_VERSION' , 'v3.1.0');
+define( 'MPCULQI_PLUGIN_VERSION' , 'v3.1.1');
define( 'MPCULQI_FILE' , __FILE__ );
define( 'MPCULQI_DIR' , plugin_dir_path(__FILE__) );
diff --git a/readme.txt b/readme.txt
index 6347944..de78406 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Tags: culqi, checkout, payment method, Perú, woocommerce
Donate link: https://culqi.com/
Requires at least: 4.5
Tested up to: 6.4.3
-Stable tag: 3.1.0
+Stable tag: 3.1.1
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html