WooCommerce MercadoPago - Version 5.8.0

Version Description

Download this release

Release Info

Developer mercadopago
Plugin Icon 128x128 WooCommerce MercadoPago
Version 5.8.0
Comparing to
See all releases

Code changes from version 5.7.6 to 5.8.0

Files changed (46) hide show
  1. assets/css/basic_checkout_mercadopago.css +3 -2
  2. assets/css/basic_checkout_mercadopago.min.css +1 -1
  3. assets/css/global.css +2 -2
  4. assets/css/global.min.css +1 -1
  5. assets/css/mercadopago-settings/mercadopago_settings.css +1 -1
  6. assets/css/mercadopago-settings/mercadopago_settings.min.css +1 -1
  7. assets/images/minilogo.png +0 -0
  8. assets/images/mplogo.png +0 -0
  9. assets/js/melidata/melidata-client.js +51 -0
  10. assets/js/melidata/melidata-client.min.js +1 -0
  11. assets/js/mercadopago-settings/mercadopago_settings.js +173 -100
  12. assets/js/mercadopago-settings/mercadopago_settings.min.js +1 -1
  13. i18n/languages/woocommerce-mercadopago-es_AR.mo +0 -0
  14. i18n/languages/woocommerce-mercadopago-es_AR.po +1 -1
  15. i18n/languages/woocommerce-mercadopago-es_CL.mo +0 -0
  16. i18n/languages/woocommerce-mercadopago-es_CL.po +1 -1
  17. i18n/languages/woocommerce-mercadopago-es_CO.mo +0 -0
  18. i18n/languages/woocommerce-mercadopago-es_CO.po +1 -1
  19. i18n/languages/woocommerce-mercadopago-es_ES.mo +0 -0
  20. i18n/languages/woocommerce-mercadopago-es_ES.po +1 -1
  21. i18n/languages/woocommerce-mercadopago-es_MX.mo +0 -0
  22. i18n/languages/woocommerce-mercadopago-es_MX.po +1 -1
  23. i18n/languages/woocommerce-mercadopago-es_PE.mo +0 -0
  24. i18n/languages/woocommerce-mercadopago-es_PE.po +1 -1
  25. i18n/languages/woocommerce-mercadopago-es_UY.mo +0 -0
  26. i18n/languages/woocommerce-mercadopago-es_UY.po +1 -1
  27. i18n/languages/woocommerce-mercadopago-es_VE.mo +0 -0
  28. i18n/languages/woocommerce-mercadopago-es_VE.po +1 -1
  29. i18n/languages/woocommerce-mercadopago-pt_BR.mo +0 -0
  30. i18n/languages/woocommerce-mercadopago-pt_BR.po +1 -1
  31. includes/helpers/class-wc-woomercadopago-helper-links.php +3 -4
  32. includes/module/class-wc-woomercadopago-init.php +24 -1
  33. includes/module/class-wc-woomercadopago-module.php +104 -0
  34. includes/module/config/class-wc-woomercadopago-constants.php +1 -1
  35. includes/module/mercadopago-settings/class-wc-woomercadopago-mercadopago-settings.php +5 -0
  36. includes/notification/class-wc-woomercadopago-notification-abstract.php +5 -0
  37. includes/notification/class-wc-woomercadopago-notification-ipn.php +7 -0
  38. includes/notification/class-wc-woomercadopago-notification-webhook.php +7 -0
  39. includes/payments/class-wc-woomercadopago-custom-gateway.php +3 -3
  40. includes/payments/class-wc-woomercadopago-payment-abstract.php +16 -0
  41. includes/payments/hooks/class-wc-woomercadopago-hook-abstract.php +16 -3
  42. includes/stock/class-wc-woomercadopago-stock-manager.php +18 -0
  43. readme.txt +8 -1
  44. templates/checkout/basic-checkout.php +43 -40
  45. templates/mercadopago-settings/mercadopago-settings.php +31 -10
  46. woocommerce-mercadopago.php +1 -1
assets/css/basic_checkout_mercadopago.css CHANGED
@@ -891,6 +891,7 @@
891
  top: 50%;
892
  left: 50%;
893
  transform: translate(-50%, -50%);
 
894
  }
895
 
896
  .mp-wallet-button-info {
@@ -906,7 +907,7 @@
906
  }
907
 
908
  .mp-wallet-button-pay {
909
- width: 100%x;
910
  padding-left: 35%;
911
  }
912
 
@@ -968,7 +969,7 @@
968
  }
969
 
970
  .mp-wallet-button-pay {
971
- width: 100%x;
972
  padding-left: 0;
973
  }
974
  }
891
  top: 50%;
892
  left: 50%;
893
  transform: translate(-50%, -50%);
894
+ margin: 0 !important;
895
  }
896
 
897
  .mp-wallet-button-info {
907
  }
908
 
909
  .mp-wallet-button-pay {
910
+ width: 100%;
911
  padding-left: 35%;
912
  }
913
 
969
  }
970
 
971
  .mp-wallet-button-pay {
972
+ width: 100%;
973
  padding-left: 0;
974
  }
975
  }
assets/css/basic_checkout_mercadopago.min.css CHANGED
@@ -1 +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}}
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%);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}}
assets/css/global.css CHANGED
@@ -25,7 +25,7 @@
25
 
26
  .mp-alert-circle-img {
27
  width: 16px;
28
- margin-top: 16px;
29
  }
30
 
31
  .mp-alert-texts-checkout-test-mode {
@@ -46,4 +46,4 @@
46
  margin: 4px 0 0 0 !important;
47
  font-size: 14px;
48
  color: rgba(0, 0, 0, 0.7);
49
- }
25
 
26
  .mp-alert-circle-img {
27
  width: 16px;
28
+ margin-top: 16px !important;
29
  }
30
 
31
  .mp-alert-texts-checkout-test-mode {
46
  margin: 4px 0 0 0 !important;
47
  font-size: 14px;
48
  color: rgba(0, 0, 0, 0.7);
49
+ }
assets/css/global.min.css CHANGED
@@ -1 +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)}
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!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)}
assets/css/mercadopago-settings/mercadopago_settings.css CHANGED
@@ -17,7 +17,7 @@
17
  background-position: center;
18
  background-repeat: no-repeat;
19
  background-size: cover;
20
- width: 95%;
21
  border-radius: 140px 170px 170px 0px;
22
  }
23
  .mp-settings-header-logo {
17
  background-position: center;
18
  background-repeat: no-repeat;
19
  background-size: cover;
20
+ width: 100%;
21
  border-radius: 140px 170px 170px 0px;
22
  }
23
  .mp-settings-header-logo {
assets/css/mercadopago-settings/mercadopago_settings.min.css CHANGED
@@ -1 +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}}
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: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}}
assets/images/minilogo.png CHANGED
Binary file
assets/images/mplogo.png CHANGED
Binary file
assets/js/melidata/melidata-client.js ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* globals wc_melidata_params */
2
+ (function () {
3
+ window.onload = function () {
4
+ window.melidata = null;
5
+
6
+ try {
7
+ var scriptTag = document.createElement("script");
8
+
9
+ scriptTag.setAttribute("id", "melidata_woocommerce_client");
10
+ scriptTag.src = "https://http2.mlstatic.com/storage/v1/plugins/melidata/woocommerce.min.js";
11
+ scriptTag.async = true;
12
+ scriptTag.defer = true;
13
+
14
+ scriptTag.onerror = function () {
15
+ const url = "https://api.mercadopago.com/v1/plugins/melidata/errors";
16
+
17
+ const payload = {
18
+ name: "ERR_CONNECTION_REFUSED",
19
+ message: "Unable to load melidata script on page",
20
+ target: "melidata_woocommerce_client",
21
+ plugin: {
22
+ version: wc_melidata_params.plugin_version,
23
+ },
24
+ platform: {
25
+ name: "woocommerce",
26
+ uri: `${window.location.pathname}${window.location.search}`,
27
+ version: wc_melidata_params.platform_version,
28
+ location: wc_melidata_params.location,
29
+ },
30
+ };
31
+
32
+ navigator.sendBeacon(url, JSON.stringify(payload));
33
+ };
34
+
35
+ scriptTag.onload = function () {
36
+ window.melidata = new MelidataClient({
37
+ type: wc_melidata_params.type,
38
+ siteID: wc_melidata_params.site_id,
39
+ pluginVersion: wc_melidata_params.platform_version,
40
+ platformVersion: wc_melidata_params.plugin_version,
41
+ pageLocation: wc_melidata_params.location,
42
+ paymentMethod: wc_melidata_params.payment_method,
43
+ });
44
+ };
45
+
46
+ document.body.appendChild(scriptTag);
47
+ } catch (e) {
48
+ console.warn(e);
49
+ }
50
+ };
51
+ })();
assets/js/melidata/melidata-client.min.js ADDED
@@ -0,0 +1 @@
 
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)}};
assets/js/mercadopago-settings/mercadopago_settings.js CHANGED
@@ -1,22 +1,26 @@
1
  function mp_settings_accordion_start() {
2
- var acc = document.getElementsByClassName("mp-settings-title-align");
3
  var i;
 
 
4
  for (i = 0; i < acc.length; i++) {
5
  acc[i].addEventListener("click", function () {
6
  this.classList.toggle("active");
 
7
  if ("mp-settings-margin-left" && "mp-arrow-up") {
8
  var accordionArrow = null;
 
9
  for (var i = 0; i < this.childNodes.length; i++) {
10
- if (
11
- this.childNodes[i]?.classList?.contains("mp-settings-margin-left")
12
- ) {
13
  accordionArrow = this.childNodes[i];
14
  break;
15
  }
16
  }
 
17
  accordionArrow.childNodes[1].classList.toggle("mp-arrow-up");
18
  }
 
19
  var panel = this.nextElementSibling;
 
20
  if (panel.style.display === "block") {
21
  panel.style.display = "none";
22
  } else {
@@ -27,7 +31,7 @@ function mp_settings_accordion_start() {
27
  }
28
 
29
  function mp_get_requirements() {
30
- jQuery.post(ajaxurl, { action: "mp_get_requirements" }, function(response) {
31
  const requirements = {
32
  ssl: document.getElementById("mp-req-ssl"),
33
  gd_ext: document.getElementById("mp-req-gd"),
@@ -51,17 +55,24 @@ function mp_validate_credentials() {
51
  .addEventListener("change", function () {
52
  var self = this;
53
 
54
- jQuery.post(ajaxurl, { access_token: this.value, is_test: false, action: "mp_validate_credentials"}, function(data) {
55
-
56
- }).done(function (response) {
57
- if (response.success) {
58
- self.classList.add("mp-credential-feedback-positive");
59
- self.classList.remove("mp-credential-feedback-negative");
60
- } else {
61
- self.classList.remove("mp-credential-feedback-positive");
62
- self.classList.add("mp-credential-feedback-negative");
63
- }
64
-
 
 
 
 
 
 
 
65
  })
66
  .fail(function (error) {
67
  self.classList.remove("mp-credential-feedback-positive");
@@ -73,20 +84,29 @@ function mp_validate_credentials() {
73
  .addEventListener("change", function () {
74
  var self = this;
75
 
76
- jQuery.post(ajaxurl, { access_token: this.value, is_test: true, action: "mp_validate_credentials"}, function(data) {
77
-
78
- }).done(function (response) {
79
- if (response.success) {
80
- self.classList.add( "mp-credential-feedback-positive" );
81
- self.classList.remove( "mp-credential-feedback-negative" );
82
- } else {
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  self.classList.remove("mp-credential-feedback-positive");
84
  self.classList.add("mp-credential-feedback-negative");
85
- }
86
- }).fail(function (error) {
87
- self.classList.remove("mp-credential-feedback-positive");
88
- self.classList.add("mp-credential-feedback-negative");
89
- });
90
  });
91
 
92
  document
@@ -94,12 +114,20 @@ function mp_validate_credentials() {
94
  .addEventListener("change", function () {
95
  var self = this;
96
 
97
- jQuery.post(ajaxurl, { public_key: this.value, is_test: true, action: "mp_validate_credentials"}, function(data) {
98
- })
 
 
 
 
 
 
 
 
99
  .done(function (response) {
100
  if (response.success) {
101
- self.classList.add( "mp-credential-feedback-positive" );
102
- self.classList.remove( "mp-credential-feedback-negative" );
103
  } else {
104
  self.classList.remove("mp-credential-feedback-positive");
105
  self.classList.add("mp-credential-feedback-negative");
@@ -116,12 +144,20 @@ function mp_validate_credentials() {
116
  .addEventListener("change", function () {
117
  var self = this;
118
 
119
- jQuery.post(ajaxurl, { public_key: this.value, is_test: false, action: "mp_validate_credentials"}, function(data) {
120
- })
 
 
 
 
 
 
 
 
121
  .done(function (response) {
122
  if (response.success) {
123
- self.classList.add( "mp-credential-feedback-positive" );
124
- self.classList.remove( "mp-credential-feedback-negative" );
125
  } else {
126
  self.classList.remove("mp-credential-feedback-positive");
127
  self.classList.add("mp-credential-feedback-negative");
@@ -138,15 +174,18 @@ function mp_update_option_credentials() {
138
  const btn_credentials = document.getElementById("mp-btn-credentials");
139
 
140
  btn_credentials.addEventListener("click", function () {
141
- jQuery.post( ajaxurl, {
142
- access_token_prod: document.getElementById( "mp-access-token-prod" ).value,
143
- access_token_test: document.getElementById( "mp-access-token-test" ).value,
144
- public_key_prod: document.getElementById( "mp-public-key-prod" ).value,
145
- public_key_test: document.getElementById( "mp-public-key-test" ).value,
146
- action: "mp_update_option_credentials"
147
- }, function ( data ) {
148
-
149
- } )
 
 
 
150
  .done(function (response) {
151
  if (response.success) {
152
  mp_show_message(response.data, "success", "credentials");
@@ -172,31 +211,32 @@ function mp_update_option_credentials() {
172
  function mp_update_store_information() {
173
  button = document.getElementById("mp-store-info-save");
174
  button.addEventListener("click", function () {
175
- jQuery.post( ajaxurl, {
176
- store_identificator: document.getElementById( "mp-store-identificator" )
177
- .value,
178
- store_category_id: document.getElementById( "mp-store-category-id" ).value,
179
- store_categories: document.getElementById( "mp-store-categories" ).value,
180
- store_url_ipn: document.querySelector( "#mp-store-url-ipn" ).value,
181
- store_integrator_id: document.getElementById( "mp-store-integrator-id" )
182
- .value,
183
- store_debug_mode: document.querySelector( "#mp-store-debug-mode:checked" )
184
- ?.value,
185
- action: "mp_update_store_information"
186
- }, function ( data ) {
187
- } )
 
188
  .done(function (response) {
189
  if (response.success) {
190
  mp_validate_store_tips();
191
- mp_show_message( response.data, "success", "store" );
192
- setTimeout( () => {
193
  mp_go_to_next_step(
194
  "mp-step-2",
195
  "mp-step-3",
196
  "mp-store-info-arrow-up",
197
  "mp-payments-arrow-up"
198
  );
199
- }, 3000 );
200
  } else {
201
  mp_show_message(response.data, "error", "store");
202
  }
@@ -237,57 +277,63 @@ function mp_settings_accordion_options() {
237
  function mp_set_mode() {
238
  var button = document.getElementById("mp-store-mode-save");
239
  button.addEventListener("click", function () {
240
- var mode_value = document.querySelector(
241
- 'input[name="mp-test-prod"]:checked'
242
- ).value;
243
- jQuery.post(ajaxurl, { input_mode_value: mode_value, action: "mp_store_mode"}, function(data) {
244
-
245
- })
 
 
246
  .done(function (response) {
247
  if (response.data) {
248
- var badge = document.getElementById( "mp-mode-badge" );
249
- var color_badge = document.getElementById( "mp-orange-badge" );
250
- var icon_badge = document.getElementById( "mp-icon-badge" );
251
- var text_badge = document.getElementById( "mp-text-badge" );
252
- var helper_test = document.getElementById( "mp-helper-test" );
253
- var helper_prod = document.getElementById( "mp-helper-prod" );
254
  text_badge.textContent = response.data;
255
 
256
- if ( mode_value === "yes" ) {
257
- badge.classList.remove( "mp-settings-prod-mode-alert" );
258
- badge.classList.add( "mp-settings-test-mode-alert" );
259
 
260
  color_badge.classList.remove(
261
  "mp-settings-alert-payment-methods-green"
262
  );
263
- color_badge.classList.add( "mp-settings-alert-payment-methods-orange" );
 
 
264
 
265
- icon_badge.classList.remove( "mp-settings-icon-success" );
266
- icon_badge.classList.add( "mp-settings-icon-warning" );
267
 
268
  badge.textContent = "Loja em modo teste";
269
 
270
  helper_test.style.display = "block";
271
  helper_prod.style.display = "none";
272
 
273
- mp_show_message( response.data, "success", "test_mode" );
274
  } else {
275
- badge.classList.remove( "mp-settings-test-mode-alert" );
276
- badge.classList.add( "mp-settings-prod-mode-alert" );
277
  badge.textContent = "Loja em modo vendas (Produção)";
278
 
279
  color_badge.classList.remove(
280
  "mp-settings-alert-payment-methods-orange"
281
  );
282
- color_badge.classList.add( "mp-settings-alert-payment-methods-green" );
 
 
283
 
284
- icon_badge.classList.remove( "mp-settings-icon-warning" );
285
- icon_badge.classList.add( "mp-settings-icon-success" );
286
 
287
  helper_test.style.display = "none";
288
  helper_prod.style.display = "block";
289
 
290
- mp_show_message( response.data, "success", "test_mode" );
291
  }
292
  } else {
293
  mp_show_message(response.data, "error", "test_mode");
@@ -300,15 +346,20 @@ function mp_set_mode() {
300
  }
301
 
302
  function mp_get_payment_properties() {
303
- jQuery.post(ajaxurl, { action: "mp_get_payment_properties" }, function(data) {
304
-
305
- })
306
  .done(function (response) {
307
  const payment = document.getElementById("mp-payment");
 
308
  response.data.reverse().forEach((gateway) => {
309
  payment.insertAdjacentHTML("afterend", mp_payment_properties(gateway));
310
  mp_payment_properties(gateway);
311
  });
 
 
 
 
 
312
  })
313
  .fail(function (error) {});
314
  }
@@ -322,6 +373,7 @@ function mp_payment_properties(gateway) {
322
  gateway.enabled == "yes"
323
  ? gateway.badge_translator.yes
324
  : gateway.badge_translator.no;
 
325
  return (
326
  ' <a href="' +
327
  gateway.link +
@@ -353,13 +405,16 @@ function mp_validate_credentials_tips() {
353
  var icon_credentials = document.getElementById(
354
  "mp-settings-icon-credentials"
355
  );
356
- jQuery.post(ajaxurl, { action: "mp_validate_credentials_tips" }, function(data) {
357
-
358
- })
 
 
 
359
  .done(function (response) {
360
  if (response.success) {
361
- icon_credentials.classList.remove( "mp-settings-icon-credentials" );
362
- icon_credentials.classList.add( "mp-settings-icon-success" );
363
  } else {
364
  icon_credentials.classList.remove("mp-settings-icon-success");
365
  }
@@ -371,9 +426,8 @@ function mp_validate_credentials_tips() {
371
 
372
  function mp_validate_store_tips() {
373
  var icon_store = document.getElementById("mp-settings-icon-store");
374
- jQuery.post(ajaxurl, { action: "mp_validate_store_tips" }, function(data) {
375
-
376
- })
377
  .done(function (response) {
378
  if (response.success) {
379
  icon_store.classList.remove("mp-settings-icon-store");
@@ -389,9 +443,8 @@ function mp_validate_store_tips() {
389
 
390
  function mp_validate_payment_tips() {
391
  var icon_payment = document.getElementById("mp-settings-icon-payment");
392
- jQuery.post(ajaxurl, { action: "mp_validate_payment_tips" }, function(data) {
393
-
394
- })
395
  .done(function (response) {
396
  if (response.success) {
397
  icon_payment.classList.remove("mp-settings-icon-payment");
@@ -458,6 +511,26 @@ function mp_go_to_next_step(actualStep, nextStep, actualArrowId, nextArrowId) {
458
  next.style.display = "block";
459
  actualArrow.classList.remove("mp-arrow-up");
460
  nextArrow.classList.add("mp-arrow-up");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
461
  }
462
 
463
  function mp_continue_to_next_step() {
1
  function mp_settings_accordion_start() {
 
2
  var i;
3
+ var acc = document.getElementsByClassName("mp-settings-title-align");
4
+
5
  for (i = 0; i < acc.length; i++) {
6
  acc[i].addEventListener("click", function () {
7
  this.classList.toggle("active");
8
+
9
  if ("mp-settings-margin-left" && "mp-arrow-up") {
10
  var accordionArrow = null;
11
+
12
  for (var i = 0; i < this.childNodes.length; i++) {
13
+ if (this.childNodes[i]?.classList?.contains("mp-settings-margin-left")) {
 
 
14
  accordionArrow = this.childNodes[i];
15
  break;
16
  }
17
  }
18
+
19
  accordionArrow.childNodes[1].classList.toggle("mp-arrow-up");
20
  }
21
+
22
  var panel = this.nextElementSibling;
23
+
24
  if (panel.style.display === "block") {
25
  panel.style.display = "none";
26
  } else {
31
  }
32
 
33
  function mp_get_requirements() {
34
+ jQuery.post(ajaxurl, { action: "mp_get_requirements" }, function (response) {
35
  const requirements = {
36
  ssl: document.getElementById("mp-req-ssl"),
37
  gd_ext: document.getElementById("mp-req-gd"),
55
  .addEventListener("change", function () {
56
  var self = this;
57
 
58
+ jQuery
59
+ .post(
60
+ ajaxurl,
61
+ {
62
+ access_token: this.value,
63
+ is_test: false,
64
+ action: "mp_validate_credentials",
65
+ },
66
+ function (data) {}
67
+ )
68
+ .done(function (response) {
69
+ if (response.success) {
70
+ self.classList.add("mp-credential-feedback-positive");
71
+ self.classList.remove("mp-credential-feedback-negative");
72
+ } else {
73
+ self.classList.remove("mp-credential-feedback-positive");
74
+ self.classList.add("mp-credential-feedback-negative");
75
+ }
76
  })
77
  .fail(function (error) {
78
  self.classList.remove("mp-credential-feedback-positive");
84
  .addEventListener("change", function () {
85
  var self = this;
86
 
87
+ jQuery
88
+ .post(
89
+ ajaxurl,
90
+ {
91
+ access_token: this.value,
92
+ is_test: true,
93
+ action: "mp_validate_credentials",
94
+ },
95
+ function (data) {}
96
+ )
97
+ .done(function (response) {
98
+ if (response.success) {
99
+ self.classList.add("mp-credential-feedback-positive");
100
+ self.classList.remove("mp-credential-feedback-negative");
101
+ } else {
102
+ self.classList.remove("mp-credential-feedback-positive");
103
+ self.classList.add("mp-credential-feedback-negative");
104
+ }
105
+ })
106
+ .fail(function (error) {
107
  self.classList.remove("mp-credential-feedback-positive");
108
  self.classList.add("mp-credential-feedback-negative");
109
+ });
 
 
 
 
110
  });
111
 
112
  document
114
  .addEventListener("change", function () {
115
  var self = this;
116
 
117
+ jQuery
118
+ .post(
119
+ ajaxurl,
120
+ {
121
+ public_key: this.value,
122
+ is_test: true,
123
+ action: "mp_validate_credentials",
124
+ },
125
+ function (data) {}
126
+ )
127
  .done(function (response) {
128
  if (response.success) {
129
+ self.classList.add("mp-credential-feedback-positive");
130
+ self.classList.remove("mp-credential-feedback-negative");
131
  } else {
132
  self.classList.remove("mp-credential-feedback-positive");
133
  self.classList.add("mp-credential-feedback-negative");
144
  .addEventListener("change", function () {
145
  var self = this;
146
 
147
+ jQuery
148
+ .post(
149
+ ajaxurl,
150
+ {
151
+ public_key: this.value,
152
+ is_test: false,
153
+ action: "mp_validate_credentials",
154
+ },
155
+ function (data) {}
156
+ )
157
  .done(function (response) {
158
  if (response.success) {
159
+ self.classList.add("mp-credential-feedback-positive");
160
+ self.classList.remove("mp-credential-feedback-negative");
161
  } else {
162
  self.classList.remove("mp-credential-feedback-positive");
163
  self.classList.add("mp-credential-feedback-negative");
174
  const btn_credentials = document.getElementById("mp-btn-credentials");
175
 
176
  btn_credentials.addEventListener("click", function () {
177
+ jQuery
178
+ .post(
179
+ ajaxurl,
180
+ {
181
+ access_token_prod: document.getElementById("mp-access-token-prod").value,
182
+ access_token_test: document.getElementById("mp-access-token-test").value,
183
+ public_key_prod: document.getElementById("mp-public-key-prod").value,
184
+ public_key_test: document.getElementById("mp-public-key-test").value,
185
+ action: "mp_update_option_credentials",
186
+ },
187
+ function (data) {}
188
+ )
189
  .done(function (response) {
190
  if (response.success) {
191
  mp_show_message(response.data, "success", "credentials");
211
  function mp_update_store_information() {
212
  button = document.getElementById("mp-store-info-save");
213
  button.addEventListener("click", function () {
214
+ jQuery
215
+ .post(
216
+ ajaxurl,
217
+ {
218
+ store_identificator: document.getElementById("mp-store-identificator").value,
219
+ store_category_id: document.getElementById("mp-store-category-id").value,
220
+ store_categories: document.getElementById("mp-store-categories").value,
221
+ store_url_ipn: document.querySelector("#mp-store-url-ipn").value,
222
+ store_integrator_id: document.getElementById("mp-store-integrator-id").value,
223
+ store_debug_mode: document.querySelector("#mp-store-debug-mode:checked")?.value,
224
+ action: "mp_update_store_information",
225
+ },
226
+ function (data) {}
227
+ )
228
  .done(function (response) {
229
  if (response.success) {
230
  mp_validate_store_tips();
231
+ mp_show_message(response.data, "success", "store");
232
+ setTimeout(() => {
233
  mp_go_to_next_step(
234
  "mp-step-2",
235
  "mp-step-3",
236
  "mp-store-info-arrow-up",
237
  "mp-payments-arrow-up"
238
  );
239
+ }, 3000);
240
  } else {
241
  mp_show_message(response.data, "error", "store");
242
  }
277
  function mp_set_mode() {
278
  var button = document.getElementById("mp-store-mode-save");
279
  button.addEventListener("click", function () {
280
+ var mode_value = document.querySelector('input[name="mp-test-prod"]:checked').value;
281
+
282
+ jQuery
283
+ .post(
284
+ ajaxurl,
285
+ { input_mode_value: mode_value, action: "mp_store_mode" },
286
+ function (data) {}
287
+ )
288
  .done(function (response) {
289
  if (response.data) {
290
+ var badge = document.getElementById("mp-mode-badge");
291
+ var color_badge = document.getElementById("mp-orange-badge");
292
+ var icon_badge = document.getElementById("mp-icon-badge");
293
+ var text_badge = document.getElementById("mp-text-badge");
294
+ var helper_test = document.getElementById("mp-helper-test");
295
+ var helper_prod = document.getElementById("mp-helper-prod");
296
  text_badge.textContent = response.data;
297
 
298
+ if (mode_value === "yes") {
299
+ badge.classList.remove("mp-settings-prod-mode-alert");
300
+ badge.classList.add("mp-settings-test-mode-alert");
301
 
302
  color_badge.classList.remove(
303
  "mp-settings-alert-payment-methods-green"
304
  );
305
+ color_badge.classList.add(
306
+ "mp-settings-alert-payment-methods-orange"
307
+ );
308
 
309
+ icon_badge.classList.remove("mp-settings-icon-success");
310
+ icon_badge.classList.add("mp-settings-icon-warning");
311
 
312
  badge.textContent = "Loja em modo teste";
313
 
314
  helper_test.style.display = "block";
315
  helper_prod.style.display = "none";
316
 
317
+ mp_show_message(response.data, "success", "test_mode");
318
  } else {
319
+ badge.classList.remove("mp-settings-test-mode-alert");
320
+ badge.classList.add("mp-settings-prod-mode-alert");
321
  badge.textContent = "Loja em modo vendas (Produção)";
322
 
323
  color_badge.classList.remove(
324
  "mp-settings-alert-payment-methods-orange"
325
  );
326
+ color_badge.classList.add(
327
+ "mp-settings-alert-payment-methods-green"
328
+ );
329
 
330
+ icon_badge.classList.remove("mp-settings-icon-warning");
331
+ icon_badge.classList.add("mp-settings-icon-success");
332
 
333
  helper_test.style.display = "none";
334
  helper_prod.style.display = "block";
335
 
336
+ mp_show_message(response.data, "success", "test_mode");
337
  }
338
  } else {
339
  mp_show_message(response.data, "error", "test_mode");
346
  }
347
 
348
  function mp_get_payment_properties() {
349
+ jQuery
350
+ .post(ajaxurl, { action: "mp_get_payment_properties" }, function (data) {})
 
351
  .done(function (response) {
352
  const payment = document.getElementById("mp-payment");
353
+
354
  response.data.reverse().forEach((gateway) => {
355
  payment.insertAdjacentHTML("afterend", mp_payment_properties(gateway));
356
  mp_payment_properties(gateway);
357
  });
358
+
359
+ // added melidata events on store configuration step three
360
+ if (window.melidata && window.melidata.client && window.melidata.client.stepPaymentMethodsCallback) {
361
+ window.melidata.client.stepPaymentMethodsCallback();
362
+ }
363
  })
364
  .fail(function (error) {});
365
  }
373
  gateway.enabled == "yes"
374
  ? gateway.badge_translator.yes
375
  : gateway.badge_translator.no;
376
+
377
  return (
378
  ' <a href="' +
379
  gateway.link +
405
  var icon_credentials = document.getElementById(
406
  "mp-settings-icon-credentials"
407
  );
408
+ jQuery
409
+ .post(
410
+ ajaxurl,
411
+ { action: "mp_validate_credentials_tips" },
412
+ function (data) {}
413
+ )
414
  .done(function (response) {
415
  if (response.success) {
416
+ icon_credentials.classList.remove("mp-settings-icon-credentials");
417
+ icon_credentials.classList.add("mp-settings-icon-success");
418
  } else {
419
  icon_credentials.classList.remove("mp-settings-icon-success");
420
  }
426
 
427
  function mp_validate_store_tips() {
428
  var icon_store = document.getElementById("mp-settings-icon-store");
429
+ jQuery
430
+ .post(ajaxurl, { action: "mp_validate_store_tips" }, function (data) {})
 
431
  .done(function (response) {
432
  if (response.success) {
433
  icon_store.classList.remove("mp-settings-icon-store");
443
 
444
  function mp_validate_payment_tips() {
445
  var icon_payment = document.getElementById("mp-settings-icon-payment");
446
+ jQuery
447
+ .post(ajaxurl, { action: "mp_validate_payment_tips" }, function (data) {})
 
448
  .done(function (response) {
449
  if (response.success) {
450
  icon_payment.classList.remove("mp-settings-icon-payment");
511
  next.style.display = "block";
512
  actualArrow.classList.remove("mp-arrow-up");
513
  nextArrow.classList.add("mp-arrow-up");
514
+
515
+ // added melidata timers on store configuration steps
516
+ if (window.melidata && window.melidata.client && window.melidata.client.addStoreConfigurationsStepTimer) {
517
+ switch (nextStep) {
518
+ case 'mp-step-2':
519
+ window.melidata.client.addStoreConfigurationsStepTimer({ step: 'business' });
520
+ break;
521
+
522
+ case 'mp-step-3':
523
+ window.melidata.client.addStoreConfigurationsStepTimer({ step: 'payment_methods', sendOnClose: true });
524
+ break;
525
+
526
+ case 'mp-step-4':
527
+ window.melidata.client.addStoreConfigurationsStepTimer({ step: 'mode' });
528
+ break;
529
+
530
+ default:
531
+ break;
532
+ }
533
+ }
534
  }
535
 
536
  function mp_continue_to_next_step() {
assets/js/mercadopago-settings/mercadopago_settings.min.js CHANGED
@@ -1 +1 @@
1
- function mp_settings_accordion_start(){var e,t=document.getElementsByClassName("mp-settings-title-align");for(e=0;e<t.length;e++)t[e].addEventListener("click",(function(){this.classList.toggle("active");for(var e=null,t=0;t<this.childNodes.length;t++)if(this.childNodes[t]?.classList?.contains("mp-settings-margin-left")){e=this.childNodes[t];break}e.childNodes[1].classList.toggle("mp-arrow-up");var s=this.nextElementSibling;"block"===s.style.display?s.style.display="none":s.style.display="block"}))}function mp_get_requirements(){jQuery.post(ajaxurl,{action:"mp_get_requirements"},(function(e){const t={ssl:document.getElementById("mp-req-ssl"),gd_ext:document.getElementById("mp-req-gd"),curl_ext:document.getElementById("mp-req-curl")};for(let s in t){let n=t[s];n.style="",e.data[s]||(n.classList.remove("mp-settings-icon-success"),n.classList.add("mp-settings-icon-warning"))}}))}function mp_validate_credentials(){document.getElementById("mp-access-token-prod").addEventListener("change",(function(){var e=this;jQuery.post(ajaxurl,{access_token:this.value,is_test:!1,action:"mp_validate_credentials"},(function(e){})).done((function(t){t.success?(e.classList.add("mp-credential-feedback-positive"),e.classList.remove("mp-credential-feedback-negative")):(e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative"))})).fail((function(t){e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative")}))})),document.getElementById("mp-access-token-test").addEventListener("change",(function(){var e=this;jQuery.post(ajaxurl,{access_token:this.value,is_test:!0,action:"mp_validate_credentials"},(function(e){})).done((function(t){t.success?(e.classList.add("mp-credential-feedback-positive"),e.classList.remove("mp-credential-feedback-negative")):(e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative"))})).fail((function(t){e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative")}))})),document.getElementById("mp-public-key-test").addEventListener("change",(function(){var e=this;jQuery.post(ajaxurl,{public_key:this.value,is_test:!0,action:"mp_validate_credentials"},(function(e){})).done((function(t){t.success?(e.classList.add("mp-credential-feedback-positive"),e.classList.remove("mp-credential-feedback-negative")):(e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative"))})).fail((function(t){e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative")}))})),document.getElementById("mp-public-key-prod").addEventListener("change",(function(){var e=this;jQuery.post(ajaxurl,{public_key:this.value,is_test:!1,action:"mp_validate_credentials"},(function(e){})).done((function(t){t.success?(e.classList.add("mp-credential-feedback-positive"),e.classList.remove("mp-credential-feedback-negative")):(e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative"))})).fail((function(t){e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative")}))}))}function mp_update_option_credentials(){document.getElementById("mp-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(e){})).done((function(e){e.success?(mp_show_message(e.data,"success","credentials"),mp_validate_credentials_tips(),setTimeout((()=>{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' <a href="'+e.link+'" class="mp-settings-link mp-settings-font-color"><div class="mp-block mp-block-flex mp-settings-payment-block mp-settings-margin-right mp-settings-align-div"> <div class="mp-settings-align-div"> <div class="mp-settings-icon '+e.icon+'"></div> <span class="mp-settings-subtitle-font-size mp-settings-margin-title-payment"> <b>'+e.title+"</b> - "+e.description+' </span> <span class="'+t+'" > '+s+'</span> </div> <div class="mp-settings-title-align"> <span class="mp-settings-text-payment">Configurar</span> <img class="mp-settings-icon-config"> </div> </div></a>'}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()}
1
+ function mp_settings_accordion_start(){var e,t=document.getElementsByClassName("mp-settings-title-align");for(e=0;e<t.length;e++)t[e].addEventListener("click",(function(){this.classList.toggle("active");for(var e=null,t=0;t<this.childNodes.length;t++)if(this.childNodes[t]?.classList?.contains("mp-settings-margin-left")){e=this.childNodes[t];break}e.childNodes[1].classList.toggle("mp-arrow-up");var s=this.nextElementSibling;"block"===s.style.display?s.style.display="none":s.style.display="block"}))}function mp_get_requirements(){jQuery.post(ajaxurl,{action:"mp_get_requirements"},(function(e){const t={ssl:document.getElementById("mp-req-ssl"),gd_ext:document.getElementById("mp-req-gd"),curl_ext:document.getElementById("mp-req-curl")};for(let s in t){let n=t[s];n.style="",e.data[s]||(n.classList.remove("mp-settings-icon-success"),n.classList.add("mp-settings-icon-warning"))}}))}function mp_validate_credentials(){document.getElementById("mp-access-token-prod").addEventListener("change",(function(){var e=this;jQuery.post(ajaxurl,{access_token:this.value,is_test:!1,action:"mp_validate_credentials"},(function(e){})).done((function(t){t.success?(e.classList.add("mp-credential-feedback-positive"),e.classList.remove("mp-credential-feedback-negative")):(e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative"))})).fail((function(t){e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative")}))})),document.getElementById("mp-access-token-test").addEventListener("change",(function(){var e=this;jQuery.post(ajaxurl,{access_token:this.value,is_test:!0,action:"mp_validate_credentials"},(function(e){})).done((function(t){t.success?(e.classList.add("mp-credential-feedback-positive"),e.classList.remove("mp-credential-feedback-negative")):(e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative"))})).fail((function(t){e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative")}))})),document.getElementById("mp-public-key-test").addEventListener("change",(function(){var e=this;jQuery.post(ajaxurl,{public_key:this.value,is_test:!0,action:"mp_validate_credentials"},(function(e){})).done((function(t){t.success?(e.classList.add("mp-credential-feedback-positive"),e.classList.remove("mp-credential-feedback-negative")):(e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative"))})).fail((function(t){e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative")}))})),document.getElementById("mp-public-key-prod").addEventListener("change",(function(){var e=this;jQuery.post(ajaxurl,{public_key:this.value,is_test:!1,action:"mp_validate_credentials"},(function(e){})).done((function(t){t.success?(e.classList.add("mp-credential-feedback-positive"),e.classList.remove("mp-credential-feedback-negative")):(e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative"))})).fail((function(t){e.classList.remove("mp-credential-feedback-positive"),e.classList.add("mp-credential-feedback-negative")}))}))}function mp_update_option_credentials(){document.getElementById("mp-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(e){})).done((function(e){e.success?(mp_show_message(e.data,"success","credentials"),mp_validate_credentials_tips(),setTimeout((()=>{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' <a href="'+e.link+'" class="mp-settings-link mp-settings-font-color"><div class="mp-block mp-block-flex mp-settings-payment-block mp-settings-margin-right mp-settings-align-div"> <div class="mp-settings-align-div"> <div class="mp-settings-icon '+e.icon+'"></div> <span class="mp-settings-subtitle-font-size mp-settings-margin-title-payment"> <b>'+e.title+"</b> - "+e.description+' </span> <span class="'+t+'" > '+s+'</span> </div> <div class="mp-settings-title-align"> <span class="mp-settings-text-payment">Configurar</span> <img class="mp-settings-icon-config"> </div> </div></a>'}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()}
i18n/languages/woocommerce-mercadopago-es_AR.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_AR.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_CL.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_CL.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_CO.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_CO.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_ES.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_ES.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_MX.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_MX.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_PE.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_PE.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_UY.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_UY.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_VE.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_VE.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-pt_BR.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-pt_BR.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.7.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
5
  "mercadopago\n"
6
  "POT-Creation-Date: \n"
includes/helpers/class-wc-woomercadopago-helper-links.php CHANGED
@@ -17,7 +17,6 @@ if ( ! defined( 'ABSPATH' ) ) {
17
  * Class WC_WooMercadoPago_Helper_Links
18
  */
19
  class WC_WooMercadoPago_Helper_Links {
20
-
21
  /**
22
  * Links by country configured in woocommerce.
23
  */
@@ -37,7 +36,6 @@ class WC_WooMercadoPago_Helper_Links {
37
  );
38
  }
39
 
40
-
41
  public static function get_mp_devsite_links() {
42
  $link = WC_WooMercadoPago_Module::define_link_country();
43
  $base_link = 'https://www.mercadopago.' . $link['sufix_url'] . 'developers/' . $link['translate'];
@@ -67,7 +65,8 @@ class WC_WooMercadoPago_Helper_Links {
67
  'mpe' => 'https://www.mercadopago.com.pe/developers/es/guides/plugins/woocommerce/testing',
68
  'mlu' => 'https://www.mercadopago.com.uy/developers/es/guides/plugins/woocommerce/testing',
69
  ];
70
- $link = array_key_exists($country, $country_links) ? $country_links[$country] : $country_links['mla'];
 
71
 
72
  return $link;
73
  }
@@ -79,7 +78,6 @@ class WC_WooMercadoPago_Helper_Links {
79
  * @return string
80
  */
81
  public static function get_country_link_mp_terms() {
82
-
83
  $country_link = [
84
  'mla' => [
85
  'help' => 'ayuda',
@@ -127,6 +125,7 @@ class WC_WooMercadoPago_Helper_Links {
127
 
128
  $option_country = WC_WooMercadoPago_Options::get_instance();
129
  $checkout_country = strtolower($option_country->get_checkout_country());
 
130
  return $country_link[ $checkout_country ];
131
  }
132
 
17
  * Class WC_WooMercadoPago_Helper_Links
18
  */
19
  class WC_WooMercadoPago_Helper_Links {
 
20
  /**
21
  * Links by country configured in woocommerce.
22
  */
36
  );
37
  }
38
 
 
39
  public static function get_mp_devsite_links() {
40
  $link = WC_WooMercadoPago_Module::define_link_country();
41
  $base_link = 'https://www.mercadopago.' . $link['sufix_url'] . 'developers/' . $link['translate'];
65
  'mpe' => 'https://www.mercadopago.com.pe/developers/es/guides/plugins/woocommerce/testing',
66
  'mlu' => 'https://www.mercadopago.com.uy/developers/es/guides/plugins/woocommerce/testing',
67
  ];
68
+
69
+ $link = array_key_exists($country, $country_links) ? $country_links[$country] : $country_links['mla'];
70
 
71
  return $link;
72
  }
78
  * @return string
79
  */
80
  public static function get_country_link_mp_terms() {
 
81
  $country_link = [
82
  'mla' => [
83
  'help' => 'ayuda',
125
 
126
  $option_country = WC_WooMercadoPago_Options::get_instance();
127
  $checkout_country = strtolower($option_country->get_checkout_country());
128
+
129
  return $country_link[ $checkout_country ];
130
  }
131
 
includes/module/class-wc-woomercadopago-init.php CHANGED
@@ -27,7 +27,13 @@ class WC_WooMercadoPago_Init {
27
  */
28
  public static function woocommerce_mercadopago_load_plugin_textdomain() {
29
  $text_domain = 'woocommerce-mercadopago';
30
- $locale = apply_filters( 'plugin_locale', get_locale(), $text_domain );
 
 
 
 
 
 
31
 
32
  $original_language_file = dirname( __FILE__ ) . '/../../i18n/languages/woocommerce-mercadopago-' . $locale . '.mo';
33
 
@@ -134,6 +140,11 @@ class WC_WooMercadoPago_Init {
134
  public static function mercadopago_handle_saved_cards_notice() {
135
  $must_not_show_review = (int) get_option( '_mp_dismiss_saved_cards_notice' );
136
  if ( ! isset( $must_not_show_review ) || $must_not_show_review ) {
 
 
 
 
 
137
  update_option( '_mp_dismiss_saved_cards_notice', 0, true );
138
  }
139
  }
@@ -144,8 +155,20 @@ class WC_WooMercadoPago_Init {
144
  public static function update_plugin_version() {
145
  $old_version = get_option( '_mp_version', '0' );
146
  if ( version_compare( WC_WooMercadoPago_Constants::VERSION, $old_version, '>' ) ) {
 
 
 
 
 
147
  do_action( 'mercadopago_plugin_updated' );
 
 
 
 
 
 
148
  do_action( 'mercadopago_test_mode_update' );
 
149
  update_option( '_mp_version', WC_WooMercadoPago_Constants::VERSION, true );
150
  }
151
  }
27
  */
28
  public static function woocommerce_mercadopago_load_plugin_textdomain() {
29
  $text_domain = 'woocommerce-mercadopago';
30
+
31
+ /**
32
+ * Apply filters plugin_locale.
33
+ *
34
+ * @since 3.0.1
35
+ */
36
+ $locale = apply_filters( 'plugin_locale', get_locale(), $text_domain );
37
 
38
  $original_language_file = dirname( __FILE__ ) . '/../../i18n/languages/woocommerce-mercadopago-' . $locale . '.mo';
39
 
140
  public static function mercadopago_handle_saved_cards_notice() {
141
  $must_not_show_review = (int) get_option( '_mp_dismiss_saved_cards_notice' );
142
  if ( ! isset( $must_not_show_review ) || $must_not_show_review ) {
143
+ /**
144
+ * Update if option was changed.
145
+ *
146
+ * @since 3.0.1
147
+ */
148
  update_option( '_mp_dismiss_saved_cards_notice', 0, true );
149
  }
150
  }
155
  public static function update_plugin_version() {
156
  $old_version = get_option( '_mp_version', '0' );
157
  if ( version_compare( WC_WooMercadoPago_Constants::VERSION, $old_version, '>' ) ) {
158
+ /**
159
+ * Do action mercadopago_plugin_updated.
160
+ *
161
+ * @since 3.0.1
162
+ */
163
  do_action( 'mercadopago_plugin_updated' );
164
+
165
+ /**
166
+ * Do action mercadopago_test_mode_update.
167
+ *
168
+ * @since 3.0.1
169
+ */
170
  do_action( 'mercadopago_test_mode_update' );
171
+
172
  update_option( '_mp_version', WC_WooMercadoPago_Constants::VERSION, true );
173
  }
174
  }
includes/module/class-wc-woomercadopago-module.php CHANGED
@@ -90,6 +90,15 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs {
90
  $this->load_notifications();
91
  $this->load_stock_manager();
92
 
 
 
 
 
 
 
 
 
 
93
  add_action( 'admin_enqueue_scripts', array( $this, 'load_admin_css' ) );
94
  add_action( 'admin_enqueue_scripts', array( $this, 'load_global_css' ) );
95
  add_action( 'wp_enqueue_scripts', array( $this, 'load_global_css' ) );
@@ -639,6 +648,96 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs {
639
  );
640
  }
641
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
642
  /**
643
  *
644
  * Filter Payment Method by Shipping
@@ -809,6 +908,11 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs {
809
  $has_a_gateway_in_production = true;
810
  }
811
 
 
 
 
 
 
812
  update_option( $key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $gateway::get_id(), $options ) );
813
  }
814
  }
90
  $this->load_notifications();
91
  $this->load_stock_manager();
92
 
93
+ // melidata admin scripts
94
+ add_action( 'admin_enqueue_scripts', array( $this, 'load_admin_scripts' ) );
95
+
96
+ // melidata buyer scripts
97
+ add_action( 'before_woocommerce_pay', array( $this, 'load_before_woocommerce_pay_scripts' ) );
98
+ add_action( 'woocommerce_before_checkout_form', array( $this, 'load_before_checkout_scripts' ) );
99
+ add_action( 'woocommerce_pay_order_before_submit', array( $this, 'load_pay_order_scripts' ) );
100
+ add_action( 'woocommerce_before_thankyou', array( $this, 'load_before_thankyou_scripts' ) );
101
+
102
  add_action( 'admin_enqueue_scripts', array( $this, 'load_admin_css' ) );
103
  add_action( 'admin_enqueue_scripts', array( $this, 'load_global_css' ) );
104
  add_action( 'wp_enqueue_scripts', array( $this, 'load_global_css' ) );
648
  );
649
  }
650
 
651
+ /**
652
+ * Load admin scripts
653
+ *
654
+ * @return void
655
+ */
656
+ public function load_admin_scripts() {
657
+ if ( is_admin() ) {
658
+ global $woocommerce;
659
+
660
+ $suffix = $this->get_suffix();
661
+ $site_id = get_option( '_site_id_v1' );
662
+
663
+ wp_enqueue_script(
664
+ 'mercadopago_melidata',
665
+ plugins_url( '../assets/js/melidata/melidata-client' . $suffix . '.js', plugin_dir_path( __FILE__ ) ),
666
+ array(),
667
+ WC_WooMercadoPago_Constants::VERSION,
668
+ true
669
+ );
670
+
671
+ wp_localize_script(
672
+ 'mercadopago_melidata',
673
+ 'wc_melidata_params',
674
+ array(
675
+ 'type' => 'seller',
676
+ 'site_id' => $site_id ? strtoupper( $site_id ) : 'MLA',
677
+ 'location' => '/settings',
678
+ 'plugin_version' => WC_WooMercadoPago_Constants::VERSION,
679
+ 'platform_version' => $woocommerce->version,
680
+ )
681
+ );
682
+ }
683
+ }
684
+
685
+ public function load_before_woocommerce_pay_scripts() {
686
+ $this->load_buyer_scripts('/woocommerce_pay', null);
687
+ }
688
+
689
+ public function load_before_checkout_scripts() {
690
+ $this->load_buyer_scripts('/checkout', null);
691
+ }
692
+
693
+ public function load_pay_order_scripts() {
694
+ $this->load_buyer_scripts('/pay_order', null);
695
+ }
696
+
697
+ public function load_before_thankyou_scripts( $order_id ) {
698
+ $order = wc_get_order( $order_id );
699
+
700
+ $payment_method = $order->get_payment_method();
701
+ $is_mercadopago_payment_method = in_array($payment_method, WC_WooMercadoPago_Constants::GATEWAYS_IDS, true);
702
+
703
+ if ( $is_mercadopago_payment_method ) {
704
+ $this->load_buyer_scripts('/thankyou', $payment_method);
705
+ }
706
+ }
707
+
708
+ /**
709
+ * Load buyer scripts
710
+ *
711
+ * @return void
712
+ */
713
+ public function load_buyer_scripts( $location, $payment_method ) {
714
+ global $woocommerce;
715
+
716
+ $suffix = $this->get_suffix();
717
+ $site_id = get_option( '_site_id_v1' );
718
+
719
+ wp_enqueue_script(
720
+ 'mercadopago_melidata',
721
+ plugins_url( '../assets/js/melidata/melidata-client' . $suffix . '.js', plugin_dir_path( __FILE__ ) ),
722
+ array(),
723
+ WC_WooMercadoPago_Constants::VERSION,
724
+ true
725
+ );
726
+
727
+ wp_localize_script(
728
+ 'mercadopago_melidata',
729
+ 'wc_melidata_params',
730
+ array(
731
+ 'type' => 'buyer',
732
+ 'site_id' => $site_id ? strtoupper( $site_id ) : 'MLA',
733
+ 'location' => $location,
734
+ 'payment_method' => $payment_method,
735
+ 'plugin_version' => WC_WooMercadoPago_Constants::VERSION,
736
+ 'platform_version' => $woocommerce->version,
737
+ )
738
+ );
739
+ }
740
+
741
  /**
742
  *
743
  * Filter Payment Method by Shipping
908
  $has_a_gateway_in_production = true;
909
  }
910
 
911
+ /**
912
+ * Update if options were changed.
913
+ *
914
+ * @since 3.0.1
915
+ */
916
  update_option( $key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $gateway::get_id(), $options ) );
917
  }
918
  }
includes/module/config/class-wc-woomercadopago-constants.php CHANGED
@@ -21,7 +21,7 @@ class WC_WooMercadoPago_Constants {
21
  const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG';
22
  const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0';
23
  const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
24
- const VERSION = '5.7.6';
25
  const MIN_PHP = 5.6;
26
  const API_MP_BASE_URL = 'https://api.mercadopago.com';
27
  const DATE_EXPIRATION = 3;
21
  const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG';
22
  const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0';
23
  const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
24
+ const VERSION = '5.8.0';
25
  const MIN_PHP = 5.6;
26
  const API_MP_BASE_URL = 'https://api.mercadopago.com';
27
  const DATE_EXPIRATION = 3;
includes/module/mercadopago-settings/class-wc-woomercadopago-mercadopago-settings.php CHANGED
@@ -508,6 +508,11 @@ class WC_WooMercadoPago_MercadoPago_Settings {
508
  : ( 'yes' === $old_credential_is_prod ? 'no' : 'yes' );
509
  $options['checkout_credential_prod'] = 'deprecated';
510
 
 
 
 
 
 
511
  update_option( $key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $gateway::get_id(), $options ) );
512
  }
513
  }
508
  : ( 'yes' === $old_credential_is_prod ? 'no' : 'yes' );
509
  $options['checkout_credential_prod'] = 'deprecated';
510
 
511
+ /**
512
+ * Update if options were changed.
513
+ *
514
+ * @since 3.0.1
515
+ */
516
  update_option( $key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $gateway::get_id(), $options ) );
517
  }
518
  }
includes/notification/class-wc-woomercadopago-notification-abstract.php CHANGED
@@ -182,6 +182,11 @@ abstract class WC_WooMercadoPago_Notification_Abstract {
182
  public function mp_rule_approved( $data, $order, $used_gateway ) {
183
  $order->add_order_note( 'Mercado Pago: ' . __( 'Payment approved.', 'woocommerce-mercadopago' ) );
184
 
 
 
 
 
 
185
  $payment_completed_status = apply_filters(
186
  'woocommerce_payment_complete_order_status',
187
  $order->needs_processing() ? 'processing' : 'completed',
182
  public function mp_rule_approved( $data, $order, $used_gateway ) {
183
  $order->add_order_note( 'Mercado Pago: ' . __( 'Payment approved.', 'woocommerce-mercadopago' ) );
184
 
185
+ /**
186
+ * Apply filters woocommerce_payment_complete_order_status.
187
+ *
188
+ * @since 3.0.1
189
+ */
190
  $payment_completed_status = apply_filters(
191
  'woocommerce_payment_complete_order_status',
192
  $order->needs_processing() ? 'processing' : 'completed',
includes/notification/class-wc-woomercadopago-notification-ipn.php CHANGED
@@ -57,7 +57,14 @@ class WC_WooMercadoPago_Notification_IPN extends WC_WooMercadoPago_Notification_
57
  }
58
 
59
  $ipn_info['response']['ipn_type'] = 'merchant_order';
 
 
 
 
 
 
60
  do_action( 'valid_mercadopago_ipn_request', $ipn_info['response'] );
 
61
  $this->set_response( 200, 'OK', 'Notification IPN Successfull' );
62
  }
63
  }
57
  }
58
 
59
  $ipn_info['response']['ipn_type'] = 'merchant_order';
60
+
61
+ /**
62
+ * Do action valid_mercadopago_ipn_request.
63
+ *
64
+ * @since 3.0.1
65
+ */
66
  do_action( 'valid_mercadopago_ipn_request', $ipn_info['response'] );
67
+
68
  $this->set_response( 200, 'OK', 'Notification IPN Successfull' );
69
  }
70
  }
includes/notification/class-wc-woomercadopago-notification-webhook.php CHANGED
@@ -65,9 +65,16 @@ class WC_WooMercadoPago_Notification_Webhook extends WC_WooMercadoPago_Notificat
65
  if ( 'payment' === $data['type'] ) {
66
  $access_token = $this->mp->get_access_token();
67
  $payment_info = $this->mp->get( '/v1/payments/' . $data['data_id'], array( 'Authorization' => 'Bearer ' . $access_token ), false );
 
68
  if ( ! is_wp_error( $payment_info ) && ( 200 === $payment_info['status'] || 201 === $payment_info['status'] ) ) {
69
  if ( $payment_info['response'] ) {
 
 
 
 
 
70
  do_action( 'valid_mercadopago_ipn_request', $payment_info['response'] );
 
71
  $this->set_response( 200, 'OK', 'Webhook Notification Successfull' );
72
  }
73
  } else {
65
  if ( 'payment' === $data['type'] ) {
66
  $access_token = $this->mp->get_access_token();
67
  $payment_info = $this->mp->get( '/v1/payments/' . $data['data_id'], array( 'Authorization' => 'Bearer ' . $access_token ), false );
68
+
69
  if ( ! is_wp_error( $payment_info ) && ( 200 === $payment_info['status'] || 201 === $payment_info['status'] ) ) {
70
  if ( $payment_info['response'] ) {
71
+ /**
72
+ * Do action valid_mercadopago_ipn_request.
73
+ *
74
+ * @since 3.0.1
75
+ */
76
  do_action( 'valid_mercadopago_ipn_request', $payment_info['response'] );
77
+
78
  $this->set_response( 200, 'OK', 'Webhook Notification Successfull' );
79
  }
80
  } else {
includes/payments/class-wc-woomercadopago-custom-gateway.php CHANGED
@@ -479,7 +479,7 @@ class WC_WooMercadoPago_Custom_Gateway extends WC_WooMercadoPago_Payment_Abstrac
479
  WC()->cart->empty_cart();
480
  wc_add_notice(
481
  '<p>' . $this->get_order_status( $response['status_detail'] ) . '</p>' .
482
- '<p><a class="button" href="' . esc_url( $order->get_checkout_order_received_url() ) . '">' .
483
  __( 'See your order form', 'woocommerce-mercadopago' ) .
484
  '</a></p>',
485
  'notice'
@@ -497,7 +497,7 @@ class WC_WooMercadoPago_Custom_Gateway extends WC_WooMercadoPago_Payment_Abstrac
497
  ) . '<br>' .
498
  $this->get_order_status( $response['status_detail'] ) .
499
  '</p>' .
500
- '<p><a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
501
  __( 'Click to try again', 'woocommerce-mercadopago' ) .
502
  '</a></p>',
503
  'error'
@@ -510,7 +510,7 @@ class WC_WooMercadoPago_Custom_Gateway extends WC_WooMercadoPago_Payment_Abstrac
510
  case 'in_mediation':
511
  case 'charged_back':
512
  // If we enter here (an order generating a direct [cancelled, in_mediation, or charged_back] status),
513
- // them there must be something very wrong!
514
  break;
515
  default:
516
  break;
479
  WC()->cart->empty_cart();
480
  wc_add_notice(
481
  '<p>' . $this->get_order_status( $response['status_detail'] ) . '</p>' .
482
+ '<p><a id="mp_pending_payment_button" class="button" href="' . esc_url( $order->get_checkout_order_received_url() ) . '" data-mp-checkout-type="woo-mercado-pago-' . $custom_checkout['checkout_type'] . '">' .
483
  __( 'See your order form', 'woocommerce-mercadopago' ) .
484
  '</a></p>',
485
  'notice'
497
  ) . '<br>' .
498
  $this->get_order_status( $response['status_detail'] ) .
499
  '</p>' .
500
+ '<p><a id="mp_failed_payment_button" class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '" data-mp-checkout-type="woo-mercado-pago-' . $custom_checkout['checkout_type'] . '">' .
501
  __( 'Click to try again', 'woocommerce-mercadopago' ) .
502
  '</a></p>',
503
  'error'
510
  case 'in_mediation':
511
  case 'charged_back':
512
  // If we enter here (an order generating a direct [cancelled, in_mediation, or charged_back] status),
513
+ // then there must be something very wrong!
514
  break;
515
  default:
516
  break;
includes/payments/class-wc-woomercadopago-payment-abstract.php CHANGED
@@ -571,6 +571,11 @@ class WC_WooMercadoPago_Payment_Abstract extends WC_Payment_Gateway {
571
  }
572
 
573
  if ( $changed ) {
 
 
 
 
 
574
  update_option( $this->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ) );
575
  }
576
  }
@@ -629,6 +634,11 @@ class WC_WooMercadoPago_Payment_Abstract extends WC_Payment_Gateway {
629
  * @return mixed
630
  */
631
  public function get_mp_icon() {
 
 
 
 
 
632
  return apply_filters( 'woocommerce_mercadopago_icon', plugins_url( '../assets/images/mercadopago.png', plugin_dir_path( __FILE__ ) ) );
633
  }
634
 
@@ -1151,6 +1161,12 @@ class WC_WooMercadoPago_Payment_Abstract extends WC_Payment_Gateway {
1151
  }
1152
 
1153
  $options['enabled'] = 'no';
 
 
 
 
 
 
1154
  update_option( $key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $gateway::get_id(), $options ) );
1155
  }
1156
  }
571
  }
572
 
573
  if ( $changed ) {
574
+ /**
575
+ * Update if options were changed.
576
+ *
577
+ * @since 3.0.1
578
+ */
579
  update_option( $this->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ) );
580
  }
581
  }
634
  * @return mixed
635
  */
636
  public function get_mp_icon() {
637
+ /**
638
+ * Add Mercado Pago icon.
639
+ *
640
+ * @since 3.0.1
641
+ */
642
  return apply_filters( 'woocommerce_mercadopago_icon', plugins_url( '../assets/images/mercadopago.png', plugin_dir_path( __FILE__ ) ) );
643
  }
644
 
1161
  }
1162
 
1163
  $options['enabled'] = 'no';
1164
+
1165
+ /**
1166
+ * Update if options were changed
1167
+ *
1168
+ * @since 3.0.1
1169
+ */
1170
  update_option( $key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $gateway::get_id(), $options ) );
1171
  }
1172
  }
includes/payments/hooks/class-wc-woomercadopago-hook-abstract.php CHANGED
@@ -111,13 +111,21 @@ abstract class WC_WooMercadoPago_Hook_Abstract {
111
  && WC()->session->chosen_payment_method === $this->payment->id
112
  ) {
113
  $this->payment->log->write_log( __FUNCTION__, $this->class . 'trying to apply discount...' );
 
114
  $value = (
115
  'COP' === $this->payment->site_data['currency']
116
  || 'CLP' === $this->payment->site_data['currency']
117
- ) ?
118
- floor( $checkout['discount'] / $checkout['currency_ratio'] )
119
- : floor( $checkout['discount'] / $checkout['currency_ratio'] * 100 ) / 100;
 
120
  global $woocommerce;
 
 
 
 
 
 
121
  if ( apply_filters( 'wc_mercadopago_custommodule_apply_discount', 0 < $value, $woocommerce->cart ) ) {
122
  $woocommerce->cart->add_fee(
123
  sprintf(
@@ -273,6 +281,11 @@ abstract class WC_WooMercadoPago_Hook_Abstract {
273
  $this->payment->settings
274
  );
275
 
 
 
 
 
 
276
  return update_option( $this->payment->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->payment->id, $this->payment->settings ) );
277
  }
278
 
111
  && WC()->session->chosen_payment_method === $this->payment->id
112
  ) {
113
  $this->payment->log->write_log( __FUNCTION__, $this->class . 'trying to apply discount...' );
114
+
115
  $value = (
116
  'COP' === $this->payment->site_data['currency']
117
  || 'CLP' === $this->payment->site_data['currency']
118
+ )
119
+ ? floor( $checkout['discount'] / $checkout['currency_ratio'] )
120
+ : floor( $checkout['discount'] / $checkout['currency_ratio'] * 100 ) / 100;
121
+
122
  global $woocommerce;
123
+
124
+ /**
125
+ * Apply discount filter.
126
+ *
127
+ * @since 3.0.1
128
+ */
129
  if ( apply_filters( 'wc_mercadopago_custommodule_apply_discount', 0 < $value, $woocommerce->cart ) ) {
130
  $woocommerce->cart->add_fee(
131
  sprintf(
281
  $this->payment->settings
282
  );
283
 
284
+ /**
285
+ * Update if options were changed.
286
+ *
287
+ * @since 3.0.1
288
+ */
289
  return update_option( $this->payment->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->payment->id, $this->payment->settings ) );
290
  }
291
 
includes/stock/class-wc-woomercadopago-stock-manager.php CHANGED
@@ -39,6 +39,11 @@ class WC_WooMercadoPago_Stock_Manager {
39
  public static function restore_stock_item( $order_id ) {
40
  $order = wc_get_order( $order_id );
41
 
 
 
 
 
 
42
  if ( ! $order || 'yes' !== get_option( 'woocommerce_manage_stock' ) || ! apply_filters( 'woocommerce_can_reduce_order_stock', true, $order ) ) {
43
  return;
44
  }
@@ -55,9 +60,22 @@ class WC_WooMercadoPago_Stock_Manager {
55
  foreach ( $order->get_items() as $item ) {
56
  if ( $item['product_id'] > 0 ) {
57
  $_product = wc_get_product( $item['product_id'] );
 
58
  if ( $_product && $_product->exists() && $_product->managing_stock() ) {
 
 
 
 
 
59
  $qty = apply_filters( 'woocommerce_order_item_quantity', $item['qty'], $order, $item );
 
60
  wc_update_product_stock( $_product, $qty, 'increase' );
 
 
 
 
 
 
61
  do_action( 'woocommerce_auto_stock_restored', $_product, $item );
62
  }
63
  }
39
  public static function restore_stock_item( $order_id ) {
40
  $order = wc_get_order( $order_id );
41
 
42
+ /**
43
+ * Apply filters woocommerce_can_reduce_order_stock.
44
+ *
45
+ * @since 3.0.1
46
+ */
47
  if ( ! $order || 'yes' !== get_option( 'woocommerce_manage_stock' ) || ! apply_filters( 'woocommerce_can_reduce_order_stock', true, $order ) ) {
48
  return;
49
  }
60
  foreach ( $order->get_items() as $item ) {
61
  if ( $item['product_id'] > 0 ) {
62
  $_product = wc_get_product( $item['product_id'] );
63
+
64
  if ( $_product && $_product->exists() && $_product->managing_stock() ) {
65
+ /**
66
+ * Apply filters woocommerce_order_item_quantity.
67
+ *
68
+ * @since 3.0.1
69
+ */
70
  $qty = apply_filters( 'woocommerce_order_item_quantity', $item['qty'], $order, $item );
71
+
72
  wc_update_product_stock( $_product, $qty, 'increase' );
73
+
74
+ /**
75
+ * Do action woocommerce_auto_stock_restored.
76
+ *
77
+ * @since 3.0.1
78
+ */
79
  do_action( 'woocommerce_auto_stock_restored', $_product, $item );
80
  }
81
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce
4
  Requires at least: 4.9.10
5
  Tested up to: 5.9
6
  Requires PHP: 5.6
7
- Stable tag: 5.7.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -133,6 +133,13 @@ Set up both the plugin and the checkouts you want to activate on your payment av
133
  Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks/plugins/official/woo-commerce/">official documentation</a> for more information on the specific fields to configure.
134
 
135
  == Changelog ==
 
 
 
 
 
 
 
136
  = v5.7.6 (19/04/2022) =
137
  * Bug fixes
138
  - Adjusted IPN notification to recognize discount coupon
4
  Requires at least: 4.9.10
5
  Tested up to: 5.9
6
  Requires PHP: 5.6
7
+ Stable tag: 5.8.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
133
  Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks/plugins/official/woo-commerce/">official documentation</a> for more information on the specific fields to configure.
134
 
135
  == Changelog ==
136
+ = v5.8.0 (07/06/2022) =
137
+ * Features
138
+ - Added melidata script to collect metrics from plugin
139
+
140
+ * Bug fixes
141
+ - Changed mp logo
142
+
143
  = v5.7.6 (19/04/2022) =
144
  * Bug fixes
145
  - Adjusted IPN notification to recognize discount coupon
templates/checkout/basic-checkout.php CHANGED
@@ -18,67 +18,70 @@ if ( ! defined( 'ABSPATH' ) ) {
18
  // @codingStandardsIgnoreLine
19
  echo $checkout_alert_test_mode;
20
  ?>
 
21
  <div class="mp-row-checkout">
22
  <?php if ( 0 !== (int) $credito ) : ?>
23
- <div id="framePayments" class="mp-col-md-12">
24
- <div class="frame-tarjetas">
25
- <p class="mp-subtitle-basic-checkout">
26
- <?php echo esc_html_e( 'Credit cards', 'woocommerce-mercadopago' ); ?>
27
- <span class="mp-badge-checkout"><?php echo esc_html_e( 'Until', 'woocommerce-mercadopago' ); ?> <?php echo esc_html( $installments ); ?>
28
- <?php if ( '1' === $installments ) : ?>
29
- <?php echo esc_html_e( 'installment', 'woocommerce-mercadopago' ); ?>
30
- <?php else : ?>
31
- <?php echo esc_html_e( 'installments', 'woocommerce-mercadopago' ); ?>
32
- <?php endif; ?></span>
33
- </p>
34
- <?php foreach ( $tarjetas as $tarjeta ) : ?>
35
- <?php if ( 'credit_card' === $tarjeta['type'] ) : ?>
36
- <img src="<?php echo esc_html( $tarjeta['image'] ); ?>" class="mp-img-fluid mp-img-tarjetas" alt=""/>
37
- <?php endif; ?>
38
- <?php endforeach; ?>
 
 
39
  </div>
40
- </div>
41
  <?php endif; ?>
42
 
43
  <?php if ( 0 !== $debito ) : ?>
44
- <div id="framePayments" class="mp-col-md-6 mp-pr-15">
45
- <div class="frame-tarjetas">
46
- <p class="submp-title-checkout"><?php echo esc_html_e( 'Debit card', 'woocommerce-mercadopago' ); ?></p>
47
 
48
- <?php foreach ( $tarjetas as $tarjeta ) : ?>
49
- <?php if ( 'debit_card' === $tarjeta['type'] || 'prepaid_card' === $tarjeta['type'] ) : ?>
50
- <img src="<?php echo esc_html( $tarjeta['image'] ); ?>" class="mp-img-fluid mp-img-tarjetas" alt="" />
51
- <?php endif; ?>
52
- <?php endforeach; ?>
53
- </div>
54
  </div>
55
  <?php endif; ?>
56
 
57
  <?php if ( 0 !== $efectivo ) : ?>
58
- <div id="framePayments" class="mp-col-md-6">
59
- <div class="frame-tarjetas">
60
- <p class="submp-title-checkout"><?php echo esc_html_e( 'Payments in cash', 'woocommerce-mercadopago' ); ?></p>
61
 
62
- <?php foreach ( $tarjetas as $tarjeta ) : ?>
63
- <?php if ( 'credit_card' !== $tarjeta['type'] && 'debit_card' !== $tarjeta['type'] && 'prepaid_card' !== $tarjeta['type'] ) : ?>
64
- <img src="<?php echo esc_html( $tarjeta['image'] ); ?>" class="mp-img-fluid mp-img-tarjetas" alt=""/>
65
- <?php endif; ?>
66
- <?php endforeach; ?>
 
67
  </div>
68
- </div>
69
  <?php endif; ?>
70
 
71
  <?php if ( 'redirect' === $method ) : ?>
72
- <div class="mp-col-md-12 mp-pt-20">
73
- <div class="mp-redirect-frame">
74
- <img src="<?php echo esc_html( $cho_image ); ?>" class="mp-img-fluid mp-img-redirect" alt=""/>
75
- <p><?php echo esc_html_e( 'We take you to our site to complete the payment', 'woocommerce-mercadopago' ); ?></p>
 
76
  </div>
77
- </div>
78
  <?php endif; ?>
79
 
80
  </div>
81
  </div>
 
82
  <!-- Terms and conditions link at checkout -->
83
  <div>
84
  <p class="mp-terms-and-conditions">
18
  // @codingStandardsIgnoreLine
19
  echo $checkout_alert_test_mode;
20
  ?>
21
+
22
  <div class="mp-row-checkout">
23
  <?php if ( 0 !== (int) $credito ) : ?>
24
+ <div id="framePayments" class="mp-col-md-12">
25
+ <div class="frame-tarjetas">
26
+ <p class="mp-subtitle-basic-checkout">
27
+ <?php echo esc_html_e( 'Credit cards', 'woocommerce-mercadopago' ); ?>
28
+ <span class="mp-badge-checkout"><?php echo esc_html_e( 'Until', 'woocommerce-mercadopago' ); ?> <?php echo esc_html( $installments ); ?>
29
+ <?php if ( '1' === $installments ) : ?>
30
+ <?php echo esc_html_e( 'installment', 'woocommerce-mercadopago' ); ?>
31
+ <?php else : ?>
32
+ <?php echo esc_html_e( 'installments', 'woocommerce-mercadopago' ); ?>
33
+ <?php endif; ?></span>
34
+ </p>
35
+
36
+ <?php foreach ( $tarjetas as $tarjeta ) : ?>
37
+ <?php if ( 'credit_card' === $tarjeta['type'] ) : ?>
38
+ <img src="<?php echo esc_html( $tarjeta['image'] ); ?>" class="mp-img-fluid mp-img-tarjetas" alt=""/>
39
+ <?php endif; ?>
40
+ <?php endforeach; ?>
41
+ </div>
42
  </div>
 
43
  <?php endif; ?>
44
 
45
  <?php if ( 0 !== $debito ) : ?>
46
+ <div id="framePayments" class="mp-col-md-6 mp-pr-15">
47
+ <div class="frame-tarjetas">
48
+ <p class="submp-title-checkout"><?php echo esc_html_e( 'Debit card', 'woocommerce-mercadopago' ); ?></p>
49
 
50
+ <?php foreach ( $tarjetas as $tarjeta ) : ?>
51
+ <?php if ( 'debit_card' === $tarjeta['type'] || 'prepaid_card' === $tarjeta['type'] ) : ?>
52
+ <img src="<?php echo esc_html( $tarjeta['image'] ); ?>" class="mp-img-fluid mp-img-tarjetas" alt="" />
53
+ <?php endif; ?>
54
+ <?php endforeach; ?>
55
+ </div>
56
  </div>
57
  <?php endif; ?>
58
 
59
  <?php if ( 0 !== $efectivo ) : ?>
60
+ <div id="framePayments" class="mp-col-md-6">
61
+ <div class="frame-tarjetas">
62
+ <p class="submp-title-checkout"><?php echo esc_html_e( 'Payments in cash', 'woocommerce-mercadopago' ); ?></p>
63
 
64
+ <?php foreach ( $tarjetas as $tarjeta ) : ?>
65
+ <?php if ( 'credit_card' !== $tarjeta['type'] && 'debit_card' !== $tarjeta['type'] && 'prepaid_card' !== $tarjeta['type'] ) : ?>
66
+ <img src="<?php echo esc_html( $tarjeta['image'] ); ?>" class="mp-img-fluid mp-img-tarjetas" alt=""/>
67
+ <?php endif; ?>
68
+ <?php endforeach; ?>
69
+ </div>
70
  </div>
 
71
  <?php endif; ?>
72
 
73
  <?php if ( 'redirect' === $method ) : ?>
74
+ <div class="mp-col-md-12 mp-pt-20">
75
+ <div class="mp-redirect-frame">
76
+ <img src="<?php echo esc_html( $cho_image ); ?>" class="mp-img-fluid mp-img-redirect" alt=""/>
77
+ <p><?php echo esc_html_e( 'We take you to our site to complete the payment', 'woocommerce-mercadopago' ); ?></p>
78
+ </div>
79
  </div>
 
80
  <?php endif; ?>
81
 
82
  </div>
83
  </div>
84
+
85
  <!-- Terms and conditions link at checkout -->
86
  <div>
87
  <p class="mp-terms-and-conditions">
templates/mercadopago-settings/mercadopago-settings.php CHANGED
@@ -73,7 +73,11 @@ if ( ! defined( 'ABSPATH' ) ) {
73
  </p>
74
  </div>
75
  <div>
76
- <a target="_blank" href="<?php echo esc_html($links['link_costs']); ?>"><button class="mp-button"><?php echo esc_html($translation_header['button_installments']); ?></button></a>
 
 
 
 
77
  </div>
78
  </div>
79
  </div>
@@ -84,7 +88,11 @@ if ( ! defined( 'ABSPATH' ) ) {
84
  <p class="mp-settings-font-color mp-settings-subtitle-font-size mp-settings-title-color"><?php echo esc_html($translation_header['descripition_questions_one']); ?> <b><span><?php echo esc_html($translation_header['descripition_questions_two']); ?></b></span><?php echo esc_html($translation_header['descripition_questions_three']); ?></p>
85
  </div>
86
  <div>
87
- <a target="_blank" href="<?php echo esc_html($links['link_guides_plugin']); ?>"><button class="mp-button mp-button-light-blue"> <?php echo esc_html($translation_header['button_questions']); ?></button></a>
 
 
 
 
88
  </div>
89
  </div>
90
  </div>
@@ -93,7 +101,7 @@ if ( ! defined( 'ABSPATH' ) ) {
93
 
94
  <hr class="mp-settings-hr"/>
95
  <div class="mp-settings-credentials">
96
- <div class="mp-settings-title-align">
97
  <div class="mp-settings-title-container">
98
  <span class="mp-settings-font-color mp-settings-title-blocks mp-settings-margin-right"><?php echo esc_html($translation_credential['title_credentials']); ?></span>
99
  <img class="mp-settings-margin-left mp-settings-margin-right" id="mp-settings-icon-credentials">
@@ -107,7 +115,11 @@ if ( ! defined( 'ABSPATH' ) ) {
107
  <p class="mp-settings-subtitle-font-size mp-settings-title-color"><?php echo esc_html($translation_credential['subtitle_credentials_one']); ?> <b><?php echo esc_html($translation_credential['subtitle_credentials_two']); ?></b></p>
108
  </div>
109
  <div class="mp-message-credentials">
110
- <a class="mp-heading-credentials" target="_blank" href="<?php echo esc_html($links['link_credentials']); ?>"><button class="mp-button mp-button-light-blue"> <?php echo esc_html($translation_credential['button_link_credentials']); ?></button></a>
 
 
 
 
111
  </div>
112
  <div class="mp-container">
113
  <div class="mp-block mp-block-flex mp-settings-margin-right">
@@ -141,7 +153,7 @@ if ( ! defined( 'ABSPATH' ) ) {
141
 
142
  <hr class="mp-settings-hr"/>
143
  <div class="mp-settings-credentials">
144
- <div class="mp-settings-title-align">
145
  <div class="mp-settings-title-container">
146
  <span class="mp-settings-font-color mp-settings-title-blocks mp-settings-margin-right"><?php echo esc_html($translation_store['title_store']); ?></span>
147
  <img class="mp-settings-margin-left mp-settings-margin-right" id="mp-settings-icon-store">
@@ -198,7 +210,7 @@ if ( ! defined( 'ABSPATH' ) ) {
198
  </p>
199
  <div>
200
  <p class="mp-settings-blue-text" id="options">
201
- <?php echo esc_html($translation_store['accordion_advanced_store']); ?>
202
  </p>
203
  <div class="mp-settings-advanced-options" style="display:none">
204
  <div class="mp-settings-standard-margin">
@@ -243,7 +255,7 @@ if ( ! defined( 'ABSPATH' ) ) {
243
 
244
  <hr class="mp-settings-hr"/>
245
  <div class="mp-settings-payment">
246
- <div class="mp-settings-title-align">
247
  <div class="mp-settings-title-container">
248
  <span class="mp-settings-font-color mp-settings-title-blocks mp-settings-margin-right"><?php echo esc_html($translation_payment['title_payments']); ?></span>
249
  <img class="mp-settings-margin-left mp-settings-margin-right" id="mp-settings-icon-payment">
@@ -260,7 +272,7 @@ if ( ! defined( 'ABSPATH' ) ) {
260
  </div>
261
  <hr class="mp-settings-hr" />
262
  <div class="mp-settings-mode">
263
- <div class="mp-settings-title-align">
264
  <div class="mp-settings-title-container">
265
  <span class="mp-settings-font-color mp-settings-title-blocks mp-settings-margin-right"><?php echo esc_html($translation_test_mode['title_test_mode']); ?></span>
266
  <div id="mp-mode-badge" class="mp-settings-margin-left mp-settings-margin-right <?php echo esc_html('yes' === ( $checkbox_checkout_test_mode ) ? 'mp-settings-test-mode-alert' : 'mp-settings-prod-mode-alert'); ?> ">
@@ -282,9 +294,18 @@ if ( ! defined( 'ABSPATH' ) ) {
282
  <input name="mp-test-prod" type="radio" class="mp-settings-radio-button" value='yes' <?php echo esc_html(( 'yes' === $checkbox_checkout_test_mode ) ? 'checked' : ''); ?> >
283
  </div>
284
  <div>
285
- <span class="mp-settings-subtitle-font-size mp-settings-font-color"><?php echo esc_html($translation_test_mode['title_test']); ?></span><br>
 
 
 
286
 
287
- <span class="mp-settings-subtitle-font-size mp-settings-title-color"><?php echo esc_html( $translation_test_mode['subtitle_test'] ); ?><span> <a class="mp-settings-blue-text" target="_blank" href="<?php echo esc_html($devsite_links['shopping_testing']); ?>"><?php echo esc_html($translation_test_mode['subtitle_test_link']); ?></a><span></span>
 
 
 
 
 
 
288
  </div>
289
  </div>
290
  <div class="mp-settings-mode-container">
73
  </p>
74
  </div>
75
  <div>
76
+ <a target="_blank" href="<?php echo esc_html($links['link_costs']); ?>">
77
+ <button class="mp-button" id="mp-set-installments-button">
78
+ <?php echo esc_html($translation_header['button_installments']); ?>
79
+ </button>
80
+ </a>
81
  </div>
82
  </div>
83
  </div>
88
  <p class="mp-settings-font-color mp-settings-subtitle-font-size mp-settings-title-color"><?php echo esc_html($translation_header['descripition_questions_one']); ?> <b><span><?php echo esc_html($translation_header['descripition_questions_two']); ?></b></span><?php echo esc_html($translation_header['descripition_questions_three']); ?></p>
89
  </div>
90
  <div>
91
+ <a target="_blank" href="<?php echo esc_html($links['link_guides_plugin']); ?>">
92
+ <button id="mp-plugin-guide-button" class="mp-button mp-button-light-blue">
93
+ <?php echo esc_html($translation_header['button_questions']); ?>
94
+ </button>
95
+ </a>
96
  </div>
97
  </div>
98
  </div>
101
 
102
  <hr class="mp-settings-hr"/>
103
  <div class="mp-settings-credentials">
104
+ <div id="mp-settings-step-one" class="mp-settings-title-align">
105
  <div class="mp-settings-title-container">
106
  <span class="mp-settings-font-color mp-settings-title-blocks mp-settings-margin-right"><?php echo esc_html($translation_credential['title_credentials']); ?></span>
107
  <img class="mp-settings-margin-left mp-settings-margin-right" id="mp-settings-icon-credentials">
115
  <p class="mp-settings-subtitle-font-size mp-settings-title-color"><?php echo esc_html($translation_credential['subtitle_credentials_one']); ?> <b><?php echo esc_html($translation_credential['subtitle_credentials_two']); ?></b></p>
116
  </div>
117
  <div class="mp-message-credentials">
118
+ <a class="mp-heading-credentials" target="_blank" href="<?php echo esc_html($links['link_credentials']); ?>">
119
+ <button id="mp-get-credentials-button" class="mp-button mp-button-light-blue">
120
+ <?php echo esc_html($translation_credential['button_link_credentials']); ?>
121
+ </button>
122
+ </a>
123
  </div>
124
  <div class="mp-container">
125
  <div class="mp-block mp-block-flex mp-settings-margin-right">
153
 
154
  <hr class="mp-settings-hr"/>
155
  <div class="mp-settings-credentials">
156
+ <div id="mp-settings-step-two" class="mp-settings-title-align">
157
  <div class="mp-settings-title-container">
158
  <span class="mp-settings-font-color mp-settings-title-blocks mp-settings-margin-right"><?php echo esc_html($translation_store['title_store']); ?></span>
159
  <img class="mp-settings-margin-left mp-settings-margin-right" id="mp-settings-icon-store">
210
  </p>
211
  <div>
212
  <p class="mp-settings-blue-text" id="options">
213
+ <?php echo esc_html($translation_store['accordion_advanced_store']); ?>
214
  </p>
215
  <div class="mp-settings-advanced-options" style="display:none">
216
  <div class="mp-settings-standard-margin">
255
 
256
  <hr class="mp-settings-hr"/>
257
  <div class="mp-settings-payment">
258
+ <div id="mp-settings-step-three" class="mp-settings-title-align">
259
  <div class="mp-settings-title-container">
260
  <span class="mp-settings-font-color mp-settings-title-blocks mp-settings-margin-right"><?php echo esc_html($translation_payment['title_payments']); ?></span>
261
  <img class="mp-settings-margin-left mp-settings-margin-right" id="mp-settings-icon-payment">
272
  </div>
273
  <hr class="mp-settings-hr" />
274
  <div class="mp-settings-mode">
275
+ <div id="mp-settings-step-four" class="mp-settings-title-align">
276
  <div class="mp-settings-title-container">
277
  <span class="mp-settings-font-color mp-settings-title-blocks mp-settings-margin-right"><?php echo esc_html($translation_test_mode['title_test_mode']); ?></span>
278
  <div id="mp-mode-badge" class="mp-settings-margin-left mp-settings-margin-right <?php echo esc_html('yes' === ( $checkbox_checkout_test_mode ) ? 'mp-settings-test-mode-alert' : 'mp-settings-prod-mode-alert'); ?> ">
294
  <input name="mp-test-prod" type="radio" class="mp-settings-radio-button" value='yes' <?php echo esc_html(( 'yes' === $checkbox_checkout_test_mode ) ? 'checked' : ''); ?> >
295
  </div>
296
  <div>
297
+ <span class="mp-settings-subtitle-font-size mp-settings-font-color">
298
+ <?php echo esc_html($translation_test_mode['title_test']); ?>
299
+ </span>
300
+ <br>
301
 
302
+ <span class="mp-settings-subtitle-font-size mp-settings-title-color">
303
+ <?php echo esc_html( $translation_test_mode['subtitle_test'] ); ?>
304
+ <span>
305
+ <a id="mp-test-mode-rules-link" class="mp-settings-blue-text" target="_blank" href="<?php echo esc_html($devsite_links['shopping_testing']); ?>">
306
+ <?php echo esc_html($translation_test_mode['subtitle_test_link']); ?>
307
+ </a>
308
+ <span></span>
309
  </div>
310
  </div>
311
  <div class="mp-settings-mode-container">
woocommerce-mercadopago.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Mercado Pago payments for WooCommerce
4
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
5
  * Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
6
- * Version: 5.7.6
7
  * Author: Mercado Pago
8
  * Author URI: https://developers.mercadopago.com/
9
  * Text Domain: woocommerce-mercadopago
3
  * Plugin Name: Mercado Pago payments for WooCommerce
4
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
5
  * Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
6
+ * Version: 5.8.0
7
  * Author: Mercado Pago
8
  * Author URI: https://developers.mercadopago.com/
9
  * Text Domain: woocommerce-mercadopago