diff --git a/CHANGELOG.md b/CHANGELOG.md index da567e3c5..9328614a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.8.0] - 2022-06-07 + +### Added +- Added melidata script to collect metrics from plugin + +### Changes +- Changed mp logo + ## [5.7.6] - 2022-04-19 ### Changed Bug fixes diff --git a/assets/css/basic_checkout_mercadopago.css b/assets/css/basic_checkout_mercadopago.css index 97aabc26e..6655b955f 100644 --- a/assets/css/basic_checkout_mercadopago.css +++ b/assets/css/basic_checkout_mercadopago.css @@ -891,6 +891,7 @@ top: 50%; left: 50%; transform: translate(-50%, -50%); + margin: 0 !important; } .mp-wallet-button-info { @@ -906,7 +907,7 @@ } .mp-wallet-button-pay { - width: 100%x; + width: 100%; padding-left: 35%; } @@ -968,7 +969,7 @@ } .mp-wallet-button-pay { - width: 100%x; + width: 100%; padding-left: 0; } } diff --git a/assets/css/basic_checkout_mercadopago.min.css b/assets/css/basic_checkout_mercadopago.min.css index 187b55b83..55e62cdec 100644 --- a/assets/css/basic_checkout_mercadopago.min.css +++ b/assets/css/basic_checkout_mercadopago.min.css @@ -1 +1 @@ -.mp-pt-20{padding-top:20px!important}.mp-pt-5{padding-top:5px!important}.mp-pt-15{padding-top:15px!important}.mp-pt-10{padding-top:10px!important}.mp-pt-0{padding-top:0!important}.mp-pt-30{padding-top:30px!important}.mp-pb-15{padding-bottom:15px!important}.mp-pb-20{padding-bottom:20px!important}.mp-pb-25{padding-bottom:25px!important}.mp-pb-30{padding-bottom:30px!important}.mp-pl-10{padding-left:10px!important}.mp-pr-10{padding-right:10px!important}.mp-pr-15{padding-right:15px!important}.mp-mt-5{margin-top:5px!important}.mp-mt-03rem{margin-top:.3rem!important}.mp-mt-04rem{margin-top:.4rem!important}.mp-mt-05rem{margin-top:.5rem!important}.mp-mt-06rem{margin-top:.6rem!important}.mp-mb-0{margin-bottom:0!important}.mp-mb-20{margin-bottom:20px!important}.mp-mb-30{margin-bottom:30px!important}.mp-mt-20{margin-top:20px!important}.mp-display-inherit{display:inherit!important}.mp-pointer{cursor:pointer!important}.mp-text-center{text-align:center!important}.mp-text-justify{text-align:justify!important}.mp-min-hg{min-height:40px!important}.mp-row-checkout{width:100%;display:inline-block}.mp-col-md-12{width:100%;display:inline-block;padding-left:0;padding-right:0;text-align:left!important}.mp-col-md-9{flex:0 0 75%;width:75%;float:left}.mp-col-md-8{flex:0 0 66.666667%;width:66.666667%;float:left}.mp-col-md-6{width:50%;float:left;padding-left:0;padding-right:0;text-align:left!important}.mp-col-md-4{flex:0 0 33.333333%;width:33.333333%;float:left}.mp-col-md-3{flex:0 0 25%;width:25%;float:left}.mp-pix-right{border-left:solid 1px #e5e5e5}.mp-pix-left{padding:0 0 0 32px}.mp-img-fluid{max-width:100%;height:auto}.mp-panel-checkout{background-color:#fff;padding:10px 15px 25px}.mp-title-checkout{padding:15px 0 0;font-family:sans-serif;font-size:1.2rem!important;font-weight:600!important;font-style:normal;font-stretch:normal;line-height:1.25!important;letter-spacing:normal;color:#04204c;margin:0!important}.mp-title-checkout::before{content:""!important;width:0!important;height:0!important;margin:0!important}.submp-title-checkout{font-size:14px!important;font-family:sans-serif!important;color:#7a7a7a;font-weight:400;padding:20px 0 0;margin:0 0 5px!important;text-transform:uppercase}.mp-subtitle-basic-checkout{font-size:14px!important;font-family:sans-serif!important;color:#7a7a7a;font-weight:400;padding:.625em 0 0;margin:0 0 5px!important;text-transform:uppercase}.mp-badge-checkout{font-size:15px!important;font-family:sans-serif!important;padding:5px 10px;margin-left:5px;display:inline-block;background-color:#2ec74b;color:#fff;text-transform:none;border-radius:2px}.mp-img-tarjetas{padding:8px!important;max-height:35px!important;width:auto!important;float:none!important;position:relative!important;right:0!important;border:inherit!important;display:inline-block!important}.mp-img-redirect{padding:8px!important;max-height:6.25em!important;width:auto!important;float:none!important;position:relative!important;right:0!important;border:inherit!important;display:inline-block!important}.mp-img-ticket{padding:0 8px!important;width:auto!important;float:left!important;position:relative!important;right:0!important;border:inherit!important}.mp-redirect-frame{width:100%;text-align:center;background-color:#f5f5f5;padding:25px 20px 20px;display:inline-block}.mp-redirect-frame img{max-width:160px!important}.mp-redirect-frame p{padding-top:15px!important;margin-top:0!important;font-family:sans-serif!important;font-size:14px!important;font-weight:600!important;font-style:normal!important;font-stretch:normal!important;line-height:1.71!important;letter-spacing:normal!important;text-align:center!important;color:#333!important}.mp-terms-and-conditions{padding:16px;font-family:sans-serif;font-size:12px;line-height:18px;text-align:center;color:rgba(0,0,0,.9)}.mp-terms-and-conditions a{color:#009ee3}.mp-panel-custom-checkout{background-color:#fff;padding:20px 15px 0}.mp-subtitle-custom-checkout{font-size:17px!important;font-family:sans-serif!important;color:#04204c;font-weight:600;padding:20px 0 0;margin:0 0 5px!important}.mp-subtitle-ticket-checkout{font-size:16px!important;font-family:sans-serif!important;color:#04204c;font-weight:600;padding:0 0 0;margin:0 0 5px!important}.mp-form-control{font-family:sans-serif!important;width:100%;height:40px!important;border-radius:5px!important;font-size:13px!important;padding:0 10px!important;background-color:#fff!important;border:1px solid #d1d1d1!important;margin-bottom:0!important;color:#000!important}.mp-form-control-error{border:2px solid #f04449!important}.mp-form-control-check{margin:0 10px 0 0!important;font-family:sans-serif!important;border-radius:5px!important;font-size:13px!important;padding:0 10px!important;background-color:#fff!important;border:1px solid #d1d1d1!important;float:left}.mp-button{width:100%;height:40px;border-radius:5px!important;color:#fff!important;background-color:#3483fa!important;text-transform:none!important;font-size:15px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1!important;letter-spacing:normal!important;text-align:center!important}.mp-button:hover{opacity:.8}.mp-error{font-family:sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal;color:#f04449!important;display:none}.mp-desc{font-family:sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal;color:rgba(0,0,0,.45)!important}.mp-label-form-check{font-family:sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:rgba(0,0,0,.8)!important;vertical-align:baseline!important}.mp-label-form{font-family:sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:rgba(0,0,0,.7)!important}.mp-label-form em{font-size:18px!important;color:#f04449!important;font-family:"Merriweather, Georgia";position:absolute;margin:-3px 0 0 3px}.mp-obrigatory{font-family:sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal;color:#f04449!important;padding-top:10px}.mp-obrigatory em{font-size:18px!important;color:#f04449!important;margin:-2px 5px 0 0;font-family:"Merriweather, Georgia";float:left}.mp-frame-links{display:inline-flex;padding-top:10px;text-align:left}.mp-checkout-link{font-family:sans-serif!important;font-size:14px;text-decoration:none!important;vertical-align:middle;box-shadow:none!important;cursor:pointer}.mp-frame-payments{display:none;background-color:#f5f5f5;margin-top:10px;padding:10px 10px 10px;width:100%}.submp-title-checkout-custom{font-size:13px!important;font-family:sans-serif!important;color:#7a7a7a;font-weight:400;padding:00px 0 0;margin:0 0 5px!important;text-transform:uppercase}.mp-tooltip{position:relative;display:inline-block;border-bottom:1px dotted #000}.mp-tooltip .mp-tooltiptext{visibility:hidden;background:#3483fa;color:#fff;padding:5px 0;position:absolute;width:250px;text-align:center;margin:-20px 0 0 100px;font-size:12px}.mp-tooltip .mp-tooltiptext:before{border:6px solid transparent;border-right-color:#3483fa;content:"";left:-12px;position:absolute;top:5px}.mp-tooltip:hover .mp-tooltiptext{visibility:visible}.mp-erro_febraban,.mp_error_docnumber{font-family:sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal;color:#f04449!important;margin-top:5px;display:none}.mp-subtitle-ticket-checkout{font-size:16px!important;font-family:sans-serif!important;color:#04204c;font-weight:600;margin:0 0 5px!important}.mp-ticket-name{font-weight:700;color:rgba(0,0,0,.8);padding-left:32px;font-size:13px}.mp-ticket-payments{overflow:hidden;padding:0 10px 10px 10px}#mp-box-input-tax-cft{margin-top:4px}#mp-tax-tea-text{color:#797979;font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal}#mp-tax-cft-text{font-size:27px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.25;letter-spacing:normal;color:#868686}#mp_socialname_label{display:none}#mp_cnpj_label{display:none}#mp-doc-div{display:none}#mp-doc-type-div{display:none}#mp-doc-number-div{display:none}#mp-issuer-div{display:none}#mp-card-holder-div{display:none}.mp-discount{border-style:solid;border-width:thin;border-color:#009ee3;padding:8px 8px 8px 8px;margin-top:20px;text-transform:uppercase;font-size:12px;color:#333;display:none;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;clear:both;float:left}.mp-redirect-frame-pix{width:100%;text-align:center;background-color:#f5f5f5;padding:25px 20px 20px;display:inline-block}.mp-redirect-frame-pix img{max-width:170px!important}.mp-redirect-frame-pix p{margin:24px 0 0!important;font-family:sans-serif!important;font-size:16px!important;font-weight:400!important;font-stretch:normal!important;font-style:normal!important;line-height:normal!important;letter-spacing:normal!important;text-align:center!important;color:#787878!important}.mp-pix-checkout-title-badge{margin:2px 0 0 8px;padding:5px 10px;background-color:rgba(65,137,230,.1);font-family:sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:#3483fa;border-radius:16px;text-transform:uppercase}.mp-row-checkout-pix{width:100%}.mp-details-title{width:100%;margin:32px 358px 32px 0;font-family:sans-serif;font-size:28px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#333}.mp-col-flex-2{width:100%;display:block}.mp-col-flex-10{width:100%;display:block}.mp-details-pix{width:100%;height:auto;display:inline-block;border-radius:6px;box-shadow:0 6px 16px 0 rgba(0,0,0,.1);background-color:#fff;margin-bottom:30px}.mp-details-pix-title{width:100%;opacity:.8;font-family:sans-serif;font-size:18px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:rgba(0,0,0,.8);display:block;margin:40px 0 0 0;padding:0 0 0 32px}.mp-details-list{display:flex}.mp-details-pix-number-p{border-radius:100%;width:26px;height:26px;border:solid 1px #009ee3;color:#009ee3;text-align:center;font-size:16px;margin:0 13px 0 0;font-family:sans-serif}.mp-details-list-description{font-family:sans-serif;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:rgba(0,0,0,.8);display:block;width:70%}.mp-details-pix-img{width:190px;height:56px;object-fit:contain;display:block;margin:64px 0 0 0;padding:0 0 0 32px}.mp-details-pix-description{margin:24px 0 21px 13px;font-family:sans-serif;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:rgba(0,0,0,.8)}.mp-details-pix-qr{padding:0 4px 0 0}.mp-details-pix-qr-value{font-weight:700}.mp-details-pix-qr-title{margin:24px 0 0 0;font-family:sans-serif;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.88;letter-spacing:normal;text-align:center;color:rgba(0,0,0,.8)}.mp-details-pix-qr-img{width:168px;height:168px;display:block;margin:16px auto 0 auto}.mp-details-pix-qr-subtitle{margin:12px 0 32px 0;font-family:sans-serif;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;text-align:center;color:rgba(0,0,0,.45)}.mp-details-pix-qr-description{margin:32px 15px 16px 16px;font-family:sans-serif;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.25;letter-spacing:normal;text-align:center;color:rgba(0,0,0,.8)}.mp-qr-input{width:70%;height:48px;padding:6.3px 0 5.7px 12px;border-radius:6px;border:solid 1px rgba(0,0,0,.2);background-color:#fff;margin:0 12px 0 0}.mp-details-pix-button{width:30%;height:48px;padding:16px 24px;border-radius:6px;background-color:#009ee3;font-family:sans-serif;font-size:.8em;font-weight:600;font-stretch:normal;font-style:normal;line-height:1;letter-spacing:normal;text-align:center;color:#fff}.mp-steps-congrats{margin:24px 0 16px 0!important;list-style-type:none}.mp-row-checkout-pix-container{width:100%;display:flex;padding:16px 47px 48px 47px}.mp-details-pix-amount{margin:32px auto 0;text-align:center;width:100%;color:rgba(0,0,0,.8);font-size:18px;font-family:sans-serif}.mp-wallet-button{background:#fff;border:1px solid #dcdcdc;box-sizing:border-box;box-shadow:0 7px 12px rgba(0,0,0,.110659);border-radius:10px;padding:1em 3em 1em 1em;margin-bottom:20px;max-width:362px}.mp-wallet-button-header{margin-bottom:30px;display:flex}.mp-wallet-button-circle{width:48px;height:48px;border-radius:50%;position:absolute;background-color:rgba(71,154,209,.1);left:50%;top:50%;transform:translate(-50%,-50%)}.mp-wallet-button-logo{width:35%;position:relative}.mp-wallet-button-logo img{float:inherit!important;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.mp-wallet-button-info{width:65%}.mp-wallet-button-info-header{font-size:.9em}.mp-wallet-button-info-description{font-size:.8em}.mp-wallet-button-pay{width:100%x;padding-left:35%}.mp-wallet-button-pay button{padding:.5em .7em;background-color:#009ee3;border-radius:5px;color:#fff;width:100%;font-size:.9em}@media (max-width:767.98px){.mp-col-md-4{width:100%;flex:none}.mp-col-md-8{width:100%;flex:none}.mp-pix-right{border-right:none;border-top:solid 1px #e5e5e5;margin-bottom:32px}.mp-qr-code{width:100%;margin:0 0 24px 0}.mp-details-pix-button{width:100%;height:auto;display:inline-block}.mp-row-checkout-pix-container{display:block}.mp-details-pix-img{margin:64px auto 0;padding:0}.mp-details-pix-title{margin:40px auto 0;text-align:center;padding:0}}@media (max-width:1040px){.mp-wallet-button{padding:1em}.mp-wallet-button-pay{width:100%x;padding-left:0}} \ No newline at end of file +.mp-pt-20{padding-top:20px!important}.mp-pt-5{padding-top:5px!important}.mp-pt-15{padding-top:15px!important}.mp-pt-10{padding-top:10px!important}.mp-pt-0{padding-top:0!important}.mp-pt-30{padding-top:30px!important}.mp-pb-15{padding-bottom:15px!important}.mp-pb-20{padding-bottom:20px!important}.mp-pb-25{padding-bottom:25px!important}.mp-pb-30{padding-bottom:30px!important}.mp-pl-10{padding-left:10px!important}.mp-pr-10{padding-right:10px!important}.mp-pr-15{padding-right:15px!important}.mp-mt-5{margin-top:5px!important}.mp-mt-03rem{margin-top:.3rem!important}.mp-mt-04rem{margin-top:.4rem!important}.mp-mt-05rem{margin-top:.5rem!important}.mp-mt-06rem{margin-top:.6rem!important}.mp-mb-0{margin-bottom:0!important}.mp-mb-20{margin-bottom:20px!important}.mp-mb-30{margin-bottom:30px!important}.mp-mt-20{margin-top:20px!important}.mp-display-inherit{display:inherit!important}.mp-pointer{cursor:pointer!important}.mp-text-center{text-align:center!important}.mp-text-justify{text-align:justify!important}.mp-min-hg{min-height:40px!important}.mp-row-checkout{width:100%;display:inline-block}.mp-col-md-12{width:100%;display:inline-block;padding-left:0;padding-right:0;text-align:left!important}.mp-col-md-9{flex:0 0 75%;width:75%;float:left}.mp-col-md-8{flex:0 0 66.666667%;width:66.666667%;float:left}.mp-col-md-6{width:50%;float:left;padding-left:0;padding-right:0;text-align:left!important}.mp-col-md-4{flex:0 0 33.333333%;width:33.333333%;float:left}.mp-col-md-3{flex:0 0 25%;width:25%;float:left}.mp-pix-right{border-left:solid 1px #e5e5e5}.mp-pix-left{padding:0 0 0 32px}.mp-img-fluid{max-width:100%;height:auto}.mp-panel-checkout{background-color:#fff;padding:10px 15px 25px}.mp-title-checkout{padding:15px 0 0;font-family:sans-serif;font-size:1.2rem!important;font-weight:600!important;font-style:normal;font-stretch:normal;line-height:1.25!important;letter-spacing:normal;color:#04204c;margin:0!important}.mp-title-checkout::before{content:""!important;width:0!important;height:0!important;margin:0!important}.submp-title-checkout{font-size:14px!important;font-family:sans-serif!important;color:#7a7a7a;font-weight:400;padding:20px 0 0;margin:0 0 5px!important;text-transform:uppercase}.mp-subtitle-basic-checkout{font-size:14px!important;font-family:sans-serif!important;color:#7a7a7a;font-weight:400;padding:.625em 0 0;margin:0 0 5px!important;text-transform:uppercase}.mp-badge-checkout{font-size:15px!important;font-family:sans-serif!important;padding:5px 10px;margin-left:5px;display:inline-block;background-color:#2ec74b;color:#fff;text-transform:none;border-radius:2px}.mp-img-tarjetas{padding:8px!important;max-height:35px!important;width:auto!important;float:none!important;position:relative!important;right:0!important;border:inherit!important;display:inline-block!important}.mp-img-redirect{padding:8px!important;max-height:6.25em!important;width:auto!important;float:none!important;position:relative!important;right:0!important;border:inherit!important;display:inline-block!important}.mp-img-ticket{padding:0 8px!important;width:auto!important;float:left!important;position:relative!important;right:0!important;border:inherit!important}.mp-redirect-frame{width:100%;text-align:center;background-color:#f5f5f5;padding:25px 20px 20px;display:inline-block}.mp-redirect-frame img{max-width:160px!important}.mp-redirect-frame p{padding-top:15px!important;margin-top:0!important;font-family:sans-serif!important;font-size:14px!important;font-weight:600!important;font-style:normal!important;font-stretch:normal!important;line-height:1.71!important;letter-spacing:normal!important;text-align:center!important;color:#333!important}.mp-terms-and-conditions{padding:16px;font-family:sans-serif;font-size:12px;line-height:18px;text-align:center;color:rgba(0,0,0,.9)}.mp-terms-and-conditions a{color:#009ee3}.mp-panel-custom-checkout{background-color:#fff;padding:20px 15px 0}.mp-subtitle-custom-checkout{font-size:17px!important;font-family:sans-serif!important;color:#04204c;font-weight:600;padding:20px 0 0;margin:0 0 5px!important}.mp-subtitle-ticket-checkout{font-size:16px!important;font-family:sans-serif!important;color:#04204c;font-weight:600;padding:0 0 0;margin:0 0 5px!important}.mp-form-control{font-family:sans-serif!important;width:100%;height:40px!important;border-radius:5px!important;font-size:13px!important;padding:0 10px!important;background-color:#fff!important;border:1px solid #d1d1d1!important;margin-bottom:0!important;color:#000!important}.mp-form-control-error{border:2px solid #f04449!important}.mp-form-control-check{margin:0 10px 0 0!important;font-family:sans-serif!important;border-radius:5px!important;font-size:13px!important;padding:0 10px!important;background-color:#fff!important;border:1px solid #d1d1d1!important;float:left}.mp-button{width:100%;height:40px;border-radius:5px!important;color:#fff!important;background-color:#3483fa!important;text-transform:none!important;font-size:15px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1!important;letter-spacing:normal!important;text-align:center!important}.mp-button:hover{opacity:.8}.mp-error{font-family:sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal;color:#f04449!important;display:none}.mp-desc{font-family:sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal;color:rgba(0,0,0,.45)!important}.mp-label-form-check{font-family:sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:rgba(0,0,0,.8)!important;vertical-align:baseline!important}.mp-label-form{font-family:sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:rgba(0,0,0,.7)!important}.mp-label-form em{font-size:18px!important;color:#f04449!important;font-family:"Merriweather, Georgia";position:absolute;margin:-3px 0 0 3px}.mp-obrigatory{font-family:sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal;color:#f04449!important;padding-top:10px}.mp-obrigatory em{font-size:18px!important;color:#f04449!important;margin:-2px 5px 0 0;font-family:"Merriweather, Georgia";float:left}.mp-frame-links{display:inline-flex;padding-top:10px;text-align:left}.mp-checkout-link{font-family:sans-serif!important;font-size:14px;text-decoration:none!important;vertical-align:middle;box-shadow:none!important;cursor:pointer}.mp-frame-payments{display:none;background-color:#f5f5f5;margin-top:10px;padding:10px 10px 10px;width:100%}.submp-title-checkout-custom{font-size:13px!important;font-family:sans-serif!important;color:#7a7a7a;font-weight:400;padding:00px 0 0;margin:0 0 5px!important;text-transform:uppercase}.mp-tooltip{position:relative;display:inline-block;border-bottom:1px dotted #000}.mp-tooltip .mp-tooltiptext{visibility:hidden;background:#3483fa;color:#fff;padding:5px 0;position:absolute;width:250px;text-align:center;margin:-20px 0 0 100px;font-size:12px}.mp-tooltip .mp-tooltiptext:before{border:6px solid transparent;border-right-color:#3483fa;content:"";left:-12px;position:absolute;top:5px}.mp-tooltip:hover .mp-tooltiptext{visibility:visible}.mp-erro_febraban,.mp_error_docnumber{font-family:sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal;color:#f04449!important;margin-top:5px;display:none}.mp-subtitle-ticket-checkout{font-size:16px!important;font-family:sans-serif!important;color:#04204c;font-weight:600;margin:0 0 5px!important}.mp-ticket-name{font-weight:700;color:rgba(0,0,0,.8);padding-left:32px;font-size:13px}.mp-ticket-payments{overflow:hidden;padding:0 10px 10px 10px}#mp-box-input-tax-cft{margin-top:4px}#mp-tax-tea-text{color:#797979;font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.29;letter-spacing:normal}#mp-tax-cft-text{font-size:27px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.25;letter-spacing:normal;color:#868686}#mp_socialname_label{display:none}#mp_cnpj_label{display:none}#mp-doc-div{display:none}#mp-doc-type-div{display:none}#mp-doc-number-div{display:none}#mp-issuer-div{display:none}#mp-card-holder-div{display:none}.mp-discount{border-style:solid;border-width:thin;border-color:#009ee3;padding:8px 8px 8px 8px;margin-top:20px;text-transform:uppercase;font-size:12px;color:#333;display:none;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;clear:both;float:left}.mp-redirect-frame-pix{width:100%;text-align:center;background-color:#f5f5f5;padding:25px 20px 20px;display:inline-block}.mp-redirect-frame-pix img{max-width:170px!important}.mp-redirect-frame-pix p{margin:24px 0 0!important;font-family:sans-serif!important;font-size:16px!important;font-weight:400!important;font-stretch:normal!important;font-style:normal!important;line-height:normal!important;letter-spacing:normal!important;text-align:center!important;color:#787878!important}.mp-pix-checkout-title-badge{margin:2px 0 0 8px;padding:5px 10px;background-color:rgba(65,137,230,.1);font-family:sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:#3483fa;border-radius:16px;text-transform:uppercase}.mp-row-checkout-pix{width:100%}.mp-details-title{width:100%;margin:32px 358px 32px 0;font-family:sans-serif;font-size:28px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#333}.mp-col-flex-2{width:100%;display:block}.mp-col-flex-10{width:100%;display:block}.mp-details-pix{width:100%;height:auto;display:inline-block;border-radius:6px;box-shadow:0 6px 16px 0 rgba(0,0,0,.1);background-color:#fff;margin-bottom:30px}.mp-details-pix-title{width:100%;opacity:.8;font-family:sans-serif;font-size:18px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:rgba(0,0,0,.8);display:block;margin:40px 0 0 0;padding:0 0 0 32px}.mp-details-list{display:flex}.mp-details-pix-number-p{border-radius:100%;width:26px;height:26px;border:solid 1px #009ee3;color:#009ee3;text-align:center;font-size:16px;margin:0 13px 0 0;font-family:sans-serif}.mp-details-list-description{font-family:sans-serif;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:rgba(0,0,0,.8);display:block;width:70%}.mp-details-pix-img{width:190px;height:56px;object-fit:contain;display:block;margin:64px 0 0 0;padding:0 0 0 32px}.mp-details-pix-description{margin:24px 0 21px 13px;font-family:sans-serif;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:rgba(0,0,0,.8)}.mp-details-pix-qr{padding:0 4px 0 0}.mp-details-pix-qr-value{font-weight:700}.mp-details-pix-qr-title{margin:24px 0 0 0;font-family:sans-serif;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.88;letter-spacing:normal;text-align:center;color:rgba(0,0,0,.8)}.mp-details-pix-qr-img{width:168px;height:168px;display:block;margin:16px auto 0 auto}.mp-details-pix-qr-subtitle{margin:12px 0 32px 0;font-family:sans-serif;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;text-align:center;color:rgba(0,0,0,.45)}.mp-details-pix-qr-description{margin:32px 15px 16px 16px;font-family:sans-serif;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.25;letter-spacing:normal;text-align:center;color:rgba(0,0,0,.8)}.mp-qr-input{width:70%;height:48px;padding:6.3px 0 5.7px 12px;border-radius:6px;border:solid 1px rgba(0,0,0,.2);background-color:#fff;margin:0 12px 0 0}.mp-details-pix-button{width:30%;height:48px;padding:16px 24px;border-radius:6px;background-color:#009ee3;font-family:sans-serif;font-size:.8em;font-weight:600;font-stretch:normal;font-style:normal;line-height:1;letter-spacing:normal;text-align:center;color:#fff}.mp-steps-congrats{margin:24px 0 16px 0!important;list-style-type:none}.mp-row-checkout-pix-container{width:100%;display:flex;padding:16px 47px 48px 47px}.mp-details-pix-amount{margin:32px auto 0;text-align:center;width:100%;color:rgba(0,0,0,.8);font-size:18px;font-family:sans-serif}.mp-wallet-button{background:#fff;border:1px solid #dcdcdc;box-sizing:border-box;box-shadow:0 7px 12px rgba(0,0,0,.110659);border-radius:10px;padding:1em 3em 1em 1em;margin-bottom:20px;max-width:362px}.mp-wallet-button-header{margin-bottom:30px;display:flex}.mp-wallet-button-circle{width:48px;height:48px;border-radius:50%;position:absolute;background-color:rgba(71,154,209,.1);left:50%;top:50%;transform:translate(-50%,-50%)}.mp-wallet-button-logo{width:35%;position:relative}.mp-wallet-button-logo img{float:inherit!important;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0!important}.mp-wallet-button-info{width:65%}.mp-wallet-button-info-header{font-size:.9em}.mp-wallet-button-info-description{font-size:.8em}.mp-wallet-button-pay{width:100%;padding-left:35%}.mp-wallet-button-pay button{padding:.5em .7em;background-color:#009ee3;border-radius:5px;color:#fff;width:100%;font-size:.9em}@media (max-width:767.98px){.mp-col-md-4{width:100%;flex:none}.mp-col-md-8{width:100%;flex:none}.mp-pix-right{border-right:none;border-top:solid 1px #e5e5e5;margin-bottom:32px}.mp-qr-code{width:100%;margin:0 0 24px 0}.mp-details-pix-button{width:100%;height:auto;display:inline-block}.mp-row-checkout-pix-container{display:block}.mp-details-pix-img{margin:64px auto 0;padding:0}.mp-details-pix-title{margin:40px auto 0;text-align:center;padding:0}}@media (max-width:1040px){.mp-wallet-button{padding:1em}.mp-wallet-button-pay{width:100%;padding-left:0}} \ No newline at end of file diff --git a/assets/css/global.css b/assets/css/global.css index 496a26922..74573b7dc 100644 --- a/assets/css/global.css +++ b/assets/css/global.css @@ -25,7 +25,7 @@ .mp-alert-circle-img { width: 16px; - margin-top: 16px; + margin-top: 16px !important; } .mp-alert-texts-checkout-test-mode { @@ -46,4 +46,4 @@ margin: 4px 0 0 0 !important; font-size: 14px; color: rgba(0, 0, 0, 0.7); -} \ No newline at end of file +} diff --git a/assets/css/global.min.css b/assets/css/global.min.css index 6368a6b4d..dfb38ef20 100644 --- a/assets/css/global.min.css +++ b/assets/css/global.min.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css2?family=Lato&display=swap);.mp-alert-checkout-test-mode{margin-bottom:16px;display:flex;flex:1;flex-direction:row;align-items:flex-start;width:100%;min-height:94px;padding-bottom:10px;background:#f5f5f5;border-radius:6px;border-left:5px solid #f73}.mp-alert-icon-checkout-test-mode{display:flex;justify-content:center;align-items:flex-start;width:10%;height:100%;min-width:30px}.mp-alert-circle-img{width:16px;margin-top:16px}.mp-alert-texts-checkout-test-mode{flex:1;height:100%}.mp-alert-title-checkout-test-mode{margin:16px 0 0 0;color:rgba(0,0,0,.9);font-family:sans-serif;font-weight:500;font-size:16px}.mp-alert-description-checkout-test-mode{width:90%;margin:4px 0 0 0!important;font-size:14px;color:rgba(0,0,0,.7)} \ No newline at end of file +@import url(https://fonts.googleapis.com/css2?family=Lato&display=swap);.mp-alert-checkout-test-mode{margin-bottom:16px;display:flex;flex:1;flex-direction:row;align-items:flex-start;width:100%;min-height:94px;padding-bottom:10px;background:#f5f5f5;border-radius:6px;border-left:5px solid #f73}.mp-alert-icon-checkout-test-mode{display:flex;justify-content:center;align-items:flex-start;width:10%;height:100%;min-width:30px}.mp-alert-circle-img{width:16px;margin-top:16px!important}.mp-alert-texts-checkout-test-mode{flex:1;height:100%}.mp-alert-title-checkout-test-mode{margin:16px 0 0 0;color:rgba(0,0,0,.9);font-family:sans-serif;font-weight:500;font-size:16px}.mp-alert-description-checkout-test-mode{width:90%;margin:4px 0 0 0!important;font-size:14px;color:rgba(0,0,0,.7)} \ No newline at end of file diff --git a/assets/css/mercadopago-settings/mercadopago_settings.css b/assets/css/mercadopago-settings/mercadopago_settings.css index 20cf9be9f..c17cd83c0 100644 --- a/assets/css/mercadopago-settings/mercadopago_settings.css +++ b/assets/css/mercadopago-settings/mercadopago_settings.css @@ -17,7 +17,7 @@ background-position: center; background-repeat: no-repeat; background-size: cover; - width: 95%; + width: 100%; border-radius: 140px 170px 170px 0px; } .mp-settings-header-logo { diff --git a/assets/css/mercadopago-settings/mercadopago_settings.min.css b/assets/css/mercadopago-settings/mercadopago_settings.min.css index 237c91ae0..d13e60c4a 100644 --- a/assets/css/mercadopago-settings/mercadopago_settings.min.css +++ b/assets/css/mercadopago-settings/mercadopago_settings.min.css @@ -1 +1 @@ -.mp-settings{margin:0 55px 0 23px;font-size:16px;min-width:550px;font-family:"Proxima Nova",-apple-system,"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif}.mp-settings-header{height:340px;margin:30px 0 15px 0;position:relative}.mp-settings-header-img{position:absolute;background:url("../../images/mercadopago-settings/header-settings.png");height:100%;background-position:center;background-repeat:no-repeat;background-size:cover;width:95%;border-radius:140px 170px 170px 0}.mp-settings-header-logo{position:relative;background:url("../../images/mercadopago-settings/mercadopago-logo.png") 98% 50% no-repeat transparent;width:190px;height:70px;padding-right:16px!important;top:60px;line-height:36px;flex:none;flex-grow:0;margin:16px 0 0 50px}.mp-settings-header-hr{position:relative;top:65px;width:28%;border:1px solid #00b1ea;flex:none;flex-grow:0;margin:16px 0 0 45px}.mp-settings-header p{position:relative;top:70px;font-family:sans-serif;font-size:2rem;line-height:36px;color:#fff;flex:none;flex-grow:0;margin:16px 0 0 50px}.mp-container{display:flex}.mp-settings-title-container{display:flex}.mp-block{padding:24px;background-color:#fff;box-shadow:0 6px 16px rgb(0 0 0 / 10%);border-radius:6px}.mp-block-requirements{background-color:unset;flex:1;flex-direction:column;box-shadow:unset}.mp-block-flex{flex:2}.mp-block-manual{background:#f5f5f5}.mp-settings-font-color{font-family:sans-serif;color:rgba(0,0,0,.9)}.mp-settings-title-font-size{font-size:20px;line-height:25px}.mp-settings-subtitle-font-size{font-size:16px;line-height:20px}.mp-settings-title-color{color:rgba(0,0,0,.55)}.mp-inner-container{display:flex;flex-direction:row}.mp-inner-container div:nth-child(1){padding-right:10px;flex:1;margin:0;padding:0;display:flex;flex-direction:row}.mp-inner-container div:nth-child(2){padding-left:10px;flex:1;margin:0;padding:0;display:flex;flex-direction:row-reverse}.mp-inner-container div p{margin:0 8px 0 0;padding:0}.mp-inner-container div h4{margin:0;padding-right:5px}.mp-inner-container-settings{display:block;flex-direction:column}.mp-button{font-size:14px;line-height:16px;color:#fff;border:none;padding:9px 12px 7px;background:#009ee3;border-radius:5px;margin:15px 0 15px 0;cursor:pointer;transition:box-shadow .25s ease-out,background-color .2s ease-out;box-shadow:0 0 0 0 #fff}.mp-button:hover{border-color:transparent;background-color:#007eb5;color:#fff;-webkit-transition:background-color .2s ease-in;transition:background-color .2s ease-in}.mp-button:focus{outline:0;box-shadow:0 0 0 .1875em rgb(27 135 201 / 30%);-webkit-transition:box-shadow .25s ease-in;transition:box-shadow .25s ease-in}.mp-button:active{border-color:transparent;background-color:#005e88;color:#fff}.mp-button-light-blue{border-color:transparent;background:rgba(71,154,209,.15);color:#009ee3}.mp-button-light-blue:hover{border-color:transparent;background-color:rgba(65,137,230,.2);color:#009ee3;-webkit-transition:background-color .2s ease-in;transition:background-color .2s}.mp-button-light-blue:focus{outline:0;box-shadow:0 0 0 .1875em rgb(27 135 201 / 30%);-webkit-transition:box-shadow .25s ease-in;transition:box-shadow .25s ease-in}.mp-button-light-blue:active{border-color:transparent;background-color:rgba(65,137,230,.3);color:#009ee3}.mp-settings-icon-success{background:url("../../images/mercadopago-settings/icon-success.png") 98% 50% no-repeat transparent;padding-right:16px!important}.mp-settings-icon-warning{background:url("../../images/mercadopago-settings/icon-warning.png") 98% 50% no-repeat transparent;padding-right:16px!important}.mp-settings-icon-open{background:url("../../images/mercadopago-settings/icon-open.png") 98% 50% no-repeat transparent;padding-right:16px!important;transition:1s}.mp-settings-icon-open.mp-arrow-up{transform:rotate(180deg);transition:1s}.mp-settings-icon{width:70px;height:70px}.mp-settings-icon-info{background:url("../../images/mercadopago-settings/icon-info.png") 98% 50% no-repeat transparent;padding-right:16px!important}.mp-settings-icon-mp{background:url("../../images/mercadopago-settings/icon-mp.png") center center no-repeat transparent}.mp-settings-icon-card{background:url("../../images/mercadopago-settings/icon-card.png") center center no-repeat transparent}.mp-settings-icon-code{background:url("../../images/mercadopago-settings/icon-code.png") center center no-repeat transparent}.mp-settings-icon-pix{background:url("../../images/mercadopago-settings/icon-pix.png") center center no-repeat transparent}.mp-settings-icon-config{background:url("../../images/mercadopago-settings/icon-config.png") center center no-repeat transparent;padding-right:16px!important}.mp-settings-hr{position:static;border:1px solid #c6c6c6;flex:none;order:0;align-self:stretch;flex-grow:0;margin:32px 0 32px}.mp-settings-title-blocks{font-size:20px;line-height:25px}.mp-settings-input{width:100%;height:48px;left:calc(50% - 544px / 2);top:22px;background:#fff;border:1px solid rgba(0,0,0,.25);border-radius:6px;flex:none;order:1;align-self:stretch;flex-grow:0;margin:4px 0}.mp-settings-margin-right{margin-right:8px}.mp-settings-margin-left{margin-left:8px}.mp-settings-label{font-family:sans-serif;font-size:14px;line-height:18px}.mp-settings-helper{font-family:sans-serif;position:static;width:532px;height:18px;left:calc(50% - 532px / 2);top:0;font-size:13px;line-height:18px;color:rgba(0,0,0,.55)}.mp-settings-standard-margin{margin:0 0 24px}.mp-settings-blue-text{cursor:pointer;color:#009ee3!important;text-decoration:none}.mp-settings-switch{position:relative;display:inline-block;width:40px;height:24px;margin:0 12px 5px 0}.mp-settings-switch input{opacity:0;width:0;height:0}.mp-settings-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.mp-settings-slider:before{position:absolute;content:"";height:20px;width:20px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+.mp-settings-slider{background-color:#2196f3}input:focus+.mp-settings-slider{box-shadow:0 0 1px #2196f3}input:checked+.mp-settings-slider:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.mp-settings-slider.mp-settings-round{border-radius:34px}.mp-settings-slider.mp-settings-round:before{border-radius:50%}.mp-settings-debug{margin:0}.mp-settings-payment-block{border-radius:unset;border-bottom:1px solid #c6c6c6;width:75%;display:flex;align-items:center}.mp-settings-badge-active{flex-direction:column;justify-content:center;align-items:center;padding:7px 8px 5px;width:45px;height:15px;left:calc(50% - 57px / 2);background:rgba(0,166,80,.1);border-radius:12px;font-size:12px;line-height:12px;align-items:center;text-align:center;color:#00a650}.mp-settings-badge-inactive{flex-direction:column;justify-content:center;align-items:center;padding:7px 8px 5px;width:45px;height:15px;left:calc(50% - 52px / 2);background:rgba(0,0,0,.07);border-radius:12px;margin:0 0;font-size:12px;line-height:12px;text-align:center;color:rgba(0,0,0,.55)}.mp-settings-test-mode-alert{display:flex;justify-content:center;align-items:center;padding:7px 8px 5px;height:24px;position:static;width:124px;left:calc(50% - 124px / 2);top:0;bottom:0;background:rgba(255,119,51,.1);border-radius:12px;font-family:sans-serif;font-size:12px;line-height:12px;text-align:center;color:#f73}.mp-settings-prod-mode-alert{display:flex;justify-content:center;align-items:center;padding:7px 8px 5px;width:196px;height:24px;padding:7px 8px 5px;position:static;width:196px;left:calc(50% - 196px / 2);top:0;bottom:0;left:4.08%;right:4.08%;top:29.17%;bottom:20.83%;font-family:sans-serif;font-size:12px;line-height:12px;text-align:center;color:#00a650;background:rgba(0,166,80,.1);border-radius:12px}.mp-settings-fieldset{margin:0 0 24px 0}.mp-settings-align-div{display:flex;align-items:center;justify-content:space-between}.mp-settings-text-payment{font-family:sans-serif;font-size:14px;line-height:16px;color:#009ee3;margin:0 10px}.mp-settings-margin-title-payment{margin:0 16px 0 16px}.mp-settings-border-bottom-payment{border-bottom:unset}.mp-settings-helper-payment-methods{padding:0 16px 0 14px;margin:unset}.mp-settings-radio-button{max-width:16px;max-height:16px}.mp-settings-alert-payment-methods{display:flex;align-items:flex-start;margin-top:22px}.mp-settings-alert-payment-methods-orange{width:6px;background-color:#f73;height:72px;border-radius:6px 0 0 6px}.mp-settings-alert-payment-methods-green{width:6px;background-color:#00a650;height:72px;border-radius:6px 0 0 6px}.mp-settings-alert-payment-methods-gray{border-radius:0 6px 6px 0;width:533px;background:rgba(0,0,0,.04);display:flex;padding:16px 16px 14px;align-items:flex-start}.mp-settings-alert-mode-body{font-family:sans-serif;font-size:14px;line-height:18px;margin-top:4px}.mp-settings-alert-mode-title{font-family:sans-serif;font-size:16px;line-height:20px;margin-top:0;color:rgba(0,0,0,.9)}.mp-settings-mode-container{display:flex;margin:20px 8px 0 0}.mp-settings-mode-spacing{margin-right:12px}.mp-settings-title-align{display:flex;justify-content:space-between;cursor:pointer}.mp-icon-align{display:flex;align-items:center}.mp-settings-block-align-top{padding-top:8px}.mp-credential-feedback-positive{background:url("../../images/mercadopago-settings/feedback-positive.png") 98% 50% no-repeat transparent;background-size:1rem;padding-right:30px!important}.mp-credential-feedback-negative{background:url("../../images/mercadopago-settings/feedback-negative.png") 98% 50% no-repeat transparent;background-size:1rem;padding-right:30px!important}.mp-settings-tooltip{position:relative;display:flex}.mp-settings-tooltip .mp-settings-tooltip-text{visibility:hidden;width:200px;background:#fff;box-shadow:0 0 6px rgba(0,0,0,.1),0 6px 16px rgba(0,0,0,.1);border-radius:6px;color:#000;text-align:left;border-radius:6px;padding:16px;position:absolute;z-index:3;top:30px;cursor:pointer;left:-550%;font-family:sans-serif;font-size:16px;line-height:20px;word-wrap:break-word}.mp-settings-tooltip .mp-settings-tooltip-text p{padding-bottom:10px}.mp-settings-tooltip .mp-settings-tooltip-text::after{content:" ";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000 transparent}.mp-settings-tooltip:hover .mp-settings-tooltip-text{visibility:visible}.mp-settings-tooltip{position:relative;display:inline-block}.mp-settings-tooltip .mp-settings-tooltiptext{visibility:hidden;width:120px;background:#fff;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;top:150%;left:50%;margin-left:0;padding:16px}.mp-settings-tooltip .mp-settings-tooltip-text::after{content:"";position:absolute;bottom:100%;left:45%;margin-left:-13px;border-width:5px;border-style:solid;border-color:transparent transparent #fff transparent}.mp-settings-tooltip:hover .mp-settings-tooltip-text{visibility:visible}.mp-settings-choose-mode{flex-direction:column;justify-content:space-between}.mp-settings-mode-style{width:16px;height:16px;background:rgba(0,0,0,.04)}.mp-settings-mode-warning{display:flex;flex-direction:column;justify-content:flex-start}.mp-settings-select{appearance:unset!important;-webkit-appearance:unset!important;-moz-appearance:unset!important;max-width:none!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;padding:12px 8px 12px 12px!important;position:static!important;height:48px!important;left:calc(50% - 544px / 2)!important;top:22px!important;background:url("../../images/mercadopago-settings/iconshape.png") no-repeat center right #fff!important;background-origin:content-box!important;border:1px solid rgba(0,0,0,.25)!important;border-radius:6px!important;text-align:center!important;text-align-last:center!important;margin:4px 0!important;width:100%!important}.mp-settings-flex-start{align-items:flex-start}.mp-settings-link{text-decoration:none}.mp-alert-danger{color:#842029;background-color:#f8d7da;border-color:#f5c2c7}.mp-alert-success{color:#0f5132;background-color:#d1e7dd;border-color:#badbcc}.mp-alert{position:relative;padding:1rem 1rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.mp-text-center{text-align:center!important}.mp-card-body{flex:1 1 auto;padding:1rem 1rem}@media screen and (max-width:780px){.mp-settings-header-img{height:100%;width:95%}.mp-block-requirements{flex-direction:column;margin:10px 0 10px 0;margin-right:unset;margin-left:unset}.mp-container{flex-direction:column;margin:10px 0 10px 0;margin-right:unset;margin-left:unset}.mp-block{margin:10px 0 10px 0;margin-right:unset;margin-left:unset}.mp-settings-payment-block{margin:unset}.mp-settings-header{height:250px}.mp-settings-header p{top:55px;font-size:1.25rem}.mp-settings-title-blocks{font-size:1.25rem}.mp-settings-icon{width:60px;height:40px;min-width:60px}.mp-settings-icon{width:60px;height:40px;min-width:60px}} \ No newline at end of file +.mp-settings{margin:0 55px 0 23px;font-size:16px;min-width:550px;font-family:"Proxima Nova",-apple-system,"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif}.mp-settings-header{height:340px;margin:30px 0 15px 0;position:relative}.mp-settings-header-img{position:absolute;background:url("../../images/mercadopago-settings/header-settings.png");height:100%;background-position:center;background-repeat:no-repeat;background-size:cover;width:100%;border-radius:140px 170px 170px 0}.mp-settings-header-logo{position:relative;background:url("../../images/mercadopago-settings/mercadopago-logo.png") 98% 50% no-repeat transparent;width:190px;height:70px;padding-right:16px!important;top:60px;line-height:36px;flex:none;flex-grow:0;margin:16px 0 0 50px}.mp-settings-header-hr{position:relative;top:65px;width:28%;border:1px solid #00b1ea;flex:none;flex-grow:0;margin:16px 0 0 45px}.mp-settings-header p{position:relative;top:70px;font-family:sans-serif;font-size:2rem;line-height:36px;color:#fff;flex:none;flex-grow:0;margin:16px 0 0 50px}.mp-container{display:flex}.mp-settings-title-container{display:flex}.mp-block{padding:24px;background-color:#fff;box-shadow:0 6px 16px rgb(0 0 0 / 10%);border-radius:6px}.mp-block-requirements{background-color:unset;flex:1;flex-direction:column;box-shadow:unset}.mp-block-flex{flex:2}.mp-block-manual{background:#f5f5f5}.mp-settings-font-color{font-family:sans-serif;color:rgba(0,0,0,.9)}.mp-settings-title-font-size{font-size:20px;line-height:25px}.mp-settings-subtitle-font-size{font-size:16px;line-height:20px}.mp-settings-title-color{color:rgba(0,0,0,.55)}.mp-inner-container{display:flex;flex-direction:row}.mp-inner-container div:first-child{padding-right:10px;flex:1;margin:0;padding:0;display:flex;flex-direction:row}.mp-inner-container div:nth-child(2){padding-left:10px;flex:1;margin:0;padding:0;display:flex;flex-direction:row-reverse}.mp-inner-container div p{margin:0 8px 0 0;padding:0}.mp-inner-container div h4{margin:0;padding-right:5px}.mp-inner-container-settings{display:block;flex-direction:column}.mp-button{font-size:14px;line-height:16px;color:#fff;border:none;padding:9px 12px 7px;background:#009ee3;border-radius:5px;margin:15px 0 15px 0;cursor:pointer;transition:box-shadow .25s ease-out,background-color .2s ease-out;box-shadow:0 0 0 0 #fff}.mp-button:hover{border-color:transparent;background-color:#007eb5;color:#fff;-webkit-transition:background-color .2s ease-in;transition:background-color .2s ease-in}.mp-button:focus{outline:0;box-shadow:0 0 0 .1875em rgb(27 135 201 / 30%);-webkit-transition:box-shadow .25s ease-in;transition:box-shadow .25s ease-in}.mp-button:active{border-color:transparent;background-color:#005e88;color:#fff}.mp-button-light-blue{border-color:transparent;background:rgba(71,154,209,.15);color:#009ee3}.mp-button-light-blue:hover{border-color:transparent;background-color:rgba(65,137,230,.2);color:#009ee3;-webkit-transition:background-color .2s ease-in;transition:background-color .2s}.mp-button-light-blue:focus{outline:0;box-shadow:0 0 0 .1875em rgb(27 135 201 / 30%);-webkit-transition:box-shadow .25s ease-in;transition:box-shadow .25s ease-in}.mp-button-light-blue:active{border-color:transparent;background-color:rgba(65,137,230,.3);color:#009ee3}.mp-settings-icon-success{background:url("../../images/mercadopago-settings/icon-success.png") 98% 50% no-repeat transparent;padding-right:16px!important}.mp-settings-icon-warning{background:url("../../images/mercadopago-settings/icon-warning.png") 98% 50% no-repeat transparent;padding-right:16px!important}.mp-settings-icon-open{background:url("../../images/mercadopago-settings/icon-open.png") 98% 50% no-repeat transparent;padding-right:16px!important;transition:1s}.mp-settings-icon-open.mp-arrow-up{transform:rotate(180deg);transition:1s}.mp-settings-icon{width:70px;height:70px}.mp-settings-icon-info{background:url("../../images/mercadopago-settings/icon-info.png") 98% 50% no-repeat transparent;padding-right:16px!important}.mp-settings-icon-mp{background:url("../../images/mercadopago-settings/icon-mp.png") center center no-repeat transparent}.mp-settings-icon-card{background:url("../../images/mercadopago-settings/icon-card.png") center center no-repeat transparent}.mp-settings-icon-code{background:url("../../images/mercadopago-settings/icon-code.png") center center no-repeat transparent}.mp-settings-icon-pix{background:url("../../images/mercadopago-settings/icon-pix.png") center center no-repeat transparent}.mp-settings-icon-config{background:url("../../images/mercadopago-settings/icon-config.png") center center no-repeat transparent;padding-right:16px!important}.mp-settings-hr{position:static;border:1px solid #c6c6c6;flex:none;order:0;align-self:stretch;flex-grow:0;margin:32px 0 32px}.mp-settings-title-blocks{font-size:20px;line-height:25px}.mp-settings-input{width:100%;height:48px;left:calc(50% - 544px / 2);top:22px;background:#fff;border:1px solid rgba(0,0,0,.25);border-radius:6px;flex:none;order:1;align-self:stretch;flex-grow:0;margin:4px 0}.mp-settings-margin-right{margin-right:8px}.mp-settings-margin-left{margin-left:8px}.mp-settings-label{font-family:sans-serif;font-size:14px;line-height:18px}.mp-settings-helper{font-family:sans-serif;position:static;width:532px;height:18px;left:calc(50% - 532px / 2);top:0;font-size:13px;line-height:18px;color:rgba(0,0,0,.55)}.mp-settings-standard-margin{margin:0 0 24px}.mp-settings-blue-text{cursor:pointer;color:#009ee3!important;text-decoration:none}.mp-settings-switch{position:relative;display:inline-block;width:40px;height:24px;margin:0 12px 5px 0}.mp-settings-switch input{opacity:0;width:0;height:0}.mp-settings-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.mp-settings-slider:before{position:absolute;content:"";height:20px;width:20px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+.mp-settings-slider{background-color:#2196f3}input:focus+.mp-settings-slider{box-shadow:0 0 1px #2196f3}input:checked+.mp-settings-slider:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.mp-settings-slider.mp-settings-round{border-radius:34px}.mp-settings-slider.mp-settings-round:before{border-radius:50%}.mp-settings-debug{margin:0}.mp-settings-payment-block{border-radius:unset;border-bottom:1px solid #c6c6c6;width:75%;display:flex;align-items:center}.mp-settings-badge-active{flex-direction:column;justify-content:center;align-items:center;padding:7px 8px 5px;width:45px;height:15px;left:calc(50% - 57px / 2);background:rgba(0,166,80,.1);border-radius:12px;font-size:12px;line-height:12px;align-items:center;text-align:center;color:#00a650}.mp-settings-badge-inactive{flex-direction:column;justify-content:center;align-items:center;padding:7px 8px 5px;width:45px;height:15px;left:calc(50% - 52px / 2);background:rgba(0,0,0,.07);border-radius:12px;margin:0 0;font-size:12px;line-height:12px;text-align:center;color:rgba(0,0,0,.55)}.mp-settings-test-mode-alert{display:flex;justify-content:center;align-items:center;padding:7px 8px 5px;height:24px;position:static;width:124px;left:calc(50% - 124px / 2);top:0;bottom:0;background:rgba(255,119,51,.1);border-radius:12px;font-family:sans-serif;font-size:12px;line-height:12px;text-align:center;color:#f73}.mp-settings-prod-mode-alert{display:flex;justify-content:center;align-items:center;padding:7px 8px 5px;width:196px;height:24px;padding:7px 8px 5px;position:static;width:196px;left:calc(50% - 196px / 2);top:0;bottom:0;left:4.08%;right:4.08%;top:29.17%;bottom:20.83%;font-family:sans-serif;font-size:12px;line-height:12px;text-align:center;color:#00a650;background:rgba(0,166,80,.1);border-radius:12px}.mp-settings-fieldset{margin:0 0 24px 0}.mp-settings-align-div{display:flex;align-items:center;justify-content:space-between}.mp-settings-text-payment{font-family:sans-serif;font-size:14px;line-height:16px;color:#009ee3;margin:0 10px}.mp-settings-margin-title-payment{margin:0 16px 0 16px}.mp-settings-border-bottom-payment{border-bottom:unset}.mp-settings-helper-payment-methods{padding:0 16px 0 14px;margin:unset}.mp-settings-radio-button{max-width:16px;max-height:16px}.mp-settings-alert-payment-methods{display:flex;align-items:flex-start;margin-top:22px}.mp-settings-alert-payment-methods-orange{width:6px;background-color:#f73;height:72px;border-radius:6px 0 0 6px}.mp-settings-alert-payment-methods-green{width:6px;background-color:#00a650;height:72px;border-radius:6px 0 0 6px}.mp-settings-alert-payment-methods-gray{border-radius:0 6px 6px 0;width:533px;background:rgba(0,0,0,.04);display:flex;padding:16px 16px 14px;align-items:flex-start}.mp-settings-alert-mode-body{font-family:sans-serif;font-size:14px;line-height:18px;margin-top:4px}.mp-settings-alert-mode-title{font-family:sans-serif;font-size:16px;line-height:20px;margin-top:0;color:rgba(0,0,0,.9)}.mp-settings-mode-container{display:flex;margin:20px 8px 0 0}.mp-settings-mode-spacing{margin-right:12px}.mp-settings-title-align{display:flex;justify-content:space-between;cursor:pointer}.mp-icon-align{display:flex;align-items:center}.mp-settings-block-align-top{padding-top:8px}.mp-credential-feedback-positive{background:url("../../images/mercadopago-settings/feedback-positive.png") 98% 50% no-repeat transparent;background-size:1rem;padding-right:30px!important}.mp-credential-feedback-negative{background:url("../../images/mercadopago-settings/feedback-negative.png") 98% 50% no-repeat transparent;background-size:1rem;padding-right:30px!important}.mp-settings-tooltip{position:relative;display:flex}.mp-settings-tooltip .mp-settings-tooltip-text{visibility:hidden;width:200px;background:#fff;box-shadow:0 0 6px rgba(0,0,0,.1),0 6px 16px rgba(0,0,0,.1);border-radius:6px;color:#000;text-align:left;border-radius:6px;padding:16px;position:absolute;z-index:3;top:30px;cursor:pointer;left:-550%;font-family:sans-serif;font-size:16px;line-height:20px;word-wrap:break-word}.mp-settings-tooltip .mp-settings-tooltip-text p{padding-bottom:10px}.mp-settings-tooltip .mp-settings-tooltip-text::after{content:" ";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000 transparent}.mp-settings-tooltip:hover .mp-settings-tooltip-text{visibility:visible}.mp-settings-tooltip{position:relative;display:inline-block}.mp-settings-tooltip .mp-settings-tooltiptext{visibility:hidden;width:120px;background:#fff;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;top:150%;left:50%;margin-left:0;padding:16px}.mp-settings-tooltip .mp-settings-tooltip-text::after{content:"";position:absolute;bottom:100%;left:45%;margin-left:-13px;border-width:5px;border-style:solid;border-color:transparent transparent #fff transparent}.mp-settings-tooltip:hover .mp-settings-tooltip-text{visibility:visible}.mp-settings-choose-mode{flex-direction:column;justify-content:space-between}.mp-settings-mode-style{width:16px;height:16px;background:rgba(0,0,0,.04)}.mp-settings-mode-warning{display:flex;flex-direction:column;justify-content:flex-start}.mp-settings-select{appearance:unset!important;-webkit-appearance:unset!important;-moz-appearance:unset!important;max-width:none!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;padding:12px 8px 12px 12px!important;position:static!important;height:48px!important;left:calc(50% - 544px / 2)!important;top:22px!important;background:url("../../images/mercadopago-settings/iconshape.png") no-repeat center right #fff!important;background-origin:content-box!important;border:1px solid rgba(0,0,0,.25)!important;border-radius:6px!important;text-align:center!important;text-align-last:center!important;margin:4px 0!important;width:100%!important}.mp-settings-flex-start{align-items:flex-start}.mp-settings-link{text-decoration:none}.mp-alert-danger{color:#842029;background-color:#f8d7da;border-color:#f5c2c7}.mp-alert-success{color:#0f5132;background-color:#d1e7dd;border-color:#badbcc}.mp-alert{position:relative;padding:1rem 1rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.mp-text-center{text-align:center!important}.mp-card-body{flex:1 1 auto;padding:1rem 1rem}@media screen and (max-width:780px){.mp-settings-header-img{height:100%;width:95%}.mp-block-requirements{flex-direction:column;margin:10px 0 10px 0;margin-right:unset;margin-left:unset}.mp-container{flex-direction:column;margin:10px 0 10px 0;margin-right:unset;margin-left:unset}.mp-block{margin:10px 0 10px 0;margin-right:unset;margin-left:unset}.mp-settings-payment-block{margin:unset}.mp-settings-header{height:250px}.mp-settings-header p{top:55px;font-size:1.25rem}.mp-settings-title-blocks{font-size:1.25rem}.mp-settings-icon{width:60px;height:40px;min-width:60px}.mp-settings-icon{width:60px;height:40px;min-width:60px}} \ No newline at end of file diff --git a/assets/images/minilogo.png b/assets/images/minilogo.png index eb01af6de..4bf6cb93e 100644 Binary files a/assets/images/minilogo.png and b/assets/images/minilogo.png differ diff --git a/assets/images/mplogo.png b/assets/images/mplogo.png index f4a678179..0c80e8d12 100644 Binary files a/assets/images/mplogo.png and b/assets/images/mplogo.png differ diff --git a/assets/js/melidata/melidata-client.js b/assets/js/melidata/melidata-client.js new file mode 100644 index 000000000..b7216a2ee --- /dev/null +++ b/assets/js/melidata/melidata-client.js @@ -0,0 +1,51 @@ +/* globals wc_melidata_params */ +(function () { + window.onload = function () { + window.melidata = null; + + try { + var scriptTag = document.createElement("script"); + + scriptTag.setAttribute("id", "melidata_woocommerce_client"); + scriptTag.src = "https://http2.mlstatic.com/storage/v1/plugins/melidata/woocommerce.min.js"; + scriptTag.async = true; + scriptTag.defer = true; + + scriptTag.onerror = function () { + const url = "https://api.mercadopago.com/v1/plugins/melidata/errors"; + + const payload = { + name: "ERR_CONNECTION_REFUSED", + message: "Unable to load melidata script on page", + target: "melidata_woocommerce_client", + plugin: { + version: wc_melidata_params.plugin_version, + }, + platform: { + name: "woocommerce", + uri: `${window.location.pathname}${window.location.search}`, + version: wc_melidata_params.platform_version, + location: wc_melidata_params.location, + }, + }; + + navigator.sendBeacon(url, JSON.stringify(payload)); + }; + + scriptTag.onload = function () { + window.melidata = new MelidataClient({ + type: wc_melidata_params.type, + siteID: wc_melidata_params.site_id, + pluginVersion: wc_melidata_params.platform_version, + platformVersion: wc_melidata_params.plugin_version, + pageLocation: wc_melidata_params.location, + paymentMethod: wc_melidata_params.payment_method, + }); + }; + + document.body.appendChild(scriptTag); + } catch (e) { + console.warn(e); + } + }; +})(); diff --git a/assets/js/melidata/melidata-client.min.js b/assets/js/melidata/melidata-client.min.js new file mode 100644 index 000000000..9c4d91b09 --- /dev/null +++ b/assets/js/melidata/melidata-client.min.js @@ -0,0 +1 @@ +window.onload=function(){window.melidata=null;try{var a=document.createElement("script");a.setAttribute("id","melidata_woocommerce_client"),a.src="https://http2.mlstatic.com/storage/v1/plugins/melidata/woocommerce.min.js",a.async=!0,a.defer=!0,a.onerror=function(){const a={name:"ERR_CONNECTION_REFUSED",message:"Unable to load melidata script on page",target:"melidata_woocommerce_client",plugin:{version:wc_melidata_params.plugin_version},platform:{name:"woocommerce",uri:`${window.location.pathname}${window.location.search}`,version:wc_melidata_params.platform_version,location:wc_melidata_params.location}};navigator.sendBeacon("https://api.mercadopago.com/v1/plugins/melidata/errors",JSON.stringify(a))},a.onload=function(){window.melidata=new MelidataClient({type:wc_melidata_params.type,siteID:wc_melidata_params.site_id,pluginVersion:wc_melidata_params.platform_version,platformVersion:wc_melidata_params.plugin_version,pageLocation:wc_melidata_params.location,paymentMethod:wc_melidata_params.payment_method})},document.body.appendChild(a)}catch(a){console.warn(a)}}; \ No newline at end of file diff --git a/assets/js/mercadopago-settings/mercadopago_settings.js b/assets/js/mercadopago-settings/mercadopago_settings.js index 29cbda6e7..8d6a316e2 100644 --- a/assets/js/mercadopago-settings/mercadopago_settings.js +++ b/assets/js/mercadopago-settings/mercadopago_settings.js @@ -1,22 +1,26 @@ function mp_settings_accordion_start() { - var acc = document.getElementsByClassName("mp-settings-title-align"); var i; + var acc = document.getElementsByClassName("mp-settings-title-align"); + for (i = 0; i < acc.length; i++) { acc[i].addEventListener("click", function () { this.classList.toggle("active"); + if ("mp-settings-margin-left" && "mp-arrow-up") { var accordionArrow = null; + for (var i = 0; i < this.childNodes.length; i++) { - if ( - this.childNodes[i]?.classList?.contains("mp-settings-margin-left") - ) { + if (this.childNodes[i]?.classList?.contains("mp-settings-margin-left")) { accordionArrow = this.childNodes[i]; break; } } + accordionArrow.childNodes[1].classList.toggle("mp-arrow-up"); } + var panel = this.nextElementSibling; + if (panel.style.display === "block") { panel.style.display = "none"; } else { @@ -27,7 +31,7 @@ function mp_settings_accordion_start() { } function mp_get_requirements() { - jQuery.post(ajaxurl, { action: "mp_get_requirements" }, function(response) { + jQuery.post(ajaxurl, { action: "mp_get_requirements" }, function (response) { const requirements = { ssl: document.getElementById("mp-req-ssl"), gd_ext: document.getElementById("mp-req-gd"), @@ -51,17 +55,24 @@ function mp_validate_credentials() { .addEventListener("change", function () { var self = this; - jQuery.post(ajaxurl, { access_token: this.value, is_test: false, action: "mp_validate_credentials"}, function(data) { - - }).done(function (response) { - if (response.success) { - self.classList.add("mp-credential-feedback-positive"); - self.classList.remove("mp-credential-feedback-negative"); - } else { - self.classList.remove("mp-credential-feedback-positive"); - self.classList.add("mp-credential-feedback-negative"); - } - + jQuery + .post( + ajaxurl, + { + access_token: this.value, + is_test: false, + action: "mp_validate_credentials", + }, + function (data) {} + ) + .done(function (response) { + if (response.success) { + self.classList.add("mp-credential-feedback-positive"); + self.classList.remove("mp-credential-feedback-negative"); + } else { + self.classList.remove("mp-credential-feedback-positive"); + self.classList.add("mp-credential-feedback-negative"); + } }) .fail(function (error) { self.classList.remove("mp-credential-feedback-positive"); @@ -73,20 +84,29 @@ function mp_validate_credentials() { .addEventListener("change", function () { var self = this; - jQuery.post(ajaxurl, { access_token: this.value, is_test: true, action: "mp_validate_credentials"}, function(data) { - - }).done(function (response) { - if (response.success) { - self.classList.add( "mp-credential-feedback-positive" ); - self.classList.remove( "mp-credential-feedback-negative" ); - } else { + jQuery + .post( + ajaxurl, + { + access_token: this.value, + is_test: true, + action: "mp_validate_credentials", + }, + function (data) {} + ) + .done(function (response) { + if (response.success) { + self.classList.add("mp-credential-feedback-positive"); + self.classList.remove("mp-credential-feedback-negative"); + } else { + self.classList.remove("mp-credential-feedback-positive"); + self.classList.add("mp-credential-feedback-negative"); + } + }) + .fail(function (error) { self.classList.remove("mp-credential-feedback-positive"); self.classList.add("mp-credential-feedback-negative"); - } - }).fail(function (error) { - self.classList.remove("mp-credential-feedback-positive"); - self.classList.add("mp-credential-feedback-negative"); - }); + }); }); document @@ -94,12 +114,20 @@ function mp_validate_credentials() { .addEventListener("change", function () { var self = this; - jQuery.post(ajaxurl, { public_key: this.value, is_test: true, action: "mp_validate_credentials"}, function(data) { - }) + jQuery + .post( + ajaxurl, + { + public_key: this.value, + is_test: true, + action: "mp_validate_credentials", + }, + function (data) {} + ) .done(function (response) { if (response.success) { - self.classList.add( "mp-credential-feedback-positive" ); - self.classList.remove( "mp-credential-feedback-negative" ); + self.classList.add("mp-credential-feedback-positive"); + self.classList.remove("mp-credential-feedback-negative"); } else { self.classList.remove("mp-credential-feedback-positive"); self.classList.add("mp-credential-feedback-negative"); @@ -116,12 +144,20 @@ function mp_validate_credentials() { .addEventListener("change", function () { var self = this; - jQuery.post(ajaxurl, { public_key: this.value, is_test: false, action: "mp_validate_credentials"}, function(data) { - }) + jQuery + .post( + ajaxurl, + { + public_key: this.value, + is_test: false, + action: "mp_validate_credentials", + }, + function (data) {} + ) .done(function (response) { if (response.success) { - self.classList.add( "mp-credential-feedback-positive" ); - self.classList.remove( "mp-credential-feedback-negative" ); + self.classList.add("mp-credential-feedback-positive"); + self.classList.remove("mp-credential-feedback-negative"); } else { self.classList.remove("mp-credential-feedback-positive"); self.classList.add("mp-credential-feedback-negative"); @@ -138,15 +174,18 @@ function mp_update_option_credentials() { const btn_credentials = document.getElementById("mp-btn-credentials"); btn_credentials.addEventListener("click", function () { - jQuery.post( ajaxurl, { - access_token_prod: document.getElementById( "mp-access-token-prod" ).value, - access_token_test: document.getElementById( "mp-access-token-test" ).value, - public_key_prod: document.getElementById( "mp-public-key-prod" ).value, - public_key_test: document.getElementById( "mp-public-key-test" ).value, - action: "mp_update_option_credentials" - }, function ( data ) { - - } ) + jQuery + .post( + ajaxurl, + { + access_token_prod: document.getElementById("mp-access-token-prod").value, + access_token_test: document.getElementById("mp-access-token-test").value, + public_key_prod: document.getElementById("mp-public-key-prod").value, + public_key_test: document.getElementById("mp-public-key-test").value, + action: "mp_update_option_credentials", + }, + function (data) {} + ) .done(function (response) { if (response.success) { mp_show_message(response.data, "success", "credentials"); @@ -172,31 +211,32 @@ function mp_update_option_credentials() { function mp_update_store_information() { button = document.getElementById("mp-store-info-save"); button.addEventListener("click", function () { - jQuery.post( ajaxurl, { - store_identificator: document.getElementById( "mp-store-identificator" ) - .value, - store_category_id: document.getElementById( "mp-store-category-id" ).value, - store_categories: document.getElementById( "mp-store-categories" ).value, - store_url_ipn: document.querySelector( "#mp-store-url-ipn" ).value, - store_integrator_id: document.getElementById( "mp-store-integrator-id" ) - .value, - store_debug_mode: document.querySelector( "#mp-store-debug-mode:checked" ) - ?.value, - action: "mp_update_store_information" - }, function ( data ) { - } ) + jQuery + .post( + ajaxurl, + { + store_identificator: document.getElementById("mp-store-identificator").value, + store_category_id: document.getElementById("mp-store-category-id").value, + store_categories: document.getElementById("mp-store-categories").value, + store_url_ipn: document.querySelector("#mp-store-url-ipn").value, + store_integrator_id: document.getElementById("mp-store-integrator-id").value, + store_debug_mode: document.querySelector("#mp-store-debug-mode:checked")?.value, + action: "mp_update_store_information", + }, + function (data) {} + ) .done(function (response) { if (response.success) { mp_validate_store_tips(); - mp_show_message( response.data, "success", "store" ); - setTimeout( () => { + mp_show_message(response.data, "success", "store"); + setTimeout(() => { mp_go_to_next_step( "mp-step-2", "mp-step-3", "mp-store-info-arrow-up", "mp-payments-arrow-up" ); - }, 3000 ); + }, 3000); } else { mp_show_message(response.data, "error", "store"); } @@ -237,57 +277,63 @@ function mp_settings_accordion_options() { function mp_set_mode() { var button = document.getElementById("mp-store-mode-save"); button.addEventListener("click", function () { - var mode_value = document.querySelector( - 'input[name="mp-test-prod"]:checked' - ).value; - jQuery.post(ajaxurl, { input_mode_value: mode_value, action: "mp_store_mode"}, function(data) { - - }) + var mode_value = document.querySelector('input[name="mp-test-prod"]:checked').value; + + jQuery + .post( + ajaxurl, + { input_mode_value: mode_value, action: "mp_store_mode" }, + function (data) {} + ) .done(function (response) { if (response.data) { - var badge = document.getElementById( "mp-mode-badge" ); - var color_badge = document.getElementById( "mp-orange-badge" ); - var icon_badge = document.getElementById( "mp-icon-badge" ); - var text_badge = document.getElementById( "mp-text-badge" ); - var helper_test = document.getElementById( "mp-helper-test" ); - var helper_prod = document.getElementById( "mp-helper-prod" ); + var badge = document.getElementById("mp-mode-badge"); + var color_badge = document.getElementById("mp-orange-badge"); + var icon_badge = document.getElementById("mp-icon-badge"); + var text_badge = document.getElementById("mp-text-badge"); + var helper_test = document.getElementById("mp-helper-test"); + var helper_prod = document.getElementById("mp-helper-prod"); text_badge.textContent = response.data; - if ( mode_value === "yes" ) { - badge.classList.remove( "mp-settings-prod-mode-alert" ); - badge.classList.add( "mp-settings-test-mode-alert" ); + if (mode_value === "yes") { + badge.classList.remove("mp-settings-prod-mode-alert"); + badge.classList.add("mp-settings-test-mode-alert"); color_badge.classList.remove( "mp-settings-alert-payment-methods-green" ); - color_badge.classList.add( "mp-settings-alert-payment-methods-orange" ); + color_badge.classList.add( + "mp-settings-alert-payment-methods-orange" + ); - icon_badge.classList.remove( "mp-settings-icon-success" ); - icon_badge.classList.add( "mp-settings-icon-warning" ); + icon_badge.classList.remove("mp-settings-icon-success"); + icon_badge.classList.add("mp-settings-icon-warning"); badge.textContent = "Loja em modo teste"; helper_test.style.display = "block"; helper_prod.style.display = "none"; - mp_show_message( response.data, "success", "test_mode" ); + mp_show_message(response.data, "success", "test_mode"); } else { - badge.classList.remove( "mp-settings-test-mode-alert" ); - badge.classList.add( "mp-settings-prod-mode-alert" ); + badge.classList.remove("mp-settings-test-mode-alert"); + badge.classList.add("mp-settings-prod-mode-alert"); badge.textContent = "Loja em modo vendas (Produção)"; color_badge.classList.remove( "mp-settings-alert-payment-methods-orange" ); - color_badge.classList.add( "mp-settings-alert-payment-methods-green" ); + color_badge.classList.add( + "mp-settings-alert-payment-methods-green" + ); - icon_badge.classList.remove( "mp-settings-icon-warning" ); - icon_badge.classList.add( "mp-settings-icon-success" ); + icon_badge.classList.remove("mp-settings-icon-warning"); + icon_badge.classList.add("mp-settings-icon-success"); helper_test.style.display = "none"; helper_prod.style.display = "block"; - mp_show_message( response.data, "success", "test_mode" ); + mp_show_message(response.data, "success", "test_mode"); } } else { mp_show_message(response.data, "error", "test_mode"); @@ -300,15 +346,20 @@ function mp_set_mode() { } function mp_get_payment_properties() { - jQuery.post(ajaxurl, { action: "mp_get_payment_properties" }, function(data) { - - }) + jQuery + .post(ajaxurl, { action: "mp_get_payment_properties" }, function (data) {}) .done(function (response) { const payment = document.getElementById("mp-payment"); + response.data.reverse().forEach((gateway) => { payment.insertAdjacentHTML("afterend", mp_payment_properties(gateway)); mp_payment_properties(gateway); }); + + // added melidata events on store configuration step three + if (window.melidata && window.melidata.client && window.melidata.client.stepPaymentMethodsCallback) { + window.melidata.client.stepPaymentMethodsCallback(); + } }) .fail(function (error) {}); } @@ -322,6 +373,7 @@ function mp_payment_properties(gateway) { gateway.enabled == "yes" ? gateway.badge_translator.yes : gateway.badge_translator.no; + return ( ' {mp_go_to_next_step("mp-step-1","mp-step-2","mp-credentials-arrow-up","mp-store-info-arrow-up")}),3e3)):mp_show_message(e.data,"error","credentials")})).fail((function(e){mp_show_message(e?.data,"error","credentials")}))}))}function mp_update_store_information(){button=document.getElementById("mp-store-info-save"),button.addEventListener("click",(function(){jQuery.post(ajaxurl,{store_identificator:document.getElementById("mp-store-identificator").value,store_category_id:document.getElementById("mp-store-category-id").value,store_categories:document.getElementById("mp-store-categories").value,store_url_ipn:document.querySelector("#mp-store-url-ipn").value,store_integrator_id:document.getElementById("mp-store-integrator-id").value,store_debug_mode:document.querySelector("#mp-store-debug-mode:checked")?.value,action:"mp_update_store_information"},(function(e){})).done((function(e){e.success?(mp_validate_store_tips(),mp_show_message(e.data,"success","store"),setTimeout((()=>{mp_go_to_next_step("mp-step-2","mp-step-3","mp-store-info-arrow-up","mp-payments-arrow-up")}),3e3)):mp_show_message(e.data,"error","store")})).fail((function(e){mp_show_message(e?.data,"error","store")}))}))}function mp_settings_accordion_options(){var e=document.getElementById("options"),t=document.getElementById("block-two");e.addEventListener("click",(function(){this.classList.toggle("active");var s=this.nextElementSibling;"block"===s.style.display?s.style.display="none":s.style.display="block",e.classList.contains("active")||t.classList.contains("mp-settings-flex-start")?(e.textContent="Ocultar opções avançadas",t.classList.remove("mp-settings-flex-start")):(t.classList.toggle("mp-settings-flex-start"),e.textContent="Ver opções avançadas")}))}function mp_set_mode(){document.getElementById("mp-store-mode-save").addEventListener("click",(function(){var e=document.querySelector('input[name="mp-test-prod"]:checked').value;jQuery.post(ajaxurl,{input_mode_value:e,action:"mp_store_mode"},(function(e){})).done((function(t){if(t.data){var s=document.getElementById("mp-mode-badge"),n=document.getElementById("mp-orange-badge"),a=document.getElementById("mp-icon-badge"),i=document.getElementById("mp-text-badge"),c=document.getElementById("mp-helper-test"),o=document.getElementById("mp-helper-prod");i.textContent=t.data,"yes"===e?(s.classList.remove("mp-settings-prod-mode-alert"),s.classList.add("mp-settings-test-mode-alert"),n.classList.remove("mp-settings-alert-payment-methods-green"),n.classList.add("mp-settings-alert-payment-methods-orange"),a.classList.remove("mp-settings-icon-success"),a.classList.add("mp-settings-icon-warning"),s.textContent="Loja em modo teste",c.style.display="block",o.style.display="none",mp_show_message(t.data,"success","test_mode")):(s.classList.remove("mp-settings-test-mode-alert"),s.classList.add("mp-settings-prod-mode-alert"),s.textContent="Loja em modo vendas (Produção)",n.classList.remove("mp-settings-alert-payment-methods-orange"),n.classList.add("mp-settings-alert-payment-methods-green"),a.classList.remove("mp-settings-icon-warning"),a.classList.add("mp-settings-icon-success"),c.style.display="none",o.style.display="block",mp_show_message(t.data,"success","test_mode"))}else mp_show_message(t.data,"error","test_mode")})).fail((function(e){mp_show_message(e.data,"error","test_mode")}))}))}function mp_get_payment_properties(){jQuery.post(ajaxurl,{action:"mp_get_payment_properties"},(function(e){})).done((function(e){const t=document.getElementById("mp-payment");e.data.reverse().forEach((e=>{t.insertAdjacentHTML("afterend",mp_payment_properties(e)),mp_payment_properties(e)}))})).fail((function(e){}))}function mp_payment_properties(e){var t="yes"==e.enabled?"mp-settings-badge-active":"mp-settings-badge-inactive",s="yes"==e.enabled?e.badge_translator.yes:e.badge_translator.no;return'
'+e.title+" - "+e.description+' '+s+'
Configurar
'}function mp_validate_credentials_tips(){var e=document.getElementById("mp-settings-icon-credentials");jQuery.post(ajaxurl,{action:"mp_validate_credentials_tips"},(function(e){})).done((function(t){t.success?(e.classList.remove("mp-settings-icon-credentials"),e.classList.add("mp-settings-icon-success")):e.classList.remove("mp-settings-icon-success")})).fail((function(t){e.classList.remove("mp-settings-icon-success")}))}function mp_validate_store_tips(){var e=document.getElementById("mp-settings-icon-store");jQuery.post(ajaxurl,{action:"mp_validate_store_tips"},(function(e){})).done((function(t){t.success?(e.classList.remove("mp-settings-icon-store"),e.classList.add("mp-settings-icon-success")):e.classList.remove("mp-settings-icon-success")})).fail((function(t){e.classList.remove("mp-settings-icon-success")}))}function mp_validate_payment_tips(){var e=document.getElementById("mp-settings-icon-payment");jQuery.post(ajaxurl,{action:"mp_validate_payment_tips"},(function(e){})).done((function(t){t.success?(e.classList.remove("mp-settings-icon-payment"),e.classList.add("mp-settings-icon-success")):e.classList.remove("mp-settings-icon-success")})).fail((function(t){e.classList.remove("mp-settings-icon-success")}))}function mp_show_message(e,t,s){const n=document.createElement("div");var a="",i="";switch(s){case"credentials":a=document.querySelector(".mp-message-credentials"),i=document.querySelector(".mp-heading-credentials");break;case"store":a=document.querySelector(".mp-message-store"),i=document.querySelector(".mp-heading-store");break;case"payment":a=document.querySelector(".mp-message-payment"),i=document.querySelector(".mp-heading-payment");break;case"test_mode":a=document.querySelector(".mp-message-test-mode"),i=document.querySelector(".mp-heading-test-mode");break;default:a="",i=""}n.className="error"===t?"mp-alert mp-alert-danger mp-text-center mp-card-body":"mp-alert mp-alert-success mp-text-center mp-card-body",n.appendChild(document.createTextNode(e)),a.insertBefore(n,i),setTimeout(clearMessage,3e3)}function clearMessage(){document.querySelector(".mp-alert").remove()}function mp_go_to_next_step(e,t,s,n){var a=document.getElementById(e),i=document.getElementById(t),c=document.getElementById(s),o=document.getElementById(n);a.style.display="none",i.style.display="block",c.classList.remove("mp-arrow-up"),o.classList.add("mp-arrow-up")}function mp_continue_to_next_step(){document.getElementById("mp-payment-method-continue").addEventListener("click",(function(){mp_go_to_next_step("mp-step-3","mp-step-4","mp-payments-arrow-up","mp-modes-arrow-up")}))}function mp_settings_screen_load(){mp_settings_accordion_start(),mp_settings_accordion_options(),mp_get_requirements(),mp_validate_credentials(),mp_update_option_credentials(),mp_update_store_information(),mp_set_mode(),mp_get_payment_properties(),mp_validate_credentials_tips(),mp_validate_store_tips(),mp_validate_payment_tips(),mp_continue_to_next_step()} \ No newline at end of file +function mp_settings_accordion_start(){var e,t=document.getElementsByClassName("mp-settings-title-align");for(e=0;e{mp_go_to_next_step("mp-step-1","mp-step-2","mp-credentials-arrow-up","mp-store-info-arrow-up")}),3e3)):mp_show_message(e.data,"error","credentials")})).fail((function(e){mp_show_message(e?.data,"error","credentials")}))}))}function mp_update_store_information(){button=document.getElementById("mp-store-info-save"),button.addEventListener("click",(function(){jQuery.post(ajaxurl,{store_identificator:document.getElementById("mp-store-identificator").value,store_category_id:document.getElementById("mp-store-category-id").value,store_categories:document.getElementById("mp-store-categories").value,store_url_ipn:document.querySelector("#mp-store-url-ipn").value,store_integrator_id:document.getElementById("mp-store-integrator-id").value,store_debug_mode:document.querySelector("#mp-store-debug-mode:checked")?.value,action:"mp_update_store_information"},(function(e){})).done((function(e){e.success?(mp_validate_store_tips(),mp_show_message(e.data,"success","store"),setTimeout((()=>{mp_go_to_next_step("mp-step-2","mp-step-3","mp-store-info-arrow-up","mp-payments-arrow-up")}),3e3)):mp_show_message(e.data,"error","store")})).fail((function(e){mp_show_message(e?.data,"error","store")}))}))}function mp_settings_accordion_options(){var e=document.getElementById("options"),t=document.getElementById("block-two");e.addEventListener("click",(function(){this.classList.toggle("active");var s=this.nextElementSibling;"block"===s.style.display?s.style.display="none":s.style.display="block",e.classList.contains("active")||t.classList.contains("mp-settings-flex-start")?(e.textContent="Ocultar opções avançadas",t.classList.remove("mp-settings-flex-start")):(t.classList.toggle("mp-settings-flex-start"),e.textContent="Ver opções avançadas")}))}function mp_set_mode(){document.getElementById("mp-store-mode-save").addEventListener("click",(function(){var e=document.querySelector('input[name="mp-test-prod"]:checked').value;jQuery.post(ajaxurl,{input_mode_value:e,action:"mp_store_mode"},(function(e){})).done((function(t){if(t.data){var s=document.getElementById("mp-mode-badge"),n=document.getElementById("mp-orange-badge"),a=document.getElementById("mp-icon-badge"),i=document.getElementById("mp-text-badge"),o=document.getElementById("mp-helper-test"),c=document.getElementById("mp-helper-prod");i.textContent=t.data,"yes"===e?(s.classList.remove("mp-settings-prod-mode-alert"),s.classList.add("mp-settings-test-mode-alert"),n.classList.remove("mp-settings-alert-payment-methods-green"),n.classList.add("mp-settings-alert-payment-methods-orange"),a.classList.remove("mp-settings-icon-success"),a.classList.add("mp-settings-icon-warning"),s.textContent="Loja em modo teste",o.style.display="block",c.style.display="none",mp_show_message(t.data,"success","test_mode")):(s.classList.remove("mp-settings-test-mode-alert"),s.classList.add("mp-settings-prod-mode-alert"),s.textContent="Loja em modo vendas (Produção)",n.classList.remove("mp-settings-alert-payment-methods-orange"),n.classList.add("mp-settings-alert-payment-methods-green"),a.classList.remove("mp-settings-icon-warning"),a.classList.add("mp-settings-icon-success"),o.style.display="none",c.style.display="block",mp_show_message(t.data,"success","test_mode"))}else mp_show_message(t.data,"error","test_mode")})).fail((function(e){mp_show_message(e.data,"error","test_mode")}))}))}function mp_get_payment_properties(){jQuery.post(ajaxurl,{action:"mp_get_payment_properties"},(function(e){})).done((function(e){const t=document.getElementById("mp-payment");e.data.reverse().forEach((e=>{t.insertAdjacentHTML("afterend",mp_payment_properties(e)),mp_payment_properties(e)})),window.melidata&&window.melidata.client&&window.melidata.client.stepPaymentMethodsCallback&&window.melidata.client.stepPaymentMethodsCallback()})).fail((function(e){}))}function mp_payment_properties(e){var t="yes"==e.enabled?"mp-settings-badge-active":"mp-settings-badge-inactive",s="yes"==e.enabled?e.badge_translator.yes:e.badge_translator.no;return'
'+e.title+" - "+e.description+' '+s+'
Configurar
'}function mp_validate_credentials_tips(){var e=document.getElementById("mp-settings-icon-credentials");jQuery.post(ajaxurl,{action:"mp_validate_credentials_tips"},(function(e){})).done((function(t){t.success?(e.classList.remove("mp-settings-icon-credentials"),e.classList.add("mp-settings-icon-success")):e.classList.remove("mp-settings-icon-success")})).fail((function(t){e.classList.remove("mp-settings-icon-success")}))}function mp_validate_store_tips(){var e=document.getElementById("mp-settings-icon-store");jQuery.post(ajaxurl,{action:"mp_validate_store_tips"},(function(e){})).done((function(t){t.success?(e.classList.remove("mp-settings-icon-store"),e.classList.add("mp-settings-icon-success")):e.classList.remove("mp-settings-icon-success")})).fail((function(t){e.classList.remove("mp-settings-icon-success")}))}function mp_validate_payment_tips(){var e=document.getElementById("mp-settings-icon-payment");jQuery.post(ajaxurl,{action:"mp_validate_payment_tips"},(function(e){})).done((function(t){t.success?(e.classList.remove("mp-settings-icon-payment"),e.classList.add("mp-settings-icon-success")):e.classList.remove("mp-settings-icon-success")})).fail((function(t){e.classList.remove("mp-settings-icon-success")}))}function mp_show_message(e,t,s){const n=document.createElement("div");var a="",i="";switch(s){case"credentials":a=document.querySelector(".mp-message-credentials"),i=document.querySelector(".mp-heading-credentials");break;case"store":a=document.querySelector(".mp-message-store"),i=document.querySelector(".mp-heading-store");break;case"payment":a=document.querySelector(".mp-message-payment"),i=document.querySelector(".mp-heading-payment");break;case"test_mode":a=document.querySelector(".mp-message-test-mode"),i=document.querySelector(".mp-heading-test-mode");break;default:a="",i=""}n.className="error"===t?"mp-alert mp-alert-danger mp-text-center mp-card-body":"mp-alert mp-alert-success mp-text-center mp-card-body",n.appendChild(document.createTextNode(e)),a.insertBefore(n,i),setTimeout(clearMessage,3e3)}function clearMessage(){document.querySelector(".mp-alert").remove()}function mp_go_to_next_step(e,t,s,n){var a=document.getElementById(e),i=document.getElementById(t),o=document.getElementById(s),c=document.getElementById(n);if(a.style.display="none",i.style.display="block",o.classList.remove("mp-arrow-up"),c.classList.add("mp-arrow-up"),window.melidata&&window.melidata.client&&window.melidata.client.addStoreConfigurationsStepTimer)switch(t){case"mp-step-2":window.melidata.client.addStoreConfigurationsStepTimer({step:"business"});break;case"mp-step-3":window.melidata.client.addStoreConfigurationsStepTimer({step:"payment_methods",sendOnClose:!0});break;case"mp-step-4":window.melidata.client.addStoreConfigurationsStepTimer({step:"mode"})}}function mp_continue_to_next_step(){document.getElementById("mp-payment-method-continue").addEventListener("click",(function(){mp_go_to_next_step("mp-step-3","mp-step-4","mp-payments-arrow-up","mp-modes-arrow-up")}))}function mp_settings_screen_load(){mp_settings_accordion_start(),mp_settings_accordion_options(),mp_get_requirements(),mp_validate_credentials(),mp_update_option_credentials(),mp_update_store_information(),mp_set_mode(),mp_get_payment_properties(),mp_validate_credentials_tips(),mp_validate_store_tips(),mp_validate_payment_tips(),mp_continue_to_next_step()} \ No newline at end of file diff --git a/changelog.log b/changelog.log index 5fd333682..cc402e247 100644 --- a/changelog.log +++ b/changelog.log @@ -1,5 +1,12 @@ CHANGELOG: == Changelog == += v5.8.0 (07/06/2022) = +* Features +- Added melidata script to collect metrics from plugin + +* Bug fixes +- Changed mp logo + = v5.7.6 (19/04/2022) = * Bug fixes - Adjusted IPN notification to recognize discount coupon diff --git a/composer.lock b/composer.lock index 6b96f3660..ccd288669 100644 --- a/composer.lock +++ b/composer.lock @@ -9,27 +9,27 @@ "packages-dev": [ { "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v0.7.1", + "version": "v0.7.2", "source": { "type": "git", "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", - "reference": "fe390591e0241955f22eb9ba327d137e501c771c" + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/fe390591e0241955f22eb9ba327d137e501c771c", - "reference": "fe390591e0241955f22eb9ba327d137e501c771c", + "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", "shasum": "" }, "require": { "composer-plugin-api": "^1.0 || ^2.0", "php": ">=5.3", - "squizlabs/php_codesniffer": "^2.0 || ^3.0 || ^4.0" + "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" }, "require-dev": { "composer/composer": "*", - "phpcompatibility/php-compatibility": "^9.0", - "sensiolabs/security-checker": "^4.1.0" + "php-parallel-lint/php-parallel-lint": "^1.3.1", + "phpcompatibility/php-compatibility": "^9.0" }, "type": "composer-plugin", "extra": { @@ -50,6 +50,10 @@ "email": "franck.nijhof@dealerdirect.com", "homepage": "http://www.frenck.nl", "role": "Developer / IT Manager" + }, + { + "name": "Contributors", + "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors" } ], "description": "PHP_CodeSniffer Standards Composer Installer Plugin", @@ -61,6 +65,7 @@ "codesniffer", "composer", "installer", + "phpcbf", "phpcs", "plugin", "qa", @@ -75,33 +80,34 @@ "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues", "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer" }, - "time": "2020-12-07T18:04:37+00:00" + "time": "2022-02-04T12:51:07+00:00" }, { "name": "doctrine/instantiator", - "version": "1.4.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^8.0", + "doctrine/coding-standard": "^9", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.22" }, "type": "library", "autoload": { @@ -128,7 +134,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.0" + "source": "https://github.com/doctrine/instantiator/tree/1.4.1" }, "funding": [ { @@ -144,7 +150,7 @@ "type": "tidelift" } ], - "time": "2020-11-10T18:47:58+00:00" + "time": "2022-03-03T08:28:38+00:00" }, { "name": "giacocorsiglia/wordpress-stubs", @@ -191,37 +197,38 @@ }, { "name": "myclabs/deep-copy", - "version": "1.10.2", + "version": "1.11.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, - "replace": { - "myclabs/deep-copy": "self.version" + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" }, "require-dev": { - "doctrine/collections": "^1.0", - "doctrine/common": "^2.6", - "phpunit/phpunit": "^7.1" + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", "autoload": { - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - }, "files": [ "src/DeepCopy/deep_copy.php" - ] + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -237,7 +244,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" }, "funding": [ { @@ -245,7 +252,7 @@ "type": "tidelift" } ], - "time": "2020-11-13T09:40:50+00:00" + "time": "2022-03-03T13:19:32+00:00" }, { "name": "phar-io/manifest", @@ -518,16 +525,16 @@ }, { "name": "phpcompatibility/phpcompatibility-wp", - "version": "2.1.2", + "version": "2.1.3", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", - "reference": "a792ab623069f0ce971b2417edef8d9632e32f75" + "reference": "d55de55f88697b9cdb94bccf04f14eb3b11cf308" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/a792ab623069f0ce971b2417edef8d9632e32f75", - "reference": "a792ab623069f0ce971b2417edef8d9632e32f75", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/d55de55f88697b9cdb94bccf04f14eb3b11cf308", + "reference": "d55de55f88697b9cdb94bccf04f14eb3b11cf308", "shasum": "" }, "require": { @@ -568,7 +575,7 @@ "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues", "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP" }, - "time": "2021-07-21T11:09:57+00:00" + "time": "2021-12-30T16:37:40+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -625,16 +632,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.2.2", + "version": "5.3.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", "shasum": "" }, "require": { @@ -645,7 +652,8 @@ "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.2" + "mockery/mockery": "~1.3.2", + "psalm/phar": "^4.8" }, "type": "library", "extra": { @@ -675,22 +683,22 @@ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" }, - "time": "2020-09-03T19:13:55+00:00" + "time": "2021-10-19T17:43:47+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.4.0", + "version": "1.6.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0" + "reference": "77a32518733312af16a44300404e945338981de3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", + "reference": "77a32518733312af16a44300404e945338981de3", "shasum": "" }, "require": { @@ -698,7 +706,8 @@ "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "ext-tokenizer": "*" + "ext-tokenizer": "*", + "psalm/phar": "^4.8" }, "type": "library", "extra": { @@ -724,39 +733,39 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" }, - "time": "2020-09-17T18:55:26+00:00" + "time": "2022-03-15T21:29:03+00:00" }, { "name": "phpspec/prophecy", - "version": "1.13.0", + "version": "v1.15.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea" + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/be1996ed8adc35c3fd795488a653f4b518be70ea", - "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", "shasum": "" }, "require": { "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.1", + "php": "^7.2 || ~8.0, <8.2", "phpdocumentor/reflection-docblock": "^5.2", "sebastian/comparator": "^3.0 || ^4.0", "sebastian/recursion-context": "^3.0 || ^4.0" }, "require-dev": { - "phpspec/phpspec": "^6.0", + "phpspec/phpspec": "^6.0 || ^7.0", "phpunit/phpunit": "^8.0 || ^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.11.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { @@ -791,9 +800,9 @@ ], "support": { "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/1.13.0" + "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" }, - "time": "2021-03-17T13:42:18+00:00" + "time": "2021-12-08T12:19:24+00:00" }, { "name": "phpunit/php-code-coverage", @@ -864,16 +873,16 @@ }, { "name": "phpunit/php-file-iterator", - "version": "2.0.4", + "version": "2.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "28af674ff175d0768a5a978e6de83f697d4a7f05" + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/28af674ff175d0768a5a978e6de83f697d4a7f05", - "reference": "28af674ff175d0768a5a978e6de83f697d4a7f05", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", "shasum": "" }, "require": { @@ -912,7 +921,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.4" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.5" }, "funding": [ { @@ -920,7 +929,7 @@ "type": "github" } ], - "time": "2021-07-19T06:46:01+00:00" + "time": "2021-12-02T12:42:26+00:00" }, { "name": "phpunit/php-text-template", @@ -1434,16 +1443,16 @@ }, { "name": "sebastian/exporter", - "version": "3.1.3", + "version": "3.1.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "6b853149eab67d4da22291d36f5b0631c0fd856e" + "reference": "0c32ea2e40dbf59de29f3b49bf375176ce7dd8db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/6b853149eab67d4da22291d36f5b0631c0fd856e", - "reference": "6b853149eab67d4da22291d36f5b0631c0fd856e", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/0c32ea2e40dbf59de29f3b49bf375176ce7dd8db", + "reference": "0c32ea2e40dbf59de29f3b49bf375176ce7dd8db", "shasum": "" }, "require": { @@ -1452,7 +1461,7 @@ }, "require-dev": { "ext-mbstring": "*", - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^8.5" }, "type": "library", "extra": { @@ -1499,7 +1508,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.3" + "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.4" }, "funding": [ { @@ -1507,7 +1516,7 @@ "type": "github" } ], - "time": "2020-11-30T07:47:53+00:00" + "time": "2021-11-11T13:51:24+00:00" }, { "name": "sebastian/global-state", @@ -1840,16 +1849,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.0", + "version": "3.6.2", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625" + "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", + "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", "shasum": "" }, "require": { @@ -1892,32 +1901,35 @@ "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2021-04-09T00:54:41+00:00" + "time": "2021-12-12T21:44:58+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.23.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", - "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", "shasum": "" }, "require": { "php": ">=7.1" }, + "provide": { + "ext-ctype": "*" + }, "suggest": { "ext-ctype": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1925,12 +1937,12 @@ } }, "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Ctype\\": "" - }, "files": [ "bootstrap.php" - ] + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1955,7 +1967,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" }, "funding": [ { @@ -1971,7 +1983,7 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { "name": "theseer/tokenizer", @@ -2083,16 +2095,16 @@ }, { "name": "woocommerce/woocommerce-sniffs", - "version": "0.1.1", + "version": "0.1.3", "source": { "type": "git", "url": "https://github.com/woocommerce/woocommerce-sniffs.git", - "reference": "eb604d751b61c42f31ff1aa24113c7c0de438553" + "reference": "4576d54595614d689bc4436acff8baaece3c5bb0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/woocommerce/woocommerce-sniffs/zipball/eb604d751b61c42f31ff1aa24113c7c0de438553", - "reference": "eb604d751b61c42f31ff1aa24113c7c0de438553", + "url": "https://api.github.com/repos/woocommerce/woocommerce-sniffs/zipball/4576d54595614d689bc4436acff8baaece3c5bb0", + "reference": "4576d54595614d689bc4436acff8baaece3c5bb0", "shasum": "" }, "require": { @@ -2121,9 +2133,9 @@ ], "support": { "issues": "https://github.com/woocommerce/woocommerce-sniffs/issues", - "source": "https://github.com/woocommerce/woocommerce-sniffs/tree/0.1.1" + "source": "https://github.com/woocommerce/woocommerce-sniffs/tree/0.1.3" }, - "time": "2021-07-29T17:25:16+00:00" + "time": "2022-02-17T15:34:51+00:00" }, { "name": "wp-coding-standards/wpcs", @@ -2178,16 +2190,16 @@ }, { "name": "yoast/phpunit-polyfills", - "version": "1.0.2", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/Yoast/PHPUnit-Polyfills.git", - "reference": "1a582ab1d91e86aa450340c4d35631a85314ff9f" + "reference": "5ea3536428944955f969bc764bbe09738e151ada" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/1a582ab1d91e86aa450340c4d35631a85314ff9f", - "reference": "1a582ab1d91e86aa450340c4d35631a85314ff9f", + "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/5ea3536428944955f969bc764bbe09738e151ada", + "reference": "5ea3536428944955f969bc764bbe09738e151ada", "shasum": "" }, "require": { @@ -2235,7 +2247,7 @@ "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues", "source": "https://github.com/Yoast/PHPUnit-Polyfills" }, - "time": "2021-10-03T08:40:26+00:00" + "time": "2021-11-23T01:37:03+00:00" } ], "aliases": [], @@ -2247,5 +2259,5 @@ "ext-curl": "*" }, "platform-dev": [], - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.3.0" } diff --git a/i18n/languages/woocommerce-mercadopago-es_AR.mo b/i18n/languages/woocommerce-mercadopago-es_AR.mo index e83f1a6d5..e4c63dd88 100644 Binary files a/i18n/languages/woocommerce-mercadopago-es_AR.mo and b/i18n/languages/woocommerce-mercadopago-es_AR.mo differ diff --git a/i18n/languages/woocommerce-mercadopago-es_AR.po b/i18n/languages/woocommerce-mercadopago-es_AR.po index 01fb22bd6..69594490d 100644 --- a/i18n/languages/woocommerce-mercadopago-es_AR.po +++ b/i18n/languages/woocommerce-mercadopago-es_AR.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-" "mercadopago\n" "POT-Creation-Date: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_CL.mo b/i18n/languages/woocommerce-mercadopago-es_CL.mo index e83f1a6d5..e4c63dd88 100644 Binary files a/i18n/languages/woocommerce-mercadopago-es_CL.mo and b/i18n/languages/woocommerce-mercadopago-es_CL.mo differ diff --git a/i18n/languages/woocommerce-mercadopago-es_CL.po b/i18n/languages/woocommerce-mercadopago-es_CL.po index 01fb22bd6..69594490d 100644 --- a/i18n/languages/woocommerce-mercadopago-es_CL.po +++ b/i18n/languages/woocommerce-mercadopago-es_CL.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-" "mercadopago\n" "POT-Creation-Date: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_CO.mo b/i18n/languages/woocommerce-mercadopago-es_CO.mo index e83f1a6d5..e4c63dd88 100644 Binary files a/i18n/languages/woocommerce-mercadopago-es_CO.mo and b/i18n/languages/woocommerce-mercadopago-es_CO.mo differ diff --git a/i18n/languages/woocommerce-mercadopago-es_CO.po b/i18n/languages/woocommerce-mercadopago-es_CO.po index 01fb22bd6..69594490d 100644 --- a/i18n/languages/woocommerce-mercadopago-es_CO.po +++ b/i18n/languages/woocommerce-mercadopago-es_CO.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-" "mercadopago\n" "POT-Creation-Date: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_ES.mo b/i18n/languages/woocommerce-mercadopago-es_ES.mo index e83f1a6d5..e4c63dd88 100644 Binary files a/i18n/languages/woocommerce-mercadopago-es_ES.mo and b/i18n/languages/woocommerce-mercadopago-es_ES.mo differ diff --git a/i18n/languages/woocommerce-mercadopago-es_ES.po b/i18n/languages/woocommerce-mercadopago-es_ES.po index 01fb22bd6..69594490d 100644 --- a/i18n/languages/woocommerce-mercadopago-es_ES.po +++ b/i18n/languages/woocommerce-mercadopago-es_ES.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-" "mercadopago\n" "POT-Creation-Date: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_MX.mo b/i18n/languages/woocommerce-mercadopago-es_MX.mo index e83f1a6d5..e4c63dd88 100644 Binary files a/i18n/languages/woocommerce-mercadopago-es_MX.mo and b/i18n/languages/woocommerce-mercadopago-es_MX.mo differ diff --git a/i18n/languages/woocommerce-mercadopago-es_MX.po b/i18n/languages/woocommerce-mercadopago-es_MX.po index 01fb22bd6..69594490d 100644 --- a/i18n/languages/woocommerce-mercadopago-es_MX.po +++ b/i18n/languages/woocommerce-mercadopago-es_MX.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-" "mercadopago\n" "POT-Creation-Date: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_PE.mo b/i18n/languages/woocommerce-mercadopago-es_PE.mo index e83f1a6d5..e4c63dd88 100644 Binary files a/i18n/languages/woocommerce-mercadopago-es_PE.mo and b/i18n/languages/woocommerce-mercadopago-es_PE.mo differ diff --git a/i18n/languages/woocommerce-mercadopago-es_PE.po b/i18n/languages/woocommerce-mercadopago-es_PE.po index 01fb22bd6..69594490d 100644 --- a/i18n/languages/woocommerce-mercadopago-es_PE.po +++ b/i18n/languages/woocommerce-mercadopago-es_PE.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-" "mercadopago\n" "POT-Creation-Date: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_UY.mo b/i18n/languages/woocommerce-mercadopago-es_UY.mo index e83f1a6d5..e4c63dd88 100644 Binary files a/i18n/languages/woocommerce-mercadopago-es_UY.mo and b/i18n/languages/woocommerce-mercadopago-es_UY.mo differ diff --git a/i18n/languages/woocommerce-mercadopago-es_UY.po b/i18n/languages/woocommerce-mercadopago-es_UY.po index 01fb22bd6..69594490d 100644 --- a/i18n/languages/woocommerce-mercadopago-es_UY.po +++ b/i18n/languages/woocommerce-mercadopago-es_UY.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-" "mercadopago\n" "POT-Creation-Date: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_VE.mo b/i18n/languages/woocommerce-mercadopago-es_VE.mo index e83f1a6d5..e4c63dd88 100644 Binary files a/i18n/languages/woocommerce-mercadopago-es_VE.mo and b/i18n/languages/woocommerce-mercadopago-es_VE.mo differ diff --git a/i18n/languages/woocommerce-mercadopago-es_VE.po b/i18n/languages/woocommerce-mercadopago-es_VE.po index 01fb22bd6..69594490d 100644 --- a/i18n/languages/woocommerce-mercadopago-es_VE.po +++ b/i18n/languages/woocommerce-mercadopago-es_VE.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-" "mercadopago\n" "POT-Creation-Date: \n" diff --git a/i18n/languages/woocommerce-mercadopago-pt_BR.mo b/i18n/languages/woocommerce-mercadopago-pt_BR.mo index 3ce7d9f3b..a998d0654 100644 Binary files a/i18n/languages/woocommerce-mercadopago-pt_BR.mo and b/i18n/languages/woocommerce-mercadopago-pt_BR.mo differ diff --git a/i18n/languages/woocommerce-mercadopago-pt_BR.po b/i18n/languages/woocommerce-mercadopago-pt_BR.po index edad9c77a..a3faad756 100644 --- a/i18n/languages/woocommerce-mercadopago-pt_BR.po +++ b/i18n/languages/woocommerce-mercadopago-pt_BR.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-" "mercadopago\n" "POT-Creation-Date: \n" diff --git a/includes/helpers/class-wc-woomercadopago-helper-links.php b/includes/helpers/class-wc-woomercadopago-helper-links.php index abbfbcdfe..d83c6bade 100644 --- a/includes/helpers/class-wc-woomercadopago-helper-links.php +++ b/includes/helpers/class-wc-woomercadopago-helper-links.php @@ -17,7 +17,6 @@ * Class WC_WooMercadoPago_Helper_Links */ class WC_WooMercadoPago_Helper_Links { - /** * Links by country configured in woocommerce. */ @@ -37,7 +36,6 @@ public static function woomercadopago_settings_links() { ); } - public static function get_mp_devsite_links() { $link = WC_WooMercadoPago_Module::define_link_country(); $base_link = 'https://www.mercadopago.' . $link['sufix_url'] . 'developers/' . $link['translate']; @@ -67,7 +65,8 @@ public static function get_mp_devsite_link( $country ) { 'mpe' => 'https://www.mercadopago.com.pe/developers/es/guides/plugins/woocommerce/testing', 'mlu' => 'https://www.mercadopago.com.uy/developers/es/guides/plugins/woocommerce/testing', ]; - $link = array_key_exists($country, $country_links) ? $country_links[$country] : $country_links['mla']; + + $link = array_key_exists($country, $country_links) ? $country_links[$country] : $country_links['mla']; return $link; } @@ -79,7 +78,6 @@ public static function get_mp_devsite_link( $country ) { * @return string */ public static function get_country_link_mp_terms() { - $country_link = [ 'mla' => [ 'help' => 'ayuda', @@ -127,6 +125,7 @@ public static function get_country_link_mp_terms() { $option_country = WC_WooMercadoPago_Options::get_instance(); $checkout_country = strtolower($option_country->get_checkout_country()); + return $country_link[ $checkout_country ]; } diff --git a/includes/module/class-wc-woomercadopago-init.php b/includes/module/class-wc-woomercadopago-init.php index bd0aa6ed0..aedc1a407 100644 --- a/includes/module/class-wc-woomercadopago-init.php +++ b/includes/module/class-wc-woomercadopago-init.php @@ -27,7 +27,13 @@ class WC_WooMercadoPago_Init { */ public static function woocommerce_mercadopago_load_plugin_textdomain() { $text_domain = 'woocommerce-mercadopago'; - $locale = apply_filters( 'plugin_locale', get_locale(), $text_domain ); + + /** + * Apply filters plugin_locale. + * + * @since 3.0.1 + */ + $locale = apply_filters( 'plugin_locale', get_locale(), $text_domain ); $original_language_file = dirname( __FILE__ ) . '/../../i18n/languages/woocommerce-mercadopago-' . $locale . '.mo'; @@ -134,6 +140,11 @@ public static function mercadopago_plugin_activation() { public static function mercadopago_handle_saved_cards_notice() { $must_not_show_review = (int) get_option( '_mp_dismiss_saved_cards_notice' ); if ( ! isset( $must_not_show_review ) || $must_not_show_review ) { + /** + * Update if option was changed. + * + * @since 3.0.1 + */ update_option( '_mp_dismiss_saved_cards_notice', 0, true ); } } @@ -144,8 +155,20 @@ public static function mercadopago_handle_saved_cards_notice() { public static function update_plugin_version() { $old_version = get_option( '_mp_version', '0' ); if ( version_compare( WC_WooMercadoPago_Constants::VERSION, $old_version, '>' ) ) { + /** + * Do action mercadopago_plugin_updated. + * + * @since 3.0.1 + */ do_action( 'mercadopago_plugin_updated' ); + + /** + * Do action mercadopago_test_mode_update. + * + * @since 3.0.1 + */ do_action( 'mercadopago_test_mode_update' ); + update_option( '_mp_version', WC_WooMercadoPago_Constants::VERSION, true ); } } diff --git a/includes/module/class-wc-woomercadopago-module.php b/includes/module/class-wc-woomercadopago-module.php index 1a7d815a5..c0d35c437 100755 --- a/includes/module/class-wc-woomercadopago-module.php +++ b/includes/module/class-wc-woomercadopago-module.php @@ -90,6 +90,15 @@ public function __construct() { $this->load_notifications(); $this->load_stock_manager(); + // melidata admin scripts + add_action( 'admin_enqueue_scripts', array( $this, 'load_admin_scripts' ) ); + + // melidata buyer scripts + add_action( 'before_woocommerce_pay', array( $this, 'load_before_woocommerce_pay_scripts' ) ); + add_action( 'woocommerce_before_checkout_form', array( $this, 'load_before_checkout_scripts' ) ); + add_action( 'woocommerce_pay_order_before_submit', array( $this, 'load_pay_order_scripts' ) ); + add_action( 'woocommerce_before_thankyou', array( $this, 'load_before_thankyou_scripts' ) ); + add_action( 'admin_enqueue_scripts', array( $this, 'load_admin_css' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'load_global_css' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'load_global_css' ) ); @@ -639,6 +648,96 @@ public function load_global_css() { ); } + /** + * Load admin scripts + * + * @return void + */ + public function load_admin_scripts() { + if ( is_admin() ) { + global $woocommerce; + + $suffix = $this->get_suffix(); + $site_id = get_option( '_site_id_v1' ); + + wp_enqueue_script( + 'mercadopago_melidata', + plugins_url( '../assets/js/melidata/melidata-client' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), + array(), + WC_WooMercadoPago_Constants::VERSION, + true + ); + + wp_localize_script( + 'mercadopago_melidata', + 'wc_melidata_params', + array( + 'type' => 'seller', + 'site_id' => $site_id ? strtoupper( $site_id ) : 'MLA', + 'location' => '/settings', + 'plugin_version' => WC_WooMercadoPago_Constants::VERSION, + 'platform_version' => $woocommerce->version, + ) + ); + } + } + + public function load_before_woocommerce_pay_scripts() { + $this->load_buyer_scripts('/woocommerce_pay', null); + } + + public function load_before_checkout_scripts() { + $this->load_buyer_scripts('/checkout', null); + } + + public function load_pay_order_scripts() { + $this->load_buyer_scripts('/pay_order', null); + } + + public function load_before_thankyou_scripts( $order_id ) { + $order = wc_get_order( $order_id ); + + $payment_method = $order->get_payment_method(); + $is_mercadopago_payment_method = in_array($payment_method, WC_WooMercadoPago_Constants::GATEWAYS_IDS, true); + + if ( $is_mercadopago_payment_method ) { + $this->load_buyer_scripts('/thankyou', $payment_method); + } + } + + /** + * Load buyer scripts + * + * @return void + */ + public function load_buyer_scripts( $location, $payment_method ) { + global $woocommerce; + + $suffix = $this->get_suffix(); + $site_id = get_option( '_site_id_v1' ); + + wp_enqueue_script( + 'mercadopago_melidata', + plugins_url( '../assets/js/melidata/melidata-client' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), + array(), + WC_WooMercadoPago_Constants::VERSION, + true + ); + + wp_localize_script( + 'mercadopago_melidata', + 'wc_melidata_params', + array( + 'type' => 'buyer', + 'site_id' => $site_id ? strtoupper( $site_id ) : 'MLA', + 'location' => $location, + 'payment_method' => $payment_method, + 'plugin_version' => WC_WooMercadoPago_Constants::VERSION, + 'platform_version' => $woocommerce->version, + ) + ); + } + /** * * Filter Payment Method by Shipping @@ -809,6 +908,11 @@ public function update_credential_production() { $has_a_gateway_in_production = true; } + /** + * Update if options were changed. + * + * @since 3.0.1 + */ update_option( $key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $gateway::get_id(), $options ) ); } } diff --git a/includes/module/config/class-wc-woomercadopago-constants.php b/includes/module/config/class-wc-woomercadopago-constants.php index b627d980a..41504feb8 100644 --- a/includes/module/config/class-wc-woomercadopago-constants.php +++ b/includes/module/config/class-wc-woomercadopago-constants.php @@ -21,7 +21,7 @@ class WC_WooMercadoPago_Constants { const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG'; const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0'; const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0'; - const VERSION = '5.7.6'; + const VERSION = '5.8.0'; const MIN_PHP = 5.6; const API_MP_BASE_URL = 'https://api.mercadopago.com'; const DATE_EXPIRATION = 3; diff --git a/includes/module/mercadopago-settings/class-wc-woomercadopago-mercadopago-settings.php b/includes/module/mercadopago-settings/class-wc-woomercadopago-mercadopago-settings.php index b44af0043..3c7eb8adb 100644 --- a/includes/module/mercadopago-settings/class-wc-woomercadopago-mercadopago-settings.php +++ b/includes/module/mercadopago-settings/class-wc-woomercadopago-mercadopago-settings.php @@ -508,6 +508,11 @@ public function update_credential_production() { : ( 'yes' === $old_credential_is_prod ? 'no' : 'yes' ); $options['checkout_credential_prod'] = 'deprecated'; + /** + * Update if options were changed. + * + * @since 3.0.1 + */ update_option( $key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $gateway::get_id(), $options ) ); } } diff --git a/includes/notification/class-wc-woomercadopago-notification-abstract.php b/includes/notification/class-wc-woomercadopago-notification-abstract.php index 01e952d93..812509289 100644 --- a/includes/notification/class-wc-woomercadopago-notification-abstract.php +++ b/includes/notification/class-wc-woomercadopago-notification-abstract.php @@ -182,6 +182,11 @@ public function proccess_status( $processed_status, $data, $order ) { public function mp_rule_approved( $data, $order, $used_gateway ) { $order->add_order_note( 'Mercado Pago: ' . __( 'Payment approved.', 'woocommerce-mercadopago' ) ); + /** + * Apply filters woocommerce_payment_complete_order_status. + * + * @since 3.0.1 + */ $payment_completed_status = apply_filters( 'woocommerce_payment_complete_order_status', $order->needs_processing() ? 'processing' : 'completed', diff --git a/includes/notification/class-wc-woomercadopago-notification-ipn.php b/includes/notification/class-wc-woomercadopago-notification-ipn.php index 5acc27696..6f81b439e 100644 --- a/includes/notification/class-wc-woomercadopago-notification-ipn.php +++ b/includes/notification/class-wc-woomercadopago-notification-ipn.php @@ -57,7 +57,14 @@ public function check_ipn_response() { } $ipn_info['response']['ipn_type'] = 'merchant_order'; + + /** + * Do action valid_mercadopago_ipn_request. + * + * @since 3.0.1 + */ do_action( 'valid_mercadopago_ipn_request', $ipn_info['response'] ); + $this->set_response( 200, 'OK', 'Notification IPN Successfull' ); } } diff --git a/includes/notification/class-wc-woomercadopago-notification-webhook.php b/includes/notification/class-wc-woomercadopago-notification-webhook.php index 502a71434..2141f88c7 100644 --- a/includes/notification/class-wc-woomercadopago-notification-webhook.php +++ b/includes/notification/class-wc-woomercadopago-notification-webhook.php @@ -65,9 +65,16 @@ public function check_ipn_response() { if ( 'payment' === $data['type'] ) { $access_token = $this->mp->get_access_token(); $payment_info = $this->mp->get( '/v1/payments/' . $data['data_id'], array( 'Authorization' => 'Bearer ' . $access_token ), false ); + if ( ! is_wp_error( $payment_info ) && ( 200 === $payment_info['status'] || 201 === $payment_info['status'] ) ) { if ( $payment_info['response'] ) { + /** + * Do action valid_mercadopago_ipn_request. + * + * @since 3.0.1 + */ do_action( 'valid_mercadopago_ipn_request', $payment_info['response'] ); + $this->set_response( 200, 'OK', 'Webhook Notification Successfull' ); } } else { diff --git a/includes/payments/class-wc-woomercadopago-custom-gateway.php b/includes/payments/class-wc-woomercadopago-custom-gateway.php index d47b06a17..709d0b6fb 100755 --- a/includes/payments/class-wc-woomercadopago-custom-gateway.php +++ b/includes/payments/class-wc-woomercadopago-custom-gateway.php @@ -479,7 +479,7 @@ protected function process_custom_checkout_flow( $custom_checkout, $order ) { WC()->cart->empty_cart(); wc_add_notice( '

' . $this->get_order_status( $response['status_detail'] ) . '

' . - '

' . + '

' . __( 'See your order form', 'woocommerce-mercadopago' ) . '

', 'notice' @@ -497,7 +497,7 @@ protected function process_custom_checkout_flow( $custom_checkout, $order ) { ) . '
' . $this->get_order_status( $response['status_detail'] ) . '

' . - '

' . + '

' . __( 'Click to try again', 'woocommerce-mercadopago' ) . '

', 'error' @@ -510,7 +510,7 @@ protected function process_custom_checkout_flow( $custom_checkout, $order ) { case 'in_mediation': case 'charged_back': // If we enter here (an order generating a direct [cancelled, in_mediation, or charged_back] status), - // them there must be something very wrong! + // then there must be something very wrong! break; default: break; diff --git a/includes/payments/class-wc-woomercadopago-payment-abstract.php b/includes/payments/class-wc-woomercadopago-payment-abstract.php index 3275adff8..0be6b27a8 100755 --- a/includes/payments/class-wc-woomercadopago-payment-abstract.php +++ b/includes/payments/class-wc-woomercadopago-payment-abstract.php @@ -571,6 +571,11 @@ public function normalize_common_admin_fields() { } if ( $changed ) { + /** + * Update if options were changed. + * + * @since 3.0.1 + */ update_option( $this->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ) ); } } @@ -629,6 +634,11 @@ public function is_manage_section() { * @return mixed */ public function get_mp_icon() { + /** + * Add Mercado Pago icon. + * + * @since 3.0.1 + */ return apply_filters( 'woocommerce_mercadopago_icon', plugins_url( '../assets/images/mercadopago.png', plugin_dir_path( __FILE__ ) ) ); } @@ -1151,6 +1161,12 @@ public function disable_all_payments_methods_mp() { } $options['enabled'] = 'no'; + + /** + * Update if options were changed + * + * @since 3.0.1 + */ update_option( $key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $gateway::get_id(), $options ) ); } } diff --git a/includes/payments/hooks/class-wc-woomercadopago-hook-abstract.php b/includes/payments/hooks/class-wc-woomercadopago-hook-abstract.php index 25eac960a..36d36a682 100755 --- a/includes/payments/hooks/class-wc-woomercadopago-hook-abstract.php +++ b/includes/payments/hooks/class-wc-woomercadopago-hook-abstract.php @@ -111,13 +111,21 @@ public function add_discount_abst( $checkout ) { && WC()->session->chosen_payment_method === $this->payment->id ) { $this->payment->log->write_log( __FUNCTION__, $this->class . 'trying to apply discount...' ); + $value = ( 'COP' === $this->payment->site_data['currency'] || 'CLP' === $this->payment->site_data['currency'] - ) ? - floor( $checkout['discount'] / $checkout['currency_ratio'] ) - : floor( $checkout['discount'] / $checkout['currency_ratio'] * 100 ) / 100; + ) + ? floor( $checkout['discount'] / $checkout['currency_ratio'] ) + : floor( $checkout['discount'] / $checkout['currency_ratio'] * 100 ) / 100; + global $woocommerce; + + /** + * Apply discount filter. + * + * @since 3.0.1 + */ if ( apply_filters( 'wc_mercadopago_custommodule_apply_discount', 0 < $value, $woocommerce->cart ) ) { $woocommerce->cart->add_fee( sprintf( @@ -273,6 +281,11 @@ public function custom_process_admin_options() { $this->payment->settings ); + /** + * Update if options were changed. + * + * @since 3.0.1 + */ return update_option( $this->payment->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->payment->id, $this->payment->settings ) ); } diff --git a/includes/stock/class-wc-woomercadopago-stock-manager.php b/includes/stock/class-wc-woomercadopago-stock-manager.php index b7f78ecbf..813e1e8eb 100644 --- a/includes/stock/class-wc-woomercadopago-stock-manager.php +++ b/includes/stock/class-wc-woomercadopago-stock-manager.php @@ -39,6 +39,11 @@ public function __construct() { public static function restore_stock_item( $order_id ) { $order = wc_get_order( $order_id ); + /** + * Apply filters woocommerce_can_reduce_order_stock. + * + * @since 3.0.1 + */ if ( ! $order || 'yes' !== get_option( 'woocommerce_manage_stock' ) || ! apply_filters( 'woocommerce_can_reduce_order_stock', true, $order ) ) { return; } @@ -55,9 +60,22 @@ public static function restore_stock_item( $order_id ) { foreach ( $order->get_items() as $item ) { if ( $item['product_id'] > 0 ) { $_product = wc_get_product( $item['product_id'] ); + if ( $_product && $_product->exists() && $_product->managing_stock() ) { + /** + * Apply filters woocommerce_order_item_quantity. + * + * @since 3.0.1 + */ $qty = apply_filters( 'woocommerce_order_item_quantity', $item['qty'], $order, $item ); + wc_update_product_stock( $_product, $qty, 'increase' ); + + /** + * Do action woocommerce_auto_stock_restored. + * + * @since 3.0.1 + */ do_action( 'woocommerce_auto_stock_restored', $_product, $item ); } } diff --git a/package.json b/package.json index 51024835a..011d4a73f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "pot": "node -e 'require(\"./main.js\").generatePotFiles()'", "lint": "jshint" }, - "version": "5.7.6", + "version": "5.8.0", "repository": { "type": "git", "url": "https://github.com/mercadopago/cart-woocommerce" diff --git a/readme.txt b/readme.txt index 5a16e2a09..d8c7d9001 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce Requires at least: 4.9.10 Tested up to: 5.9 Requires PHP: 5.6 -Stable tag: 5.7.6 +Stable tag: 5.8.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -133,6 +133,13 @@ Set up both the plugin and the checkouts you want to activate on your payment av Check out our official documentation for more information on the specific fields to configure. == Changelog == += v5.8.0 (07/06/2022) = +* Features +- Added melidata script to collect metrics from plugin + +* Bug fixes +- Changed mp logo + = v5.7.6 (19/04/2022) = * Bug fixes - Adjusted IPN notification to recognize discount coupon diff --git a/templates/checkout/basic-checkout.php b/templates/checkout/basic-checkout.php index 0592895a4..1eaa1d326 100644 --- a/templates/checkout/basic-checkout.php +++ b/templates/checkout/basic-checkout.php @@ -18,67 +18,70 @@ // @codingStandardsIgnoreLine echo $checkout_alert_test_mode; ?> +
-
-
-

- - - - - - - -

- - - - - +
+
+

+ + + + + + + +

+ + + + + + +
-
-
-
-

+
+
+

- - - - - -
+ + + + + +
-
-
-

+
+
+

- - - - - + + + + + +
-
-
-
- -

+
+
+ +

+
-
+

diff --git a/templates/mercadopago-settings/mercadopago-settings.php b/templates/mercadopago-settings/mercadopago-settings.php index e0fd0aed0..4c1a80412 100644 --- a/templates/mercadopago-settings/mercadopago-settings.php +++ b/templates/mercadopago-settings/mercadopago-settings.php @@ -73,7 +73,11 @@

- + + +
@@ -84,7 +88,11 @@

- + + +
@@ -93,7 +101,7 @@
-
+
@@ -107,7 +115,11 @@

@@ -141,7 +153,7 @@
-
+
@@ -198,7 +210,7 @@

- +