Version Description
Download this release
Release Info
| Developer | mercadopago |
| Plugin | |
| Version | 3.0.10 |
| Comparing to | |
| See all releases | |
Code changes from version 3.0.9 to 3.0.10
- assets/css/custom_checkout_mercadopago.css +64 -3
- i18n/languages/woocommerce-mercadopago-es_AR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_AR.po +9 -0
- i18n/languages/woocommerce-mercadopago-es_CL.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CL.po +9 -0
- i18n/languages/woocommerce-mercadopago-es_CO.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CO.po +9 -0
- i18n/languages/woocommerce-mercadopago-es_ES.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_ES.po +9 -0
- i18n/languages/woocommerce-mercadopago-es_MX.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_MX.po +9 -0
- i18n/languages/woocommerce-mercadopago-es_PE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_PE.po +9 -0
- i18n/languages/woocommerce-mercadopago-es_UY.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_UY.po +9 -0
- i18n/languages/woocommerce-mercadopago-es_VE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_VE.po +9 -0
- i18n/languages/woocommerce-mercadopago-pt_BR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-pt_BR.po +9 -0
- i18n/languages/woocommerce-mercadopago.pot +9 -0
- includes/sdk/lib/mercadopago.php +1 -1
- readme.txt +6 -1
- templates/credit-card/payment-form.php +112 -70
- templates/ticket/ticket-form.php +38 -19
- woocommerce-mercadopago.php +2 -2
assets/css/custom_checkout_mercadopago.css
CHANGED
|
@@ -69,7 +69,7 @@ body{
|
|
| 69 |
|
| 70 |
.mp-box-inputs label{
|
| 71 |
text-transform: uppercase;
|
| 72 |
-
font-size:
|
| 73 |
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
| 74 |
margin: 0 0 5px 0;
|
| 75 |
display: block;
|
|
@@ -87,6 +87,7 @@ body{
|
|
| 87 |
border-radius: 3px;
|
| 88 |
color: #666;
|
| 89 |
height: 40px;
|
|
|
|
| 90 |
}
|
| 91 |
|
| 92 |
.mp-box-inputs input:focus, .mp-box-inputs select:focus{
|
|
@@ -234,7 +235,7 @@ body{
|
|
| 234 |
.form-control-mine {
|
| 235 |
width: 100%;
|
| 236 |
padding: 5px;
|
| 237 |
-
font-size:
|
| 238 |
color: #555;
|
| 239 |
background-color: #fff;
|
| 240 |
background-image: none;
|
|
@@ -247,8 +248,15 @@ select#fixed {
|
|
| 247 |
-webkit-appearance: none;
|
| 248 |
}
|
| 249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 250 |
.mensagem-febraban{
|
| 251 |
-
text-transform:
|
| 252 |
font-size: 12px;
|
| 253 |
display: block;
|
| 254 |
margin-top: 8px;
|
|
@@ -256,6 +264,59 @@ select#fixed {
|
|
| 256 |
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
| 257 |
}
|
| 258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
/*
|
| 260 |
*
|
| 261 |
*
|
| 69 |
|
| 70 |
.mp-box-inputs label{
|
| 71 |
text-transform: uppercase;
|
| 72 |
+
font-size: 10px;
|
| 73 |
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
| 74 |
margin: 0 0 5px 0;
|
| 75 |
display: block;
|
| 87 |
border-radius: 3px;
|
| 88 |
color: #666;
|
| 89 |
height: 40px;
|
| 90 |
+
vertical-align: middle;
|
| 91 |
}
|
| 92 |
|
| 93 |
.mp-box-inputs input:focus, .mp-box-inputs select:focus{
|
| 235 |
.form-control-mine {
|
| 236 |
width: 100%;
|
| 237 |
padding: 5px;
|
| 238 |
+
font-size: 14px;
|
| 239 |
color: #555;
|
| 240 |
background-color: #fff;
|
| 241 |
background-image: none;
|
| 248 |
-webkit-appearance: none;
|
| 249 |
}
|
| 250 |
|
| 251 |
+
.mensagem-credit-card{
|
| 252 |
+
font-size: 10px;
|
| 253 |
+
margin-top: 8px;
|
| 254 |
+
margin-bottom: 16px;
|
| 255 |
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
.mensagem-febraban{
|
| 259 |
+
text-transform: none;
|
| 260 |
font-size: 12px;
|
| 261 |
display: block;
|
| 262 |
margin-top: 8px;
|
| 264 |
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
| 265 |
}
|
| 266 |
|
| 267 |
+
.mensagem-ticket{
|
| 268 |
+
text-transform: none;
|
| 269 |
+
font-size: 12px;
|
| 270 |
+
display: block;
|
| 271 |
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
| 272 |
+
text-align: center;
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
/* Tooltip container */
|
| 276 |
+
.tooltip {
|
| 277 |
+
position: relative;
|
| 278 |
+
display: inline-block;
|
| 279 |
+
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
/* Tooltip text */
|
| 283 |
+
.tooltip .tooltiptext {
|
| 284 |
+
visibility: hidden;
|
| 285 |
+
width: 280px;
|
| 286 |
+
background-color: #333333;
|
| 287 |
+
color: #fff;
|
| 288 |
+
text-transform: none;
|
| 289 |
+
text-align: center;
|
| 290 |
+
padding: 5px 0;
|
| 291 |
+
border-radius: 6px;
|
| 292 |
+
margin-top: 4px;
|
| 293 |
+
|
| 294 |
+
/* Position the tooltip text - see examples below! */
|
| 295 |
+
position: absolute;
|
| 296 |
+
z-index: 1;
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
/* Show the tooltip text when you mouse over the tooltip container */
|
| 300 |
+
.tooltip:hover .tooltiptext {
|
| 301 |
+
visibility: visible;
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
.twenty-seventeen-cc-header {
|
| 305 |
+
width: 100%;
|
| 306 |
+
height: 64px;
|
| 307 |
+
margin-bottom: 2px;
|
| 308 |
+
padding: 16px 32px 8px 32px;
|
| 309 |
+
background: white;
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
.other-themes-cc-header {
|
| 313 |
+
width: 100%;
|
| 314 |
+
height: 48px;
|
| 315 |
+
margin-bottom: 2px;
|
| 316 |
+
padding: 16px 16px 8px 16px;
|
| 317 |
+
background: white;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
/*
|
| 321 |
*
|
| 322 |
*
|
i18n/languages/woocommerce-mercadopago-es_AR.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_AR.po
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr "Número"
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr "CVV"
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr "Información obligatoria"
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr "Nota: confirmación después de la aprobación"
|
i18n/languages/woocommerce-mercadopago-es_CL.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_CL.po
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr "Número"
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr "CVV"
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr "Información obligatoria"
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr "Nota: confirmación después de la aprobación"
|
i18n/languages/woocommerce-mercadopago-es_CO.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_CO.po
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr "Número"
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr "CVV"
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr "Información obligatoria"
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr "Nota: confirmación después de la aprobación"
|
i18n/languages/woocommerce-mercadopago-es_ES.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_ES.po
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr "Número"
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr "CVV"
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr "Información obligatoria"
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr "Nota: confirmación después de la aprobación"
|
i18n/languages/woocommerce-mercadopago-es_MX.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_MX.po
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr "Número"
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr "CVV"
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr "Información obligatoria"
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr "Nota: confirmación después de la aprobación"
|
i18n/languages/woocommerce-mercadopago-es_PE.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_PE.po
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr "Número"
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr "CVV"
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr "Información obligatoria"
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr "Nota: confirmación después de la aprobación"
|
i18n/languages/woocommerce-mercadopago-es_UY.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_UY.po
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr "Número"
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr "CVV"
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr "Información obligatoria"
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr "Nota: confirmación después de la aprobación"
|
i18n/languages/woocommerce-mercadopago-es_VE.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_VE.po
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr "Número"
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr "CVV"
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr "Información obligatoria"
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr "Nota: confirmación después de la aprobación"
|
i18n/languages/woocommerce-mercadopago-pt_BR.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-pt_BR.po
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr "Número"
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr "Complemento"
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr "CVV"
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr "Informações obrigatórias"
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr "Nota: confirmação após aprovação do pagamento"
|
i18n/languages/woocommerce-mercadopago.pot
CHANGED
|
@@ -1029,3 +1029,12 @@ msgstr ""
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
|
| 1030 |
msgid "Address Additional Info"
|
| 1031 |
msgstr ""
|
| 1032 |
+
|
| 1033 |
+
msgid "CVC"
|
| 1034 |
+
msgstr ""
|
| 1035 |
+
|
| 1036 |
+
msgid "Needed informations"
|
| 1037 |
+
msgstr ""
|
| 1038 |
+
|
| 1039 |
+
msgid "Note: Confirmation under payment approval."
|
| 1040 |
+
msgstr ""
|
includes/sdk/lib/mercadopago.php
CHANGED
|
@@ -12,7 +12,7 @@ $GLOBALS['LIB_LOCATION'] = dirname( __FILE__ );
|
|
| 12 |
|
| 13 |
class MP {
|
| 14 |
|
| 15 |
-
private $version = '3.0.
|
| 16 |
private $client_id;
|
| 17 |
private $client_secret;
|
| 18 |
private $ll_access_token;
|
| 12 |
|
| 13 |
class MP {
|
| 14 |
|
| 15 |
+
private $version = '3.0.10';
|
| 16 |
private $client_id;
|
| 17 |
private $client_secret;
|
| 18 |
private $ll_access_token;
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce
|
|
| 4 |
Requires at least: 4.8
|
| 5 |
Tested up to: 4.8
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 3.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -215,6 +215,11 @@ Features: LatAm Basic Checkout support. Great for merchants who want to get goin
|
|
| 215 |
|
| 216 |
== Changelog ==
|
| 217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
= v3.0.9 (16/01/2018) =
|
| 219 |
* Bug fixes
|
| 220 |
- Fixed a bug in the URL of product image;
|
| 4 |
Requires at least: 4.8
|
| 5 |
Tested up to: 4.8
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 3.0.10
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 215 |
|
| 216 |
== Changelog ==
|
| 217 |
|
| 218 |
+
= v3.0.10 (29/01/2018) =
|
| 219 |
+
* Improvements
|
| 220 |
+
- Improved layout in Credit Card and Ticket forms;
|
| 221 |
+
- Improved support to WordPress themes.
|
| 222 |
+
|
| 223 |
= v3.0.9 (16/01/2018) =
|
| 224 |
* Bug fixes
|
| 225 |
- Fixed a bug in the URL of product image;
|
templates/credit-card/payment-form.php
CHANGED
|
@@ -14,31 +14,33 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 14 |
|
| 15 |
?>
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
</div>
|
| 27 |
|
| 28 |
<fieldset id="custom_checkout_fieldset" style="margin:-1px; background:white; display: none;">
|
| 29 |
|
| 30 |
-
<div class="mp-box-inputs mp-line" id="mercadopago-form-coupon" style="padding:0px 12px
|
| 31 |
<label for="couponCodeLabel">
|
| 32 |
<?php echo esc_html__( 'Discount Coupon', 'woocommerce-mercadopago' ); ?>
|
| 33 |
</label>
|
| 34 |
-
<div class="mp-box-inputs mp-col-
|
| 35 |
-
|
| 36 |
-
autocomplete="off" maxlength="24"/>
|
| 37 |
</div>
|
| 38 |
<div class="mp-box-inputs mp-col-10">
|
| 39 |
<div id="mp-separete-date"></div>
|
| 40 |
</div>
|
| 41 |
-
<div class="mp-box-inputs mp-col-
|
| 42 |
<input type="button" class="button" id="applyCoupon"
|
| 43 |
value="<?php echo esc_html__( 'Apply', 'woocommerce-mercadopago' ); ?>">
|
| 44 |
</div>
|
|
@@ -78,13 +80,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 78 |
</select>
|
| 79 |
</div>
|
| 80 |
<div class="mp-box-inputs mp-line" id="mp-securityCode-customer-and-card">
|
| 81 |
-
<div class="mp-box-inputs mp-col-
|
| 82 |
<label for="customer-and-card-securityCode">
|
| 83 |
-
<?php echo esc_html__( '
|
| 84 |
</label>
|
| 85 |
<input type="text" id="customer-and-card-securityCode" data-checkout="securityCode"
|
| 86 |
-
autocomplete="off" maxlength="4" style="padding: 8px;
|
| 87 |
-
background: url( <?php echo ( $images_path . 'cvv.png' ); ?> )
|
| 88 |
<span class="mp-error" id="mp-error-224" data-main="#customer-and-card-securityCode">
|
| 89 |
<?php echo esc_html__( 'Parameter securityCode can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 90 |
</span>
|
|
@@ -105,7 +107,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 105 |
<?php echo esc_html__( 'Credit card number', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 106 |
</label>
|
| 107 |
<input type="text" id="cardNumber" data-checkout="cardNumber" autocomplete="off"
|
| 108 |
-
maxlength="19"/>
|
| 109 |
<span class="mp-error" id="mp-error-205" data-main="#cardNumber">
|
| 110 |
<?php echo esc_html__( 'Parameter cardNumber can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 111 |
</span>
|
|
@@ -128,7 +130,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 128 |
</select>
|
| 129 |
</div>
|
| 130 |
<div class="mp-box-inputs mp-col-10">
|
| 131 |
-
<div id="mp-separete-date">
|
| 132 |
</div>
|
| 133 |
<div class="mp-box-inputs mp-col-45">
|
| 134 |
<label for="cardExpirationYear">
|
|
@@ -157,7 +159,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 157 |
<?php echo esc_html__( 'Card holder name', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 158 |
</label>
|
| 159 |
<input type="text" id="cardholderName" name="mercadopago_custom[cardholderName]"
|
| 160 |
-
data-checkout="cardholderName" autocomplete="off" />
|
| 161 |
<span class="mp-error" id="mp-error-221" data-main="#cardholderName">
|
| 162 |
<?php echo esc_html__( 'Parameter cardholderName can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 163 |
</span>
|
|
@@ -165,15 +167,15 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 165 |
<?php echo esc_html__( 'Invalid Card Holder Name', 'woocommerce-mercadopago' ); ?>
|
| 166 |
</span>
|
| 167 |
</div>
|
| 168 |
-
|
| 169 |
<div class="mp-box-inputs mp-line">
|
| 170 |
<div class="mp-box-inputs mp-col-45">
|
| 171 |
<label for="securityCode">
|
| 172 |
-
<?php echo esc_html__( '
|
| 173 |
</label>
|
| 174 |
<input type="text" id="securityCode" data-checkout="securityCode"
|
| 175 |
-
autocomplete="off" maxlength="4" style="padding:
|
| 176 |
-
background: url(<?php echo ($images_path . 'cvv.png'); ?>)
|
| 177 |
<span class="mp-error" id="mp-error-224" data-main="#securityCode">
|
| 178 |
<?php echo esc_html__( 'Parameter securityCode can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 179 |
</span>
|
|
@@ -181,22 +183,54 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 181 |
<?php echo esc_html__( 'Invalid Security Code', 'woocommerce-mercadopago' ); ?>
|
| 182 |
</span>
|
| 183 |
</div>
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
|
|
|
| 190 |
</label>
|
| 191 |
-
<
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
<?php echo esc_html__( 'Parameter docNumber can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 195 |
-
</span>
|
| 196 |
-
<span class="mp-error" id="mp-error-324" data-main="#docNumber">
|
| 197 |
-
<?php echo esc_html__( 'Invalid Document Number', 'woocommerce-mercadopago' ); ?>
|
| 198 |
</span>
|
| 199 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
<div class="mp-box-inputs mp-col-10">
|
| 201 |
<div id="mp-separete-date"> </div>
|
| 202 |
</div>
|
|
@@ -214,36 +248,35 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 214 |
</span>
|
| 215 |
</div>
|
| 216 |
</div>
|
| 217 |
-
<!-- Issuer -->
|
| 218 |
-
<div class="mp-box-inputs mp-col-100 mp-issuer">
|
| 219 |
-
<label for="issuer">
|
| 220 |
-
<?php echo esc_html__( 'Issuer', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 221 |
-
</label>
|
| 222 |
-
<select id="issuer" data-checkout="issuer" name="mercadopago_custom[issuer]"></select>
|
| 223 |
-
<span class="mp-error" id="mp-error-220" data-main="#issuer">
|
| 224 |
-
<?php echo esc_html__( 'Parameter cardIssuerId can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 225 |
-
</span>
|
| 226 |
-
</div>
|
| 227 |
</div> <!-- end #mercadopago-form -->
|
| 228 |
|
| 229 |
<div id="mp-box-installments" class="mp-box-inputs mp-line">
|
| 230 |
<div class="form-row" >
|
| 231 |
-
<div id="mp-box-installments-selector" class="form-col-
|
| 232 |
<label for="installments">
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
</label>
|
| 240 |
<select id="installments" data-checkout="installments" class="form-control-mine"
|
| 241 |
name="mercadopago_custom[installments]" style="width: 100%;"></select>
|
| 242 |
</div>
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
</div>
|
| 248 |
</div>
|
| 249 |
|
|
@@ -254,8 +287,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 254 |
</div>
|
| 255 |
</div>
|
| 256 |
|
| 257 |
-
<div
|
| 258 |
-
style="padding:0px 12px 0px 12px;">
|
| 259 |
<input type="hidden" id="site_id" name="mercadopago_custom[site_id]"/>
|
| 260 |
<input type="hidden" id="amount" value='<?php echo $amount; ?>' name="mercadopago_custom[amount]"/>
|
| 261 |
<input type="hidden" id="currency_ratio" value='<?php echo $currency_ratio; ?>' name="mercadopago_custom[currency_ratio]"/>
|
|
@@ -314,9 +346,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 314 |
"securityCode"
|
| 315 |
],
|
| 316 |
selectors: {
|
|
|
|
|
|
|
| 317 |
// currency
|
| 318 |
currency_ratio: "#currency_ratio",
|
| 319 |
-
|
| 320 |
couponCode: "#couponCode",
|
| 321 |
applyCoupon: "#applyCoupon",
|
| 322 |
mpCouponApplyed: "#mpCouponApplyed",
|
|
@@ -437,6 +471,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 437 |
document.querySelector( MPv1.selectors.mpCouponApplyed ).style.display = "none";
|
| 438 |
document.querySelector( MPv1.selectors.mpCouponError ).style.display = "none";
|
| 439 |
document.querySelector( MPv1.selectors.couponCode ).style.background = "url(" + MPv1.paths.loading + ") 98% 50% no-repeat #fff";
|
|
|
|
| 440 |
document.querySelector( MPv1.selectors.applyCoupon ).disabled = true;
|
| 441 |
|
| 442 |
// Check if there are params in the url.
|
|
@@ -491,13 +526,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 491 |
response.response.id +
|
| 492 |
"/terms_and_conditions?format_type=html' target='_blank'>" +
|
| 493 |
MPv1.text.discount_info6 + "</a>";
|
| 494 |
-
|
| 495 |
-
"none";
|
| 496 |
MPv1.coupon_of_discounts.status = true;
|
| 497 |
document.querySelector( MPv1.selectors.couponCode ).style.background =
|
| 498 |
null;
|
| 499 |
document.querySelector( MPv1.selectors.couponCode ).style.background =
|
| 500 |
-
"url(" + MPv1.paths.check + ")
|
|
|
|
| 501 |
document.querySelector( MPv1.selectors.applyCoupon ).value =
|
| 502 |
MPv1.text.remove;
|
| 503 |
MPv1.cardsHandler();
|
|
@@ -511,7 +546,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 511 |
document.querySelector( MPv1.selectors.mpCouponError ).innerHTML = response.response.message;
|
| 512 |
MPv1.coupon_of_discounts.status = false;
|
| 513 |
document.querySelector( MPv1.selectors.couponCode ).style.background = null;
|
| 514 |
-
document.querySelector( MPv1.selectors.couponCode ).style.background = "url(" + MPv1.paths.error + ")
|
| 515 |
document.querySelector( MPv1.selectors.applyCoupon ).value = MPv1.text.apply;
|
| 516 |
document.querySelector( MPv1.selectors.discount ).value = 0;
|
| 517 |
MPv1.cardsHandler();
|
|
@@ -592,8 +627,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 592 |
.style.background = "url(" + response[0].secure_thumbnail + ") 90% 50% no-repeat #fff";
|
| 593 |
} else {
|
| 594 |
document.querySelector( MPv1.selectors.cardNumber ).style.background = "url(" +
|
| 595 |
-
response[0].secure_thumbnail + ")
|
| 596 |
}
|
|
|
|
| 597 |
}
|
| 598 |
|
| 599 |
// Check if the security code (ex: Tarshop) is required.
|
|
@@ -845,6 +881,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 845 |
// Set loading.
|
| 846 |
mainPaymentMethodSelector.style.background =
|
| 847 |
"url(" + MPv1.paths.loading + ") 95% 50% no-repeat #fff";
|
|
|
|
| 848 |
|
| 849 |
// If customer and card.
|
| 850 |
if ( MPv1.customer_and_card.status ) {
|
|
@@ -1006,8 +1043,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 1006 |
MPv1.resetBackgroundCard = function() {
|
| 1007 |
document.querySelector( MPv1.selectors.paymentMethodSelector ).style.background =
|
| 1008 |
"no-repeat #fff";
|
|
|
|
|
|
|
| 1009 |
document.querySelector( MPv1.selectors.cardNumber ).style.background =
|
| 1010 |
"no-repeat #fff";
|
|
|
|
|
|
|
| 1011 |
}
|
| 1012 |
|
| 1013 |
MPv1.setForm = function() {
|
|
@@ -1283,9 +1324,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 1283 |
|
| 1284 |
document.querySelector( MPv1.selectors.mpDocType ).style.display = "none";
|
| 1285 |
document.querySelector( MPv1.selectors.mpIssuer ).style.display = "none";
|
| 1286 |
-
|
| 1287 |
-
|
| 1288 |
-
document.querySelector( MPv1.selectors.docNumber ).classList.add( "mp-col-100" );
|
|
|
|
| 1289 |
|
| 1290 |
} else if ( MPv1.site_id == "MCO" ) {
|
| 1291 |
document.querySelector( MPv1.selectors.mpIssuer ).style.display = "none";
|
| 14 |
|
| 15 |
?>
|
| 16 |
|
| 17 |
+
<?php
|
| 18 |
+
$theme = wp_get_theme(); // gets the current theme
|
| 19 |
+
if ( 'Twenty Seventeen' == $theme->name || 'Twenty Seventeen' == $theme->parent_theme ) {
|
| 20 |
+
echo '<div class="mp-line twenty-seventeen-cc-header" >';
|
| 21 |
+
} else {
|
| 22 |
+
echo '<div class="mp-line other-themes-cc-header" >';
|
| 23 |
+
}
|
| 24 |
+
?>
|
| 25 |
+
<?php if ( ! empty( $banner_path ) ) : ?>
|
| 26 |
+
<img class="mp-creditcard-banner" src="<?php echo $banner_path;?>" width="312" height="40"/>
|
| 27 |
+
<?php endif; ?>
|
| 28 |
</div>
|
| 29 |
|
| 30 |
<fieldset id="custom_checkout_fieldset" style="margin:-1px; background:white; display: none;">
|
| 31 |
|
| 32 |
+
<div class="mp-box-inputs mp-line" id="mercadopago-form-coupon" style="padding: 0px 12px 0px 12px;">
|
| 33 |
<label for="couponCodeLabel">
|
| 34 |
<?php echo esc_html__( 'Discount Coupon', 'woocommerce-mercadopago' ); ?>
|
| 35 |
</label>
|
| 36 |
+
<div class="mp-box-inputs mp-col-55">
|
| 37 |
+
<input type="text" id="couponCode" name="mercadopago_custom[coupon_code]"
|
| 38 |
+
autocomplete="off" maxlength="24" style="background: #fff; padding: 12px; border: 1px solid #cecece;"/>
|
| 39 |
</div>
|
| 40 |
<div class="mp-box-inputs mp-col-10">
|
| 41 |
<div id="mp-separete-date"></div>
|
| 42 |
</div>
|
| 43 |
+
<div class="mp-box-inputs mp-col-35">
|
| 44 |
<input type="button" class="button" id="applyCoupon"
|
| 45 |
value="<?php echo esc_html__( 'Apply', 'woocommerce-mercadopago' ); ?>">
|
| 46 |
</div>
|
| 80 |
</select>
|
| 81 |
</div>
|
| 82 |
<div class="mp-box-inputs mp-line" id="mp-securityCode-customer-and-card">
|
| 83 |
+
<div class="mp-box-inputs mp-col-45">
|
| 84 |
<label for="customer-and-card-securityCode">
|
| 85 |
+
<?php echo esc_html__( 'CVC', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 86 |
</label>
|
| 87 |
<input type="text" id="customer-and-card-securityCode" data-checkout="securityCode"
|
| 88 |
+
autocomplete="off" maxlength="4" style="padding: 8px; border: 1px solid #cecece;
|
| 89 |
+
background: url( <?php echo ( $images_path . 'cvv.png' ); ?> ) 94% 50% no-repeat;"/>
|
| 90 |
<span class="mp-error" id="mp-error-224" data-main="#customer-and-card-securityCode">
|
| 91 |
<?php echo esc_html__( 'Parameter securityCode can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 92 |
</span>
|
| 107 |
<?php echo esc_html__( 'Credit card number', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 108 |
</label>
|
| 109 |
<input type="text" id="cardNumber" data-checkout="cardNumber" autocomplete="off"
|
| 110 |
+
maxlength="19" style="background: #fff; padding: 8px; border: 1px solid #cecece;"/>
|
| 111 |
<span class="mp-error" id="mp-error-205" data-main="#cardNumber">
|
| 112 |
<?php echo esc_html__( 'Parameter cardNumber can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 113 |
</span>
|
| 130 |
</select>
|
| 131 |
</div>
|
| 132 |
<div class="mp-box-inputs mp-col-10">
|
| 133 |
+
<div id="mp-separete-date"> </div>
|
| 134 |
</div>
|
| 135 |
<div class="mp-box-inputs mp-col-45">
|
| 136 |
<label for="cardExpirationYear">
|
| 159 |
<?php echo esc_html__( 'Card holder name', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 160 |
</label>
|
| 161 |
<input type="text" id="cardholderName" name="mercadopago_custom[cardholderName]"
|
| 162 |
+
data-checkout="cardholderName" autocomplete="off" style="background-color: #fff; border: 1px solid #cecece;" />
|
| 163 |
<span class="mp-error" id="mp-error-221" data-main="#cardholderName">
|
| 164 |
<?php echo esc_html__( 'Parameter cardholderName can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 165 |
</span>
|
| 167 |
<?php echo esc_html__( 'Invalid Card Holder Name', 'woocommerce-mercadopago' ); ?>
|
| 168 |
</span>
|
| 169 |
</div>
|
| 170 |
+
<!-- CVV -->
|
| 171 |
<div class="mp-box-inputs mp-line">
|
| 172 |
<div class="mp-box-inputs mp-col-45">
|
| 173 |
<label for="securityCode">
|
| 174 |
+
<?php echo esc_html__( 'CVC', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 175 |
</label>
|
| 176 |
<input type="text" id="securityCode" data-checkout="securityCode"
|
| 177 |
+
autocomplete="off" maxlength="4" style="padding: 12px; border: 1px solid #cecece;
|
| 178 |
+
background: url(<?php echo ($images_path . 'cvv.png'); ?>) 94% 50% no-repeat;" />
|
| 179 |
<span class="mp-error" id="mp-error-224" data-main="#securityCode">
|
| 180 |
<?php echo esc_html__( 'Parameter securityCode can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 181 |
</span>
|
| 183 |
<?php echo esc_html__( 'Invalid Security Code', 'woocommerce-mercadopago' ); ?>
|
| 184 |
</span>
|
| 185 |
</div>
|
| 186 |
+
<div class="mp-box-inputs mp-col-10">
|
| 187 |
+
<div id="mp-separete-date"> </div>
|
| 188 |
+
</div>
|
| 189 |
+
<!-- Issuer -->
|
| 190 |
+
<div class="mp-box-inputs mp-col-45 mp-issuer">
|
| 191 |
+
<label for="issuer">
|
| 192 |
+
<?php echo esc_html__( 'Issuer', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 193 |
</label>
|
| 194 |
+
<select id="issuer" data-checkout="issuer" name="mercadopago_custom[issuer]"></select>
|
| 195 |
+
<span class="mp-error" id="mp-error-220" data-main="#issuer">
|
| 196 |
+
<?php echo esc_html__( 'Parameter cardIssuerId can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
</span>
|
| 198 |
</div>
|
| 199 |
+
<?php if ($site_id == 'MLB') : ?>
|
| 200 |
+
<div class="mp-box-inputs mp-col-45 mp-docNumber">
|
| 201 |
+
<label for="docNumber">
|
| 202 |
+
<?php echo esc_html__( 'Document number', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 203 |
+
</label>
|
| 204 |
+
<input type="text" id="docNumber" data-checkout="docNumber"
|
| 205 |
+
name="mercadopago_custom[docNumber]" autocomplete="off"
|
| 206 |
+
style="background-color: #fff; border: 1px solid #cecece;" />
|
| 207 |
+
<span class="mp-error" id="mp-error-214" data-main="#docNumber">
|
| 208 |
+
<?php echo esc_html__( 'Parameter docNumber can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 209 |
+
</span>
|
| 210 |
+
<span class="mp-error" id="mp-error-324" data-main="#docNumber">
|
| 211 |
+
<?php echo esc_html__( 'Invalid Document Number', 'woocommerce-mercadopago' ); ?>
|
| 212 |
+
</span>
|
| 213 |
+
</div>
|
| 214 |
+
<?php endif; ?>
|
| 215 |
+
</div>
|
| 216 |
+
<!-- Document Type -->
|
| 217 |
+
<div id="mp-doc-div" class="mp-box-inputs mp-col-100 mp-doc">
|
| 218 |
+
<?php if ($site_id != 'MLB') : ?>
|
| 219 |
+
<div class="mp-box-inputs mp-col-45 mp-docNumber">
|
| 220 |
+
<label for="docNumber">
|
| 221 |
+
<?php echo esc_html__( 'Document number', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
| 222 |
+
</label>
|
| 223 |
+
<input type="text" id="docNumber" data-checkout="docNumber"
|
| 224 |
+
name="mercadopago_custom[docNumber]" autocomplete="off"
|
| 225 |
+
style="background-color: #fff; border: 1px solid #cecece;" />
|
| 226 |
+
<span class="mp-error" id="mp-error-214" data-main="#docNumber">
|
| 227 |
+
<?php echo esc_html__( 'Parameter docNumber can not be null/empty', 'woocommerce-mercadopago' ); ?>
|
| 228 |
+
</span>
|
| 229 |
+
<span class="mp-error" id="mp-error-324" data-main="#docNumber">
|
| 230 |
+
<?php echo esc_html__( 'Invalid Document Number', 'woocommerce-mercadopago' ); ?>
|
| 231 |
+
</span>
|
| 232 |
+
</div>
|
| 233 |
+
<?php endif; ?>
|
| 234 |
<div class="mp-box-inputs mp-col-10">
|
| 235 |
<div id="mp-separete-date"> </div>
|
| 236 |
</div>
|
| 248 |
</span>
|
| 249 |
</div>
|
| 250 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
</div> <!-- end #mercadopago-form -->
|
| 252 |
|
| 253 |
<div id="mp-box-installments" class="mp-box-inputs mp-line">
|
| 254 |
<div class="form-row" >
|
| 255 |
+
<div id="mp-box-installments-selector" class="form-col-12" style="padding: 0px 12px 0px 12px;">
|
| 256 |
<label for="installments">
|
| 257 |
+
<span class="mensagem-credit-card">
|
| 258 |
+
<?php if ( $currency_ratio != 1 ) : ?>
|
| 259 |
+
<div class="tooltip">
|
| 260 |
+
<?php echo esc_html__( 'Installments', 'woocommerce-mercadopago' ); ?>
|
| 261 |
+
<span class="tooltiptext">
|
| 262 |
+
<?php echo esc_html__( 'Payment converted from', 'woocommerce-mercadopago' ) . " " .
|
| 263 |
+
$woocommerce_currency . " " . esc_html__( 'to', 'woocommerce-mercadopago' ) . " " .
|
| 264 |
+
$account_currency; ?>
|
| 265 |
+
</span>
|
| 266 |
+
</div>
|
| 267 |
+
<?php else :
|
| 268 |
+
echo esc_html__( 'Installments', 'woocommerce-mercadopago' );
|
| 269 |
+
endif; ?>
|
| 270 |
+
<em class="obrigatorio">* </em>
|
| 271 |
+
</span>
|
| 272 |
</label>
|
| 273 |
<select id="installments" data-checkout="installments" class="form-control-mine"
|
| 274 |
name="mercadopago_custom[installments]" style="width: 100%;"></select>
|
| 275 |
</div>
|
| 276 |
+
</div>
|
| 277 |
+
<div id="mp-box-input-tax-cft" class="form-col-12" style="padding: 0px 12px 0px 12px;">
|
| 278 |
+
<div id="mp-box-input-tax-tea"><div id="mp-tax-tea-text"></div></div>
|
| 279 |
+
<div id="mp-tax-cft-text"></div>
|
| 280 |
</div>
|
| 281 |
</div>
|
| 282 |
|
| 287 |
</div>
|
| 288 |
</div>
|
| 289 |
|
| 290 |
+
<div id="mercadopago-utilities" >
|
|
|
|
| 291 |
<input type="hidden" id="site_id" name="mercadopago_custom[site_id]"/>
|
| 292 |
<input type="hidden" id="amount" value='<?php echo $amount; ?>' name="mercadopago_custom[amount]"/>
|
| 293 |
<input type="hidden" id="currency_ratio" value='<?php echo $currency_ratio; ?>' name="mercadopago_custom[currency_ratio]"/>
|
| 346 |
"securityCode"
|
| 347 |
],
|
| 348 |
selectors: {
|
| 349 |
+
// others
|
| 350 |
+
mp_doc_div: "#mp-doc-div",
|
| 351 |
// currency
|
| 352 |
currency_ratio: "#currency_ratio",
|
| 353 |
+
// coupom
|
| 354 |
couponCode: "#couponCode",
|
| 355 |
applyCoupon: "#applyCoupon",
|
| 356 |
mpCouponApplyed: "#mpCouponApplyed",
|
| 471 |
document.querySelector( MPv1.selectors.mpCouponApplyed ).style.display = "none";
|
| 472 |
document.querySelector( MPv1.selectors.mpCouponError ).style.display = "none";
|
| 473 |
document.querySelector( MPv1.selectors.couponCode ).style.background = "url(" + MPv1.paths.loading + ") 98% 50% no-repeat #fff";
|
| 474 |
+
document.querySelector( MPv1.selectors.couponCode ).style.border = "1px solid #cecece";
|
| 475 |
document.querySelector( MPv1.selectors.applyCoupon ).disabled = true;
|
| 476 |
|
| 477 |
// Check if there are params in the url.
|
| 526 |
response.response.id +
|
| 527 |
"/terms_and_conditions?format_type=html' target='_blank'>" +
|
| 528 |
MPv1.text.discount_info6 + "</a>";
|
| 529 |
+
document.querySelector( MPv1.selectors.mpCouponError ).style.display = "none";
|
|
|
|
| 530 |
MPv1.coupon_of_discounts.status = true;
|
| 531 |
document.querySelector( MPv1.selectors.couponCode ).style.background =
|
| 532 |
null;
|
| 533 |
document.querySelector( MPv1.selectors.couponCode ).style.background =
|
| 534 |
+
"url(" + MPv1.paths.check + ") 94% 50% no-repeat #fff";
|
| 535 |
+
document.querySelector( MPv1.selectors.couponCode ).style.border = "1px solid #cecece";
|
| 536 |
document.querySelector( MPv1.selectors.applyCoupon ).value =
|
| 537 |
MPv1.text.remove;
|
| 538 |
MPv1.cardsHandler();
|
| 546 |
document.querySelector( MPv1.selectors.mpCouponError ).innerHTML = response.response.message;
|
| 547 |
MPv1.coupon_of_discounts.status = false;
|
| 548 |
document.querySelector( MPv1.selectors.couponCode ).style.background = null;
|
| 549 |
+
document.querySelector( MPv1.selectors.couponCode ).style.background = "url(" + MPv1.paths.error + ") 94% 50% no-repeat #fff";
|
| 550 |
document.querySelector( MPv1.selectors.applyCoupon ).value = MPv1.text.apply;
|
| 551 |
document.querySelector( MPv1.selectors.discount ).value = 0;
|
| 552 |
MPv1.cardsHandler();
|
| 627 |
.style.background = "url(" + response[0].secure_thumbnail + ") 90% 50% no-repeat #fff";
|
| 628 |
} else {
|
| 629 |
document.querySelector( MPv1.selectors.cardNumber ).style.background = "url(" +
|
| 630 |
+
response[0].secure_thumbnail + ") 94% 50% no-repeat #fff";
|
| 631 |
}
|
| 632 |
+
document.querySelector( MPv1.selectors.cardNumber ).style.border = "1px solid #cecece";
|
| 633 |
}
|
| 634 |
|
| 635 |
// Check if the security code (ex: Tarshop) is required.
|
| 881 |
// Set loading.
|
| 882 |
mainPaymentMethodSelector.style.background =
|
| 883 |
"url(" + MPv1.paths.loading + ") 95% 50% no-repeat #fff";
|
| 884 |
+
mainPaymentMethodSelector.style.border = "1px solid #cecece";
|
| 885 |
|
| 886 |
// If customer and card.
|
| 887 |
if ( MPv1.customer_and_card.status ) {
|
| 1043 |
MPv1.resetBackgroundCard = function() {
|
| 1044 |
document.querySelector( MPv1.selectors.paymentMethodSelector ).style.background =
|
| 1045 |
"no-repeat #fff";
|
| 1046 |
+
document.querySelector( MPv1.selectors.paymentMethodSelector ).style.border =
|
| 1047 |
+
"1px solid #cecece";
|
| 1048 |
document.querySelector( MPv1.selectors.cardNumber ).style.background =
|
| 1049 |
"no-repeat #fff";
|
| 1050 |
+
document.querySelector( MPv1.selectors.cardNumber ).style.border =
|
| 1051 |
+
"1px solid #cecece";
|
| 1052 |
}
|
| 1053 |
|
| 1054 |
MPv1.setForm = function() {
|
| 1324 |
|
| 1325 |
document.querySelector( MPv1.selectors.mpDocType ).style.display = "none";
|
| 1326 |
document.querySelector( MPv1.selectors.mpIssuer ).style.display = "none";
|
| 1327 |
+
// Adjust css.
|
| 1328 |
+
document.querySelector( MPv1.selectors.docNumber ).classList.remove( "mp-col-75" );
|
| 1329 |
+
//document.querySelector( MPv1.selectors.docNumber ).classList.add( "mp-col-100" );
|
| 1330 |
+
document.querySelector( MPv1.selectors.mp_doc_div ).style.display = "none";
|
| 1331 |
|
| 1332 |
} else if ( MPv1.site_id == "MCO" ) {
|
| 1333 |
document.querySelector( MPv1.selectors.mpIssuer ).style.display = "none";
|
templates/ticket/ticket-form.php
CHANGED
|
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 14 |
|
| 15 |
?>
|
| 16 |
|
| 17 |
-
|
| 18 |
<div class="mp-box-inputs mp-col-50">
|
| 19 |
<img class="logo" src="<?php echo ($images_path . 'mplogo.png'); ?>" width="156" height="40" />
|
| 20 |
</div>
|
|
@@ -29,12 +29,28 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 29 |
<?php endforeach; ?>
|
| 30 |
<?php endif; ?>
|
| 31 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
</div>
|
| 33 |
|
| 34 |
<fieldset id="ticket_checkout_fieldset" style="margin:-1px; background:white; display: none;">
|
| 35 |
|
| 36 |
<!-- coupom -->
|
| 37 |
-
<div class="mp-box-inputs mp-line form-row" id="mercadopago-form-coupon-ticket"
|
| 38 |
<div class="form-col-8">
|
| 39 |
<label for="couponCodeLabel"><?php echo esc_html__( 'Discount Coupon', 'woocommerce-mercadopago' ); ?></label>
|
| 40 |
<input type="text" id="couponCodeTicket" name="mercadopago_ticket[coupon_code]"
|
|
@@ -49,24 +65,24 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 49 |
</div>
|
| 50 |
|
| 51 |
<!-- payment method -->
|
| 52 |
-
<div id="mercadopago-form-ticket" class="mp-box-inputs mp-line"
|
| 53 |
<div id="form-ticket">
|
| 54 |
-
<div class="form-row" style="margin-bottom:
|
| 55 |
-
|
| 56 |
-
<div class="form-col-
|
| 57 |
<input type="radio" name="mercadopago_ticket[docType]" class="MPv1Ticket-docType"
|
| 58 |
id="MPv1Ticket-docType-fisica" value="CPF" style="width:24px; height:24px;" checked="checked">
|
| 59 |
<?php echo esc_html__( 'Fisical Person', 'woocommerce-mercadopago' ); ?>
|
| 60 |
</input>
|
| 61 |
</div>
|
| 62 |
-
|
| 63 |
-
<div class="form-col-
|
| 64 |
<input type="radio" name="mercadopago_ticket[docType]" class="MPv1Ticket-docType"
|
| 65 |
id="MPv1Ticket-docType-juridica" value="CNPJ" style="width:24px; height:24px;">
|
| 66 |
<?php echo esc_html__( 'Legal Person', 'woocommerce-mercadopago' ); ?>
|
| 67 |
</input>
|
| 68 |
</div>
|
| 69 |
-
|
| 70 |
</div>
|
| 71 |
<div class="form-row">
|
| 72 |
<div class="form-col-4" id="box-firstname">
|
|
@@ -152,24 +168,27 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 152 |
<span class="erro_febraban" data-main="#zipcode" id="error_zipcode"><?php echo esc_html__( 'You must inform your ZIP', 'woocommerce-mercadopago' ); ?></span>
|
| 153 |
</div>
|
| 154 |
</div>
|
| 155 |
-
<
|
| 156 |
-
<
|
| 157 |
-
<
|
| 158 |
-
|
| 159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
</div>
|
| 161 |
|
| 162 |
-
<div
|
| 163 |
<p>
|
| 164 |
<?php
|
| 165 |
if ( count( $payment_methods ) > 1 ) :
|
| 166 |
echo esc_html__( 'Please, select the ticket issuer of your preference.', 'woocommerce-mercadopago' );
|
| 167 |
endif;
|
| 168 |
-
echo esc_html__( 'Click [Place order] button. The ticket will be generated and you will be redirected to print it.', 'woocommerce-mercadopago' );
|
| 169 |
-
?> <?php
|
| 170 |
-
echo esc_html__( 'Important: The order will be confirmed only after the payment approval.', 'woocommerce-mercadopago' );
|
| 171 |
if ( $currency_ratio != 1 ) :
|
| 172 |
-
|
| 173 |
$woocommerce_currency . ' ' . esc_html__( 'to', 'woocommerce-mercadopago' ) . ' ' .
|
| 174 |
$account_currency . ')';
|
| 175 |
endif;
|
| 14 |
|
| 15 |
?>
|
| 16 |
|
| 17 |
+
<!--<div width="100%" class="mp-line" style="height:72px; margin-bottom:2px; padding:20px 36px 8px 36px; background:white;">
|
| 18 |
<div class="mp-box-inputs mp-col-50">
|
| 19 |
<img class="logo" src="<?php echo ($images_path . 'mplogo.png'); ?>" width="156" height="40" />
|
| 20 |
</div>
|
| 29 |
<?php endforeach; ?>
|
| 30 |
<?php endif; ?>
|
| 31 |
</div>
|
| 32 |
+
</div>-->
|
| 33 |
+
<div class="mp-box-inputs mp-line" >
|
| 34 |
+
<label>
|
| 35 |
+
<span class="mensagem-ticket">
|
| 36 |
+
<div class="tooltip">
|
| 37 |
+
<?php echo esc_html__( 'Note: Confirmation under payment approval.', 'woocommerce-mercadopago' ); ?>
|
| 38 |
+
<span class="tooltiptext">
|
| 39 |
+
<?php
|
| 40 |
+
echo esc_html__( 'Click [Place order] button. The ticket will be generated and you will be redirected to print it.', 'woocommerce-mercadopago' );
|
| 41 |
+
echo ' ';
|
| 42 |
+
echo esc_html__( 'Important: The order will be confirmed only after the payment approval.', 'woocommerce-mercadopago' );
|
| 43 |
+
?>
|
| 44 |
+
</span>
|
| 45 |
+
</div>
|
| 46 |
+
</span>
|
| 47 |
+
</label>
|
| 48 |
</div>
|
| 49 |
|
| 50 |
<fieldset id="ticket_checkout_fieldset" style="margin:-1px; background:white; display: none;">
|
| 51 |
|
| 52 |
<!-- coupom -->
|
| 53 |
+
<div class="mp-box-inputs mp-line form-row" id="mercadopago-form-coupon-ticket" >
|
| 54 |
<div class="form-col-8">
|
| 55 |
<label for="couponCodeLabel"><?php echo esc_html__( 'Discount Coupon', 'woocommerce-mercadopago' ); ?></label>
|
| 56 |
<input type="text" id="couponCodeTicket" name="mercadopago_ticket[coupon_code]"
|
| 65 |
</div>
|
| 66 |
|
| 67 |
<!-- payment method -->
|
| 68 |
+
<div id="mercadopago-form-ticket" class="mp-box-inputs mp-line" >
|
| 69 |
<div id="form-ticket">
|
| 70 |
+
<div class="form-row" style="height:24px; margin-bottom: 12px;">
|
| 71 |
+
<!--<div class="form-col-1"> </div>-->
|
| 72 |
+
<div class="form-col-6">
|
| 73 |
<input type="radio" name="mercadopago_ticket[docType]" class="MPv1Ticket-docType"
|
| 74 |
id="MPv1Ticket-docType-fisica" value="CPF" style="width:24px; height:24px;" checked="checked">
|
| 75 |
<?php echo esc_html__( 'Fisical Person', 'woocommerce-mercadopago' ); ?>
|
| 76 |
</input>
|
| 77 |
</div>
|
| 78 |
+
<!--<div class="form-col-2"> </div>-->
|
| 79 |
+
<div class="form-col-6">
|
| 80 |
<input type="radio" name="mercadopago_ticket[docType]" class="MPv1Ticket-docType"
|
| 81 |
id="MPv1Ticket-docType-juridica" value="CNPJ" style="width:24px; height:24px;">
|
| 82 |
<?php echo esc_html__( 'Legal Person', 'woocommerce-mercadopago' ); ?>
|
| 83 |
</input>
|
| 84 |
</div>
|
| 85 |
+
<!--<div class="form-col-1"> </div>-->
|
| 86 |
</div>
|
| 87 |
<div class="form-row">
|
| 88 |
<div class="form-col-4" id="box-firstname">
|
| 168 |
<span class="erro_febraban" data-main="#zipcode" id="error_zipcode"><?php echo esc_html__( 'You must inform your ZIP', 'woocommerce-mercadopago' ); ?></span>
|
| 169 |
</div>
|
| 170 |
</div>
|
| 171 |
+
<label>
|
| 172 |
+
<span class="mensagem-febraban">
|
| 173 |
+
<em class="obrigatorio">* </em>
|
| 174 |
+
<div class="tooltip">
|
| 175 |
+
<?php echo esc_html__( 'Needed informations', 'woocommerce-mercadopago' ); ?>
|
| 176 |
+
<span class="tooltiptext">
|
| 177 |
+
<?php echo esc_html__( 'Needed informations due to brazilian bank compliances numbers 3.461/09, 3.598/12 and 3.656/13 of the Central Bank of Brazil.', 'woocommerce-mercadopago' ); ?>
|
| 178 |
+
</span>
|
| 179 |
+
</div>
|
| 180 |
+
</span>
|
| 181 |
+
</label>
|
| 182 |
</div>
|
| 183 |
|
| 184 |
+
<div>
|
| 185 |
<p>
|
| 186 |
<?php
|
| 187 |
if ( count( $payment_methods ) > 1 ) :
|
| 188 |
echo esc_html__( 'Please, select the ticket issuer of your preference.', 'woocommerce-mercadopago' );
|
| 189 |
endif;
|
|
|
|
|
|
|
|
|
|
| 190 |
if ( $currency_ratio != 1 ) :
|
| 191 |
+
echo ' (' . esc_html__( 'Payment converted from', 'woocommerce-mercadopago' ) . ' ' .
|
| 192 |
$woocommerce_currency . ' ' . esc_html__( 'to', 'woocommerce-mercadopago' ) . ' ' .
|
| 193 |
$account_currency . ')';
|
| 194 |
endif;
|
woocommerce-mercadopago.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: WooCommerce MercadoPago
|
| 4 |
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
|
| 5 |
* Description: This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
|
| 6 |
-
* Version: 3.0.
|
| 7 |
* Author: Mercado Pago
|
| 8 |
* Author URI: https://www.mercadopago.com.br/developers/
|
| 9 |
* Text Domain: woocommerce-mercadopago
|
|
@@ -105,7 +105,7 @@ if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
|
|
| 105 |
// ============================================================
|
| 106 |
|
| 107 |
// General constants.
|
| 108 |
-
const VERSION = '3.0.
|
| 109 |
const MIN_PHP = 5.6;
|
| 110 |
|
| 111 |
// Arrays to hold configurations for LatAm environment.
|
| 3 |
* Plugin Name: WooCommerce MercadoPago
|
| 4 |
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
|
| 5 |
* Description: This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
|
| 6 |
+
* Version: 3.0.10
|
| 7 |
* Author: Mercado Pago
|
| 8 |
* Author URI: https://www.mercadopago.com.br/developers/
|
| 9 |
* Text Domain: woocommerce-mercadopago
|
| 105 |
// ============================================================
|
| 106 |
|
| 107 |
// General constants.
|
| 108 |
+
const VERSION = '3.0.10';
|
| 109 |
const MIN_PHP = 5.6;
|
| 110 |
|
| 111 |
// Arrays to hold configurations for LatAm environment.
|
