WooCommerce MercadoPago - Version old.2.0.2

Version Description

Download this release

Release Info

Developer mercadopago
Plugin Icon 128x128 WooCommerce MercadoPago
Version old.2.0.2
Comparing to
See all releases

Code changes from version old.1.0.3 to old.2.0.2

Files changed (86) hide show
  1. README.txt +144 -60
  2. assets/css/custom_checkout_mercadopago.css +159 -0
  3. images/MCO/CUPOM_MCO.jpg +0 -0
  4. images/{MCO.png → MCO/MCO.png} +0 -0
  5. images/MCO/banner_all_methods.png +0 -0
  6. images/{MCO.jpg → MCO/credit_card.png} +0 -0
  7. images/MCO/standard_mco.jpg +0 -0
  8. images/MLA/CUPOM_MLA.jpg +0 -0
  9. images/{MLA.png → MLA/MLA.png} +0 -0
  10. images/MLA/banner_all_methods.png +0 -0
  11. images/MLA/credit_card.png +0 -0
  12. images/{MLA.jpg → MLA/standard_mla.jpg} +0 -0
  13. images/MLB/CUPOM_MLB.jpg +0 -0
  14. images/{MLB.png → MLB/MLB.png} +0 -0
  15. images/MLB/banner_all_methods.png +0 -0
  16. images/{MLB.jpg → MLB/credit_card.png} +0 -0
  17. images/MLB/cupom1.jpg +0 -0
  18. images/MLB/cupom2.jpg +0 -0
  19. images/MLB/cupom3.jpg +0 -0
  20. images/MLB/desconto_MLB.jpg +0 -0
  21. images/MLB/standard_mlb.jpg +0 -0
  22. images/MLC/CUPOM_MLC.jpg +0 -0
  23. images/{MLC.png → MLC/MLC.png} +0 -0
  24. images/MLC/banner_all_methods.png +0 -0
  25. images/{MLC.gif → MLC/credit_card.png} +0 -0
  26. images/MLC/standard_mlc.gif +0 -0
  27. images/MLM/CUPOM_MLM.jpg +0 -0
  28. images/{MLM.png → MLM/MLM.png} +0 -0
  29. images/MLM/banner_all_methods.png +0 -0
  30. images/MLM/credit_card.png +0 -0
  31. images/{MLM.jpg → MLM/standard_mlm.jpg} +0 -0
  32. images/MLV/CUPOM_MLV.jpg +0 -0
  33. images/{MLV.png → MLV/MLV.png} +0 -0
  34. images/MLV/banner_all_methods.png +0 -0
  35. images/{MLV.jpg → MLV/credit_card.png} +0 -0
  36. images/MLV/standard_mlv.jpg +0 -0
  37. images/MPE/CUPOM_MPE.png +0 -0
  38. images/MPE/MPE.png +0 -0
  39. images/MPE/banner_all_methods.png +0 -0
  40. images/MPE/credit_card.png +0 -0
  41. images/MPE/standard_mpe.png +0 -0
  42. images/bandeiras/amex.png +0 -0
  43. images/bandeiras/boleto.png +0 -0
  44. images/bandeiras/cash.png +0 -0
  45. images/bandeiras/diners.png +0 -0
  46. images/bandeiras/elo.png +0 -0
  47. images/bandeiras/hipercard.png +0 -0
  48. images/bandeiras/master.png +0 -0
  49. images/bandeiras/melicard.png +0 -0
  50. images/bandeiras/visa.png +0 -0
  51. images/banner.png +0 -0
  52. images/bar_code.png +0 -0
  53. images/boleto.png +0 -0
  54. images/check.png +0 -0
  55. images/credit_card.png +0 -0
  56. images/cvv.png +0 -0
  57. images/error.png +0 -0
  58. images/loading.gif +0 -0
  59. images/mercadopago.png +0 -0
  60. images/mplogo.png +0 -0
  61. images/warning.png +0 -0
  62. languages/woocommerce-mercadopago-module-es_AR.mo +0 -0
  63. languages/woocommerce-mercadopago-module-es_AR.po +524 -178
  64. languages/woocommerce-mercadopago-module-es_CL.mo +0 -0
  65. languages/woocommerce-mercadopago-module-es_CL.po +524 -178
  66. languages/woocommerce-mercadopago-module-es_CO.mo +0 -0
  67. languages/woocommerce-mercadopago-module-es_CO.po +524 -185
  68. languages/woocommerce-mercadopago-module-es_ES.mo +0 -0
  69. languages/woocommerce-mercadopago-module-es_ES.po +694 -0
  70. languages/woocommerce-mercadopago-module-es_MX.mo +0 -0
  71. languages/woocommerce-mercadopago-module-es_MX.po +524 -178
  72. languages/woocommerce-mercadopago-module-es_PE.mo +0 -0
  73. languages/woocommerce-mercadopago-module-es_PE.po +694 -0
  74. languages/woocommerce-mercadopago-module-es_VE.mo +0 -0
  75. languages/woocommerce-mercadopago-module-es_VE.po +524 -178
  76. languages/woocommerce-mercadopago-module-pt_BR.mo +0 -0
  77. languages/woocommerce-mercadopago-module-pt_BR.po +520 -246
  78. languages/woocommerce-mercadopago-module.pot +166 -1
  79. mercadopago-module.php +50 -32
  80. mercadopago/mercadopago-custom-gateway.php +1061 -0
  81. mercadopago/mercadopago-gateway.php +436 -380
  82. mercadopago/mercadopago-ticket-gateway.php +805 -0
  83. mercadopago/sdk/lib/cacert.pem +0 -0
  84. mercadopago/sdk/lib/mercadopago.php +111 -12
  85. templates/credit-card/payment-form.php +932 -0
  86. templates/ticket/ticket-form.php +80 -0
README.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Woo Mercado Pago Module ===
2
  Contributors: mercadopago, mercadolivre
3
  Donate link: https://www.mercadopago.com.br/developers/
4
- Tags: mercadopago, ecommerce, payment, checkout
5
  Requires at least: WooCommerce 2.1.x
6
  Tested up to: WooCommerce 2.5.x
7
- Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -14,79 +14,163 @@ This is the oficial module of Mercado Pago for WooCommerce plugin.
14
 
15
  This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  == Installation ==
18
 
19
- 1. Copy **woo-mercado-pago-module** folder to **[WordPressRootDirectory]/wp-content/plugins/** folder.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
- 2. On your store administration, go to **Plugins** option in sidebar.
22
 
23
- 3. Search by **WooCommerce Mercado Pago** and click enable. <br />
24
- You will receive the following message: "Plugin enabled." as a notice in your WordPress.
25
 
26
- == Upgrade Notice ==
 
27
 
28
- Please refer to our github repo.
29
 
30
- == Installation ==
31
 
32
- 1. Go to **WooCommerce > Configuration > Checkout Tab > Mercado Pago**. <br />
33
- Fist of all, you need to configure your client credentials. To make it, fill your **Client_id**, **Client_secret** in Mercado Pago Credentials section.
34
-
35
- You can obtain your **Client_id** and **Client_secret**, accordingly to your country, in the following links:
36
-
37
- * Argentina: https://www.mercadopago.com/mla/herramientas/aplicaciones
38
- * Brazil: https://www.mercadopago.com/mlb/ferramentas/aplicacoes
39
- * Chile: https://www.mercadopago.com/mlc/herramientas/aplicaciones
40
- * Colombia: https://www.mercadopago.com/mco/herramientas/aplicaciones
41
- * Mexico: https://www.mercadopago.com/mlm/herramientas/aplicaciones
42
- * Venezuela: https://www.mercadopago.com/mlv/herramientas/aplicaciones
43
-
44
- 2. Other general configurations. <br />
45
- * **Instant Payment Notification (IPN) URL**
46
- The highlighted URL is where you will get notified about payment updates.<br /><br />
47
- * **Checkout Options**
48
- **Title**: This is the title of the payment option that will be shown to your customers;<br />
49
- **Description**: This is the description of the payment option that will be shown to your customers;<br />
50
- **Store Category**: Sets up the category of the store;<br />
51
- **Store Identificator**: A prefix to identify your store, when you have multiple stores for only one Mercado Pago account;<br />
52
- **Integration Method**: How your customers will interact with Mercado Pago to pay their orders;<br />
53
- **iFrame Width**: The width, in pixels, of the iFrame (used only with iFrame Integration Method);<br />
54
- **iFrame Height**: The height, in pixels, of the iFrame (used only with iFrame Integration Method);<br />
55
- **Auto Return**: If set, the platform will return to your store when the payment is approved.<br /><br />
56
- * **Payment Options**
57
- **Max Installments**: The maximum installments allowed for your customers;<br />
58
- **Exclude Payment Methods**: Select the payment methods that you want to not work with Mercado Pago.<br /><br />
59
- * **Test and Debug Options**
60
- **Mercado Pago Sandboxs**: Test your payments in Mercado Pago sandbox environment;<br />
61
- **Debug and Log**: Enables/disables system logs.<br />
62
-
63
- == Frequently Asked Questions ==
64
 
65
- = Any questions? =
66
 
67
- Please, check our FAQ at: https://www.mercadopago.com.br/ajuda/
68
 
69
- == Screenshots ==
70
 
71
- 1. Settings page.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
- == Changelog ==
 
 
74
 
75
- = v1.0.0 (16/03/2016) =
76
- * LatAm support;
77
- * Title, description, category, and external reference customizations;
78
- * Integrations via iframe, modal, and redirection, with configurable auto-returning;
79
- * Max installments and payment method exclusion setup;
80
- * Sandbox and debug options.
81
 
82
  = v1.0.1 (23/03/2016) =
83
- * Added payment ID in order custom fields information;
84
- * Removed some unused files/code;
85
- * Redesign of the logic of preferences when creating cart, separating items;
 
 
 
86
  * Proper information of shipment cost
 
87
 
88
- = v1.0.2 (23/03/2016) =
89
- * IPN URL wasn’t triggered when topic=payment
 
 
 
 
 
 
 
 
90
 
91
- = v1.0.3 (23/03/2016) =
92
- * Improving algorithm when processing IPN
1
+ === Woo Mercado Pago Module Oficial ===
2
  Contributors: mercadopago, mercadolivre
3
  Donate link: https://www.mercadopago.com.br/developers/
4
+ Tags: ecommerce, mercadopago, woocommerce
5
  Requires at least: WooCommerce 2.1.x
6
  Tested up to: WooCommerce 2.5.x
7
+ Stable tag: 2.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
14
 
15
  This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
16
 
17
+ = Why chose Mercado Pago =
18
+ Mercado Pago owns the highest security standards with PCI certification level 1 and a specialized internal team working on fraud analysis. With Mercado Pago, you will be able to accept payments from the most common brands of credit card, offer purchase installments options and receive your payment with antecipation. You can also enable your customers to pay in the web or in their mobile devices.
19
+
20
+ = Mercado Pago Main Features =
21
+ * Online and real-time processment through IPN mechanism;
22
+ * High approval rate with a robust fraud analysis;
23
+ * Potential new customers with a base of more than 120 millions of users in Latin America;
24
+ * PCI Level 1 Certification;
25
+ * Support to major credit card brands;
26
+ * Payment installments;
27
+ * Anticipation of receivables in D+2 or D+14 (According to Mercado Pago terms and conditions);
28
+ * Payment in one click with Mercado Pago standard and custom checkouts;
29
+ * Payment via tickets;
30
+ * Seller's Protection Program.
31
+
32
  == Installation ==
33
 
34
+ You have two way to install this module: from your WordPress Store, or by downloading and manually copying the module directory.
35
+
36
+ = Install from WordPress =
37
+ 1. On your store administration, go to **Plugins** option in sidebar;
38
+ 2. Click in **Add New** button and type "Woo Mercado Pago Module" in the **Search Plugins** text field. Press Enter;
39
+ 3. You should find the module read to be installed. Click install.
40
+
41
+ = Manual Download =
42
+ 1. Get the module sources from a repository (<a href="https://github.com/mercadopago/cart-woocommerce/archive/master.zip">Github</a> or <a href="https://downloads.wordpress.org/plugin/woo-mercado-pago-module.2.0.2.zip">WordPress Plugin Directory</a>);
43
+ 2. Unzip the folder and find "woo-mercado-pago-module" directory;
44
+ 3. Copy "woo-mercado-pago-module" directory to **[WordPressRootDirectory]/wp-content/plugins/** directory.
45
+
46
+ To confirm that your module is really installed, you can click in **Plugins** item in the store administration menu, and check your just installed module. Just click **enable** to activate it and you should receive the message "Plugin enabled." as a notice in your WordPress.
47
+
48
+ = Configuration =
49
+ 1. On your store administration, go to **WooCommerce > Settings > Checkout** tab. In **Checkout Options**, you can find configurations for **Mercado Pago - Standard Checkout**, **Mercado Pago - Custom Checkout**, and **Mercado Pago - Ticket**.
50
+ * To get your **Client_id** and **Client_secret** for your country, you can go to:
51
+ * Argentina: https://www.mercadopago.com/mla/herramientas/aplicaciones
52
+ * Brazil: https://www.mercadopago.com/mlb/ferramentas/aplicacoes
53
+ * Chile: https://www.mercadopago.com/mlc/herramientas/aplicaciones
54
+ * Colombia: https://www.mercadopago.com/mco/herramientas/aplicaciones
55
+ * Mexico: https://www.mercadopago.com/mlm/herramientas/aplicaciones
56
+ * Peru: https://www.mercadopago.com/mpe/herramientas/aplicaciones
57
+ * Venezuela: https://www.mercadopago.com/mlv/herramientas/aplicaciones
58
+ * And to get your **Public Key**/**Access Token** you can go to:
59
+ * Argentina: https://www.mercadopago.com/mla/account/credentials?type=custom
60
+ * Brazil: https://www.mercadopago.com/mlb/account/credentials?type=custom
61
+ * Chile: https://www.mercadopago.com/mlc/account/credentials?type=custom
62
+ * Colombia: https://www.mercadopago.com/mco/account/credentials?type=custom
63
+ * Mexico: https://www.mercadopago.com/mlm/account/credentials?type=custom
64
+ * Peru: https://www.mercadopago.com/mpe/account/credentials?type=custom
65
+ * Venezuela: https://www.mercadopago.com/mlv/account/credentials?type=custom
66
+ 2. For the solutions **Mercado Pago - Standard Checkout**, **Mercado Pago - Custom Checkout**, and **Mercado Pago - Ticket**, you can:
67
+ * Enable/Disable you plugin (for all solutions);
68
+ * Set up your credentials (Client_id/Client_secret for Standard, Public Key/Access Token for Custom and Ticket);
69
+ * Check your IPN URL, where you will get notified about payment updates (for all solutions);
70
+ * Set the title of the payment option that will be shown to your customers (for all solutions);
71
+ * Set the description of the payment option that will be shown to your customers (for all solutions);
72
+ * Set the description that will be shown in your customer's invoice (for Custom and Ticket);
73
+ * Set binary mode that when charging a credit card, only [approved] or [reject] status will be taken (only for Custom);
74
+ * Set the category of your store (for all solutions);
75
+ * Set a prefix to identify your store, when you have multiple stores for only one Mercado Pago account (for all solutions);
76
+ * Define how your customers will interact with Mercado Pago to pay their orders (only for Standard);
77
+ * Configure the after-pay return behavior (only for Standard);
78
+ * Configure the maximum installments allowed for your customers (only for Standard);
79
+ * Configure the payment methods that you want to not work with Mercado Pago (only for Standard);
80
+ * Enable/disable sandbox mode, where you can test your payments in Mercado Pago sandbox environment (for all solutions);
81
+ * Enables/disable system logs (for all solutions).
82
+
83
+ = In this video, we show how you can install and configure from your WordPress store =
84
+
85
+ [youtube https://www.youtube.com/watch?v=CgV9aVlx5SE]
86
 
87
+ == Frequently Asked Questions ==
88
 
89
+ = What is Mercado Pago? =
90
+ Please, take a look: https://vimeo.com/125253122
91
 
92
+ = Any questions? =
93
+ Please, check our FAQ at: https://www.mercadopago.com.br/ajuda/
94
 
95
+ == Screenshots ==
96
 
97
+ 1. `Custom Checkout`
98
 
99
+ 2. `One Click Payment`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
+ 3. `Tickets`
102
 
103
+ 4. `Configuration of Standard Checkout`
104
 
105
+ == Changelog ==
106
 
107
+ = v2.0.2 (13/06/2016) =
108
+ * Rollout to Peru
109
+ - This plugin is now supporting Peru, which includes Standard Checkout, Custom Checkout, Tickets, and local language translations.
110
+ * Fix a PHP version issue
111
+ - It was reported to us an issue in a function that uses an assign made directly from an array field. This feature is available in PHP 5.4.x or above and we've made an update to support older versions;
112
+ * Fix a tax issue
113
+ - It wasn't been correctly added to the total value in Mercado Pago gateway.
114
+
115
+ = v2.0.1 (09/06/2016) =
116
+ * Customer Cards (One Click Payment)
117
+ - This feature allows customers to proceed to checkout with only one click. As Mercado Pago owns PCI standards, it can securely store credit card sensitive data and so register the customer card in the first time he uses it. Next time the customer comes back, he can use his card again, only by inserting its CVV code.
118
+ - Want to see how it works on-the-fly? Please check this video: <a href="https://www.youtube.com/watch?v=_KB8CtDei_4">Custom Checkout + Customer Cards</a>.
119
+ * SSL verifications for custom checkout and ticket
120
+ - Custom Checkout and Ticket solutions can only be used with SSL certification. As the module behaves inconsistently if there is no SSL, we've put a watchdog to lock the solution if it is active without SSL.
121
+ * Enabling any type of currency without disabling module (now, error message from API)
122
+ - Now, merchants have the option to use currencies of their choices in WooCommerce. Pay attention that Woo Mercado Pago will always set the currency related to the country of the Mercado Pago credentials.
123
+
124
+ = v2.0.0 (01/06/2016) =
125
+ * Custom Checkout for LatAm
126
+ - Offer a checkout fully customized to your brand experience with our simple-to-use payments API.
127
+ - Want to see how it works on-the-fly? Please check this video: <a href="https://www.youtube.com/watch?v=_KB8CtDei_4">Custom Checkout + Customer Cards</a>.
128
+ * Ticket for LatAm
129
+ - Now, customer can pay orders with bank tickets.
130
+ - Want to see how it works on-the-fly? Please check this video: <a href="https://www.youtube.com/watch?v=97VSVx5Uaj0">Tickets</a>.
131
+ * Removed possibility to setting supportable but invalid currency
132
+ - We've made a fix to prevent users to select a valid currency (such as ARS), but for a different country set by credentials origin (such as MLB - Mercado Pago Brazil).
133
+
134
+ = v1.0.5 (29/04/2016) =
135
+ * Removal of extra shipment setup in checkout view
136
+ - We have made a workaround to prevent an extra shipment screen to appear.
137
+ * Translation to es_ES
138
+ - Users can select Spain as module country, and translation should be ok.
139
+ * Some bug fixes and code improvements
140
+
141
+ = v1.0.4 (15/04/2016) =
142
+ * Added a link to module settings page in plugin page
143
+ - We've increased the module description informations. Also we've put a link to make a vote on us. Please, VOTE US 5 STARS. Any feedback will be welcome!
144
+ * Fixed status change when processing with two cards
145
+ - When using payments with two cards in Standard Checkout, the flow of order status wasn't correct in some cases when async IPN events occurs. We've made some adjustments to fix it.
146
 
147
+ = v1.0.3 (23/03/2016) =
148
+ * Improving algorithm when processing IPN
149
+ - Async calls and processment were refined.
150
 
151
+ = v1.0.2 (23/03/2016) =
152
+ * IPN URL wasn’t triggered when topic=payment
153
+ - Fixed a bug for some specific IPN messages of Mercado Pago.
 
 
 
154
 
155
  = v1.0.1 (23/03/2016) =
156
+ * Added payment ID in order custom fields information
157
+ - Added some good informations about the payment in the order view.
158
+ * Removed some unused files/code
159
+ - We've made some code cleaning.
160
+ * Redesign of the logic of preferences when creating cart, separating items
161
+ - Itens are now separated in cart description. This increases the readability and consistency of informations in API level.
162
  * Proper information of shipment cost
163
+ - Previously, the shipment cost was passed together with the cart total order amount.
164
 
165
+ = v1.0.0 (16/03/2016) =
166
+ * LatAm Standard Checkout support
167
+ - Great for merchants who want to get going quickly and easily. This is the standard payment integration with Mercado Pago.
168
+ - Want to see how it works on-the-fly? Please check this video: <a href="https://www.youtube.com/watch?v=DgOsX1eXjBU">Standard Checkout</a>.
169
+ * Set of configurable fields and customizations
170
+ - Title, description, category, and external reference customizations, integrations via iframe, modal, and redirection, with configurable auto-returning, max installments and payment method exclusion setup.
171
+ * Sandbox and debug options
172
+ - Customer can test orders by enabling debug mode or using sandbox environment.
173
+
174
+ == Upgrade Notice ==
175
 
176
+ If you're migrating from version 1.x.x to 2.x.x, please be sure to make a backup of your site and database, as there are many additional features and modifications between these versions.
 
assets/css/custom_checkout_mercadopago.css ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body{
2
+ background-color: #F5F5F5;
3
+ padding: 0;
4
+ margin: 0;
5
+ }
6
+
7
+ #mp-box-form{
8
+ padding: 15px 10px;
9
+ margin: 30px auto;
10
+ width: 320px;
11
+ background-color: #fff;
12
+ overflow: auto;
13
+ border-radius: 5px;
14
+ }
15
+
16
+ .mp-box-inputs{
17
+ float: left;
18
+ }
19
+
20
+ .mp-col-10{
21
+ width: 10%;
22
+ }
23
+
24
+ .mp-col-20{
25
+ width: 20%;
26
+ }
27
+
28
+ .mp-col-25{
29
+ width: 25%;
30
+ }
31
+
32
+ .mp-col-30{
33
+ width: 30%;
34
+ }
35
+
36
+ .mp-col-35{
37
+ width: 35%;
38
+ }
39
+
40
+ .mp-col-45{
41
+ width: 45%;
42
+ }
43
+
44
+ .mp-col-50{
45
+ width: 50%;
46
+ }
47
+
48
+ .mp-col-55{
49
+ width: 55%;
50
+ }
51
+
52
+ .mp-col-65{
53
+ width: 65%;
54
+ }
55
+
56
+ .mp-col-75{
57
+ width: 75%;
58
+ }
59
+
60
+ .mp-col-100{
61
+ width: 100%;
62
+ margin: 5px 0;
63
+ }
64
+
65
+ .mp-line{
66
+ width: 100%;
67
+ margin: 5px 0;
68
+ }
69
+
70
+ .mp-box-inputs label{
71
+ text-transform: uppercase;
72
+ font-size: 14px;
73
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
74
+ margin: 0 0 5px 0;
75
+ display: block;
76
+ }
77
+
78
+ .mp-box-inputs label em{
79
+ color: red;
80
+ }
81
+
82
+ .mp-box-inputs input, .mp-box-inputs select{
83
+ width: 100%;
84
+ background-color: #fff;
85
+ border: 1px solid #cecece;
86
+ padding: 5px;
87
+ border-radius: 3px;
88
+ color: #666;
89
+ height: 40px;
90
+ font-size: 20px;
91
+ }
92
+
93
+ .mp-box-inputs input:focus, .mp-box-inputs select:focus{
94
+ border: 1px solid #999;
95
+ outline: 0;
96
+ }
97
+
98
+
99
+ .mp-box-inputs input.mp-error-input, .mp-box-inputs select.mp-error-input{
100
+ border: 1px solid red;
101
+ }
102
+
103
+ #mp-box-loading{
104
+ width: 30px;
105
+ height: 30px;
106
+ display: inline-block;
107
+ margin: -10px 0px;
108
+ }
109
+
110
+ #mp-separete-date{
111
+ vertical-align: middle;
112
+ line-height: 65px;
113
+ text-align: center;
114
+ height: 48px;
115
+ font-size: 24px;
116
+ font-weight: 100;
117
+ }
118
+
119
+ #mercadopago-utilities{
120
+ display: none;
121
+ }
122
+
123
+ #submit{
124
+ color: #fff;
125
+ background-color: #337ab7;
126
+ border-color: #2e6da4;
127
+ padding: 6px 12px;
128
+ border: 1px solid transparent;
129
+ border-radius: 4px;
130
+ text-align: center;
131
+ font-size: 14px;
132
+ font-weight: 400;
133
+ }
134
+
135
+ #submit:hover {
136
+ color: #fff;
137
+ background-color: #286090;
138
+ border-color: #204d74;
139
+ }
140
+
141
+
142
+ /*
143
+ *
144
+ *
145
+ * Error
146
+ *
147
+ *
148
+ */
149
+
150
+ .mp-error{
151
+ text-transform: uppercase;
152
+ font-size: 10px;
153
+ color: red;
154
+ font-weight: bold;
155
+ display: none;
156
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
157
+ clear: both;
158
+ float: left;
159
+ }
images/MCO/CUPOM_MCO.jpg ADDED
Binary file
images/{MCO.png → MCO/MCO.png} RENAMED
File without changes
images/MCO/banner_all_methods.png ADDED
Binary file
images/{MCO.jpg → MCO/credit_card.png} RENAMED
File without changes
images/MCO/standard_mco.jpg ADDED
Binary file
images/MLA/CUPOM_MLA.jpg ADDED
Binary file
images/{MLA.png → MLA/MLA.png} RENAMED
File without changes
images/MLA/banner_all_methods.png ADDED
Binary file
images/MLA/credit_card.png ADDED
Binary file
images/{MLA.jpg → MLA/standard_mla.jpg} RENAMED
File without changes
images/MLB/CUPOM_MLB.jpg ADDED
Binary file
images/{MLB.png → MLB/MLB.png} RENAMED
File without changes
images/MLB/banner_all_methods.png ADDED
Binary file
images/{MLB.jpg → MLB/credit_card.png} RENAMED
File without changes
images/MLB/cupom1.jpg ADDED
Binary file
images/MLB/cupom2.jpg ADDED
Binary file
images/MLB/cupom3.jpg ADDED
Binary file
images/MLB/desconto_MLB.jpg ADDED
Binary file
images/MLB/standard_mlb.jpg ADDED
Binary file
images/MLC/CUPOM_MLC.jpg ADDED
Binary file
images/{MLC.png → MLC/MLC.png} RENAMED
File without changes
images/MLC/banner_all_methods.png ADDED
Binary file
images/{MLC.gif → MLC/credit_card.png} RENAMED
File without changes
images/MLC/standard_mlc.gif ADDED
Binary file
images/MLM/CUPOM_MLM.jpg ADDED
Binary file
images/{MLM.png → MLM/MLM.png} RENAMED
File without changes
images/MLM/banner_all_methods.png ADDED
Binary file
images/MLM/credit_card.png ADDED
Binary file
images/{MLM.jpg → MLM/standard_mlm.jpg} RENAMED
File without changes
images/MLV/CUPOM_MLV.jpg ADDED
Binary file
images/{MLV.png → MLV/MLV.png} RENAMED
File without changes
images/MLV/banner_all_methods.png ADDED
Binary file
images/{MLV.jpg → MLV/credit_card.png} RENAMED
File without changes
images/MLV/standard_mlv.jpg ADDED
Binary file
images/MPE/CUPOM_MPE.png ADDED
Binary file
images/MPE/MPE.png ADDED
Binary file
images/MPE/banner_all_methods.png ADDED
Binary file
images/MPE/credit_card.png ADDED
Binary file
images/MPE/standard_mpe.png ADDED
Binary file
images/bandeiras/amex.png ADDED
Binary file
images/bandeiras/boleto.png ADDED
Binary file
images/bandeiras/cash.png ADDED
Binary file
images/bandeiras/diners.png ADDED
Binary file
images/bandeiras/elo.png ADDED
Binary file
images/bandeiras/hipercard.png ADDED
Binary file
images/bandeiras/master.png ADDED
Binary file
images/bandeiras/melicard.png ADDED
Binary file
images/bandeiras/visa.png ADDED
Binary file
images/banner.png ADDED
Binary file
images/bar_code.png ADDED
Binary file
images/boleto.png ADDED
Binary file
images/check.png CHANGED
File without changes
images/credit_card.png ADDED
Binary file
images/cvv.png ADDED
Binary file
images/error.png CHANGED
File without changes
images/loading.gif ADDED
Binary file
images/mercadopago.png CHANGED
File without changes
images/mplogo.png CHANGED
File without changes
images/warning.png CHANGED
File without changes
languages/woocommerce-mercadopago-module-es_AR.mo CHANGED
Binary file
languages/woocommerce-mercadopago-module-es_AR.po CHANGED
@@ -4,9 +4,9 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
- "POT-Creation-Date: 2016-03-04 20:48-0300\n"
8
  "PO-Revision-Date: \n"
9
- "Language-Team: Your Team <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -14,335 +14,681 @@ msgstr ""
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
18
- "X-Poedit-Basepath: ..\n"
 
19
  "X-Generator: Poedit 1.8.7\n"
20
  "Last-Translator: \n"
21
- "Language: es_AR\n"
22
  "X-Poedit-SearchPath-0: .\n"
23
 
24
  #. Description of the plugin/theme
25
  msgid "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."
26
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
27
 
28
- #: mercadopago-module.php:66
29
  #, php-format
30
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
31
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
32
 
33
- #: mercadopago/mercadopago-gateway.php:63
 
 
 
 
 
 
 
 
 
 
 
 
34
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
35
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
36
 
37
- #: mercadopago/mercadopago-gateway.php:133
 
38
  msgid "Argentine"
39
  msgstr "Argentina"
40
 
41
- #: mercadopago/mercadopago-gateway.php:134
 
42
  msgid "Brazil"
43
  msgstr "Brasil"
44
 
45
- #: mercadopago/mercadopago-gateway.php:135
 
46
  msgid "Chile"
47
  msgstr "Chile"
48
 
49
- #: mercadopago/mercadopago-gateway.php:136
 
50
  msgid "Colombia"
51
  msgstr "Colombia"
52
 
53
- #: mercadopago/mercadopago-gateway.php:137
 
54
  msgid "Mexico"
55
  msgstr "México"
56
 
57
- #: mercadopago/mercadopago-gateway.php:138
58
  msgid "or"
59
  msgstr "o"
60
 
61
- #: mercadopago/mercadopago-gateway.php:139
 
62
  msgid "Venezuela"
63
  msgstr "Venezuela"
64
 
65
- #: mercadopago/mercadopago-gateway.php:154
66
- msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
67
- msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
68
-
69
- #: mercadopago/mercadopago-gateway.php:157
70
  msgid "Your credentials are <strong>valid</strong> for"
71
  msgstr "Sus credenciales <strong>son válidas</strong> para"
72
 
73
- #: mercadopago/mercadopago-gateway.php:164 mercadopago/mercadopago-gateway.php:173
74
- msgid "Configure your Client_id and Client_secret to have access to more options."
75
- msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
76
-
77
- #: mercadopago/mercadopago-gateway.php:167 mercadopago/mercadopago-gateway.php:176
78
  msgid "Your credentials are <strong>not valid</strong>!"
79
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
80
 
81
- #: mercadopago/mercadopago-gateway.php:190 mercadopago/mercadopago-gateway.php:198 mercadopago/mercadopago-gateway.php:208
82
- msgid "This field should be an integer."
83
- msgstr "Este campo debe ser un número."
84
-
85
- #: mercadopago/mercadopago-gateway.php:193
86
- msgid "If your integration method is iFrame, please inform the payment iFrame width."
87
- msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
88
-
89
- #: mercadopago/mercadopago-gateway.php:201
90
- msgid "If your integration method is iFrame, please inform the payment iFrame height."
91
- msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
92
-
93
- #: mercadopago/mercadopago-gateway.php:211
94
- msgid "Select the max number of installments for your customers."
95
- msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
96
-
97
- #: mercadopago/mercadopago-gateway.php:217
98
  msgid "Enable/Disable"
99
  msgstr "Habilitar/Deshabilitar"
100
 
101
- #: mercadopago/mercadopago-gateway.php:219
102
- msgid "Enable Mercado Pago Module"
103
- msgstr "Habilitar Mercado Pago"
104
 
105
- #: mercadopago/mercadopago-gateway.php:223
106
  msgid "Mercado Pago Credentials"
107
  msgstr "Credenciales de Mercado Pago"
108
 
109
- #: mercadopago/mercadopago-gateway.php:225
110
  msgid "You can obtain your credentials for"
111
  msgstr "Puedes obtener tus credenciales para"
112
 
113
- #: mercadopago/mercadopago-gateway.php:228
114
- msgid "Mercado Pago Client_id"
115
- msgstr "Client_id de Mercado Pago"
116
-
117
- #: mercadopago/mercadopago-gateway.php:230
118
- msgid "Insert your Mercado Pago Client_id."
119
- msgstr "Inserte su Client_id de Mercado Pago."
120
-
121
- #: mercadopago/mercadopago-gateway.php:235
122
- msgid "Mercado Pago Client_secret"
123
- msgstr "Client_secret de Mercado Pago"
124
 
125
- #: mercadopago/mercadopago-gateway.php:237
126
- msgid "Insert your Mercado Pago Client_secret."
127
- msgstr "Inserte su Client_secret de Mercado Pago."
128
 
129
- #: mercadopago/mercadopago-gateway.php:242
130
  msgid "Instant Payment Notification (IPN) URL"
131
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
132
 
133
- #: mercadopago/mercadopago-gateway.php:244
134
  msgid "Your IPN URL to receive instant payment notifications is"
135
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
136
 
137
- #: mercadopago/mercadopago-gateway.php:247
138
  msgid "Checkout Options"
139
  msgstr "Opciones de Checkout"
140
 
141
- #: mercadopago/mercadopago-gateway.php:252
142
  msgid "Title"
143
  msgstr "Título"
144
 
145
- #: mercadopago/mercadopago-gateway.php:254
146
  msgid "Title shown to the client in the checkout."
147
  msgstr "Título mostrado al cliente en el checkout."
148
 
149
- #: mercadopago/mercadopago-gateway.php:258
 
 
 
 
150
  msgid "Description"
151
  msgstr "Descripción"
152
 
153
- #: mercadopago/mercadopago-gateway.php:260
154
  msgid "Description shown to the client in the checkout."
155
  msgstr "Descripción mostrada al cliente en el checkout."
156
 
157
- #: mercadopago/mercadopago-gateway.php:261 mercadopago/mercadopago-gateway.php:406
158
  msgid "Pay with Mercado Pago"
159
  msgstr "Pagar con Mercado Pago"
160
 
161
- #: mercadopago/mercadopago-gateway.php:264
162
- msgid "Store Category"
163
- msgstr "Categoría de la tienda"
164
-
165
- #: mercadopago/mercadopago-gateway.php:266
166
- msgid "Define which type of products your store sells."
167
- msgstr "Defina el tipo de productos que su tienda vende."
168
-
169
- #: mercadopago/mercadopago-gateway.php:270
170
- msgid "Store Identificator"
171
- msgstr "Identificador de la tienda"
172
 
173
- #: mercadopago/mercadopago-gateway.php:272
174
- msgid "Please, inform a prefix to your store."
175
- msgstr "Por favor, informe un prefijo para su tienda."
176
 
177
- #: mercadopago/mercadopago-gateway.php:272
178
- msgid "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators."
179
- msgstr "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
180
 
181
- #: mercadopago/mercadopago-gateway.php:276
182
- msgid "Integration Method"
183
- msgstr "Método de integración"
184
 
185
- #: mercadopago/mercadopago-gateway.php:278
186
- msgid "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an internal window is embedded to the page layout)."
187
- msgstr "Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
188
 
189
- #: mercadopago/mercadopago-gateway.php:281
190
- msgid "iFrame"
191
- msgstr "iFrame"
192
 
193
- #: mercadopago/mercadopago-gateway.php:282
194
- msgid "Modal Window"
195
- msgstr "Ventana modal"
196
 
197
- #: mercadopago/mercadopago-gateway.php:283
198
- msgid "Redirect"
199
- msgstr "Redireccionamiento"
200
-
201
- #: mercadopago/mercadopago-gateway.php:287
202
- msgid "iFrame Width"
203
- msgstr "Ancho del iFrame"
204
-
205
- #: mercadopago/mercadopago-gateway.php:293
206
- msgid "iFrame Height"
207
- msgstr "Alto del iFrame"
208
-
209
- #: mercadopago/mercadopago-gateway.php:299
210
- msgid "Auto Return"
211
- msgstr "Redirección automática"
212
 
213
- #: mercadopago/mercadopago-gateway.php:301
214
- msgid "Automatic Return After Payment"
215
- msgstr "Redirección Automática Luego del Pago"
216
 
217
- #: mercadopago/mercadopago-gateway.php:303
218
- msgid "After the payment, client is automatically redirected."
219
- msgstr "Después del pago, el cliente será redireccionado automáticamente."
220
 
221
- #: mercadopago/mercadopago-gateway.php:306
222
- msgid "Payment Options"
223
- msgstr "Opciones de Pago"
224
 
225
- #: mercadopago/mercadopago-gateway.php:311
226
- msgid "Max installments"
227
- msgstr "Número máximo de cuotas"
228
 
229
- #: mercadopago/mercadopago-gateway.php:317
230
- msgid "Exclude Payment Methods"
231
- msgstr "Excluir métodos de pago"
 
 
 
232
 
233
- #: mercadopago/mercadopago-gateway.php:324
234
  msgid "Test and Debug Options"
235
  msgstr "Opciones de Prueba y Debug"
236
 
237
- #: mercadopago/mercadopago-gateway.php:329
238
  msgid "Mercado Pago Sandbox"
239
  msgstr "Sandbox Mercado Pago"
240
 
241
- #: mercadopago/mercadopago-gateway.php:331
242
  msgid "Enable Mercado Pago Sandbox"
243
  msgstr "Habilitar el sandbox de Mercado Pago"
244
 
245
- #: mercadopago/mercadopago-gateway.php:333
246
- msgid "This options allows you to test payments inside a sandbox environment."
247
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
248
 
249
- #: mercadopago/mercadopago-gateway.php:336
250
  msgid "Debug and Log"
251
  msgstr "Debug y Log"
252
 
253
- #: mercadopago/mercadopago-gateway.php:338
254
  msgid "Enable log"
255
  msgstr "Habilitar Log"
256
 
257
- #: mercadopago/mercadopago-gateway.php:340
258
- #, php-format
259
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
260
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
261
 
262
- #: mercadopago/mercadopago-gateway.php:402
263
- msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
264
- msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
265
 
266
- #: mercadopago/mercadopago-gateway.php:410
267
- msgid "Cancel order &amp; Clear cart"
268
- msgstr "Cancelar &amp; Limpiar carrito"
 
269
 
270
- #: mercadopago/mercadopago-gateway.php:420
271
- msgid "Thank you for your order. Proceed with your payment completing the following information."
272
- msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
273
 
274
- #: mercadopago/mercadopago-gateway.php:431
275
- msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
276
- msgstr "Un error ocurrió durante el procesamiento de su pago. Por favor intente nuevamente o contactenos para ayudarlo."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
 
278
- #: mercadopago/mercadopago-gateway.php:434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  msgid "Click to try again"
280
- msgstr "Haga click para intentar de nuevo"
 
 
 
 
 
 
 
 
281
 
282
- #: mercadopago/mercadopago-gateway.php:675 mercadopago/mercadopago-gateway.php:686
 
 
 
 
 
 
 
 
 
283
  msgid "Mercado Pago is Inactive"
284
  msgstr "Mercado Pago Inactivo"
285
 
286
- #: mercadopago/mercadopago-gateway.php:678
287
- msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
288
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
289
 
290
- #: mercadopago/mercadopago-gateway.php:679
291
  msgid "Click here and configure!"
292
  msgstr "Haga click aquí y configure!"
293
 
294
- #: mercadopago/mercadopago-gateway.php:689
295
  msgid "The currency"
296
  msgstr "La moneda"
297
 
298
- #: mercadopago/mercadopago-gateway.php:689
299
- msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, USD, VEF."
300
- msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, USD, VEF."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
 
302
- #: mercadopago/mercadopago-gateway.php:714
303
  msgid "Mercado Pago Request Failure"
304
  msgstr "La solicitud de Mercado Pago ha fallado."
305
 
306
- #: mercadopago/mercadopago-gateway.php:791
307
- msgid "Mercado Pago Transaction ID"
308
- msgstr "ID de operación de Mercado Pago"
309
-
310
- #: mercadopago/mercadopago-gateway.php:798
311
  msgid "Payer email"
312
  msgstr "Email del comprador"
313
 
314
- #: mercadopago/mercadopago-gateway.php:805
315
  msgid "Payment type"
316
  msgstr "Método de pago"
317
 
318
- #: mercadopago/mercadopago-gateway.php:810
319
- msgid "Payment approved."
320
- msgstr "Pago aprobado."
321
 
322
- #: mercadopago/mercadopago-gateway.php:816
323
  msgid "Customer haven't paid yet."
324
  msgstr "El cliente todavía no efectuó el pago."
325
 
326
- #: mercadopago/mercadopago-gateway.php:821
327
  msgid "Payment under review."
328
  msgstr "El pago está pendiente de revisión."
329
 
330
- #: mercadopago/mercadopago-gateway.php:826
331
  msgid "The payment was refused. The customer can try again."
332
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
333
 
334
- #: mercadopago/mercadopago-gateway.php:832
335
  msgid "The payment was refunded to the customer."
336
  msgstr "El pago fue devuelto al cliente."
337
 
338
- #: mercadopago/mercadopago-gateway.php:838
339
  msgid "The payment was cancelled."
340
  msgstr "El pago fue cancelado."
341
 
342
- #: mercadopago/mercadopago-gateway.php:843
343
- msgid "Mercado Pago Payment ID"
344
- msgstr "ID de pago de Mercado Pago"
345
-
346
- #: mercadopago/mercadopago-gateway.php:843 mercadopago/mercadopago-gateway.php:848
347
  msgid "The payment is under mediation or it was charged-back."
348
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
+ "POT-Creation-Date: 2016-05-23 14:52-0300\n"
8
  "PO-Revision-Date: \n"
9
+ "Language-Team: Product Development <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
18
+ "_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
19
+ "X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
20
  "X-Generator: Poedit 1.8.7\n"
21
  "Last-Translator: \n"
22
+ "Language: es\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
25
  #. Description of the plugin/theme
26
  msgid "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."
27
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
28
 
29
+ #: mercadopago-module.php:69
30
  #, php-format
31
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
32
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
33
 
34
+ #: mercadopago-module.php:109
35
+ msgid "Standard Checkout"
36
+ msgstr "Checkout Estándar"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Custom"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Custom"
45
+
46
+ #: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
47
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
48
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
49
 
50
+ #: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
51
+ #: mercadopago/mercadopago-gateway.php:716
52
  msgid "Argentine"
53
  msgstr "Argentina"
54
 
55
+ #: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
56
+ #: mercadopago/mercadopago-gateway.php:717
57
  msgid "Brazil"
58
  msgstr "Brasil"
59
 
60
+ #: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
61
+ #: mercadopago/mercadopago-gateway.php:719
62
  msgid "Chile"
63
  msgstr "Chile"
64
 
65
+ #: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
66
+ #: mercadopago/mercadopago-gateway.php:718
67
  msgid "Colombia"
68
  msgstr "Colombia"
69
 
70
+ #: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
71
+ #: mercadopago/mercadopago-gateway.php:720
72
  msgid "Mexico"
73
  msgstr "México"
74
 
75
+ #: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
76
  msgid "or"
77
  msgstr "o"
78
 
79
+ #: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
80
+ #: mercadopago/mercadopago-gateway.php:721
81
  msgid "Venezuela"
82
  msgstr "Venezuela"
83
 
84
+ #: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
 
 
 
 
85
  msgid "Your credentials are <strong>valid</strong> for"
86
  msgstr "Sus credenciales <strong>son válidas</strong> para"
87
 
88
+ #: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
89
+ #: mercadopago/mercadopago-gateway.php:170
 
 
 
90
  msgid "Your credentials are <strong>not valid</strong>!"
91
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
92
 
93
+ #: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  msgid "Enable/Disable"
95
  msgstr "Habilitar/Deshabilitar"
96
 
97
+ #: mercadopago/mercadopago-custom-gateway.php:171
98
+ msgid "Enable Custom Checkout"
99
+ msgstr "Habilitar Checkout Custom"
100
 
101
+ #: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
102
  msgid "Mercado Pago Credentials"
103
  msgstr "Credenciales de Mercado Pago"
104
 
105
+ #: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
106
  msgid "You can obtain your credentials for"
107
  msgstr "Puedes obtener tus credenciales para"
108
 
109
+ #: mercadopago/mercadopago-custom-gateway.php:182
110
+ msgid "Insert your Mercado Pago Public key."
111
+ msgstr "Inserte su Public Key de Mercado Pago."
 
 
 
 
 
 
 
 
112
 
113
+ #: mercadopago/mercadopago-custom-gateway.php:189
114
+ msgid "Insert your Mercado Pago Access token."
115
+ msgstr "Inserte su Access Token de Mercado Pago."
116
 
117
+ #: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
118
  msgid "Instant Payment Notification (IPN) URL"
119
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
120
 
121
+ #: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
122
  msgid "Your IPN URL to receive instant payment notifications is"
123
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
124
 
125
+ #: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
126
  msgid "Checkout Options"
127
  msgstr "Opciones de Checkout"
128
 
129
+ #: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
130
  msgid "Title"
131
  msgstr "Título"
132
 
133
+ #: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
134
  msgid "Title shown to the client in the checkout."
135
  msgstr "Título mostrado al cliente en el checkout."
136
 
137
+ #: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
138
+ msgid "Mercado Pago"
139
+ msgstr "Mercado Pago"
140
+
141
+ #: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
142
  msgid "Description"
143
  msgstr "Descripción"
144
 
145
+ #: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
146
  msgid "Description shown to the client in the checkout."
147
  msgstr "Descripción mostrada al cliente en el checkout."
148
 
149
+ #: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
150
  msgid "Pay with Mercado Pago"
151
  msgstr "Pagar con Mercado Pago"
152
 
153
+ #: mercadopago/mercadopago-custom-gateway.php:216
154
+ msgid "Statement Descriptor"
155
+ msgstr "Descripción de la Factura"
 
 
 
 
 
 
 
 
156
 
157
+ #: mercadopago/mercadopago-custom-gateway.php:218
158
+ msgid "The description that will be shown in your customer's invoice."
159
+ msgstr "La descripción que se muestra en la factura de su cliente."
160
 
161
+ #: mercadopago/mercadopago-custom-gateway.php:222
162
+ msgid "Binary Mode"
163
+ msgstr "Modo binario"
164
 
165
+ #: mercadopago/mercadopago-custom-gateway.php:224
166
+ msgid "Enable binary mode for checkout status"
167
+ msgstr "Activar el modo binario para el estado del checkout"
168
 
169
+ #: mercadopago/mercadopago-custom-gateway.php:226
170
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
171
+ msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
172
 
173
+ #: mercadopago/mercadopago-custom-gateway.php:229
174
+ msgid "Ticket"
175
+ msgstr "Ticket"
176
 
177
+ #: mercadopago/mercadopago-custom-gateway.php:231
178
+ msgid "Enable Ticket for Custom Checkout"
179
+ msgstr "Habilitar Ticket para Checkout Custom"
180
 
181
+ #: mercadopago/mercadopago-custom-gateway.php:233
182
+ msgid "Let your customer pay you with tickets"
183
+ msgstr "Deje que su cliente le paga con tickets"
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
+ #: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
186
+ msgid "Store Category"
187
+ msgstr "Categoría de la tienda"
188
 
189
+ #: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
190
+ msgid "Define which type of products your store sells."
191
+ msgstr "Defina el tipo de productos que su tienda vende."
192
 
193
+ #: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
194
+ msgid "Store Identificator"
195
+ msgstr "Identificador de la tienda"
196
 
197
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
198
+ msgid "Please, inform a prefix to your store."
199
+ msgstr "Por favor, informe un prefijo para su tienda."
200
 
201
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
202
+ msgid ""
203
+ "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
204
+ "identificators."
205
+ msgstr ""
206
+ "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
207
 
208
+ #: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
209
  msgid "Test and Debug Options"
210
  msgstr "Opciones de Prueba y Debug"
211
 
212
+ #: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
213
  msgid "Mercado Pago Sandbox"
214
  msgstr "Sandbox Mercado Pago"
215
 
216
+ #: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
217
  msgid "Enable Mercado Pago Sandbox"
218
  msgstr "Habilitar el sandbox de Mercado Pago"
219
 
220
+ #: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
221
+ msgid "This option allows you to test payments inside a sandbox environment."
222
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
223
 
224
+ #: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
225
  msgid "Debug and Log"
226
  msgstr "Debug y Log"
227
 
228
+ #: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
229
  msgid "Enable log"
230
  msgstr "Habilitar Log"
231
 
232
+ #: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
 
233
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
234
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
235
 
236
+ #: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
237
+ msgid "File location: "
238
+ msgstr "Local del archivo: "
239
 
240
+ #: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
241
+ #, php-format
242
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
243
+ msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Métodos de Pago"
248
 
249
+ #: mercadopago/mercadopago-custom-gateway.php:333
250
+ msgid "Credit card number"
251
+ msgstr "Número de tarjeta de crédito"
252
+
253
+ #: mercadopago/mercadopago-custom-gateway.php:334
254
+ msgid "Expiration month"
255
+ msgstr "Mes de expiración"
256
+
257
+ #: mercadopago/mercadopago-custom-gateway.php:335
258
+ msgid "Expiration year"
259
+ msgstr "Año de expiración"
260
+
261
+ #: mercadopago/mercadopago-custom-gateway.php:336
262
+ msgid "Year"
263
+ msgstr "Año"
264
+
265
+ #: mercadopago/mercadopago-custom-gateway.php:337
266
+ msgid "Month"
267
+ msgstr "Mes"
268
+
269
+ #: mercadopago/mercadopago-custom-gateway.php:338
270
+ msgid "Card holder name"
271
+ msgstr "Nombre del titular de la tarjeta"
272
+
273
+ #: mercadopago/mercadopago-custom-gateway.php:339
274
+ msgid "Security code"
275
+ msgstr "Código de seguridad"
276
+
277
+ #: mercadopago/mercadopago-custom-gateway.php:340
278
+ msgid "Document Type"
279
+ msgstr "Tipo de Documento"
280
 
281
+ #: mercadopago/mercadopago-custom-gateway.php:341
282
+ msgid "Document number"
283
+ msgstr "Número del Documento"
284
+
285
+ #: mercadopago/mercadopago-custom-gateway.php:342
286
+ msgid "Issuer"
287
+ msgstr "Emisor"
288
+
289
+ #: mercadopago/mercadopago-custom-gateway.php:343
290
+ msgid "Installments"
291
+ msgstr "Cuotas"
292
+
293
+ #: mercadopago/mercadopago-custom-gateway.php:347
294
+ msgid "Parameter cardNumber can not be null/empty"
295
+ msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Numero de tarjeta invalido"
300
+
301
+ #: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
302
+ #: mercadopago/mercadopago-custom-gateway.php:353
303
+ msgid "Invalid Expiration Date"
304
+ msgstr "Fecha de vencimiento inválida"
305
+
306
+ #: mercadopago/mercadopago-custom-gateway.php:355
307
+ msgid "Parameter cardholderName can not be null/empty"
308
+ msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
309
+
310
+ #: mercadopago/mercadopago-custom-gateway.php:356
311
+ msgid "Invalid Card Holder Name"
312
+ msgstr "Nombre del titular de la tarjeta invalido"
313
+
314
+ #: mercadopago/mercadopago-custom-gateway.php:358
315
+ msgid "Parameter securityCode can not be null/empty"
316
+ msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
317
+
318
+ #: mercadopago/mercadopago-custom-gateway.php:359
319
+ msgid "Invalid Security Code"
320
+ msgstr "Código de seguridad invalido"
321
+
322
+ #: mercadopago/mercadopago-custom-gateway.php:361
323
+ msgid "Parameter docType can not be null/empty"
324
+ msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
325
+
326
+ #: mercadopago/mercadopago-custom-gateway.php:362
327
+ msgid "Invalid Document Type"
328
+ msgstr "Tipo de Documento invalido"
329
+
330
+ #: mercadopago/mercadopago-custom-gateway.php:364
331
+ msgid "Parameter docNumber can not be null/empty"
332
+ msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
333
+
334
+ #: mercadopago/mercadopago-custom-gateway.php:365
335
+ msgid "Invalid Document Number"
336
+ msgstr "Número del Documento invalido"
337
+
338
+ #: mercadopago/mercadopago-custom-gateway.php:367
339
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
340
+ msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
341
+
342
+ #: mercadopago/mercadopago-custom-gateway.php:368
343
+ msgid "Invalid Document Sub Type"
344
+ msgstr "Subtipo del documento invalido"
345
+
346
+ #: mercadopago/mercadopago-custom-gateway.php:370
347
+ msgid "Parameter cardIssuerId can not be null/empty"
348
+ msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
349
+
350
+ #: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
351
+ msgid "Payment approved."
352
+ msgstr "Pago aprobado."
353
+
354
+ #: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
355
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
356
+ msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
357
+
358
+ #: mercadopago/mercadopago-custom-gateway.php:418
359
+ msgid "Check your order resume"
360
+ msgstr "Ver su hoja de pedido"
361
+
362
+ #: mercadopago/mercadopago-custom-gateway.php:431
363
+ msgid "Your payment was refused. You can try again."
364
+ msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
365
+
366
+ #: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
367
  msgid "Click to try again"
368
+ msgstr "Haga clic para Inténtalo de nuevo"
369
+
370
+ #: mercadopago/mercadopago-custom-gateway.php:455
371
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
372
+ msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
373
+
374
+ #: mercadopago/mercadopago-custom-gateway.php:544
375
+ msgid "Shipping"
376
+ msgstr "Envío"
377
 
378
+ #: mercadopago/mercadopago-custom-gateway.php:545
379
+ msgid "Shipping service used by store"
380
+ msgstr "Servicio de envío utilizado por el almacén"
381
+
382
+ #: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
383
+ msgid "WooCommerce &gt; System Status &gt; Logs"
384
+ msgstr "WooCommerce &gt; Estado del Sistema &gt; Logs"
385
+
386
+ #: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
387
+ #: mercadopago/mercadopago-gateway.php:705
388
  msgid "Mercado Pago is Inactive"
389
  msgstr "Mercado Pago Inactivo"
390
 
391
+ #: mercadopago/mercadopago-custom-gateway.php:769
392
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
393
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
394
 
395
+ #: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
396
  msgid "Click here and configure!"
397
  msgstr "Haga click aquí y configure!"
398
 
399
+ #: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
400
  msgid "The currency"
401
  msgstr "La moneda"
402
 
403
+ #: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
404
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Peru"
410
+
411
+ #: mercadopago/mercadopago-custom-gateway.php:809
412
+ msgid "Click to check your order"
413
+ msgstr "Haga clic para comprobar su pedido"
414
+
415
+ #: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
416
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
417
+ msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
418
+
419
+ #: mercadopago/mercadopago-custom-gateway.php:816
420
+ msgid "Reason is: "
421
+ msgstr "La razón es:"
422
 
423
+ #: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
424
  msgid "Mercado Pago Request Failure"
425
  msgstr "La solicitud de Mercado Pago ha fallado."
426
 
427
+ #: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
 
 
 
 
428
  msgid "Payer email"
429
  msgstr "Email del comprador"
430
 
431
+ #: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
432
  msgid "Payment type"
433
  msgstr "Método de pago"
434
 
435
+ #: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
436
+ msgid "Mercado Pago Payment ID"
437
+ msgstr "ID de pago de Mercado Pago"
438
 
439
+ #: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
440
  msgid "Customer haven't paid yet."
441
  msgstr "El cliente todavía no efectuó el pago."
442
 
443
+ #: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
444
  msgid "Payment under review."
445
  msgstr "El pago está pendiente de revisión."
446
 
447
+ #: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
448
  msgid "The payment was refused. The customer can try again."
449
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
450
 
451
+ #: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
452
  msgid "The payment was refunded to the customer."
453
  msgstr "El pago fue devuelto al cliente."
454
 
455
+ #: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
456
  msgid "The payment was cancelled."
457
  msgstr "El pago fue cancelado."
458
 
459
+ #: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
460
+ #: mercadopago/mercadopago-gateway.php:909
 
 
 
461
  msgid "The payment is under mediation or it was charged-back."
462
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
463
+
464
+ #: mercadopago/mercadopago-gateway.php:51
465
+ msgid "Mercado Pago - Standard Checkout"
466
+ msgstr "Mercado Pago - Checkout Estándar"
467
+
468
+ #: mercadopago/mercadopago-gateway.php:148
469
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
470
+ msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
471
+
472
+ #: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
473
+ msgid "Configure your Client_id and Client_secret to have access to more options."
474
+ msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
475
+
476
+ #: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
477
+ msgid "This field should be an integer."
478
+ msgstr "Este campo debe ser un número."
479
+
480
+ #: mercadopago/mercadopago-gateway.php:187
481
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
482
+ msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
483
+
484
+ #: mercadopago/mercadopago-gateway.php:195
485
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
486
+ msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
487
+
488
+ #: mercadopago/mercadopago-gateway.php:205
489
+ msgid "Select the max number of installments for your customers."
490
+ msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Standard Checkout"
494
+ msgstr "Habilitar el Checkout Estándar"
495
+
496
+ #: mercadopago/mercadopago-gateway.php:224
497
+ msgid "Insert your Mercado Pago Client_id."
498
+ msgstr "Inserte su Client_id de Mercado Pago."
499
+
500
+ #: mercadopago/mercadopago-gateway.php:231
501
+ msgid "Insert your Mercado Pago Client_secret."
502
+ msgstr "Inserte su Client_secret de Mercado Pago."
503
+
504
+ #: mercadopago/mercadopago-gateway.php:270
505
+ msgid "Integration Method"
506
+ msgstr "Método de integración"
507
+
508
+ #: mercadopago/mercadopago-gateway.php:272
509
+ msgid ""
510
+ "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
511
+ "internal window is embedded to the page layout)."
512
+ msgstr ""
513
+ "Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
514
+ "redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
515
+
516
+ #: mercadopago/mercadopago-gateway.php:275
517
+ msgid "iFrame"
518
+ msgstr "iFrame"
519
+
520
+ #: mercadopago/mercadopago-gateway.php:276
521
+ msgid "Modal Window"
522
+ msgstr "Ventana modal"
523
+
524
+ #: mercadopago/mercadopago-gateway.php:277
525
+ msgid "Redirect"
526
+ msgstr "Redireccionamiento"
527
+
528
+ #: mercadopago/mercadopago-gateway.php:281
529
+ msgid "iFrame Width"
530
+ msgstr "Ancho del iFrame"
531
+
532
+ #: mercadopago/mercadopago-gateway.php:287
533
+ msgid "iFrame Height"
534
+ msgstr "Alto del iFrame"
535
+
536
+ #: mercadopago/mercadopago-gateway.php:293
537
+ msgid "Auto Return"
538
+ msgstr "Redirección automática"
539
+
540
+ #: mercadopago/mercadopago-gateway.php:295
541
+ msgid "Automatic Return After Payment"
542
+ msgstr "Redirección Automática Luego del Pago"
543
+
544
+ #: mercadopago/mercadopago-gateway.php:297
545
+ msgid "After the payment, client is automatically redirected."
546
+ msgstr "Después del pago, el cliente será redireccionado automáticamente."
547
+
548
+ #: mercadopago/mercadopago-gateway.php:300
549
+ msgid "Payment Options"
550
+ msgstr "Opciones de Pago"
551
+
552
+ #: mercadopago/mercadopago-gateway.php:305
553
+ msgid "Max installments"
554
+ msgstr "Número máximo de cuotas"
555
+
556
+ #: mercadopago/mercadopago-gateway.php:311
557
+ msgid "Exclude Payment Methods"
558
+ msgstr "Excluir métodos de pago"
559
+
560
+ #: mercadopago/mercadopago-gateway.php:428
561
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
562
+ msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
563
+
564
+ #: mercadopago/mercadopago-gateway.php:436
565
+ msgid "Cancel order &amp; Clear cart"
566
+ msgstr "Cancelar &amp; Limpiar carrito"
567
+
568
+ #: mercadopago/mercadopago-gateway.php:446
569
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
570
+ msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
571
+
572
+ #: mercadopago/mercadopago-gateway.php:697
573
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
574
+ msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
575
+
576
+ msgid " as it appears in your card ..."
577
+ msgstr " tal como aparece en su tarjeta ..."
578
+
579
+ msgid "Done, your payment was accredited!"
580
+ msgstr "Listo, su pago ha sido aceptado!"
581
+
582
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
583
+ msgstr "Estamos procesando su pago. En menos de una hora se le notificará por correo electrónico."
584
+
585
+ msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
586
+ msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
587
+
588
+ msgid "Check the card number."
589
+ msgstr "Compruebe el número de tarjeta."
590
+
591
+ msgid "Check the expiration date."
592
+ msgstr "Compruebe la fecha de expiración."
593
+
594
+ msgid "Check the information."
595
+ msgstr "Compruebe la información informada."
596
+
597
+ msgid "Check the security code."
598
+ msgstr "Compruebe el código de seguridad informado."
599
+
600
+ msgid "We could not process your payment."
601
+ msgstr "No se puede procesar su pago."
602
+
603
+ msgid "You must authorize the payment of your orders."
604
+ msgstr "Usted debe autorizar pagos de sus órdenes."
605
+
606
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
607
+ msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
608
+
609
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
610
+ msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
611
+
612
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
613
+ msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
614
+
615
+ msgid "Your payment do not have sufficient funds."
616
+ msgstr "Su pago no tiene fondos suficientes."
617
+
618
+ msgid "Your payment does not process payments with selected installments."
619
+ msgstr "El pago no puede procesar la cuota seleccionada."
620
+
621
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
622
+ msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta forma de pago no puede procesar su pago."
626
+
627
+ msgid "Mercado Pago - Ticket"
628
+ msgstr "Mercado Pago - Ticket"
629
+
630
+ msgid "Mercado Pago - Credit Card"
631
+ msgstr "Mercado Pago - Tarjeta de Crédito"
632
+
633
+ msgid "Ticket Options"
634
+ msgstr "Opciones de Ticket"
635
+
636
+ msgid "Enable Ticket Payment Method"
637
+ msgstr "Habilitar Pago con Ticket"
638
+
639
+ msgid "Other Bank"
640
+ msgstr "Otro Banco"
641
+
642
+ msgid "Choose"
643
+ msgstr "Escoger"
644
+
645
+ msgid "A problem was occurred when processing your payment. Please, try again."
646
+ msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
647
+
648
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
649
+ msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
650
+
651
+ msgid "Waiting for the ticket payment."
652
+ msgstr "Esperando el pago del ticket."
653
+
654
+ msgid "Print the Ticket"
655
+ msgstr "Imprimir el ticket"
656
+
657
+ msgid "To reprint the ticket click "
658
+ msgstr "Para imprimir nuevamente el ticket hace clic "
659
+
660
+ msgid "here"
661
+ msgstr "aquí"
662
+
663
+ msgid "Custom Checkout is Inactive"
664
+ msgstr "Checkout Custom Inactivo"
665
+
666
+ msgid "Standard Checkout is Inactive"
667
+ msgstr "Checkout Estándar Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
673
+ msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
674
+
675
+ msgid "Important: The order will be confirmed only after the payment approval."
676
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
677
+
678
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
679
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
680
+
681
+ msgid "Your Card"
682
+ msgstr "Sus Tarjetas"
683
+
684
+ msgid "Other Cards"
685
+ msgstr "Otras Tarjetas"
686
+
687
+ msgid "Other Card"
688
+ msgstr "Otra Tarjeta"
689
+
690
+ msgid "ended in"
691
+ msgstr "terminado en"
692
+
693
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
694
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito previo porque la tramitación del pago se realiza en el servidor."
languages/woocommerce-mercadopago-module-es_CL.mo CHANGED
Binary file
languages/woocommerce-mercadopago-module-es_CL.po CHANGED
@@ -4,9 +4,9 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
- "POT-Creation-Date: 2016-03-04 20:48-0300\n"
8
  "PO-Revision-Date: \n"
9
- "Language-Team: Your Team <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -14,335 +14,681 @@ msgstr ""
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
18
- "X-Poedit-Basepath: ..\n"
 
19
  "X-Generator: Poedit 1.8.7\n"
20
  "Last-Translator: \n"
21
- "Language: es_AR\n"
22
  "X-Poedit-SearchPath-0: .\n"
23
 
24
  #. Description of the plugin/theme
25
  msgid "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."
26
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
27
 
28
- #: mercadopago-module.php:66
29
  #, php-format
30
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
31
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
32
 
33
- #: mercadopago/mercadopago-gateway.php:63
 
 
 
 
 
 
 
 
 
 
 
 
34
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
35
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
36
 
37
- #: mercadopago/mercadopago-gateway.php:133
 
38
  msgid "Argentine"
39
  msgstr "Argentina"
40
 
41
- #: mercadopago/mercadopago-gateway.php:134
 
42
  msgid "Brazil"
43
  msgstr "Brasil"
44
 
45
- #: mercadopago/mercadopago-gateway.php:135
 
46
  msgid "Chile"
47
  msgstr "Chile"
48
 
49
- #: mercadopago/mercadopago-gateway.php:136
 
50
  msgid "Colombia"
51
  msgstr "Colombia"
52
 
53
- #: mercadopago/mercadopago-gateway.php:137
 
54
  msgid "Mexico"
55
  msgstr "México"
56
 
57
- #: mercadopago/mercadopago-gateway.php:138
58
  msgid "or"
59
  msgstr "o"
60
 
61
- #: mercadopago/mercadopago-gateway.php:139
 
62
  msgid "Venezuela"
63
  msgstr "Venezuela"
64
 
65
- #: mercadopago/mercadopago-gateway.php:154
66
- msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
67
- msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
68
-
69
- #: mercadopago/mercadopago-gateway.php:157
70
  msgid "Your credentials are <strong>valid</strong> for"
71
  msgstr "Sus credenciales <strong>son válidas</strong> para"
72
 
73
- #: mercadopago/mercadopago-gateway.php:164 mercadopago/mercadopago-gateway.php:173
74
- msgid "Configure your Client_id and Client_secret to have access to more options."
75
- msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
76
-
77
- #: mercadopago/mercadopago-gateway.php:167 mercadopago/mercadopago-gateway.php:176
78
  msgid "Your credentials are <strong>not valid</strong>!"
79
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
80
 
81
- #: mercadopago/mercadopago-gateway.php:190 mercadopago/mercadopago-gateway.php:198 mercadopago/mercadopago-gateway.php:208
82
- msgid "This field should be an integer."
83
- msgstr "Este campo debe ser un número."
84
-
85
- #: mercadopago/mercadopago-gateway.php:193
86
- msgid "If your integration method is iFrame, please inform the payment iFrame width."
87
- msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
88
-
89
- #: mercadopago/mercadopago-gateway.php:201
90
- msgid "If your integration method is iFrame, please inform the payment iFrame height."
91
- msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
92
-
93
- #: mercadopago/mercadopago-gateway.php:211
94
- msgid "Select the max number of installments for your customers."
95
- msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
96
-
97
- #: mercadopago/mercadopago-gateway.php:217
98
  msgid "Enable/Disable"
99
  msgstr "Habilitar/Deshabilitar"
100
 
101
- #: mercadopago/mercadopago-gateway.php:219
102
- msgid "Enable Mercado Pago Module"
103
- msgstr "Habilitar Mercado Pago"
104
 
105
- #: mercadopago/mercadopago-gateway.php:223
106
  msgid "Mercado Pago Credentials"
107
  msgstr "Credenciales de Mercado Pago"
108
 
109
- #: mercadopago/mercadopago-gateway.php:225
110
  msgid "You can obtain your credentials for"
111
  msgstr "Puedes obtener tus credenciales para"
112
 
113
- #: mercadopago/mercadopago-gateway.php:228
114
- msgid "Mercado Pago Client_id"
115
- msgstr "Client_id de Mercado Pago"
116
-
117
- #: mercadopago/mercadopago-gateway.php:230
118
- msgid "Insert your Mercado Pago Client_id."
119
- msgstr "Inserte su Client_id de Mercado Pago."
120
-
121
- #: mercadopago/mercadopago-gateway.php:235
122
- msgid "Mercado Pago Client_secret"
123
- msgstr "Client_secret de Mercado Pago"
124
 
125
- #: mercadopago/mercadopago-gateway.php:237
126
- msgid "Insert your Mercado Pago Client_secret."
127
- msgstr "Inserte su Client_secret de Mercado Pago."
128
 
129
- #: mercadopago/mercadopago-gateway.php:242
130
  msgid "Instant Payment Notification (IPN) URL"
131
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
132
 
133
- #: mercadopago/mercadopago-gateway.php:244
134
  msgid "Your IPN URL to receive instant payment notifications is"
135
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
136
 
137
- #: mercadopago/mercadopago-gateway.php:247
138
  msgid "Checkout Options"
139
  msgstr "Opciones de Checkout"
140
 
141
- #: mercadopago/mercadopago-gateway.php:252
142
  msgid "Title"
143
  msgstr "Título"
144
 
145
- #: mercadopago/mercadopago-gateway.php:254
146
  msgid "Title shown to the client in the checkout."
147
  msgstr "Título mostrado al cliente en el checkout."
148
 
149
- #: mercadopago/mercadopago-gateway.php:258
 
 
 
 
150
  msgid "Description"
151
  msgstr "Descripción"
152
 
153
- #: mercadopago/mercadopago-gateway.php:260
154
  msgid "Description shown to the client in the checkout."
155
  msgstr "Descripción mostrada al cliente en el checkout."
156
 
157
- #: mercadopago/mercadopago-gateway.php:261 mercadopago/mercadopago-gateway.php:406
158
  msgid "Pay with Mercado Pago"
159
  msgstr "Pagar con Mercado Pago"
160
 
161
- #: mercadopago/mercadopago-gateway.php:264
162
- msgid "Store Category"
163
- msgstr "Categoría de la tienda"
164
-
165
- #: mercadopago/mercadopago-gateway.php:266
166
- msgid "Define which type of products your store sells."
167
- msgstr "Defina el tipo de productos que su tienda vende."
168
-
169
- #: mercadopago/mercadopago-gateway.php:270
170
- msgid "Store Identificator"
171
- msgstr "Identificador de la tienda"
172
 
173
- #: mercadopago/mercadopago-gateway.php:272
174
- msgid "Please, inform a prefix to your store."
175
- msgstr "Por favor, informe un prefijo para su tienda."
176
 
177
- #: mercadopago/mercadopago-gateway.php:272
178
- msgid "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators."
179
- msgstr "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
180
 
181
- #: mercadopago/mercadopago-gateway.php:276
182
- msgid "Integration Method"
183
- msgstr "Método de integración"
184
 
185
- #: mercadopago/mercadopago-gateway.php:278
186
- msgid "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an internal window is embedded to the page layout)."
187
- msgstr "Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
188
 
189
- #: mercadopago/mercadopago-gateway.php:281
190
- msgid "iFrame"
191
- msgstr "iFrame"
192
 
193
- #: mercadopago/mercadopago-gateway.php:282
194
- msgid "Modal Window"
195
- msgstr "Ventana modal"
196
 
197
- #: mercadopago/mercadopago-gateway.php:283
198
- msgid "Redirect"
199
- msgstr "Redireccionamiento"
200
-
201
- #: mercadopago/mercadopago-gateway.php:287
202
- msgid "iFrame Width"
203
- msgstr "Ancho del iFrame"
204
-
205
- #: mercadopago/mercadopago-gateway.php:293
206
- msgid "iFrame Height"
207
- msgstr "Alto del iFrame"
208
-
209
- #: mercadopago/mercadopago-gateway.php:299
210
- msgid "Auto Return"
211
- msgstr "Redirección automática"
212
 
213
- #: mercadopago/mercadopago-gateway.php:301
214
- msgid "Automatic Return After Payment"
215
- msgstr "Redirección Automática Luego del Pago"
216
 
217
- #: mercadopago/mercadopago-gateway.php:303
218
- msgid "After the payment, client is automatically redirected."
219
- msgstr "Después del pago, el cliente será redireccionado automáticamente."
220
 
221
- #: mercadopago/mercadopago-gateway.php:306
222
- msgid "Payment Options"
223
- msgstr "Opciones de Pago"
224
 
225
- #: mercadopago/mercadopago-gateway.php:311
226
- msgid "Max installments"
227
- msgstr "Número máximo de cuotas"
228
 
229
- #: mercadopago/mercadopago-gateway.php:317
230
- msgid "Exclude Payment Methods"
231
- msgstr "Excluir métodos de pago"
 
 
 
232
 
233
- #: mercadopago/mercadopago-gateway.php:324
234
  msgid "Test and Debug Options"
235
  msgstr "Opciones de Prueba y Debug"
236
 
237
- #: mercadopago/mercadopago-gateway.php:329
238
  msgid "Mercado Pago Sandbox"
239
  msgstr "Sandbox Mercado Pago"
240
 
241
- #: mercadopago/mercadopago-gateway.php:331
242
  msgid "Enable Mercado Pago Sandbox"
243
  msgstr "Habilitar el sandbox de Mercado Pago"
244
 
245
- #: mercadopago/mercadopago-gateway.php:333
246
- msgid "This options allows you to test payments inside a sandbox environment."
247
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
248
 
249
- #: mercadopago/mercadopago-gateway.php:336
250
  msgid "Debug and Log"
251
  msgstr "Debug y Log"
252
 
253
- #: mercadopago/mercadopago-gateway.php:338
254
  msgid "Enable log"
255
  msgstr "Habilitar Log"
256
 
257
- #: mercadopago/mercadopago-gateway.php:340
258
- #, php-format
259
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
260
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
261
 
262
- #: mercadopago/mercadopago-gateway.php:402
263
- msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
264
- msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
265
 
266
- #: mercadopago/mercadopago-gateway.php:410
267
- msgid "Cancel order &amp; Clear cart"
268
- msgstr "Cancelar &amp; Limpiar carrito"
 
269
 
270
- #: mercadopago/mercadopago-gateway.php:420
271
- msgid "Thank you for your order. Proceed with your payment completing the following information."
272
- msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
273
 
274
- #: mercadopago/mercadopago-gateway.php:431
275
- msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
276
- msgstr "Un error ocurrió durante el procesamiento de su pago. Por favor intente nuevamente o contactenos para ayudarlo."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
 
278
- #: mercadopago/mercadopago-gateway.php:434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  msgid "Click to try again"
280
- msgstr "Haga click para intentar de nuevo"
 
 
 
 
 
 
 
 
281
 
282
- #: mercadopago/mercadopago-gateway.php:675 mercadopago/mercadopago-gateway.php:686
 
 
 
 
 
 
 
 
 
283
  msgid "Mercado Pago is Inactive"
284
  msgstr "Mercado Pago Inactivo"
285
 
286
- #: mercadopago/mercadopago-gateway.php:678
287
- msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
288
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
289
 
290
- #: mercadopago/mercadopago-gateway.php:679
291
  msgid "Click here and configure!"
292
  msgstr "Haga click aquí y configure!"
293
 
294
- #: mercadopago/mercadopago-gateway.php:689
295
  msgid "The currency"
296
  msgstr "La moneda"
297
 
298
- #: mercadopago/mercadopago-gateway.php:689
299
- msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, USD, VEF."
300
- msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, USD, VEF."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
 
302
- #: mercadopago/mercadopago-gateway.php:714
303
  msgid "Mercado Pago Request Failure"
304
  msgstr "La solicitud de Mercado Pago ha fallado."
305
 
306
- #: mercadopago/mercadopago-gateway.php:791
307
- msgid "Mercado Pago Transaction ID"
308
- msgstr "ID de operación de Mercado Pago"
309
-
310
- #: mercadopago/mercadopago-gateway.php:798
311
  msgid "Payer email"
312
  msgstr "Email del comprador"
313
 
314
- #: mercadopago/mercadopago-gateway.php:805
315
  msgid "Payment type"
316
  msgstr "Método de pago"
317
 
318
- #: mercadopago/mercadopago-gateway.php:810
319
- msgid "Payment approved."
320
- msgstr "Pago aprobado."
321
 
322
- #: mercadopago/mercadopago-gateway.php:816
323
  msgid "Customer haven't paid yet."
324
  msgstr "El cliente todavía no efectuó el pago."
325
 
326
- #: mercadopago/mercadopago-gateway.php:821
327
  msgid "Payment under review."
328
  msgstr "El pago está pendiente de revisión."
329
 
330
- #: mercadopago/mercadopago-gateway.php:826
331
  msgid "The payment was refused. The customer can try again."
332
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
333
 
334
- #: mercadopago/mercadopago-gateway.php:832
335
  msgid "The payment was refunded to the customer."
336
  msgstr "El pago fue devuelto al cliente."
337
 
338
- #: mercadopago/mercadopago-gateway.php:838
339
  msgid "The payment was cancelled."
340
  msgstr "El pago fue cancelado."
341
 
342
- #: mercadopago/mercadopago-gateway.php:843
343
- msgid "Mercado Pago Payment ID"
344
- msgstr "ID de pago de Mercado Pago"
345
-
346
- #: mercadopago/mercadopago-gateway.php:843 mercadopago/mercadopago-gateway.php:848
347
  msgid "The payment is under mediation or it was charged-back."
348
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
+ "POT-Creation-Date: 2016-05-23 14:52-0300\n"
8
  "PO-Revision-Date: \n"
9
+ "Language-Team: Product Development <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
18
+ "_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
19
+ "X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
20
  "X-Generator: Poedit 1.8.7\n"
21
  "Last-Translator: \n"
22
+ "Language: es\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
25
  #. Description of the plugin/theme
26
  msgid "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."
27
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
28
 
29
+ #: mercadopago-module.php:69
30
  #, php-format
31
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
32
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
33
 
34
+ #: mercadopago-module.php:109
35
+ msgid "Standard Checkout"
36
+ msgstr "Checkout Estándar"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Custom"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Custom"
45
+
46
+ #: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
47
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
48
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
49
 
50
+ #: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
51
+ #: mercadopago/mercadopago-gateway.php:716
52
  msgid "Argentine"
53
  msgstr "Argentina"
54
 
55
+ #: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
56
+ #: mercadopago/mercadopago-gateway.php:717
57
  msgid "Brazil"
58
  msgstr "Brasil"
59
 
60
+ #: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
61
+ #: mercadopago/mercadopago-gateway.php:719
62
  msgid "Chile"
63
  msgstr "Chile"
64
 
65
+ #: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
66
+ #: mercadopago/mercadopago-gateway.php:718
67
  msgid "Colombia"
68
  msgstr "Colombia"
69
 
70
+ #: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
71
+ #: mercadopago/mercadopago-gateway.php:720
72
  msgid "Mexico"
73
  msgstr "México"
74
 
75
+ #: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
76
  msgid "or"
77
  msgstr "o"
78
 
79
+ #: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
80
+ #: mercadopago/mercadopago-gateway.php:721
81
  msgid "Venezuela"
82
  msgstr "Venezuela"
83
 
84
+ #: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
 
 
 
 
85
  msgid "Your credentials are <strong>valid</strong> for"
86
  msgstr "Sus credenciales <strong>son válidas</strong> para"
87
 
88
+ #: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
89
+ #: mercadopago/mercadopago-gateway.php:170
 
 
 
90
  msgid "Your credentials are <strong>not valid</strong>!"
91
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
92
 
93
+ #: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  msgid "Enable/Disable"
95
  msgstr "Habilitar/Deshabilitar"
96
 
97
+ #: mercadopago/mercadopago-custom-gateway.php:171
98
+ msgid "Enable Custom Checkout"
99
+ msgstr "Habilitar Checkout Custom"
100
 
101
+ #: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
102
  msgid "Mercado Pago Credentials"
103
  msgstr "Credenciales de Mercado Pago"
104
 
105
+ #: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
106
  msgid "You can obtain your credentials for"
107
  msgstr "Puedes obtener tus credenciales para"
108
 
109
+ #: mercadopago/mercadopago-custom-gateway.php:182
110
+ msgid "Insert your Mercado Pago Public key."
111
+ msgstr "Inserte su Public Key de Mercado Pago."
 
 
 
 
 
 
 
 
112
 
113
+ #: mercadopago/mercadopago-custom-gateway.php:189
114
+ msgid "Insert your Mercado Pago Access token."
115
+ msgstr "Inserte su Access Token de Mercado Pago."
116
 
117
+ #: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
118
  msgid "Instant Payment Notification (IPN) URL"
119
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
120
 
121
+ #: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
122
  msgid "Your IPN URL to receive instant payment notifications is"
123
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
124
 
125
+ #: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
126
  msgid "Checkout Options"
127
  msgstr "Opciones de Checkout"
128
 
129
+ #: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
130
  msgid "Title"
131
  msgstr "Título"
132
 
133
+ #: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
134
  msgid "Title shown to the client in the checkout."
135
  msgstr "Título mostrado al cliente en el checkout."
136
 
137
+ #: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
138
+ msgid "Mercado Pago"
139
+ msgstr "Mercado Pago"
140
+
141
+ #: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
142
  msgid "Description"
143
  msgstr "Descripción"
144
 
145
+ #: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
146
  msgid "Description shown to the client in the checkout."
147
  msgstr "Descripción mostrada al cliente en el checkout."
148
 
149
+ #: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
150
  msgid "Pay with Mercado Pago"
151
  msgstr "Pagar con Mercado Pago"
152
 
153
+ #: mercadopago/mercadopago-custom-gateway.php:216
154
+ msgid "Statement Descriptor"
155
+ msgstr "Descripción de la Factura"
 
 
 
 
 
 
 
 
156
 
157
+ #: mercadopago/mercadopago-custom-gateway.php:218
158
+ msgid "The description that will be shown in your customer's invoice."
159
+ msgstr "La descripción que se muestra en la factura de su cliente."
160
 
161
+ #: mercadopago/mercadopago-custom-gateway.php:222
162
+ msgid "Binary Mode"
163
+ msgstr "Modo binario"
164
 
165
+ #: mercadopago/mercadopago-custom-gateway.php:224
166
+ msgid "Enable binary mode for checkout status"
167
+ msgstr "Activar el modo binario para el estado del checkout"
168
 
169
+ #: mercadopago/mercadopago-custom-gateway.php:226
170
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
171
+ msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
172
 
173
+ #: mercadopago/mercadopago-custom-gateway.php:229
174
+ msgid "Ticket"
175
+ msgstr "Ticket"
176
 
177
+ #: mercadopago/mercadopago-custom-gateway.php:231
178
+ msgid "Enable Ticket for Custom Checkout"
179
+ msgstr "Habilitar Ticket para Checkout Custom"
180
 
181
+ #: mercadopago/mercadopago-custom-gateway.php:233
182
+ msgid "Let your customer pay you with tickets"
183
+ msgstr "Deje que su cliente le paga con tickets"
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
+ #: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
186
+ msgid "Store Category"
187
+ msgstr "Categoría de la tienda"
188
 
189
+ #: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
190
+ msgid "Define which type of products your store sells."
191
+ msgstr "Defina el tipo de productos que su tienda vende."
192
 
193
+ #: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
194
+ msgid "Store Identificator"
195
+ msgstr "Identificador de la tienda"
196
 
197
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
198
+ msgid "Please, inform a prefix to your store."
199
+ msgstr "Por favor, informe un prefijo para su tienda."
200
 
201
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
202
+ msgid ""
203
+ "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
204
+ "identificators."
205
+ msgstr ""
206
+ "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
207
 
208
+ #: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
209
  msgid "Test and Debug Options"
210
  msgstr "Opciones de Prueba y Debug"
211
 
212
+ #: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
213
  msgid "Mercado Pago Sandbox"
214
  msgstr "Sandbox Mercado Pago"
215
 
216
+ #: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
217
  msgid "Enable Mercado Pago Sandbox"
218
  msgstr "Habilitar el sandbox de Mercado Pago"
219
 
220
+ #: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
221
+ msgid "This option allows you to test payments inside a sandbox environment."
222
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
223
 
224
+ #: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
225
  msgid "Debug and Log"
226
  msgstr "Debug y Log"
227
 
228
+ #: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
229
  msgid "Enable log"
230
  msgstr "Habilitar Log"
231
 
232
+ #: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
 
233
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
234
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
235
 
236
+ #: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
237
+ msgid "File location: "
238
+ msgstr "Local del archivo: "
239
 
240
+ #: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
241
+ #, php-format
242
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
243
+ msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Métodos de Pago"
248
 
249
+ #: mercadopago/mercadopago-custom-gateway.php:333
250
+ msgid "Credit card number"
251
+ msgstr "Número de tarjeta de crédito"
252
+
253
+ #: mercadopago/mercadopago-custom-gateway.php:334
254
+ msgid "Expiration month"
255
+ msgstr "Mes de expiración"
256
+
257
+ #: mercadopago/mercadopago-custom-gateway.php:335
258
+ msgid "Expiration year"
259
+ msgstr "Año de expiración"
260
+
261
+ #: mercadopago/mercadopago-custom-gateway.php:336
262
+ msgid "Year"
263
+ msgstr "Año"
264
+
265
+ #: mercadopago/mercadopago-custom-gateway.php:337
266
+ msgid "Month"
267
+ msgstr "Mes"
268
+
269
+ #: mercadopago/mercadopago-custom-gateway.php:338
270
+ msgid "Card holder name"
271
+ msgstr "Nombre del titular de la tarjeta"
272
+
273
+ #: mercadopago/mercadopago-custom-gateway.php:339
274
+ msgid "Security code"
275
+ msgstr "Código de seguridad"
276
+
277
+ #: mercadopago/mercadopago-custom-gateway.php:340
278
+ msgid "Document Type"
279
+ msgstr "Tipo de Documento"
280
 
281
+ #: mercadopago/mercadopago-custom-gateway.php:341
282
+ msgid "Document number"
283
+ msgstr "Número del Documento"
284
+
285
+ #: mercadopago/mercadopago-custom-gateway.php:342
286
+ msgid "Issuer"
287
+ msgstr "Emisor"
288
+
289
+ #: mercadopago/mercadopago-custom-gateway.php:343
290
+ msgid "Installments"
291
+ msgstr "Cuotas"
292
+
293
+ #: mercadopago/mercadopago-custom-gateway.php:347
294
+ msgid "Parameter cardNumber can not be null/empty"
295
+ msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Numero de tarjeta invalido"
300
+
301
+ #: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
302
+ #: mercadopago/mercadopago-custom-gateway.php:353
303
+ msgid "Invalid Expiration Date"
304
+ msgstr "Fecha de vencimiento inválida"
305
+
306
+ #: mercadopago/mercadopago-custom-gateway.php:355
307
+ msgid "Parameter cardholderName can not be null/empty"
308
+ msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
309
+
310
+ #: mercadopago/mercadopago-custom-gateway.php:356
311
+ msgid "Invalid Card Holder Name"
312
+ msgstr "Nombre del titular de la tarjeta invalido"
313
+
314
+ #: mercadopago/mercadopago-custom-gateway.php:358
315
+ msgid "Parameter securityCode can not be null/empty"
316
+ msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
317
+
318
+ #: mercadopago/mercadopago-custom-gateway.php:359
319
+ msgid "Invalid Security Code"
320
+ msgstr "Código de seguridad invalido"
321
+
322
+ #: mercadopago/mercadopago-custom-gateway.php:361
323
+ msgid "Parameter docType can not be null/empty"
324
+ msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
325
+
326
+ #: mercadopago/mercadopago-custom-gateway.php:362
327
+ msgid "Invalid Document Type"
328
+ msgstr "Tipo de Documento invalido"
329
+
330
+ #: mercadopago/mercadopago-custom-gateway.php:364
331
+ msgid "Parameter docNumber can not be null/empty"
332
+ msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
333
+
334
+ #: mercadopago/mercadopago-custom-gateway.php:365
335
+ msgid "Invalid Document Number"
336
+ msgstr "Número del Documento invalido"
337
+
338
+ #: mercadopago/mercadopago-custom-gateway.php:367
339
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
340
+ msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
341
+
342
+ #: mercadopago/mercadopago-custom-gateway.php:368
343
+ msgid "Invalid Document Sub Type"
344
+ msgstr "Subtipo del documento invalido"
345
+
346
+ #: mercadopago/mercadopago-custom-gateway.php:370
347
+ msgid "Parameter cardIssuerId can not be null/empty"
348
+ msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
349
+
350
+ #: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
351
+ msgid "Payment approved."
352
+ msgstr "Pago aprobado."
353
+
354
+ #: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
355
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
356
+ msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
357
+
358
+ #: mercadopago/mercadopago-custom-gateway.php:418
359
+ msgid "Check your order resume"
360
+ msgstr "Ver su hoja de pedido"
361
+
362
+ #: mercadopago/mercadopago-custom-gateway.php:431
363
+ msgid "Your payment was refused. You can try again."
364
+ msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
365
+
366
+ #: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
367
  msgid "Click to try again"
368
+ msgstr "Haga clic para Inténtalo de nuevo"
369
+
370
+ #: mercadopago/mercadopago-custom-gateway.php:455
371
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
372
+ msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
373
+
374
+ #: mercadopago/mercadopago-custom-gateway.php:544
375
+ msgid "Shipping"
376
+ msgstr "Envío"
377
 
378
+ #: mercadopago/mercadopago-custom-gateway.php:545
379
+ msgid "Shipping service used by store"
380
+ msgstr "Servicio de envío utilizado por el almacén"
381
+
382
+ #: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
383
+ msgid "WooCommerce &gt; System Status &gt; Logs"
384
+ msgstr "WooCommerce &gt; Estado del Sistema &gt; Logs"
385
+
386
+ #: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
387
+ #: mercadopago/mercadopago-gateway.php:705
388
  msgid "Mercado Pago is Inactive"
389
  msgstr "Mercado Pago Inactivo"
390
 
391
+ #: mercadopago/mercadopago-custom-gateway.php:769
392
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
393
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
394
 
395
+ #: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
396
  msgid "Click here and configure!"
397
  msgstr "Haga click aquí y configure!"
398
 
399
+ #: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
400
  msgid "The currency"
401
  msgstr "La moneda"
402
 
403
+ #: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
404
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Peru"
410
+
411
+ #: mercadopago/mercadopago-custom-gateway.php:809
412
+ msgid "Click to check your order"
413
+ msgstr "Haga clic para comprobar su pedido"
414
+
415
+ #: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
416
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
417
+ msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
418
+
419
+ #: mercadopago/mercadopago-custom-gateway.php:816
420
+ msgid "Reason is: "
421
+ msgstr "La razón es:"
422
 
423
+ #: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
424
  msgid "Mercado Pago Request Failure"
425
  msgstr "La solicitud de Mercado Pago ha fallado."
426
 
427
+ #: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
 
 
 
 
428
  msgid "Payer email"
429
  msgstr "Email del comprador"
430
 
431
+ #: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
432
  msgid "Payment type"
433
  msgstr "Método de pago"
434
 
435
+ #: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
436
+ msgid "Mercado Pago Payment ID"
437
+ msgstr "ID de pago de Mercado Pago"
438
 
439
+ #: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
440
  msgid "Customer haven't paid yet."
441
  msgstr "El cliente todavía no efectuó el pago."
442
 
443
+ #: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
444
  msgid "Payment under review."
445
  msgstr "El pago está pendiente de revisión."
446
 
447
+ #: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
448
  msgid "The payment was refused. The customer can try again."
449
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
450
 
451
+ #: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
452
  msgid "The payment was refunded to the customer."
453
  msgstr "El pago fue devuelto al cliente."
454
 
455
+ #: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
456
  msgid "The payment was cancelled."
457
  msgstr "El pago fue cancelado."
458
 
459
+ #: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
460
+ #: mercadopago/mercadopago-gateway.php:909
 
 
 
461
  msgid "The payment is under mediation or it was charged-back."
462
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
463
+
464
+ #: mercadopago/mercadopago-gateway.php:51
465
+ msgid "Mercado Pago - Standard Checkout"
466
+ msgstr "Mercado Pago - Checkout Estándar"
467
+
468
+ #: mercadopago/mercadopago-gateway.php:148
469
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
470
+ msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
471
+
472
+ #: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
473
+ msgid "Configure your Client_id and Client_secret to have access to more options."
474
+ msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
475
+
476
+ #: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
477
+ msgid "This field should be an integer."
478
+ msgstr "Este campo debe ser un número."
479
+
480
+ #: mercadopago/mercadopago-gateway.php:187
481
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
482
+ msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
483
+
484
+ #: mercadopago/mercadopago-gateway.php:195
485
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
486
+ msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
487
+
488
+ #: mercadopago/mercadopago-gateway.php:205
489
+ msgid "Select the max number of installments for your customers."
490
+ msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Standard Checkout"
494
+ msgstr "Habilitar el Checkout Estándar"
495
+
496
+ #: mercadopago/mercadopago-gateway.php:224
497
+ msgid "Insert your Mercado Pago Client_id."
498
+ msgstr "Inserte su Client_id de Mercado Pago."
499
+
500
+ #: mercadopago/mercadopago-gateway.php:231
501
+ msgid "Insert your Mercado Pago Client_secret."
502
+ msgstr "Inserte su Client_secret de Mercado Pago."
503
+
504
+ #: mercadopago/mercadopago-gateway.php:270
505
+ msgid "Integration Method"
506
+ msgstr "Método de integración"
507
+
508
+ #: mercadopago/mercadopago-gateway.php:272
509
+ msgid ""
510
+ "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
511
+ "internal window is embedded to the page layout)."
512
+ msgstr ""
513
+ "Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
514
+ "redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
515
+
516
+ #: mercadopago/mercadopago-gateway.php:275
517
+ msgid "iFrame"
518
+ msgstr "iFrame"
519
+
520
+ #: mercadopago/mercadopago-gateway.php:276
521
+ msgid "Modal Window"
522
+ msgstr "Ventana modal"
523
+
524
+ #: mercadopago/mercadopago-gateway.php:277
525
+ msgid "Redirect"
526
+ msgstr "Redireccionamiento"
527
+
528
+ #: mercadopago/mercadopago-gateway.php:281
529
+ msgid "iFrame Width"
530
+ msgstr "Ancho del iFrame"
531
+
532
+ #: mercadopago/mercadopago-gateway.php:287
533
+ msgid "iFrame Height"
534
+ msgstr "Alto del iFrame"
535
+
536
+ #: mercadopago/mercadopago-gateway.php:293
537
+ msgid "Auto Return"
538
+ msgstr "Redirección automática"
539
+
540
+ #: mercadopago/mercadopago-gateway.php:295
541
+ msgid "Automatic Return After Payment"
542
+ msgstr "Redirección Automática Luego del Pago"
543
+
544
+ #: mercadopago/mercadopago-gateway.php:297
545
+ msgid "After the payment, client is automatically redirected."
546
+ msgstr "Después del pago, el cliente será redireccionado automáticamente."
547
+
548
+ #: mercadopago/mercadopago-gateway.php:300
549
+ msgid "Payment Options"
550
+ msgstr "Opciones de Pago"
551
+
552
+ #: mercadopago/mercadopago-gateway.php:305
553
+ msgid "Max installments"
554
+ msgstr "Número máximo de cuotas"
555
+
556
+ #: mercadopago/mercadopago-gateway.php:311
557
+ msgid "Exclude Payment Methods"
558
+ msgstr "Excluir métodos de pago"
559
+
560
+ #: mercadopago/mercadopago-gateway.php:428
561
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
562
+ msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
563
+
564
+ #: mercadopago/mercadopago-gateway.php:436
565
+ msgid "Cancel order &amp; Clear cart"
566
+ msgstr "Cancelar &amp; Limpiar carrito"
567
+
568
+ #: mercadopago/mercadopago-gateway.php:446
569
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
570
+ msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
571
+
572
+ #: mercadopago/mercadopago-gateway.php:697
573
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
574
+ msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
575
+
576
+ msgid " as it appears in your card ..."
577
+ msgstr " tal como aparece en su tarjeta ..."
578
+
579
+ msgid "Done, your payment was accredited!"
580
+ msgstr "Listo, su pago ha sido aceptado!"
581
+
582
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
583
+ msgstr "Estamos procesando su pago. En menos de una hora se le notificará por correo electrónico."
584
+
585
+ msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
586
+ msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
587
+
588
+ msgid "Check the card number."
589
+ msgstr "Compruebe el número de tarjeta."
590
+
591
+ msgid "Check the expiration date."
592
+ msgstr "Compruebe la fecha de expiración."
593
+
594
+ msgid "Check the information."
595
+ msgstr "Compruebe la información informada."
596
+
597
+ msgid "Check the security code."
598
+ msgstr "Compruebe el código de seguridad informado."
599
+
600
+ msgid "We could not process your payment."
601
+ msgstr "No se puede procesar su pago."
602
+
603
+ msgid "You must authorize the payment of your orders."
604
+ msgstr "Usted debe autorizar pagos de sus órdenes."
605
+
606
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
607
+ msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
608
+
609
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
610
+ msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
611
+
612
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
613
+ msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
614
+
615
+ msgid "Your payment do not have sufficient funds."
616
+ msgstr "Su pago no tiene fondos suficientes."
617
+
618
+ msgid "Your payment does not process payments with selected installments."
619
+ msgstr "El pago no puede procesar la cuota seleccionada."
620
+
621
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
622
+ msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta forma de pago no puede procesar su pago."
626
+
627
+ msgid "Mercado Pago - Ticket"
628
+ msgstr "Mercado Pago - Ticket"
629
+
630
+ msgid "Mercado Pago - Credit Card"
631
+ msgstr "Mercado Pago - Tarjeta de Crédito"
632
+
633
+ msgid "Ticket Options"
634
+ msgstr "Opciones de Ticket"
635
+
636
+ msgid "Enable Ticket Payment Method"
637
+ msgstr "Habilitar Pago con Ticket"
638
+
639
+ msgid "Other Bank"
640
+ msgstr "Otro Banco"
641
+
642
+ msgid "Choose"
643
+ msgstr "Escoger"
644
+
645
+ msgid "A problem was occurred when processing your payment. Please, try again."
646
+ msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
647
+
648
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
649
+ msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
650
+
651
+ msgid "Waiting for the ticket payment."
652
+ msgstr "Esperando el pago del ticket."
653
+
654
+ msgid "Print the Ticket"
655
+ msgstr "Imprimir el ticket"
656
+
657
+ msgid "To reprint the ticket click "
658
+ msgstr "Para imprimir nuevamente el ticket hace clic "
659
+
660
+ msgid "here"
661
+ msgstr "aquí"
662
+
663
+ msgid "Custom Checkout is Inactive"
664
+ msgstr "Checkout Custom Inactivo"
665
+
666
+ msgid "Standard Checkout is Inactive"
667
+ msgstr "Checkout Estándar Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
673
+ msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
674
+
675
+ msgid "Important: The order will be confirmed only after the payment approval."
676
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
677
+
678
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
679
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
680
+
681
+ msgid "Your Card"
682
+ msgstr "Sus Tarjetas"
683
+
684
+ msgid "Other Cards"
685
+ msgstr "Otras Tarjetas"
686
+
687
+ msgid "Other Card"
688
+ msgstr "Otra Tarjeta"
689
+
690
+ msgid "ended in"
691
+ msgstr "terminado en"
692
+
693
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
694
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito previo porque la tramitación del pago se realiza en el servidor."
languages/woocommerce-mercadopago-module-es_CO.mo CHANGED
Binary file
languages/woocommerce-mercadopago-module-es_CO.po CHANGED
@@ -4,9 +4,9 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
- "POT-Creation-Date: 2016-03-04 20:48-0300\n"
8
  "PO-Revision-Date: \n"
9
- "Language-Team: Your Team <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -14,342 +14,681 @@ msgstr ""
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
18
- "X-Poedit-Basepath: ..\n"
 
19
  "X-Generator: Poedit 1.8.7\n"
20
  "Last-Translator: \n"
21
- "Language: es_AR\n"
22
  "X-Poedit-SearchPath-0: .\n"
23
 
24
  #. Description of the plugin/theme
25
  msgid "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."
26
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
27
 
28
- #: mercadopago-module.php:66
29
  #, php-format
30
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
31
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
32
 
33
- #: mercadopago/mercadopago-gateway.php:63
 
 
 
 
 
 
 
 
 
 
 
 
34
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
35
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
36
 
37
- #: mercadopago/mercadopago-gateway.php:133
 
38
  msgid "Argentine"
39
  msgstr "Argentina"
40
 
41
- #: mercadopago/mercadopago-gateway.php:134
 
42
  msgid "Brazil"
43
  msgstr "Brasil"
44
 
45
- #: mercadopago/mercadopago-gateway.php:135
 
46
  msgid "Chile"
47
  msgstr "Chile"
48
 
49
- #: mercadopago/mercadopago-gateway.php:136
 
50
  msgid "Colombia"
51
  msgstr "Colombia"
52
 
53
- #: mercadopago/mercadopago-gateway.php:137
 
54
  msgid "Mexico"
55
  msgstr "México"
56
 
57
- #: mercadopago/mercadopago-gateway.php:138
58
  msgid "or"
59
  msgstr "o"
60
 
61
- #: mercadopago/mercadopago-gateway.php:139
 
62
  msgid "Venezuela"
63
  msgstr "Venezuela"
64
 
65
- #: mercadopago/mercadopago-gateway.php:154
66
- msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
67
- msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
68
-
69
- #: mercadopago/mercadopago-gateway.php:157
70
  msgid "Your credentials are <strong>valid</strong> for"
71
  msgstr "Sus credenciales <strong>son válidas</strong> para"
72
 
73
- #: mercadopago/mercadopago-gateway.php:164
74
- #: mercadopago/mercadopago-gateway.php:173
75
- msgid "Configure your Client_id and Client_secret to have access to more options."
76
- msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
77
-
78
- #: mercadopago/mercadopago-gateway.php:167
79
- #: mercadopago/mercadopago-gateway.php:176
80
  msgid "Your credentials are <strong>not valid</strong>!"
81
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
82
 
83
- #: mercadopago/mercadopago-gateway.php:190
84
- #: mercadopago/mercadopago-gateway.php:198
85
- #: mercadopago/mercadopago-gateway.php:208
86
- msgid "This field should be an integer."
87
- msgstr "Este campo debe ser un número."
88
-
89
- #: mercadopago/mercadopago-gateway.php:193
90
- msgid "If your integration method is iFrame, please inform the payment iFrame width."
91
- msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
92
-
93
- #: mercadopago/mercadopago-gateway.php:201
94
- msgid "If your integration method is iFrame, please inform the payment iFrame height."
95
- msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
96
-
97
- #: mercadopago/mercadopago-gateway.php:211
98
- msgid "Select the max number of installments for your customers."
99
- msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
100
-
101
- #: mercadopago/mercadopago-gateway.php:217
102
  msgid "Enable/Disable"
103
  msgstr "Habilitar/Deshabilitar"
104
 
105
- #: mercadopago/mercadopago-gateway.php:219
106
- msgid "Enable Mercado Pago Module"
107
- msgstr "Habilitar Mercado Pago"
108
 
109
- #: mercadopago/mercadopago-gateway.php:223
110
  msgid "Mercado Pago Credentials"
111
  msgstr "Credenciales de Mercado Pago"
112
 
113
- #: mercadopago/mercadopago-gateway.php:225
114
  msgid "You can obtain your credentials for"
115
  msgstr "Puedes obtener tus credenciales para"
116
 
117
- #: mercadopago/mercadopago-gateway.php:228
118
- msgid "Mercado Pago Client_id"
119
- msgstr "Client_id de Mercado Pago"
120
-
121
- #: mercadopago/mercadopago-gateway.php:230
122
- msgid "Insert your Mercado Pago Client_id."
123
- msgstr "Inserte su Client_id de Mercado Pago."
124
-
125
- #: mercadopago/mercadopago-gateway.php:235
126
- msgid "Mercado Pago Client_secret"
127
- msgstr "Client_secret de Mercado Pago"
128
 
129
- #: mercadopago/mercadopago-gateway.php:237
130
- msgid "Insert your Mercado Pago Client_secret."
131
- msgstr "Inserte su Client_secret de Mercado Pago."
132
 
133
- #: mercadopago/mercadopago-gateway.php:242
134
  msgid "Instant Payment Notification (IPN) URL"
135
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
136
 
137
- #: mercadopago/mercadopago-gateway.php:244
138
  msgid "Your IPN URL to receive instant payment notifications is"
139
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
140
 
141
- #: mercadopago/mercadopago-gateway.php:247
142
  msgid "Checkout Options"
143
  msgstr "Opciones de Checkout"
144
 
145
- #: mercadopago/mercadopago-gateway.php:252
146
  msgid "Title"
147
  msgstr "Título"
148
 
149
- #: mercadopago/mercadopago-gateway.php:254
150
  msgid "Title shown to the client in the checkout."
151
  msgstr "Título mostrado al cliente en el checkout."
152
 
153
- #: mercadopago/mercadopago-gateway.php:258
 
 
 
 
154
  msgid "Description"
155
  msgstr "Descripción"
156
 
157
- #: mercadopago/mercadopago-gateway.php:260
158
  msgid "Description shown to the client in the checkout."
159
  msgstr "Descripción mostrada al cliente en el checkout."
160
 
161
- #: mercadopago/mercadopago-gateway.php:261
162
- #: mercadopago/mercadopago-gateway.php:406
163
  msgid "Pay with Mercado Pago"
164
  msgstr "Pagar con Mercado Pago"
165
 
166
- #: mercadopago/mercadopago-gateway.php:264
167
- msgid "Store Category"
168
- msgstr "Categoría de la tienda"
169
-
170
- #: mercadopago/mercadopago-gateway.php:266
171
- msgid "Define which type of products your store sells."
172
- msgstr "Defina el tipo de productos que su tienda vende."
173
-
174
- #: mercadopago/mercadopago-gateway.php:270
175
- msgid "Store Identificator"
176
- msgstr "Identificador de la tienda"
177
 
178
- #: mercadopago/mercadopago-gateway.php:272
179
- msgid "Please, inform a prefix to your store."
180
- msgstr "Por favor, informe un prefijo para su tienda."
181
 
182
- #: mercadopago/mercadopago-gateway.php:272
183
- msgid "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators."
184
- msgstr "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
185
 
186
- #: mercadopago/mercadopago-gateway.php:276
187
- msgid "Integration Method"
188
- msgstr "Método de integración"
189
 
190
- #: mercadopago/mercadopago-gateway.php:278
191
- msgid "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an internal window is embedded to the page layout)."
192
- msgstr "Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
193
 
194
- #: mercadopago/mercadopago-gateway.php:281
195
- msgid "iFrame"
196
- msgstr "iFrame"
197
 
198
- #: mercadopago/mercadopago-gateway.php:282
199
- msgid "Modal Window"
200
- msgstr "Ventana modal"
201
 
202
- #: mercadopago/mercadopago-gateway.php:283
203
- msgid "Redirect"
204
- msgstr "Redireccionamiento"
205
-
206
- #: mercadopago/mercadopago-gateway.php:287
207
- msgid "iFrame Width"
208
- msgstr "Ancho del iFrame"
209
-
210
- #: mercadopago/mercadopago-gateway.php:293
211
- msgid "iFrame Height"
212
- msgstr "Alto del iFrame"
213
-
214
- #: mercadopago/mercadopago-gateway.php:299
215
- msgid "Auto Return"
216
- msgstr "Redirección automática"
217
 
218
- #: mercadopago/mercadopago-gateway.php:301
219
- msgid "Automatic Return After Payment"
220
- msgstr "Redirección Automática Luego del Pago"
221
 
222
- #: mercadopago/mercadopago-gateway.php:303
223
- msgid "After the payment, client is automatically redirected."
224
- msgstr "Después del pago, el cliente será redireccionado automáticamente."
225
 
226
- #: mercadopago/mercadopago-gateway.php:306
227
- msgid "Payment Options"
228
- msgstr "Opciones de Pago"
229
 
230
- #: mercadopago/mercadopago-gateway.php:311
231
- msgid "Max installments"
232
- msgstr "Número máximo de cuotas"
233
 
234
- #: mercadopago/mercadopago-gateway.php:317
235
- msgid "Exclude Payment Methods"
236
- msgstr "Excluir métodos de pago"
 
 
 
237
 
238
- #: mercadopago/mercadopago-gateway.php:324
239
  msgid "Test and Debug Options"
240
  msgstr "Opciones de Prueba y Debug"
241
 
242
- #: mercadopago/mercadopago-gateway.php:329
243
  msgid "Mercado Pago Sandbox"
244
  msgstr "Sandbox Mercado Pago"
245
 
246
- #: mercadopago/mercadopago-gateway.php:331
247
  msgid "Enable Mercado Pago Sandbox"
248
  msgstr "Habilitar el sandbox de Mercado Pago"
249
 
250
- #: mercadopago/mercadopago-gateway.php:333
251
- msgid "This options allows you to test payments inside a sandbox environment."
252
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
253
 
254
- #: mercadopago/mercadopago-gateway.php:336
255
  msgid "Debug and Log"
256
  msgstr "Debug y Log"
257
 
258
- #: mercadopago/mercadopago-gateway.php:338
259
  msgid "Enable log"
260
  msgstr "Habilitar Log"
261
 
262
- #: mercadopago/mercadopago-gateway.php:340
263
- #, php-format
264
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
265
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
266
 
267
- #: mercadopago/mercadopago-gateway.php:402
268
- msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
269
- msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
270
 
271
- #: mercadopago/mercadopago-gateway.php:410
272
- msgid "Cancel order &amp; Clear cart"
273
- msgstr "Cancelar &amp; Limpiar carrito"
 
274
 
275
- #: mercadopago/mercadopago-gateway.php:420
276
- msgid "Thank you for your order. Proceed with your payment completing the following information."
277
- msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
278
 
279
- #: mercadopago/mercadopago-gateway.php:431
280
- msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
281
- msgstr "Un error ocurrió durante el procesamiento de su pago. Por favor intente nuevamente o contactenos para ayudarlo."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
 
283
- #: mercadopago/mercadopago-gateway.php:434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  msgid "Click to try again"
285
- msgstr "Haga click para intentar de nuevo"
 
 
 
 
 
 
 
 
286
 
287
- #: mercadopago/mercadopago-gateway.php:675
288
- #: mercadopago/mercadopago-gateway.php:686
 
 
 
 
 
 
 
 
289
  msgid "Mercado Pago is Inactive"
290
  msgstr "Mercado Pago Inactivo"
291
 
292
- #: mercadopago/mercadopago-gateway.php:678
293
- msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
294
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
295
 
296
- #: mercadopago/mercadopago-gateway.php:679
297
  msgid "Click here and configure!"
298
  msgstr "Haga click aquí y configure!"
299
 
300
- #: mercadopago/mercadopago-gateway.php:689
301
  msgid "The currency"
302
  msgstr "La moneda"
303
 
304
- #: mercadopago/mercadopago-gateway.php:689
305
- msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, USD, VEF."
306
- msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, USD, VEF."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
307
 
308
- #: mercadopago/mercadopago-gateway.php:714
309
  msgid "Mercado Pago Request Failure"
310
  msgstr "La solicitud de Mercado Pago ha fallado."
311
 
312
- #: mercadopago/mercadopago-gateway.php:791
313
- msgid "Mercado Pago Transaction ID"
314
- msgstr "ID de operación de Mercado Pago"
315
-
316
- #: mercadopago/mercadopago-gateway.php:798
317
  msgid "Payer email"
318
  msgstr "Email del comprador"
319
 
320
- #: mercadopago/mercadopago-gateway.php:805
321
  msgid "Payment type"
322
  msgstr "Método de pago"
323
 
324
- #: mercadopago/mercadopago-gateway.php:810
325
- msgid "Payment approved."
326
- msgstr "Pago aprobado."
327
 
328
- #: mercadopago/mercadopago-gateway.php:816
329
  msgid "Customer haven't paid yet."
330
  msgstr "El cliente todavía no efectuó el pago."
331
 
332
- #: mercadopago/mercadopago-gateway.php:821
333
  msgid "Payment under review."
334
  msgstr "El pago está pendiente de revisión."
335
 
336
- #: mercadopago/mercadopago-gateway.php:826
337
  msgid "The payment was refused. The customer can try again."
338
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
339
 
340
- #: mercadopago/mercadopago-gateway.php:832
341
  msgid "The payment was refunded to the customer."
342
  msgstr "El pago fue devuelto al cliente."
343
 
344
- #: mercadopago/mercadopago-gateway.php:838
345
  msgid "The payment was cancelled."
346
  msgstr "El pago fue cancelado."
347
 
348
- #: mercadopago/mercadopago-gateway.php:843
349
- msgid "Mercado Pago Payment ID"
350
- msgstr "ID de pago de Mercado Pago"
351
-
352
- #: mercadopago/mercadopago-gateway.php:843
353
- #: mercadopago/mercadopago-gateway.php:848
354
  msgid "The payment is under mediation or it was charged-back."
355
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
+ "POT-Creation-Date: 2016-05-23 14:52-0300\n"
8
  "PO-Revision-Date: \n"
9
+ "Language-Team: Product Development <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
18
+ "_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
19
+ "X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
20
  "X-Generator: Poedit 1.8.7\n"
21
  "Last-Translator: \n"
22
+ "Language: es\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
25
  #. Description of the plugin/theme
26
  msgid "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."
27
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
28
 
29
+ #: mercadopago-module.php:69
30
  #, php-format
31
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
32
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
33
 
34
+ #: mercadopago-module.php:109
35
+ msgid "Standard Checkout"
36
+ msgstr "Checkout Estándar"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Custom"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Custom"
45
+
46
+ #: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
47
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
48
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
49
 
50
+ #: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
51
+ #: mercadopago/mercadopago-gateway.php:716
52
  msgid "Argentine"
53
  msgstr "Argentina"
54
 
55
+ #: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
56
+ #: mercadopago/mercadopago-gateway.php:717
57
  msgid "Brazil"
58
  msgstr "Brasil"
59
 
60
+ #: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
61
+ #: mercadopago/mercadopago-gateway.php:719
62
  msgid "Chile"
63
  msgstr "Chile"
64
 
65
+ #: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
66
+ #: mercadopago/mercadopago-gateway.php:718
67
  msgid "Colombia"
68
  msgstr "Colombia"
69
 
70
+ #: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
71
+ #: mercadopago/mercadopago-gateway.php:720
72
  msgid "Mexico"
73
  msgstr "México"
74
 
75
+ #: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
76
  msgid "or"
77
  msgstr "o"
78
 
79
+ #: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
80
+ #: mercadopago/mercadopago-gateway.php:721
81
  msgid "Venezuela"
82
  msgstr "Venezuela"
83
 
84
+ #: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
 
 
 
 
85
  msgid "Your credentials are <strong>valid</strong> for"
86
  msgstr "Sus credenciales <strong>son válidas</strong> para"
87
 
88
+ #: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
89
+ #: mercadopago/mercadopago-gateway.php:170
 
 
 
 
 
90
  msgid "Your credentials are <strong>not valid</strong>!"
91
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
92
 
93
+ #: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  msgid "Enable/Disable"
95
  msgstr "Habilitar/Deshabilitar"
96
 
97
+ #: mercadopago/mercadopago-custom-gateway.php:171
98
+ msgid "Enable Custom Checkout"
99
+ msgstr "Habilitar Checkout Custom"
100
 
101
+ #: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
102
  msgid "Mercado Pago Credentials"
103
  msgstr "Credenciales de Mercado Pago"
104
 
105
+ #: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
106
  msgid "You can obtain your credentials for"
107
  msgstr "Puedes obtener tus credenciales para"
108
 
109
+ #: mercadopago/mercadopago-custom-gateway.php:182
110
+ msgid "Insert your Mercado Pago Public key."
111
+ msgstr "Inserte su Public Key de Mercado Pago."
 
 
 
 
 
 
 
 
112
 
113
+ #: mercadopago/mercadopago-custom-gateway.php:189
114
+ msgid "Insert your Mercado Pago Access token."
115
+ msgstr "Inserte su Access Token de Mercado Pago."
116
 
117
+ #: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
118
  msgid "Instant Payment Notification (IPN) URL"
119
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
120
 
121
+ #: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
122
  msgid "Your IPN URL to receive instant payment notifications is"
123
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
124
 
125
+ #: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
126
  msgid "Checkout Options"
127
  msgstr "Opciones de Checkout"
128
 
129
+ #: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
130
  msgid "Title"
131
  msgstr "Título"
132
 
133
+ #: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
134
  msgid "Title shown to the client in the checkout."
135
  msgstr "Título mostrado al cliente en el checkout."
136
 
137
+ #: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
138
+ msgid "Mercado Pago"
139
+ msgstr "Mercado Pago"
140
+
141
+ #: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
142
  msgid "Description"
143
  msgstr "Descripción"
144
 
145
+ #: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
146
  msgid "Description shown to the client in the checkout."
147
  msgstr "Descripción mostrada al cliente en el checkout."
148
 
149
+ #: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
 
150
  msgid "Pay with Mercado Pago"
151
  msgstr "Pagar con Mercado Pago"
152
 
153
+ #: mercadopago/mercadopago-custom-gateway.php:216
154
+ msgid "Statement Descriptor"
155
+ msgstr "Descripción de la Factura"
 
 
 
 
 
 
 
 
156
 
157
+ #: mercadopago/mercadopago-custom-gateway.php:218
158
+ msgid "The description that will be shown in your customer's invoice."
159
+ msgstr "La descripción que se muestra en la factura de su cliente."
160
 
161
+ #: mercadopago/mercadopago-custom-gateway.php:222
162
+ msgid "Binary Mode"
163
+ msgstr "Modo binario"
164
 
165
+ #: mercadopago/mercadopago-custom-gateway.php:224
166
+ msgid "Enable binary mode for checkout status"
167
+ msgstr "Activar el modo binario para el estado del checkout"
168
 
169
+ #: mercadopago/mercadopago-custom-gateway.php:226
170
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
171
+ msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
172
 
173
+ #: mercadopago/mercadopago-custom-gateway.php:229
174
+ msgid "Ticket"
175
+ msgstr "Ticket"
176
 
177
+ #: mercadopago/mercadopago-custom-gateway.php:231
178
+ msgid "Enable Ticket for Custom Checkout"
179
+ msgstr "Habilitar Ticket para Checkout Custom"
180
 
181
+ #: mercadopago/mercadopago-custom-gateway.php:233
182
+ msgid "Let your customer pay you with tickets"
183
+ msgstr "Deje que su cliente le paga con tickets"
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
+ #: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
186
+ msgid "Store Category"
187
+ msgstr "Categoría de la tienda"
188
 
189
+ #: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
190
+ msgid "Define which type of products your store sells."
191
+ msgstr "Defina el tipo de productos que su tienda vende."
192
 
193
+ #: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
194
+ msgid "Store Identificator"
195
+ msgstr "Identificador de la tienda"
196
 
197
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
198
+ msgid "Please, inform a prefix to your store."
199
+ msgstr "Por favor, informe un prefijo para su tienda."
200
 
201
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
202
+ msgid ""
203
+ "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
204
+ "identificators."
205
+ msgstr ""
206
+ "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
207
 
208
+ #: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
209
  msgid "Test and Debug Options"
210
  msgstr "Opciones de Prueba y Debug"
211
 
212
+ #: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
213
  msgid "Mercado Pago Sandbox"
214
  msgstr "Sandbox Mercado Pago"
215
 
216
+ #: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
217
  msgid "Enable Mercado Pago Sandbox"
218
  msgstr "Habilitar el sandbox de Mercado Pago"
219
 
220
+ #: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
221
+ msgid "This option allows you to test payments inside a sandbox environment."
222
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
223
 
224
+ #: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
225
  msgid "Debug and Log"
226
  msgstr "Debug y Log"
227
 
228
+ #: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
229
  msgid "Enable log"
230
  msgstr "Habilitar Log"
231
 
232
+ #: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
 
233
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
234
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
235
 
236
+ #: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
237
+ msgid "File location: "
238
+ msgstr "Local del archivo: "
239
 
240
+ #: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
241
+ #, php-format
242
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
243
+ msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Métodos de Pago"
248
 
249
+ #: mercadopago/mercadopago-custom-gateway.php:333
250
+ msgid "Credit card number"
251
+ msgstr "Número de tarjeta de crédito"
252
+
253
+ #: mercadopago/mercadopago-custom-gateway.php:334
254
+ msgid "Expiration month"
255
+ msgstr "Mes de expiración"
256
+
257
+ #: mercadopago/mercadopago-custom-gateway.php:335
258
+ msgid "Expiration year"
259
+ msgstr "Año de expiración"
260
+
261
+ #: mercadopago/mercadopago-custom-gateway.php:336
262
+ msgid "Year"
263
+ msgstr "Año"
264
+
265
+ #: mercadopago/mercadopago-custom-gateway.php:337
266
+ msgid "Month"
267
+ msgstr "Mes"
268
+
269
+ #: mercadopago/mercadopago-custom-gateway.php:338
270
+ msgid "Card holder name"
271
+ msgstr "Nombre del titular de la tarjeta"
272
+
273
+ #: mercadopago/mercadopago-custom-gateway.php:339
274
+ msgid "Security code"
275
+ msgstr "Código de seguridad"
276
+
277
+ #: mercadopago/mercadopago-custom-gateway.php:340
278
+ msgid "Document Type"
279
+ msgstr "Tipo de Documento"
280
 
281
+ #: mercadopago/mercadopago-custom-gateway.php:341
282
+ msgid "Document number"
283
+ msgstr "Número del Documento"
284
+
285
+ #: mercadopago/mercadopago-custom-gateway.php:342
286
+ msgid "Issuer"
287
+ msgstr "Emisor"
288
+
289
+ #: mercadopago/mercadopago-custom-gateway.php:343
290
+ msgid "Installments"
291
+ msgstr "Cuotas"
292
+
293
+ #: mercadopago/mercadopago-custom-gateway.php:347
294
+ msgid "Parameter cardNumber can not be null/empty"
295
+ msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Numero de tarjeta invalido"
300
+
301
+ #: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
302
+ #: mercadopago/mercadopago-custom-gateway.php:353
303
+ msgid "Invalid Expiration Date"
304
+ msgstr "Fecha de vencimiento inválida"
305
+
306
+ #: mercadopago/mercadopago-custom-gateway.php:355
307
+ msgid "Parameter cardholderName can not be null/empty"
308
+ msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
309
+
310
+ #: mercadopago/mercadopago-custom-gateway.php:356
311
+ msgid "Invalid Card Holder Name"
312
+ msgstr "Nombre del titular de la tarjeta invalido"
313
+
314
+ #: mercadopago/mercadopago-custom-gateway.php:358
315
+ msgid "Parameter securityCode can not be null/empty"
316
+ msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
317
+
318
+ #: mercadopago/mercadopago-custom-gateway.php:359
319
+ msgid "Invalid Security Code"
320
+ msgstr "Código de seguridad invalido"
321
+
322
+ #: mercadopago/mercadopago-custom-gateway.php:361
323
+ msgid "Parameter docType can not be null/empty"
324
+ msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
325
+
326
+ #: mercadopago/mercadopago-custom-gateway.php:362
327
+ msgid "Invalid Document Type"
328
+ msgstr "Tipo de Documento invalido"
329
+
330
+ #: mercadopago/mercadopago-custom-gateway.php:364
331
+ msgid "Parameter docNumber can not be null/empty"
332
+ msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
333
+
334
+ #: mercadopago/mercadopago-custom-gateway.php:365
335
+ msgid "Invalid Document Number"
336
+ msgstr "Número del Documento invalido"
337
+
338
+ #: mercadopago/mercadopago-custom-gateway.php:367
339
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
340
+ msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
341
+
342
+ #: mercadopago/mercadopago-custom-gateway.php:368
343
+ msgid "Invalid Document Sub Type"
344
+ msgstr "Subtipo del documento invalido"
345
+
346
+ #: mercadopago/mercadopago-custom-gateway.php:370
347
+ msgid "Parameter cardIssuerId can not be null/empty"
348
+ msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
349
+
350
+ #: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
351
+ msgid "Payment approved."
352
+ msgstr "Pago aprobado."
353
+
354
+ #: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
355
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
356
+ msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
357
+
358
+ #: mercadopago/mercadopago-custom-gateway.php:418
359
+ msgid "Check your order resume"
360
+ msgstr "Ver su hoja de pedido"
361
+
362
+ #: mercadopago/mercadopago-custom-gateway.php:431
363
+ msgid "Your payment was refused. You can try again."
364
+ msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
365
+
366
+ #: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
367
  msgid "Click to try again"
368
+ msgstr "Haga clic para Inténtalo de nuevo"
369
+
370
+ #: mercadopago/mercadopago-custom-gateway.php:455
371
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
372
+ msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
373
+
374
+ #: mercadopago/mercadopago-custom-gateway.php:544
375
+ msgid "Shipping"
376
+ msgstr "Envío"
377
 
378
+ #: mercadopago/mercadopago-custom-gateway.php:545
379
+ msgid "Shipping service used by store"
380
+ msgstr "Servicio de envío utilizado por el almacén"
381
+
382
+ #: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
383
+ msgid "WooCommerce &gt; System Status &gt; Logs"
384
+ msgstr "WooCommerce &gt; Estado del Sistema &gt; Logs"
385
+
386
+ #: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
387
+ #: mercadopago/mercadopago-gateway.php:705
388
  msgid "Mercado Pago is Inactive"
389
  msgstr "Mercado Pago Inactivo"
390
 
391
+ #: mercadopago/mercadopago-custom-gateway.php:769
392
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
393
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
394
 
395
+ #: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
396
  msgid "Click here and configure!"
397
  msgstr "Haga click aquí y configure!"
398
 
399
+ #: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
400
  msgid "The currency"
401
  msgstr "La moneda"
402
 
403
+ #: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
404
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Peru"
410
+
411
+ #: mercadopago/mercadopago-custom-gateway.php:809
412
+ msgid "Click to check your order"
413
+ msgstr "Haga clic para comprobar su pedido"
414
+
415
+ #: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
416
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
417
+ msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
418
+
419
+ #: mercadopago/mercadopago-custom-gateway.php:816
420
+ msgid "Reason is: "
421
+ msgstr "La razón es:"
422
 
423
+ #: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
424
  msgid "Mercado Pago Request Failure"
425
  msgstr "La solicitud de Mercado Pago ha fallado."
426
 
427
+ #: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
 
 
 
 
428
  msgid "Payer email"
429
  msgstr "Email del comprador"
430
 
431
+ #: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
432
  msgid "Payment type"
433
  msgstr "Método de pago"
434
 
435
+ #: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
436
+ msgid "Mercado Pago Payment ID"
437
+ msgstr "ID de pago de Mercado Pago"
438
 
439
+ #: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
440
  msgid "Customer haven't paid yet."
441
  msgstr "El cliente todavía no efectuó el pago."
442
 
443
+ #: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
444
  msgid "Payment under review."
445
  msgstr "El pago está pendiente de revisión."
446
 
447
+ #: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
448
  msgid "The payment was refused. The customer can try again."
449
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
450
 
451
+ #: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
452
  msgid "The payment was refunded to the customer."
453
  msgstr "El pago fue devuelto al cliente."
454
 
455
+ #: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
456
  msgid "The payment was cancelled."
457
  msgstr "El pago fue cancelado."
458
 
459
+ #: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
460
+ #: mercadopago/mercadopago-gateway.php:909
 
 
 
 
461
  msgid "The payment is under mediation or it was charged-back."
462
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
463
+
464
+ #: mercadopago/mercadopago-gateway.php:51
465
+ msgid "Mercado Pago - Standard Checkout"
466
+ msgstr "Mercado Pago - Checkout Estándar"
467
+
468
+ #: mercadopago/mercadopago-gateway.php:148
469
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
470
+ msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
471
+
472
+ #: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
473
+ msgid "Configure your Client_id and Client_secret to have access to more options."
474
+ msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
475
+
476
+ #: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
477
+ msgid "This field should be an integer."
478
+ msgstr "Este campo debe ser un número."
479
+
480
+ #: mercadopago/mercadopago-gateway.php:187
481
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
482
+ msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
483
+
484
+ #: mercadopago/mercadopago-gateway.php:195
485
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
486
+ msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
487
+
488
+ #: mercadopago/mercadopago-gateway.php:205
489
+ msgid "Select the max number of installments for your customers."
490
+ msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Standard Checkout"
494
+ msgstr "Habilitar el Checkout Estándar"
495
+
496
+ #: mercadopago/mercadopago-gateway.php:224
497
+ msgid "Insert your Mercado Pago Client_id."
498
+ msgstr "Inserte su Client_id de Mercado Pago."
499
+
500
+ #: mercadopago/mercadopago-gateway.php:231
501
+ msgid "Insert your Mercado Pago Client_secret."
502
+ msgstr "Inserte su Client_secret de Mercado Pago."
503
+
504
+ #: mercadopago/mercadopago-gateway.php:270
505
+ msgid "Integration Method"
506
+ msgstr "Método de integración"
507
+
508
+ #: mercadopago/mercadopago-gateway.php:272
509
+ msgid ""
510
+ "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
511
+ "internal window is embedded to the page layout)."
512
+ msgstr ""
513
+ "Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
514
+ "redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
515
+
516
+ #: mercadopago/mercadopago-gateway.php:275
517
+ msgid "iFrame"
518
+ msgstr "iFrame"
519
+
520
+ #: mercadopago/mercadopago-gateway.php:276
521
+ msgid "Modal Window"
522
+ msgstr "Ventana modal"
523
+
524
+ #: mercadopago/mercadopago-gateway.php:277
525
+ msgid "Redirect"
526
+ msgstr "Redireccionamiento"
527
+
528
+ #: mercadopago/mercadopago-gateway.php:281
529
+ msgid "iFrame Width"
530
+ msgstr "Ancho del iFrame"
531
+
532
+ #: mercadopago/mercadopago-gateway.php:287
533
+ msgid "iFrame Height"
534
+ msgstr "Alto del iFrame"
535
+
536
+ #: mercadopago/mercadopago-gateway.php:293
537
+ msgid "Auto Return"
538
+ msgstr "Redirección automática"
539
+
540
+ #: mercadopago/mercadopago-gateway.php:295
541
+ msgid "Automatic Return After Payment"
542
+ msgstr "Redirección Automática Luego del Pago"
543
+
544
+ #: mercadopago/mercadopago-gateway.php:297
545
+ msgid "After the payment, client is automatically redirected."
546
+ msgstr "Después del pago, el cliente será redireccionado automáticamente."
547
+
548
+ #: mercadopago/mercadopago-gateway.php:300
549
+ msgid "Payment Options"
550
+ msgstr "Opciones de Pago"
551
+
552
+ #: mercadopago/mercadopago-gateway.php:305
553
+ msgid "Max installments"
554
+ msgstr "Número máximo de cuotas"
555
+
556
+ #: mercadopago/mercadopago-gateway.php:311
557
+ msgid "Exclude Payment Methods"
558
+ msgstr "Excluir métodos de pago"
559
+
560
+ #: mercadopago/mercadopago-gateway.php:428
561
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
562
+ msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
563
+
564
+ #: mercadopago/mercadopago-gateway.php:436
565
+ msgid "Cancel order &amp; Clear cart"
566
+ msgstr "Cancelar &amp; Limpiar carrito"
567
+
568
+ #: mercadopago/mercadopago-gateway.php:446
569
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
570
+ msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
571
+
572
+ #: mercadopago/mercadopago-gateway.php:697
573
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
574
+ msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
575
+
576
+ msgid " as it appears in your card ..."
577
+ msgstr " tal como aparece en su tarjeta ..."
578
+
579
+ msgid "Done, your payment was accredited!"
580
+ msgstr "Listo, su pago ha sido aceptado!"
581
+
582
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
583
+ msgstr "Estamos procesando su pago. En menos de una hora se le notificará por correo electrónico."
584
+
585
+ msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
586
+ msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
587
+
588
+ msgid "Check the card number."
589
+ msgstr "Compruebe el número de tarjeta."
590
+
591
+ msgid "Check the expiration date."
592
+ msgstr "Compruebe la fecha de expiración."
593
+
594
+ msgid "Check the information."
595
+ msgstr "Compruebe la información informada."
596
+
597
+ msgid "Check the security code."
598
+ msgstr "Compruebe el código de seguridad informado."
599
+
600
+ msgid "We could not process your payment."
601
+ msgstr "No se puede procesar su pago."
602
+
603
+ msgid "You must authorize the payment of your orders."
604
+ msgstr "Usted debe autorizar pagos de sus órdenes."
605
+
606
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
607
+ msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
608
+
609
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
610
+ msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
611
+
612
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
613
+ msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
614
+
615
+ msgid "Your payment do not have sufficient funds."
616
+ msgstr "Su pago no tiene fondos suficientes."
617
+
618
+ msgid "Your payment does not process payments with selected installments."
619
+ msgstr "El pago no puede procesar la cuota seleccionada."
620
+
621
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
622
+ msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta forma de pago no puede procesar su pago."
626
+
627
+ msgid "Mercado Pago - Ticket"
628
+ msgstr "Mercado Pago - Ticket"
629
+
630
+ msgid "Mercado Pago - Credit Card"
631
+ msgstr "Mercado Pago - Tarjeta de Crédito"
632
+
633
+ msgid "Ticket Options"
634
+ msgstr "Opciones de Ticket"
635
+
636
+ msgid "Enable Ticket Payment Method"
637
+ msgstr "Habilitar Pago con Ticket"
638
+
639
+ msgid "Other Bank"
640
+ msgstr "Otro Banco"
641
+
642
+ msgid "Choose"
643
+ msgstr "Escoger"
644
+
645
+ msgid "A problem was occurred when processing your payment. Please, try again."
646
+ msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
647
+
648
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
649
+ msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
650
+
651
+ msgid "Waiting for the ticket payment."
652
+ msgstr "Esperando el pago del ticket."
653
+
654
+ msgid "Print the Ticket"
655
+ msgstr "Imprimir el ticket"
656
+
657
+ msgid "To reprint the ticket click "
658
+ msgstr "Para imprimir nuevamente el ticket hace clic "
659
+
660
+ msgid "here"
661
+ msgstr "aquí"
662
+
663
+ msgid "Custom Checkout is Inactive"
664
+ msgstr "Checkout Custom Inactivo"
665
+
666
+ msgid "Standard Checkout is Inactive"
667
+ msgstr "Checkout Estándar Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
673
+ msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
674
+
675
+ msgid "Important: The order will be confirmed only after the payment approval."
676
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
677
+
678
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
679
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
680
+
681
+ msgid "Your Card"
682
+ msgstr "Sus Tarjetas"
683
+
684
+ msgid "Other Cards"
685
+ msgstr "Otras Tarjetas"
686
+
687
+ msgid "Other Card"
688
+ msgstr "Otra Tarjeta"
689
+
690
+ msgid "ended in"
691
+ msgstr "terminado en"
692
+
693
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
694
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito previo porque la tramitación del pago se realiza en el servidor."
languages/woocommerce-mercadopago-module-es_ES.mo ADDED
Binary file
languages/woocommerce-mercadopago-module-es_ES.po ADDED
@@ -0,0 +1,694 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WordPress Blank Pot
2
+ # Copyright (C) 2014 ...
3
+ # This file is distributed under the GNU General Public License v2 or later.
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
+ "POT-Creation-Date: 2016-05-23 14:52-0300\n"
8
+ "PO-Revision-Date: \n"
9
+ "Language-Team: Product Development <translations@example.com>\n"
10
+ "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
18
+ "_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
19
+ "X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
20
+ "X-Generator: Poedit 1.8.7\n"
21
+ "Last-Translator: \n"
22
+ "Language: es\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+
25
+ #. Description of the plugin/theme
26
+ msgid "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."
27
+ msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
28
+
29
+ #: mercadopago-module.php:69
30
+ #, php-format
31
+ msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
32
+ msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
33
+
34
+ #: mercadopago-module.php:109
35
+ msgid "Standard Checkout"
36
+ msgstr "Checkout Estándar"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Custom"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Custom"
45
+
46
+ #: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
47
+ msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
48
+ msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
49
+
50
+ #: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
51
+ #: mercadopago/mercadopago-gateway.php:716
52
+ msgid "Argentine"
53
+ msgstr "Argentina"
54
+
55
+ #: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
56
+ #: mercadopago/mercadopago-gateway.php:717
57
+ msgid "Brazil"
58
+ msgstr "Brasil"
59
+
60
+ #: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
61
+ #: mercadopago/mercadopago-gateway.php:719
62
+ msgid "Chile"
63
+ msgstr "Chile"
64
+
65
+ #: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
66
+ #: mercadopago/mercadopago-gateway.php:718
67
+ msgid "Colombia"
68
+ msgstr "Colombia"
69
+
70
+ #: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
71
+ #: mercadopago/mercadopago-gateway.php:720
72
+ msgid "Mexico"
73
+ msgstr "México"
74
+
75
+ #: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
76
+ msgid "or"
77
+ msgstr "o"
78
+
79
+ #: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
80
+ #: mercadopago/mercadopago-gateway.php:721
81
+ msgid "Venezuela"
82
+ msgstr "Venezuela"
83
+
84
+ #: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
85
+ msgid "Your credentials are <strong>valid</strong> for"
86
+ msgstr "Sus credenciales <strong>son válidas</strong> para"
87
+
88
+ #: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
89
+ #: mercadopago/mercadopago-gateway.php:170
90
+ msgid "Your credentials are <strong>not valid</strong>!"
91
+ msgstr "Sus credenciales <strong>no son válidas</strong>!"
92
+
93
+ #: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
94
+ msgid "Enable/Disable"
95
+ msgstr "Habilitar/Deshabilitar"
96
+
97
+ #: mercadopago/mercadopago-custom-gateway.php:171
98
+ msgid "Enable Custom Checkout"
99
+ msgstr "Habilitar Checkout Custom"
100
+
101
+ #: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
102
+ msgid "Mercado Pago Credentials"
103
+ msgstr "Credenciales de Mercado Pago"
104
+
105
+ #: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
106
+ msgid "You can obtain your credentials for"
107
+ msgstr "Puedes obtener tus credenciales para"
108
+
109
+ #: mercadopago/mercadopago-custom-gateway.php:182
110
+ msgid "Insert your Mercado Pago Public key."
111
+ msgstr "Inserte su Public Key de Mercado Pago."
112
+
113
+ #: mercadopago/mercadopago-custom-gateway.php:189
114
+ msgid "Insert your Mercado Pago Access token."
115
+ msgstr "Inserte su Access Token de Mercado Pago."
116
+
117
+ #: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
118
+ msgid "Instant Payment Notification (IPN) URL"
119
+ msgstr "URL da Notificación Instantanea de Pago (IPN)"
120
+
121
+ #: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
122
+ msgid "Your IPN URL to receive instant payment notifications is"
123
+ msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
124
+
125
+ #: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
126
+ msgid "Checkout Options"
127
+ msgstr "Opciones de Checkout"
128
+
129
+ #: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
130
+ msgid "Title"
131
+ msgstr "Título"
132
+
133
+ #: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
134
+ msgid "Title shown to the client in the checkout."
135
+ msgstr "Título mostrado al cliente en el checkout."
136
+
137
+ #: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
138
+ msgid "Mercado Pago"
139
+ msgstr "Mercado Pago"
140
+
141
+ #: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
142
+ msgid "Description"
143
+ msgstr "Descripción"
144
+
145
+ #: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
146
+ msgid "Description shown to the client in the checkout."
147
+ msgstr "Descripción mostrada al cliente en el checkout."
148
+
149
+ #: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
150
+ msgid "Pay with Mercado Pago"
151
+ msgstr "Pagar con Mercado Pago"
152
+
153
+ #: mercadopago/mercadopago-custom-gateway.php:216
154
+ msgid "Statement Descriptor"
155
+ msgstr "Descripción de la Factura"
156
+
157
+ #: mercadopago/mercadopago-custom-gateway.php:218
158
+ msgid "The description that will be shown in your customer's invoice."
159
+ msgstr "La descripción que se muestra en la factura de su cliente."
160
+
161
+ #: mercadopago/mercadopago-custom-gateway.php:222
162
+ msgid "Binary Mode"
163
+ msgstr "Modo binario"
164
+
165
+ #: mercadopago/mercadopago-custom-gateway.php:224
166
+ msgid "Enable binary mode for checkout status"
167
+ msgstr "Activar el modo binario para el estado del checkout"
168
+
169
+ #: mercadopago/mercadopago-custom-gateway.php:226
170
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
171
+ msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
172
+
173
+ #: mercadopago/mercadopago-custom-gateway.php:229
174
+ msgid "Ticket"
175
+ msgstr "Ticket"
176
+
177
+ #: mercadopago/mercadopago-custom-gateway.php:231
178
+ msgid "Enable Ticket for Custom Checkout"
179
+ msgstr "Habilitar Ticket para Checkout Custom"
180
+
181
+ #: mercadopago/mercadopago-custom-gateway.php:233
182
+ msgid "Let your customer pay you with tickets"
183
+ msgstr "Deje que su cliente le paga con tickets"
184
+
185
+ #: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
186
+ msgid "Store Category"
187
+ msgstr "Categoría de la tienda"
188
+
189
+ #: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
190
+ msgid "Define which type of products your store sells."
191
+ msgstr "Defina el tipo de productos que su tienda vende."
192
+
193
+ #: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
194
+ msgid "Store Identificator"
195
+ msgstr "Identificador de la tienda"
196
+
197
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
198
+ msgid "Please, inform a prefix to your store."
199
+ msgstr "Por favor, informe un prefijo para su tienda."
200
+
201
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
202
+ msgid ""
203
+ "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
204
+ "identificators."
205
+ msgstr ""
206
+ "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
207
+
208
+ #: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
209
+ msgid "Test and Debug Options"
210
+ msgstr "Opciones de Prueba y Debug"
211
+
212
+ #: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
213
+ msgid "Mercado Pago Sandbox"
214
+ msgstr "Sandbox Mercado Pago"
215
+
216
+ #: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
217
+ msgid "Enable Mercado Pago Sandbox"
218
+ msgstr "Habilitar el sandbox de Mercado Pago"
219
+
220
+ #: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
221
+ msgid "This option allows you to test payments inside a sandbox environment."
222
+ msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
223
+
224
+ #: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
225
+ msgid "Debug and Log"
226
+ msgstr "Debug y Log"
227
+
228
+ #: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
229
+ msgid "Enable log"
230
+ msgstr "Habilitar Log"
231
+
232
+ #: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
233
+ msgid "Register event logs of Mercado Pago, such as API requests, in the file"
234
+ msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
235
+
236
+ #: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
237
+ msgid "File location: "
238
+ msgstr "Local del archivo: "
239
+
240
+ #: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
241
+ #, php-format
242
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
243
+ msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
244
+
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Métodos de Pago"
248
+
249
+ #: mercadopago/mercadopago-custom-gateway.php:333
250
+ msgid "Credit card number"
251
+ msgstr "Número de tarjeta de crédito"
252
+
253
+ #: mercadopago/mercadopago-custom-gateway.php:334
254
+ msgid "Expiration month"
255
+ msgstr "Mes de expiración"
256
+
257
+ #: mercadopago/mercadopago-custom-gateway.php:335
258
+ msgid "Expiration year"
259
+ msgstr "Año de expiración"
260
+
261
+ #: mercadopago/mercadopago-custom-gateway.php:336
262
+ msgid "Year"
263
+ msgstr "Año"
264
+
265
+ #: mercadopago/mercadopago-custom-gateway.php:337
266
+ msgid "Month"
267
+ msgstr "Mes"
268
+
269
+ #: mercadopago/mercadopago-custom-gateway.php:338
270
+ msgid "Card holder name"
271
+ msgstr "Nombre del titular de la tarjeta"
272
+
273
+ #: mercadopago/mercadopago-custom-gateway.php:339
274
+ msgid "Security code"
275
+ msgstr "Código de seguridad"
276
+
277
+ #: mercadopago/mercadopago-custom-gateway.php:340
278
+ msgid "Document Type"
279
+ msgstr "Tipo de Documento"
280
+
281
+ #: mercadopago/mercadopago-custom-gateway.php:341
282
+ msgid "Document number"
283
+ msgstr "Número del Documento"
284
+
285
+ #: mercadopago/mercadopago-custom-gateway.php:342
286
+ msgid "Issuer"
287
+ msgstr "Emisor"
288
+
289
+ #: mercadopago/mercadopago-custom-gateway.php:343
290
+ msgid "Installments"
291
+ msgstr "Cuotas"
292
+
293
+ #: mercadopago/mercadopago-custom-gateway.php:347
294
+ msgid "Parameter cardNumber can not be null/empty"
295
+ msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Numero de tarjeta invalido"
300
+
301
+ #: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
302
+ #: mercadopago/mercadopago-custom-gateway.php:353
303
+ msgid "Invalid Expiration Date"
304
+ msgstr "Fecha de vencimiento inválida"
305
+
306
+ #: mercadopago/mercadopago-custom-gateway.php:355
307
+ msgid "Parameter cardholderName can not be null/empty"
308
+ msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
309
+
310
+ #: mercadopago/mercadopago-custom-gateway.php:356
311
+ msgid "Invalid Card Holder Name"
312
+ msgstr "Nombre del titular de la tarjeta invalido"
313
+
314
+ #: mercadopago/mercadopago-custom-gateway.php:358
315
+ msgid "Parameter securityCode can not be null/empty"
316
+ msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
317
+
318
+ #: mercadopago/mercadopago-custom-gateway.php:359
319
+ msgid "Invalid Security Code"
320
+ msgstr "Código de seguridad invalido"
321
+
322
+ #: mercadopago/mercadopago-custom-gateway.php:361
323
+ msgid "Parameter docType can not be null/empty"
324
+ msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
325
+
326
+ #: mercadopago/mercadopago-custom-gateway.php:362
327
+ msgid "Invalid Document Type"
328
+ msgstr "Tipo de Documento invalido"
329
+
330
+ #: mercadopago/mercadopago-custom-gateway.php:364
331
+ msgid "Parameter docNumber can not be null/empty"
332
+ msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
333
+
334
+ #: mercadopago/mercadopago-custom-gateway.php:365
335
+ msgid "Invalid Document Number"
336
+ msgstr "Número del Documento invalido"
337
+
338
+ #: mercadopago/mercadopago-custom-gateway.php:367
339
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
340
+ msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
341
+
342
+ #: mercadopago/mercadopago-custom-gateway.php:368
343
+ msgid "Invalid Document Sub Type"
344
+ msgstr "Subtipo del documento invalido"
345
+
346
+ #: mercadopago/mercadopago-custom-gateway.php:370
347
+ msgid "Parameter cardIssuerId can not be null/empty"
348
+ msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
349
+
350
+ #: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
351
+ msgid "Payment approved."
352
+ msgstr "Pago aprobado."
353
+
354
+ #: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
355
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
356
+ msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
357
+
358
+ #: mercadopago/mercadopago-custom-gateway.php:418
359
+ msgid "Check your order resume"
360
+ msgstr "Ver su hoja de pedido"
361
+
362
+ #: mercadopago/mercadopago-custom-gateway.php:431
363
+ msgid "Your payment was refused. You can try again."
364
+ msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
365
+
366
+ #: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
367
+ msgid "Click to try again"
368
+ msgstr "Haga clic para Inténtalo de nuevo"
369
+
370
+ #: mercadopago/mercadopago-custom-gateway.php:455
371
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
372
+ msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
373
+
374
+ #: mercadopago/mercadopago-custom-gateway.php:544
375
+ msgid "Shipping"
376
+ msgstr "Envío"
377
+
378
+ #: mercadopago/mercadopago-custom-gateway.php:545
379
+ msgid "Shipping service used by store"
380
+ msgstr "Servicio de envío utilizado por el almacén"
381
+
382
+ #: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
383
+ msgid "WooCommerce &gt; System Status &gt; Logs"
384
+ msgstr "WooCommerce &gt; Estado del Sistema &gt; Logs"
385
+
386
+ #: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
387
+ #: mercadopago/mercadopago-gateway.php:705
388
+ msgid "Mercado Pago is Inactive"
389
+ msgstr "Mercado Pago Inactivo"
390
+
391
+ #: mercadopago/mercadopago-custom-gateway.php:769
392
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
393
+ msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
394
+
395
+ #: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
396
+ msgid "Click here and configure!"
397
+ msgstr "Haga click aquí y configure!"
398
+
399
+ #: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
400
+ msgid "The currency"
401
+ msgstr "La moneda"
402
+
403
+ #: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
404
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Peru"
410
+
411
+ #: mercadopago/mercadopago-custom-gateway.php:809
412
+ msgid "Click to check your order"
413
+ msgstr "Haga clic para comprobar su pedido"
414
+
415
+ #: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
416
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
417
+ msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
418
+
419
+ #: mercadopago/mercadopago-custom-gateway.php:816
420
+ msgid "Reason is: "
421
+ msgstr "La razón es:"
422
+
423
+ #: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
424
+ msgid "Mercado Pago Request Failure"
425
+ msgstr "La solicitud de Mercado Pago ha fallado."
426
+
427
+ #: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
428
+ msgid "Payer email"
429
+ msgstr "Email del comprador"
430
+
431
+ #: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
432
+ msgid "Payment type"
433
+ msgstr "Método de pago"
434
+
435
+ #: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
436
+ msgid "Mercado Pago Payment ID"
437
+ msgstr "ID de pago de Mercado Pago"
438
+
439
+ #: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
440
+ msgid "Customer haven't paid yet."
441
+ msgstr "El cliente todavía no efectuó el pago."
442
+
443
+ #: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
444
+ msgid "Payment under review."
445
+ msgstr "El pago está pendiente de revisión."
446
+
447
+ #: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
448
+ msgid "The payment was refused. The customer can try again."
449
+ msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
450
+
451
+ #: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
452
+ msgid "The payment was refunded to the customer."
453
+ msgstr "El pago fue devuelto al cliente."
454
+
455
+ #: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
456
+ msgid "The payment was cancelled."
457
+ msgstr "El pago fue cancelado."
458
+
459
+ #: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
460
+ #: mercadopago/mercadopago-gateway.php:909
461
+ msgid "The payment is under mediation or it was charged-back."
462
+ msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
463
+
464
+ #: mercadopago/mercadopago-gateway.php:51
465
+ msgid "Mercado Pago - Standard Checkout"
466
+ msgstr "Mercado Pago - Checkout Estándar"
467
+
468
+ #: mercadopago/mercadopago-gateway.php:148
469
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
470
+ msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
471
+
472
+ #: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
473
+ msgid "Configure your Client_id and Client_secret to have access to more options."
474
+ msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
475
+
476
+ #: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
477
+ msgid "This field should be an integer."
478
+ msgstr "Este campo debe ser un número."
479
+
480
+ #: mercadopago/mercadopago-gateway.php:187
481
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
482
+ msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
483
+
484
+ #: mercadopago/mercadopago-gateway.php:195
485
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
486
+ msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
487
+
488
+ #: mercadopago/mercadopago-gateway.php:205
489
+ msgid "Select the max number of installments for your customers."
490
+ msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Standard Checkout"
494
+ msgstr "Habilitar el Checkout Estándar"
495
+
496
+ #: mercadopago/mercadopago-gateway.php:224
497
+ msgid "Insert your Mercado Pago Client_id."
498
+ msgstr "Inserte su Client_id de Mercado Pago."
499
+
500
+ #: mercadopago/mercadopago-gateway.php:231
501
+ msgid "Insert your Mercado Pago Client_secret."
502
+ msgstr "Inserte su Client_secret de Mercado Pago."
503
+
504
+ #: mercadopago/mercadopago-gateway.php:270
505
+ msgid "Integration Method"
506
+ msgstr "Método de integración"
507
+
508
+ #: mercadopago/mercadopago-gateway.php:272
509
+ msgid ""
510
+ "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
511
+ "internal window is embedded to the page layout)."
512
+ msgstr ""
513
+ "Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
514
+ "redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
515
+
516
+ #: mercadopago/mercadopago-gateway.php:275
517
+ msgid "iFrame"
518
+ msgstr "iFrame"
519
+
520
+ #: mercadopago/mercadopago-gateway.php:276
521
+ msgid "Modal Window"
522
+ msgstr "Ventana modal"
523
+
524
+ #: mercadopago/mercadopago-gateway.php:277
525
+ msgid "Redirect"
526
+ msgstr "Redireccionamiento"
527
+
528
+ #: mercadopago/mercadopago-gateway.php:281
529
+ msgid "iFrame Width"
530
+ msgstr "Ancho del iFrame"
531
+
532
+ #: mercadopago/mercadopago-gateway.php:287
533
+ msgid "iFrame Height"
534
+ msgstr "Alto del iFrame"
535
+
536
+ #: mercadopago/mercadopago-gateway.php:293
537
+ msgid "Auto Return"
538
+ msgstr "Redirección automática"
539
+
540
+ #: mercadopago/mercadopago-gateway.php:295
541
+ msgid "Automatic Return After Payment"
542
+ msgstr "Redirección Automática Luego del Pago"
543
+
544
+ #: mercadopago/mercadopago-gateway.php:297
545
+ msgid "After the payment, client is automatically redirected."
546
+ msgstr "Después del pago, el cliente será redireccionado automáticamente."
547
+
548
+ #: mercadopago/mercadopago-gateway.php:300
549
+ msgid "Payment Options"
550
+ msgstr "Opciones de Pago"
551
+
552
+ #: mercadopago/mercadopago-gateway.php:305
553
+ msgid "Max installments"
554
+ msgstr "Número máximo de cuotas"
555
+
556
+ #: mercadopago/mercadopago-gateway.php:311
557
+ msgid "Exclude Payment Methods"
558
+ msgstr "Excluir métodos de pago"
559
+
560
+ #: mercadopago/mercadopago-gateway.php:428
561
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
562
+ msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
563
+
564
+ #: mercadopago/mercadopago-gateway.php:436
565
+ msgid "Cancel order &amp; Clear cart"
566
+ msgstr "Cancelar &amp; Limpiar carrito"
567
+
568
+ #: mercadopago/mercadopago-gateway.php:446
569
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
570
+ msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
571
+
572
+ #: mercadopago/mercadopago-gateway.php:697
573
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
574
+ msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
575
+
576
+ msgid " as it appears in your card ..."
577
+ msgstr " tal como aparece en su tarjeta ..."
578
+
579
+ msgid "Done, your payment was accredited!"
580
+ msgstr "Listo, su pago ha sido aceptado!"
581
+
582
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
583
+ msgstr "Estamos procesando su pago. En menos de una hora se le notificará por correo electrónico."
584
+
585
+ msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
586
+ msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
587
+
588
+ msgid "Check the card number."
589
+ msgstr "Compruebe el número de tarjeta."
590
+
591
+ msgid "Check the expiration date."
592
+ msgstr "Compruebe la fecha de expiración."
593
+
594
+ msgid "Check the information."
595
+ msgstr "Compruebe la información informada."
596
+
597
+ msgid "Check the security code."
598
+ msgstr "Compruebe el código de seguridad informado."
599
+
600
+ msgid "We could not process your payment."
601
+ msgstr "No se puede procesar su pago."
602
+
603
+ msgid "You must authorize the payment of your orders."
604
+ msgstr "Usted debe autorizar pagos de sus órdenes."
605
+
606
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
607
+ msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
608
+
609
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
610
+ msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
611
+
612
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
613
+ msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
614
+
615
+ msgid "Your payment do not have sufficient funds."
616
+ msgstr "Su pago no tiene fondos suficientes."
617
+
618
+ msgid "Your payment does not process payments with selected installments."
619
+ msgstr "El pago no puede procesar la cuota seleccionada."
620
+
621
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
622
+ msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta forma de pago no puede procesar su pago."
626
+
627
+ msgid "Mercado Pago - Ticket"
628
+ msgstr "Mercado Pago - Ticket"
629
+
630
+ msgid "Mercado Pago - Credit Card"
631
+ msgstr "Mercado Pago - Tarjeta de Crédito"
632
+
633
+ msgid "Ticket Options"
634
+ msgstr "Opciones de Ticket"
635
+
636
+ msgid "Enable Ticket Payment Method"
637
+ msgstr "Habilitar Pago con Ticket"
638
+
639
+ msgid "Other Bank"
640
+ msgstr "Otro Banco"
641
+
642
+ msgid "Choose"
643
+ msgstr "Escoger"
644
+
645
+ msgid "A problem was occurred when processing your payment. Please, try again."
646
+ msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
647
+
648
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
649
+ msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
650
+
651
+ msgid "Waiting for the ticket payment."
652
+ msgstr "Esperando el pago del ticket."
653
+
654
+ msgid "Print the Ticket"
655
+ msgstr "Imprimir el ticket"
656
+
657
+ msgid "To reprint the ticket click "
658
+ msgstr "Para imprimir nuevamente el ticket hace clic "
659
+
660
+ msgid "here"
661
+ msgstr "aquí"
662
+
663
+ msgid "Custom Checkout is Inactive"
664
+ msgstr "Checkout Custom Inactivo"
665
+
666
+ msgid "Standard Checkout is Inactive"
667
+ msgstr "Checkout Estándar Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
673
+ msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
674
+
675
+ msgid "Important: The order will be confirmed only after the payment approval."
676
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
677
+
678
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
679
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
680
+
681
+ msgid "Your Card"
682
+ msgstr "Sus Tarjetas"
683
+
684
+ msgid "Other Cards"
685
+ msgstr "Otras Tarjetas"
686
+
687
+ msgid "Other Card"
688
+ msgstr "Otra Tarjeta"
689
+
690
+ msgid "ended in"
691
+ msgstr "terminado en"
692
+
693
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
694
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito previo porque la tramitación del pago se realiza en el servidor."
languages/woocommerce-mercadopago-module-es_MX.mo CHANGED
Binary file
languages/woocommerce-mercadopago-module-es_MX.po CHANGED
@@ -4,9 +4,9 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
- "POT-Creation-Date: 2016-03-04 20:48-0300\n"
8
  "PO-Revision-Date: \n"
9
- "Language-Team: Your Team <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -14,335 +14,681 @@ msgstr ""
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
18
- "X-Poedit-Basepath: ..\n"
 
19
  "X-Generator: Poedit 1.8.7\n"
20
  "Last-Translator: \n"
21
- "Language: es_AR\n"
22
  "X-Poedit-SearchPath-0: .\n"
23
 
24
  #. Description of the plugin/theme
25
  msgid "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."
26
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
27
 
28
- #: mercadopago-module.php:66
29
  #, php-format
30
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
31
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
32
 
33
- #: mercadopago/mercadopago-gateway.php:63
 
 
 
 
 
 
 
 
 
 
 
 
34
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
35
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
36
 
37
- #: mercadopago/mercadopago-gateway.php:133
 
38
  msgid "Argentine"
39
  msgstr "Argentina"
40
 
41
- #: mercadopago/mercadopago-gateway.php:134
 
42
  msgid "Brazil"
43
  msgstr "Brasil"
44
 
45
- #: mercadopago/mercadopago-gateway.php:135
 
46
  msgid "Chile"
47
  msgstr "Chile"
48
 
49
- #: mercadopago/mercadopago-gateway.php:136
 
50
  msgid "Colombia"
51
  msgstr "Colombia"
52
 
53
- #: mercadopago/mercadopago-gateway.php:137
 
54
  msgid "Mexico"
55
  msgstr "México"
56
 
57
- #: mercadopago/mercadopago-gateway.php:138
58
  msgid "or"
59
  msgstr "o"
60
 
61
- #: mercadopago/mercadopago-gateway.php:139
 
62
  msgid "Venezuela"
63
  msgstr "Venezuela"
64
 
65
- #: mercadopago/mercadopago-gateway.php:154
66
- msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
67
- msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
68
-
69
- #: mercadopago/mercadopago-gateway.php:157
70
  msgid "Your credentials are <strong>valid</strong> for"
71
  msgstr "Sus credenciales <strong>son válidas</strong> para"
72
 
73
- #: mercadopago/mercadopago-gateway.php:164 mercadopago/mercadopago-gateway.php:173
74
- msgid "Configure your Client_id and Client_secret to have access to more options."
75
- msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
76
-
77
- #: mercadopago/mercadopago-gateway.php:167 mercadopago/mercadopago-gateway.php:176
78
  msgid "Your credentials are <strong>not valid</strong>!"
79
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
80
 
81
- #: mercadopago/mercadopago-gateway.php:190 mercadopago/mercadopago-gateway.php:198 mercadopago/mercadopago-gateway.php:208
82
- msgid "This field should be an integer."
83
- msgstr "Este campo debe ser un número."
84
-
85
- #: mercadopago/mercadopago-gateway.php:193
86
- msgid "If your integration method is iFrame, please inform the payment iFrame width."
87
- msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
88
-
89
- #: mercadopago/mercadopago-gateway.php:201
90
- msgid "If your integration method is iFrame, please inform the payment iFrame height."
91
- msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
92
-
93
- #: mercadopago/mercadopago-gateway.php:211
94
- msgid "Select the max number of installments for your customers."
95
- msgstr "Seleccione el número máximo de mensualidades posibles para sus clientes."
96
-
97
- #: mercadopago/mercadopago-gateway.php:217
98
  msgid "Enable/Disable"
99
  msgstr "Habilitar/Deshabilitar"
100
 
101
- #: mercadopago/mercadopago-gateway.php:219
102
- msgid "Enable Mercado Pago Module"
103
- msgstr "Habilitar Mercado Pago"
104
 
105
- #: mercadopago/mercadopago-gateway.php:223
106
  msgid "Mercado Pago Credentials"
107
  msgstr "Credenciales de Mercado Pago"
108
 
109
- #: mercadopago/mercadopago-gateway.php:225
110
  msgid "You can obtain your credentials for"
111
  msgstr "Puedes obtener tus credenciales para"
112
 
113
- #: mercadopago/mercadopago-gateway.php:228
114
- msgid "Mercado Pago Client_id"
115
- msgstr "Client_id de Mercado Pago"
116
-
117
- #: mercadopago/mercadopago-gateway.php:230
118
- msgid "Insert your Mercado Pago Client_id."
119
- msgstr "Inserte su Client_id de Mercado Pago."
120
-
121
- #: mercadopago/mercadopago-gateway.php:235
122
- msgid "Mercado Pago Client_secret"
123
- msgstr "Client_secret de Mercado Pago"
124
 
125
- #: mercadopago/mercadopago-gateway.php:237
126
- msgid "Insert your Mercado Pago Client_secret."
127
- msgstr "Inserte su Client_secret de Mercado Pago."
128
 
129
- #: mercadopago/mercadopago-gateway.php:242
130
  msgid "Instant Payment Notification (IPN) URL"
131
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
132
 
133
- #: mercadopago/mercadopago-gateway.php:244
134
  msgid "Your IPN URL to receive instant payment notifications is"
135
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
136
 
137
- #: mercadopago/mercadopago-gateway.php:247
138
  msgid "Checkout Options"
139
  msgstr "Opciones de Checkout"
140
 
141
- #: mercadopago/mercadopago-gateway.php:252
142
  msgid "Title"
143
  msgstr "Título"
144
 
145
- #: mercadopago/mercadopago-gateway.php:254
146
  msgid "Title shown to the client in the checkout."
147
  msgstr "Título mostrado al cliente en el checkout."
148
 
149
- #: mercadopago/mercadopago-gateway.php:258
 
 
 
 
150
  msgid "Description"
151
  msgstr "Descripción"
152
 
153
- #: mercadopago/mercadopago-gateway.php:260
154
  msgid "Description shown to the client in the checkout."
155
  msgstr "Descripción mostrada al cliente en el checkout."
156
 
157
- #: mercadopago/mercadopago-gateway.php:261 mercadopago/mercadopago-gateway.php:406
158
  msgid "Pay with Mercado Pago"
159
  msgstr "Pagar con Mercado Pago"
160
 
161
- #: mercadopago/mercadopago-gateway.php:264
162
- msgid "Store Category"
163
- msgstr "Categoría de la tienda"
164
-
165
- #: mercadopago/mercadopago-gateway.php:266
166
- msgid "Define which type of products your store sells."
167
- msgstr "Defina el tipo de productos que su tienda vende."
168
-
169
- #: mercadopago/mercadopago-gateway.php:270
170
- msgid "Store Identificator"
171
- msgstr "Identificador de la tienda"
172
 
173
- #: mercadopago/mercadopago-gateway.php:272
174
- msgid "Please, inform a prefix to your store."
175
- msgstr "Por favor, informe un prefijo para su tienda."
176
 
177
- #: mercadopago/mercadopago-gateway.php:272
178
- msgid "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators."
179
- msgstr "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
180
 
181
- #: mercadopago/mercadopago-gateway.php:276
182
- msgid "Integration Method"
183
- msgstr "Método de integración"
184
 
185
- #: mercadopago/mercadopago-gateway.php:278
186
- msgid "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an internal window is embedded to the page layout)."
187
- msgstr "Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
188
 
189
- #: mercadopago/mercadopago-gateway.php:281
190
- msgid "iFrame"
191
- msgstr "iFrame"
192
 
193
- #: mercadopago/mercadopago-gateway.php:282
194
- msgid "Modal Window"
195
- msgstr "Ventana modal"
196
 
197
- #: mercadopago/mercadopago-gateway.php:283
198
- msgid "Redirect"
199
- msgstr "Redireccionamiento"
200
-
201
- #: mercadopago/mercadopago-gateway.php:287
202
- msgid "iFrame Width"
203
- msgstr "Ancho del iFrame"
204
-
205
- #: mercadopago/mercadopago-gateway.php:293
206
- msgid "iFrame Height"
207
- msgstr "Alto del iFrame"
208
-
209
- #: mercadopago/mercadopago-gateway.php:299
210
- msgid "Auto Return"
211
- msgstr "Redirección automática"
212
 
213
- #: mercadopago/mercadopago-gateway.php:301
214
- msgid "Automatic Return After Payment"
215
- msgstr "Redirección Automática Luego del Pago"
216
 
217
- #: mercadopago/mercadopago-gateway.php:303
218
- msgid "After the payment, client is automatically redirected."
219
- msgstr "Después del pago, el cliente será redireccionado automáticamente."
220
 
221
- #: mercadopago/mercadopago-gateway.php:306
222
- msgid "Payment Options"
223
- msgstr "Opciones de Pago"
224
 
225
- #: mercadopago/mercadopago-gateway.php:311
226
- msgid "Max installments"
227
- msgstr "Número máximo de mensualidades"
228
 
229
- #: mercadopago/mercadopago-gateway.php:317
230
- msgid "Exclude Payment Methods"
231
- msgstr "Excluir métodos de pago"
 
 
 
232
 
233
- #: mercadopago/mercadopago-gateway.php:324
234
  msgid "Test and Debug Options"
235
  msgstr "Opciones de Prueba y Debug"
236
 
237
- #: mercadopago/mercadopago-gateway.php:329
238
  msgid "Mercado Pago Sandbox"
239
  msgstr "Sandbox Mercado Pago"
240
 
241
- #: mercadopago/mercadopago-gateway.php:331
242
  msgid "Enable Mercado Pago Sandbox"
243
  msgstr "Habilitar el sandbox de Mercado Pago"
244
 
245
- #: mercadopago/mercadopago-gateway.php:333
246
- msgid "This options allows you to test payments inside a sandbox environment."
247
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
248
 
249
- #: mercadopago/mercadopago-gateway.php:336
250
  msgid "Debug and Log"
251
  msgstr "Debug y Log"
252
 
253
- #: mercadopago/mercadopago-gateway.php:338
254
  msgid "Enable log"
255
  msgstr "Habilitar Log"
256
 
257
- #: mercadopago/mercadopago-gateway.php:340
258
- #, php-format
259
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
260
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
261
 
262
- #: mercadopago/mercadopago-gateway.php:402
263
- msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
264
- msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
265
 
266
- #: mercadopago/mercadopago-gateway.php:410
267
- msgid "Cancel order &amp; Clear cart"
268
- msgstr "Cancelar &amp; Limpiar carrito"
 
269
 
270
- #: mercadopago/mercadopago-gateway.php:420
271
- msgid "Thank you for your order. Proceed with your payment completing the following information."
272
- msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
273
 
274
- #: mercadopago/mercadopago-gateway.php:431
275
- msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
276
- msgstr "Un error ocurrió durante el procesamiento de su pago. Por favor intente nuevamente o contactenos para ayudarlo."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
 
278
- #: mercadopago/mercadopago-gateway.php:434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  msgid "Click to try again"
280
- msgstr "Haga click para intentar de nuevo"
 
 
 
 
 
 
 
 
281
 
282
- #: mercadopago/mercadopago-gateway.php:675 mercadopago/mercadopago-gateway.php:686
 
 
 
 
 
 
 
 
 
283
  msgid "Mercado Pago is Inactive"
284
  msgstr "Mercado Pago Inactivo"
285
 
286
- #: mercadopago/mercadopago-gateway.php:678
287
- msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
288
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
289
 
290
- #: mercadopago/mercadopago-gateway.php:679
291
  msgid "Click here and configure!"
292
  msgstr "Haga click aquí y configure!"
293
 
294
- #: mercadopago/mercadopago-gateway.php:689
295
  msgid "The currency"
296
  msgstr "La moneda"
297
 
298
- #: mercadopago/mercadopago-gateway.php:689
299
- msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, USD, VEF."
300
- msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, USD, VEF."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
 
302
- #: mercadopago/mercadopago-gateway.php:714
303
  msgid "Mercado Pago Request Failure"
304
  msgstr "La solicitud de Mercado Pago ha fallado."
305
 
306
- #: mercadopago/mercadopago-gateway.php:791
307
- msgid "Mercado Pago Transaction ID"
308
- msgstr "ID de operación de Mercado Pago"
309
-
310
- #: mercadopago/mercadopago-gateway.php:798
311
  msgid "Payer email"
312
  msgstr "Email del comprador"
313
 
314
- #: mercadopago/mercadopago-gateway.php:805
315
  msgid "Payment type"
316
  msgstr "Método de pago"
317
 
318
- #: mercadopago/mercadopago-gateway.php:810
319
- msgid "Payment approved."
320
- msgstr "Pago aprobado."
321
 
322
- #: mercadopago/mercadopago-gateway.php:816
323
  msgid "Customer haven't paid yet."
324
  msgstr "El cliente todavía no efectuó el pago."
325
 
326
- #: mercadopago/mercadopago-gateway.php:821
327
  msgid "Payment under review."
328
  msgstr "El pago está pendiente de revisión."
329
 
330
- #: mercadopago/mercadopago-gateway.php:826
331
  msgid "The payment was refused. The customer can try again."
332
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
333
 
334
- #: mercadopago/mercadopago-gateway.php:832
335
  msgid "The payment was refunded to the customer."
336
  msgstr "El pago fue devuelto al cliente."
337
 
338
- #: mercadopago/mercadopago-gateway.php:838
339
  msgid "The payment was cancelled."
340
  msgstr "El pago fue cancelado."
341
 
342
- #: mercadopago/mercadopago-gateway.php:843
343
- msgid "Mercado Pago Payment ID"
344
- msgstr "ID de pago de Mercado Pago"
345
-
346
- #: mercadopago/mercadopago-gateway.php:843 mercadopago/mercadopago-gateway.php:848
347
  msgid "The payment is under mediation or it was charged-back."
348
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
+ "POT-Creation-Date: 2016-05-23 14:52-0300\n"
8
  "PO-Revision-Date: \n"
9
+ "Language-Team: Product Development <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
18
+ "_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
19
+ "X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
20
  "X-Generator: Poedit 1.8.7\n"
21
  "Last-Translator: \n"
22
+ "Language: es\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
25
  #. Description of the plugin/theme
26
  msgid "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."
27
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
28
 
29
+ #: mercadopago-module.php:69
30
  #, php-format
31
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
32
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
33
 
34
+ #: mercadopago-module.php:109
35
+ msgid "Standard Checkout"
36
+ msgstr "Checkout Estándar"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Custom"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Custom"
45
+
46
+ #: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
47
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
48
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
49
 
50
+ #: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
51
+ #: mercadopago/mercadopago-gateway.php:716
52
  msgid "Argentine"
53
  msgstr "Argentina"
54
 
55
+ #: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
56
+ #: mercadopago/mercadopago-gateway.php:717
57
  msgid "Brazil"
58
  msgstr "Brasil"
59
 
60
+ #: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
61
+ #: mercadopago/mercadopago-gateway.php:719
62
  msgid "Chile"
63
  msgstr "Chile"
64
 
65
+ #: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
66
+ #: mercadopago/mercadopago-gateway.php:718
67
  msgid "Colombia"
68
  msgstr "Colombia"
69
 
70
+ #: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
71
+ #: mercadopago/mercadopago-gateway.php:720
72
  msgid "Mexico"
73
  msgstr "México"
74
 
75
+ #: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
76
  msgid "or"
77
  msgstr "o"
78
 
79
+ #: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
80
+ #: mercadopago/mercadopago-gateway.php:721
81
  msgid "Venezuela"
82
  msgstr "Venezuela"
83
 
84
+ #: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
 
 
 
 
85
  msgid "Your credentials are <strong>valid</strong> for"
86
  msgstr "Sus credenciales <strong>son válidas</strong> para"
87
 
88
+ #: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
89
+ #: mercadopago/mercadopago-gateway.php:170
 
 
 
90
  msgid "Your credentials are <strong>not valid</strong>!"
91
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
92
 
93
+ #: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  msgid "Enable/Disable"
95
  msgstr "Habilitar/Deshabilitar"
96
 
97
+ #: mercadopago/mercadopago-custom-gateway.php:171
98
+ msgid "Enable Custom Checkout"
99
+ msgstr "Habilitar Checkout Custom"
100
 
101
+ #: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
102
  msgid "Mercado Pago Credentials"
103
  msgstr "Credenciales de Mercado Pago"
104
 
105
+ #: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
106
  msgid "You can obtain your credentials for"
107
  msgstr "Puedes obtener tus credenciales para"
108
 
109
+ #: mercadopago/mercadopago-custom-gateway.php:182
110
+ msgid "Insert your Mercado Pago Public key."
111
+ msgstr "Inserte su Public Key de Mercado Pago."
 
 
 
 
 
 
 
 
112
 
113
+ #: mercadopago/mercadopago-custom-gateway.php:189
114
+ msgid "Insert your Mercado Pago Access token."
115
+ msgstr "Inserte su Access Token de Mercado Pago."
116
 
117
+ #: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
118
  msgid "Instant Payment Notification (IPN) URL"
119
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
120
 
121
+ #: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
122
  msgid "Your IPN URL to receive instant payment notifications is"
123
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
124
 
125
+ #: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
126
  msgid "Checkout Options"
127
  msgstr "Opciones de Checkout"
128
 
129
+ #: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
130
  msgid "Title"
131
  msgstr "Título"
132
 
133
+ #: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
134
  msgid "Title shown to the client in the checkout."
135
  msgstr "Título mostrado al cliente en el checkout."
136
 
137
+ #: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
138
+ msgid "Mercado Pago"
139
+ msgstr "Mercado Pago"
140
+
141
+ #: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
142
  msgid "Description"
143
  msgstr "Descripción"
144
 
145
+ #: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
146
  msgid "Description shown to the client in the checkout."
147
  msgstr "Descripción mostrada al cliente en el checkout."
148
 
149
+ #: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
150
  msgid "Pay with Mercado Pago"
151
  msgstr "Pagar con Mercado Pago"
152
 
153
+ #: mercadopago/mercadopago-custom-gateway.php:216
154
+ msgid "Statement Descriptor"
155
+ msgstr "Descripción de la Factura"
 
 
 
 
 
 
 
 
156
 
157
+ #: mercadopago/mercadopago-custom-gateway.php:218
158
+ msgid "The description that will be shown in your customer's invoice."
159
+ msgstr "La descripción que se muestra en la factura de su cliente."
160
 
161
+ #: mercadopago/mercadopago-custom-gateway.php:222
162
+ msgid "Binary Mode"
163
+ msgstr "Modo binario"
164
 
165
+ #: mercadopago/mercadopago-custom-gateway.php:224
166
+ msgid "Enable binary mode for checkout status"
167
+ msgstr "Activar el modo binario para el estado del checkout"
168
 
169
+ #: mercadopago/mercadopago-custom-gateway.php:226
170
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
171
+ msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
172
 
173
+ #: mercadopago/mercadopago-custom-gateway.php:229
174
+ msgid "Ticket"
175
+ msgstr "Ticket"
176
 
177
+ #: mercadopago/mercadopago-custom-gateway.php:231
178
+ msgid "Enable Ticket for Custom Checkout"
179
+ msgstr "Habilitar Ticket para Checkout Custom"
180
 
181
+ #: mercadopago/mercadopago-custom-gateway.php:233
182
+ msgid "Let your customer pay you with tickets"
183
+ msgstr "Deje que su cliente le paga con tickets"
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
+ #: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
186
+ msgid "Store Category"
187
+ msgstr "Categoría de la tienda"
188
 
189
+ #: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
190
+ msgid "Define which type of products your store sells."
191
+ msgstr "Defina el tipo de productos que su tienda vende."
192
 
193
+ #: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
194
+ msgid "Store Identificator"
195
+ msgstr "Identificador de la tienda"
196
 
197
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
198
+ msgid "Please, inform a prefix to your store."
199
+ msgstr "Por favor, informe un prefijo para su tienda."
200
 
201
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
202
+ msgid ""
203
+ "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
204
+ "identificators."
205
+ msgstr ""
206
+ "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
207
 
208
+ #: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
209
  msgid "Test and Debug Options"
210
  msgstr "Opciones de Prueba y Debug"
211
 
212
+ #: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
213
  msgid "Mercado Pago Sandbox"
214
  msgstr "Sandbox Mercado Pago"
215
 
216
+ #: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
217
  msgid "Enable Mercado Pago Sandbox"
218
  msgstr "Habilitar el sandbox de Mercado Pago"
219
 
220
+ #: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
221
+ msgid "This option allows you to test payments inside a sandbox environment."
222
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
223
 
224
+ #: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
225
  msgid "Debug and Log"
226
  msgstr "Debug y Log"
227
 
228
+ #: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
229
  msgid "Enable log"
230
  msgstr "Habilitar Log"
231
 
232
+ #: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
 
233
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
234
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
235
 
236
+ #: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
237
+ msgid "File location: "
238
+ msgstr "Local del archivo: "
239
 
240
+ #: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
241
+ #, php-format
242
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
243
+ msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Métodos de Pago"
248
 
249
+ #: mercadopago/mercadopago-custom-gateway.php:333
250
+ msgid "Credit card number"
251
+ msgstr "Número de tarjeta de crédito"
252
+
253
+ #: mercadopago/mercadopago-custom-gateway.php:334
254
+ msgid "Expiration month"
255
+ msgstr "Mes de expiración"
256
+
257
+ #: mercadopago/mercadopago-custom-gateway.php:335
258
+ msgid "Expiration year"
259
+ msgstr "Año de expiración"
260
+
261
+ #: mercadopago/mercadopago-custom-gateway.php:336
262
+ msgid "Year"
263
+ msgstr "Año"
264
+
265
+ #: mercadopago/mercadopago-custom-gateway.php:337
266
+ msgid "Month"
267
+ msgstr "Mes"
268
+
269
+ #: mercadopago/mercadopago-custom-gateway.php:338
270
+ msgid "Card holder name"
271
+ msgstr "Nombre del titular de la tarjeta"
272
+
273
+ #: mercadopago/mercadopago-custom-gateway.php:339
274
+ msgid "Security code"
275
+ msgstr "Código de seguridad"
276
+
277
+ #: mercadopago/mercadopago-custom-gateway.php:340
278
+ msgid "Document Type"
279
+ msgstr "Tipo de Documento"
280
 
281
+ #: mercadopago/mercadopago-custom-gateway.php:341
282
+ msgid "Document number"
283
+ msgstr "Número del Documento"
284
+
285
+ #: mercadopago/mercadopago-custom-gateway.php:342
286
+ msgid "Issuer"
287
+ msgstr "Emisor"
288
+
289
+ #: mercadopago/mercadopago-custom-gateway.php:343
290
+ msgid "Installments"
291
+ msgstr "Mensualidades"
292
+
293
+ #: mercadopago/mercadopago-custom-gateway.php:347
294
+ msgid "Parameter cardNumber can not be null/empty"
295
+ msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Numero de tarjeta invalido"
300
+
301
+ #: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
302
+ #: mercadopago/mercadopago-custom-gateway.php:353
303
+ msgid "Invalid Expiration Date"
304
+ msgstr "Fecha de vencimiento inválida"
305
+
306
+ #: mercadopago/mercadopago-custom-gateway.php:355
307
+ msgid "Parameter cardholderName can not be null/empty"
308
+ msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
309
+
310
+ #: mercadopago/mercadopago-custom-gateway.php:356
311
+ msgid "Invalid Card Holder Name"
312
+ msgstr "Nombre del titular de la tarjeta invalido"
313
+
314
+ #: mercadopago/mercadopago-custom-gateway.php:358
315
+ msgid "Parameter securityCode can not be null/empty"
316
+ msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
317
+
318
+ #: mercadopago/mercadopago-custom-gateway.php:359
319
+ msgid "Invalid Security Code"
320
+ msgstr "Código de seguridad invalido"
321
+
322
+ #: mercadopago/mercadopago-custom-gateway.php:361
323
+ msgid "Parameter docType can not be null/empty"
324
+ msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
325
+
326
+ #: mercadopago/mercadopago-custom-gateway.php:362
327
+ msgid "Invalid Document Type"
328
+ msgstr "Tipo de Documento invalido"
329
+
330
+ #: mercadopago/mercadopago-custom-gateway.php:364
331
+ msgid "Parameter docNumber can not be null/empty"
332
+ msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
333
+
334
+ #: mercadopago/mercadopago-custom-gateway.php:365
335
+ msgid "Invalid Document Number"
336
+ msgstr "Número del Documento invalido"
337
+
338
+ #: mercadopago/mercadopago-custom-gateway.php:367
339
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
340
+ msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
341
+
342
+ #: mercadopago/mercadopago-custom-gateway.php:368
343
+ msgid "Invalid Document Sub Type"
344
+ msgstr "Subtipo del documento invalido"
345
+
346
+ #: mercadopago/mercadopago-custom-gateway.php:370
347
+ msgid "Parameter cardIssuerId can not be null/empty"
348
+ msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
349
+
350
+ #: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
351
+ msgid "Payment approved."
352
+ msgstr "Pago aprobado."
353
+
354
+ #: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
355
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
356
+ msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
357
+
358
+ #: mercadopago/mercadopago-custom-gateway.php:418
359
+ msgid "Check your order resume"
360
+ msgstr "Ver su hoja de pedido"
361
+
362
+ #: mercadopago/mercadopago-custom-gateway.php:431
363
+ msgid "Your payment was refused. You can try again."
364
+ msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
365
+
366
+ #: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
367
  msgid "Click to try again"
368
+ msgstr "Haga clic para Inténtalo de nuevo"
369
+
370
+ #: mercadopago/mercadopago-custom-gateway.php:455
371
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
372
+ msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
373
+
374
+ #: mercadopago/mercadopago-custom-gateway.php:544
375
+ msgid "Shipping"
376
+ msgstr "Envío"
377
 
378
+ #: mercadopago/mercadopago-custom-gateway.php:545
379
+ msgid "Shipping service used by store"
380
+ msgstr "Servicio de envío utilizado por el almacén"
381
+
382
+ #: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
383
+ msgid "WooCommerce &gt; System Status &gt; Logs"
384
+ msgstr "WooCommerce &gt; Estado del Sistema &gt; Logs"
385
+
386
+ #: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
387
+ #: mercadopago/mercadopago-gateway.php:705
388
  msgid "Mercado Pago is Inactive"
389
  msgstr "Mercado Pago Inactivo"
390
 
391
+ #: mercadopago/mercadopago-custom-gateway.php:769
392
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
393
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
394
 
395
+ #: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
396
  msgid "Click here and configure!"
397
  msgstr "Haga click aquí y configure!"
398
 
399
+ #: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
400
  msgid "The currency"
401
  msgstr "La moneda"
402
 
403
+ #: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
404
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Peru"
410
+
411
+ #: mercadopago/mercadopago-custom-gateway.php:809
412
+ msgid "Click to check your order"
413
+ msgstr "Haga clic para comprobar su pedido"
414
+
415
+ #: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
416
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
417
+ msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
418
+
419
+ #: mercadopago/mercadopago-custom-gateway.php:816
420
+ msgid "Reason is: "
421
+ msgstr "La razón es:"
422
 
423
+ #: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
424
  msgid "Mercado Pago Request Failure"
425
  msgstr "La solicitud de Mercado Pago ha fallado."
426
 
427
+ #: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
 
 
 
 
428
  msgid "Payer email"
429
  msgstr "Email del comprador"
430
 
431
+ #: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
432
  msgid "Payment type"
433
  msgstr "Método de pago"
434
 
435
+ #: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
436
+ msgid "Mercado Pago Payment ID"
437
+ msgstr "ID de pago de Mercado Pago"
438
 
439
+ #: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
440
  msgid "Customer haven't paid yet."
441
  msgstr "El cliente todavía no efectuó el pago."
442
 
443
+ #: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
444
  msgid "Payment under review."
445
  msgstr "El pago está pendiente de revisión."
446
 
447
+ #: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
448
  msgid "The payment was refused. The customer can try again."
449
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
450
 
451
+ #: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
452
  msgid "The payment was refunded to the customer."
453
  msgstr "El pago fue devuelto al cliente."
454
 
455
+ #: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
456
  msgid "The payment was cancelled."
457
  msgstr "El pago fue cancelado."
458
 
459
+ #: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
460
+ #: mercadopago/mercadopago-gateway.php:909
 
 
 
461
  msgid "The payment is under mediation or it was charged-back."
462
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
463
+
464
+ #: mercadopago/mercadopago-gateway.php:51
465
+ msgid "Mercado Pago - Standard Checkout"
466
+ msgstr "Mercado Pago - Checkout Estándar"
467
+
468
+ #: mercadopago/mercadopago-gateway.php:148
469
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
470
+ msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
471
+
472
+ #: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
473
+ msgid "Configure your Client_id and Client_secret to have access to more options."
474
+ msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
475
+
476
+ #: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
477
+ msgid "This field should be an integer."
478
+ msgstr "Este campo debe ser un número."
479
+
480
+ #: mercadopago/mercadopago-gateway.php:187
481
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
482
+ msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
483
+
484
+ #: mercadopago/mercadopago-gateway.php:195
485
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
486
+ msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
487
+
488
+ #: mercadopago/mercadopago-gateway.php:205
489
+ msgid "Select the max number of installments for your customers."
490
+ msgstr "Seleccione el número máximo de mensualidades posibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Standard Checkout"
494
+ msgstr "Habilitar el Checkout Estándar"
495
+
496
+ #: mercadopago/mercadopago-gateway.php:224
497
+ msgid "Insert your Mercado Pago Client_id."
498
+ msgstr "Inserte su Client_id de Mercado Pago."
499
+
500
+ #: mercadopago/mercadopago-gateway.php:231
501
+ msgid "Insert your Mercado Pago Client_secret."
502
+ msgstr "Inserte su Client_secret de Mercado Pago."
503
+
504
+ #: mercadopago/mercadopago-gateway.php:270
505
+ msgid "Integration Method"
506
+ msgstr "Método de integración"
507
+
508
+ #: mercadopago/mercadopago-gateway.php:272
509
+ msgid ""
510
+ "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
511
+ "internal window is embedded to the page layout)."
512
+ msgstr ""
513
+ "Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
514
+ "redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
515
+
516
+ #: mercadopago/mercadopago-gateway.php:275
517
+ msgid "iFrame"
518
+ msgstr "iFrame"
519
+
520
+ #: mercadopago/mercadopago-gateway.php:276
521
+ msgid "Modal Window"
522
+ msgstr "Ventana modal"
523
+
524
+ #: mercadopago/mercadopago-gateway.php:277
525
+ msgid "Redirect"
526
+ msgstr "Redireccionamiento"
527
+
528
+ #: mercadopago/mercadopago-gateway.php:281
529
+ msgid "iFrame Width"
530
+ msgstr "Ancho del iFrame"
531
+
532
+ #: mercadopago/mercadopago-gateway.php:287
533
+ msgid "iFrame Height"
534
+ msgstr "Alto del iFrame"
535
+
536
+ #: mercadopago/mercadopago-gateway.php:293
537
+ msgid "Auto Return"
538
+ msgstr "Redirección automática"
539
+
540
+ #: mercadopago/mercadopago-gateway.php:295
541
+ msgid "Automatic Return After Payment"
542
+ msgstr "Redirección Automática Luego del Pago"
543
+
544
+ #: mercadopago/mercadopago-gateway.php:297
545
+ msgid "After the payment, client is automatically redirected."
546
+ msgstr "Después del pago, el cliente será redireccionado automáticamente."
547
+
548
+ #: mercadopago/mercadopago-gateway.php:300
549
+ msgid "Payment Options"
550
+ msgstr "Opciones de Pago"
551
+
552
+ #: mercadopago/mercadopago-gateway.php:305
553
+ msgid "Max installments"
554
+ msgstr "Número máximo de mensualidades"
555
+
556
+ #: mercadopago/mercadopago-gateway.php:311
557
+ msgid "Exclude Payment Methods"
558
+ msgstr "Excluir métodos de pago"
559
+
560
+ #: mercadopago/mercadopago-gateway.php:428
561
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
562
+ msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
563
+
564
+ #: mercadopago/mercadopago-gateway.php:436
565
+ msgid "Cancel order &amp; Clear cart"
566
+ msgstr "Cancelar &amp; Limpiar carrito"
567
+
568
+ #: mercadopago/mercadopago-gateway.php:446
569
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
570
+ msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
571
+
572
+ #: mercadopago/mercadopago-gateway.php:697
573
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
574
+ msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
575
+
576
+ msgid " as it appears in your card ..."
577
+ msgstr " tal como aparece en su tarjeta ..."
578
+
579
+ msgid "Done, your payment was accredited!"
580
+ msgstr "Listo, su pago ha sido aceptado!"
581
+
582
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
583
+ msgstr "Estamos procesando su pago. En menos de una hora se le notificará por correo electrónico."
584
+
585
+ msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
586
+ msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
587
+
588
+ msgid "Check the card number."
589
+ msgstr "Compruebe el número de tarjeta."
590
+
591
+ msgid "Check the expiration date."
592
+ msgstr "Compruebe la fecha de expiración."
593
+
594
+ msgid "Check the information."
595
+ msgstr "Compruebe la información informada."
596
+
597
+ msgid "Check the security code."
598
+ msgstr "Compruebe el código de seguridad informado."
599
+
600
+ msgid "We could not process your payment."
601
+ msgstr "No se puede procesar su pago."
602
+
603
+ msgid "You must authorize the payment of your orders."
604
+ msgstr "Usted debe autorizar pagos de sus órdenes."
605
+
606
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
607
+ msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
608
+
609
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
610
+ msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
611
+
612
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
613
+ msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
614
+
615
+ msgid "Your payment do not have sufficient funds."
616
+ msgstr "Su pago no tiene fondos suficientes."
617
+
618
+ msgid "Your payment does not process payments with selected installments."
619
+ msgstr "El pago no puede procesar la mensualidade seleccionada."
620
+
621
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
622
+ msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta forma de pago no puede procesar su pago."
626
+
627
+ msgid "Mercado Pago - Ticket"
628
+ msgstr "Mercado Pago - Ticket"
629
+
630
+ msgid "Mercado Pago - Credit Card"
631
+ msgstr "Mercado Pago - Tarjeta de Crédito"
632
+
633
+ msgid "Ticket Options"
634
+ msgstr "Opciones de Ticket"
635
+
636
+ msgid "Enable Ticket Payment Method"
637
+ msgstr "Habilitar Pago con Ticket"
638
+
639
+ msgid "Other Bank"
640
+ msgstr "Otro Banco"
641
+
642
+ msgid "Choose"
643
+ msgstr "Escoger"
644
+
645
+ msgid "A problem was occurred when processing your payment. Please, try again."
646
+ msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
647
+
648
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
649
+ msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
650
+
651
+ msgid "Waiting for the ticket payment."
652
+ msgstr "Esperando el pago del ticket."
653
+
654
+ msgid "Print the Ticket"
655
+ msgstr "Imprimir el ticket"
656
+
657
+ msgid "To reprint the ticket click "
658
+ msgstr "Para imprimir nuevamente el ticket hace clic "
659
+
660
+ msgid "here"
661
+ msgstr "aquí"
662
+
663
+ msgid "Custom Checkout is Inactive"
664
+ msgstr "Checkout Custom Inactivo"
665
+
666
+ msgid "Standard Checkout is Inactive"
667
+ msgstr "Checkout Estándar Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
673
+ msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
674
+
675
+ msgid "Important: The order will be confirmed only after the payment approval."
676
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
677
+
678
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
679
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
680
+
681
+ msgid "Your Card"
682
+ msgstr "Sus Tarjetas"
683
+
684
+ msgid "Other Cards"
685
+ msgstr "Otras Tarjetas"
686
+
687
+ msgid "Other Card"
688
+ msgstr "Otra Tarjeta"
689
+
690
+ msgid "ended in"
691
+ msgstr "terminado en"
692
+
693
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
694
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito previo porque la tramitación del pago se realiza en el servidor."
languages/woocommerce-mercadopago-module-es_PE.mo ADDED
Binary file
languages/woocommerce-mercadopago-module-es_PE.po ADDED
@@ -0,0 +1,694 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WordPress Blank Pot
2
+ # Copyright (C) 2014 ...
3
+ # This file is distributed under the GNU General Public License v2 or later.
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
+ "POT-Creation-Date: 2016-05-23 14:52-0300\n"
8
+ "PO-Revision-Date: \n"
9
+ "Language-Team: Product Development <translations@example.com>\n"
10
+ "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
18
+ "_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
19
+ "X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
20
+ "X-Generator: Poedit 1.8.7\n"
21
+ "Last-Translator: \n"
22
+ "Language: es_PE\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+
25
+ #. Description of the plugin/theme
26
+ msgid "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."
27
+ msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
28
+
29
+ #: mercadopago-module.php:69
30
+ #, php-format
31
+ msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
32
+ msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
33
+
34
+ #: mercadopago-module.php:109
35
+ msgid "Standard Checkout"
36
+ msgstr "Checkout Estándar"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Custom"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Custom"
45
+
46
+ #: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
47
+ msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
48
+ msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
49
+
50
+ #: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
51
+ #: mercadopago/mercadopago-gateway.php:716
52
+ msgid "Argentine"
53
+ msgstr "Argentina"
54
+
55
+ #: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
56
+ #: mercadopago/mercadopago-gateway.php:717
57
+ msgid "Brazil"
58
+ msgstr "Brasil"
59
+
60
+ #: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
61
+ #: mercadopago/mercadopago-gateway.php:719
62
+ msgid "Chile"
63
+ msgstr "Chile"
64
+
65
+ #: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
66
+ #: mercadopago/mercadopago-gateway.php:718
67
+ msgid "Colombia"
68
+ msgstr "Colombia"
69
+
70
+ #: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
71
+ #: mercadopago/mercadopago-gateway.php:720
72
+ msgid "Mexico"
73
+ msgstr "México"
74
+
75
+ #: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
76
+ msgid "or"
77
+ msgstr "o"
78
+
79
+ #: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
80
+ #: mercadopago/mercadopago-gateway.php:721
81
+ msgid "Venezuela"
82
+ msgstr "Venezuela"
83
+
84
+ #: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
85
+ msgid "Your credentials are <strong>valid</strong> for"
86
+ msgstr "Sus credenciales <strong>son válidas</strong> para"
87
+
88
+ #: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
89
+ #: mercadopago/mercadopago-gateway.php:170
90
+ msgid "Your credentials are <strong>not valid</strong>!"
91
+ msgstr "Sus credenciales <strong>no son válidas</strong>!"
92
+
93
+ #: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
94
+ msgid "Enable/Disable"
95
+ msgstr "Habilitar/Deshabilitar"
96
+
97
+ #: mercadopago/mercadopago-custom-gateway.php:171
98
+ msgid "Enable Custom Checkout"
99
+ msgstr "Habilitar Checkout Custom"
100
+
101
+ #: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
102
+ msgid "Mercado Pago Credentials"
103
+ msgstr "Credenciales de Mercado Pago"
104
+
105
+ #: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
106
+ msgid "You can obtain your credentials for"
107
+ msgstr "Puedes obtener tus credenciales para"
108
+
109
+ #: mercadopago/mercadopago-custom-gateway.php:182
110
+ msgid "Insert your Mercado Pago Public key."
111
+ msgstr "Inserte su Public Key de Mercado Pago."
112
+
113
+ #: mercadopago/mercadopago-custom-gateway.php:189
114
+ msgid "Insert your Mercado Pago Access token."
115
+ msgstr "Inserte su Access Token de Mercado Pago."
116
+
117
+ #: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
118
+ msgid "Instant Payment Notification (IPN) URL"
119
+ msgstr "URL da Notificación Instantanea de Pago (IPN)"
120
+
121
+ #: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
122
+ msgid "Your IPN URL to receive instant payment notifications is"
123
+ msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
124
+
125
+ #: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
126
+ msgid "Checkout Options"
127
+ msgstr "Opciones de Checkout"
128
+
129
+ #: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
130
+ msgid "Title"
131
+ msgstr "Título"
132
+
133
+ #: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
134
+ msgid "Title shown to the client in the checkout."
135
+ msgstr "Título mostrado al cliente en el checkout."
136
+
137
+ #: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
138
+ msgid "Mercado Pago"
139
+ msgstr "Mercado Pago"
140
+
141
+ #: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
142
+ msgid "Description"
143
+ msgstr "Descripción"
144
+
145
+ #: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
146
+ msgid "Description shown to the client in the checkout."
147
+ msgstr "Descripción mostrada al cliente en el checkout."
148
+
149
+ #: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
150
+ msgid "Pay with Mercado Pago"
151
+ msgstr "Pagar con Mercado Pago"
152
+
153
+ #: mercadopago/mercadopago-custom-gateway.php:216
154
+ msgid "Statement Descriptor"
155
+ msgstr "Descripción de la Factura"
156
+
157
+ #: mercadopago/mercadopago-custom-gateway.php:218
158
+ msgid "The description that will be shown in your customer's invoice."
159
+ msgstr "La descripción que se muestra en la factura de su cliente."
160
+
161
+ #: mercadopago/mercadopago-custom-gateway.php:222
162
+ msgid "Binary Mode"
163
+ msgstr "Modo binario"
164
+
165
+ #: mercadopago/mercadopago-custom-gateway.php:224
166
+ msgid "Enable binary mode for checkout status"
167
+ msgstr "Activar el modo binario para el estado del checkout"
168
+
169
+ #: mercadopago/mercadopago-custom-gateway.php:226
170
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
171
+ msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
172
+
173
+ #: mercadopago/mercadopago-custom-gateway.php:229
174
+ msgid "Ticket"
175
+ msgstr "Ticket"
176
+
177
+ #: mercadopago/mercadopago-custom-gateway.php:231
178
+ msgid "Enable Ticket for Custom Checkout"
179
+ msgstr "Habilitar Ticket para Checkout Custom"
180
+
181
+ #: mercadopago/mercadopago-custom-gateway.php:233
182
+ msgid "Let your customer pay you with tickets"
183
+ msgstr "Deje que su cliente le paga con tickets"
184
+
185
+ #: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
186
+ msgid "Store Category"
187
+ msgstr "Categoría de la tienda"
188
+
189
+ #: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
190
+ msgid "Define which type of products your store sells."
191
+ msgstr "Defina el tipo de productos que su tienda vende."
192
+
193
+ #: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
194
+ msgid "Store Identificator"
195
+ msgstr "Identificador de la tienda"
196
+
197
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
198
+ msgid "Please, inform a prefix to your store."
199
+ msgstr "Por favor, informe un prefijo para su tienda."
200
+
201
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
202
+ msgid ""
203
+ "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
204
+ "identificators."
205
+ msgstr ""
206
+ "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
207
+
208
+ #: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
209
+ msgid "Test and Debug Options"
210
+ msgstr "Opciones de Prueba y Debug"
211
+
212
+ #: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
213
+ msgid "Mercado Pago Sandbox"
214
+ msgstr "Sandbox Mercado Pago"
215
+
216
+ #: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
217
+ msgid "Enable Mercado Pago Sandbox"
218
+ msgstr "Habilitar el sandbox de Mercado Pago"
219
+
220
+ #: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
221
+ msgid "This option allows you to test payments inside a sandbox environment."
222
+ msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
223
+
224
+ #: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
225
+ msgid "Debug and Log"
226
+ msgstr "Debug y Log"
227
+
228
+ #: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
229
+ msgid "Enable log"
230
+ msgstr "Habilitar Log"
231
+
232
+ #: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
233
+ msgid "Register event logs of Mercado Pago, such as API requests, in the file"
234
+ msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
235
+
236
+ #: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
237
+ msgid "File location: "
238
+ msgstr "Local del archivo: "
239
+
240
+ #: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
241
+ #, php-format
242
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
243
+ msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
244
+
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Métodos de Pago"
248
+
249
+ #: mercadopago/mercadopago-custom-gateway.php:333
250
+ msgid "Credit card number"
251
+ msgstr "Número de tarjeta de crédito"
252
+
253
+ #: mercadopago/mercadopago-custom-gateway.php:334
254
+ msgid "Expiration month"
255
+ msgstr "Mes de expiración"
256
+
257
+ #: mercadopago/mercadopago-custom-gateway.php:335
258
+ msgid "Expiration year"
259
+ msgstr "Año de expiración"
260
+
261
+ #: mercadopago/mercadopago-custom-gateway.php:336
262
+ msgid "Year"
263
+ msgstr "Año"
264
+
265
+ #: mercadopago/mercadopago-custom-gateway.php:337
266
+ msgid "Month"
267
+ msgstr "Mes"
268
+
269
+ #: mercadopago/mercadopago-custom-gateway.php:338
270
+ msgid "Card holder name"
271
+ msgstr "Nombre del titular de la tarjeta"
272
+
273
+ #: mercadopago/mercadopago-custom-gateway.php:339
274
+ msgid "Security code"
275
+ msgstr "Código de seguridad"
276
+
277
+ #: mercadopago/mercadopago-custom-gateway.php:340
278
+ msgid "Document Type"
279
+ msgstr "Tipo de Documento"
280
+
281
+ #: mercadopago/mercadopago-custom-gateway.php:341
282
+ msgid "Document number"
283
+ msgstr "Número del Documento"
284
+
285
+ #: mercadopago/mercadopago-custom-gateway.php:342
286
+ msgid "Issuer"
287
+ msgstr "Emisor"
288
+
289
+ #: mercadopago/mercadopago-custom-gateway.php:343
290
+ msgid "Installments"
291
+ msgstr "Cuotas"
292
+
293
+ #: mercadopago/mercadopago-custom-gateway.php:347
294
+ msgid "Parameter cardNumber can not be null/empty"
295
+ msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Numero de tarjeta invalido"
300
+
301
+ #: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
302
+ #: mercadopago/mercadopago-custom-gateway.php:353
303
+ msgid "Invalid Expiration Date"
304
+ msgstr "Fecha de vencimiento inválida"
305
+
306
+ #: mercadopago/mercadopago-custom-gateway.php:355
307
+ msgid "Parameter cardholderName can not be null/empty"
308
+ msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
309
+
310
+ #: mercadopago/mercadopago-custom-gateway.php:356
311
+ msgid "Invalid Card Holder Name"
312
+ msgstr "Nombre del titular de la tarjeta invalido"
313
+
314
+ #: mercadopago/mercadopago-custom-gateway.php:358
315
+ msgid "Parameter securityCode can not be null/empty"
316
+ msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
317
+
318
+ #: mercadopago/mercadopago-custom-gateway.php:359
319
+ msgid "Invalid Security Code"
320
+ msgstr "Código de seguridad invalido"
321
+
322
+ #: mercadopago/mercadopago-custom-gateway.php:361
323
+ msgid "Parameter docType can not be null/empty"
324
+ msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
325
+
326
+ #: mercadopago/mercadopago-custom-gateway.php:362
327
+ msgid "Invalid Document Type"
328
+ msgstr "Tipo de Documento invalido"
329
+
330
+ #: mercadopago/mercadopago-custom-gateway.php:364
331
+ msgid "Parameter docNumber can not be null/empty"
332
+ msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
333
+
334
+ #: mercadopago/mercadopago-custom-gateway.php:365
335
+ msgid "Invalid Document Number"
336
+ msgstr "Número del Documento invalido"
337
+
338
+ #: mercadopago/mercadopago-custom-gateway.php:367
339
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
340
+ msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
341
+
342
+ #: mercadopago/mercadopago-custom-gateway.php:368
343
+ msgid "Invalid Document Sub Type"
344
+ msgstr "Subtipo del documento invalido"
345
+
346
+ #: mercadopago/mercadopago-custom-gateway.php:370
347
+ msgid "Parameter cardIssuerId can not be null/empty"
348
+ msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
349
+
350
+ #: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
351
+ msgid "Payment approved."
352
+ msgstr "Pago aprobado."
353
+
354
+ #: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
355
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
356
+ msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
357
+
358
+ #: mercadopago/mercadopago-custom-gateway.php:418
359
+ msgid "Check your order resume"
360
+ msgstr "Ver su hoja de pedido"
361
+
362
+ #: mercadopago/mercadopago-custom-gateway.php:431
363
+ msgid "Your payment was refused. You can try again."
364
+ msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
365
+
366
+ #: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
367
+ msgid "Click to try again"
368
+ msgstr "Haga clic para Inténtalo de nuevo"
369
+
370
+ #: mercadopago/mercadopago-custom-gateway.php:455
371
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
372
+ msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
373
+
374
+ #: mercadopago/mercadopago-custom-gateway.php:544
375
+ msgid "Shipping"
376
+ msgstr "Envío"
377
+
378
+ #: mercadopago/mercadopago-custom-gateway.php:545
379
+ msgid "Shipping service used by store"
380
+ msgstr "Servicio de envío utilizado por el almacén"
381
+
382
+ #: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
383
+ msgid "WooCommerce &gt; System Status &gt; Logs"
384
+ msgstr "WooCommerce &gt; Estado del Sistema &gt; Logs"
385
+
386
+ #: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
387
+ #: mercadopago/mercadopago-gateway.php:705
388
+ msgid "Mercado Pago is Inactive"
389
+ msgstr "Mercado Pago Inactivo"
390
+
391
+ #: mercadopago/mercadopago-custom-gateway.php:769
392
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
393
+ msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
394
+
395
+ #: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
396
+ msgid "Click here and configure!"
397
+ msgstr "Haga click aquí y configure!"
398
+
399
+ #: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
400
+ msgid "The currency"
401
+ msgstr "La moneda"
402
+
403
+ #: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
404
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Peru"
410
+
411
+ #: mercadopago/mercadopago-custom-gateway.php:809
412
+ msgid "Click to check your order"
413
+ msgstr "Haga clic para comprobar su pedido"
414
+
415
+ #: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
416
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
417
+ msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
418
+
419
+ #: mercadopago/mercadopago-custom-gateway.php:816
420
+ msgid "Reason is: "
421
+ msgstr "La razón es:"
422
+
423
+ #: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
424
+ msgid "Mercado Pago Request Failure"
425
+ msgstr "La solicitud de Mercado Pago ha fallado."
426
+
427
+ #: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
428
+ msgid "Payer email"
429
+ msgstr "Email del comprador"
430
+
431
+ #: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
432
+ msgid "Payment type"
433
+ msgstr "Método de pago"
434
+
435
+ #: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
436
+ msgid "Mercado Pago Payment ID"
437
+ msgstr "ID de pago de Mercado Pago"
438
+
439
+ #: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
440
+ msgid "Customer haven't paid yet."
441
+ msgstr "El cliente todavía no efectuó el pago."
442
+
443
+ #: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
444
+ msgid "Payment under review."
445
+ msgstr "El pago está pendiente de revisión."
446
+
447
+ #: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
448
+ msgid "The payment was refused. The customer can try again."
449
+ msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
450
+
451
+ #: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
452
+ msgid "The payment was refunded to the customer."
453
+ msgstr "El pago fue devuelto al cliente."
454
+
455
+ #: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
456
+ msgid "The payment was cancelled."
457
+ msgstr "El pago fue cancelado."
458
+
459
+ #: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
460
+ #: mercadopago/mercadopago-gateway.php:909
461
+ msgid "The payment is under mediation or it was charged-back."
462
+ msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
463
+
464
+ #: mercadopago/mercadopago-gateway.php:51
465
+ msgid "Mercado Pago - Standard Checkout"
466
+ msgstr "Mercado Pago - Checkout Estándar"
467
+
468
+ #: mercadopago/mercadopago-gateway.php:148
469
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
470
+ msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
471
+
472
+ #: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
473
+ msgid "Configure your Client_id and Client_secret to have access to more options."
474
+ msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
475
+
476
+ #: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
477
+ msgid "This field should be an integer."
478
+ msgstr "Este campo debe ser un número."
479
+
480
+ #: mercadopago/mercadopago-gateway.php:187
481
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
482
+ msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
483
+
484
+ #: mercadopago/mercadopago-gateway.php:195
485
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
486
+ msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
487
+
488
+ #: mercadopago/mercadopago-gateway.php:205
489
+ msgid "Select the max number of installments for your customers."
490
+ msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Standard Checkout"
494
+ msgstr "Habilitar el Checkout Estándar"
495
+
496
+ #: mercadopago/mercadopago-gateway.php:224
497
+ msgid "Insert your Mercado Pago Client_id."
498
+ msgstr "Inserte su Client_id de Mercado Pago."
499
+
500
+ #: mercadopago/mercadopago-gateway.php:231
501
+ msgid "Insert your Mercado Pago Client_secret."
502
+ msgstr "Inserte su Client_secret de Mercado Pago."
503
+
504
+ #: mercadopago/mercadopago-gateway.php:270
505
+ msgid "Integration Method"
506
+ msgstr "Método de integración"
507
+
508
+ #: mercadopago/mercadopago-gateway.php:272
509
+ msgid ""
510
+ "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
511
+ "internal window is embedded to the page layout)."
512
+ msgstr ""
513
+ "Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
514
+ "redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
515
+
516
+ #: mercadopago/mercadopago-gateway.php:275
517
+ msgid "iFrame"
518
+ msgstr "iFrame"
519
+
520
+ #: mercadopago/mercadopago-gateway.php:276
521
+ msgid "Modal Window"
522
+ msgstr "Ventana modal"
523
+
524
+ #: mercadopago/mercadopago-gateway.php:277
525
+ msgid "Redirect"
526
+ msgstr "Redireccionamiento"
527
+
528
+ #: mercadopago/mercadopago-gateway.php:281
529
+ msgid "iFrame Width"
530
+ msgstr "Ancho del iFrame"
531
+
532
+ #: mercadopago/mercadopago-gateway.php:287
533
+ msgid "iFrame Height"
534
+ msgstr "Alto del iFrame"
535
+
536
+ #: mercadopago/mercadopago-gateway.php:293
537
+ msgid "Auto Return"
538
+ msgstr "Redirección automática"
539
+
540
+ #: mercadopago/mercadopago-gateway.php:295
541
+ msgid "Automatic Return After Payment"
542
+ msgstr "Redirección Automática Luego del Pago"
543
+
544
+ #: mercadopago/mercadopago-gateway.php:297
545
+ msgid "After the payment, client is automatically redirected."
546
+ msgstr "Después del pago, el cliente será redireccionado automáticamente."
547
+
548
+ #: mercadopago/mercadopago-gateway.php:300
549
+ msgid "Payment Options"
550
+ msgstr "Opciones de Pago"
551
+
552
+ #: mercadopago/mercadopago-gateway.php:305
553
+ msgid "Max installments"
554
+ msgstr "Número máximo de cuotas"
555
+
556
+ #: mercadopago/mercadopago-gateway.php:311
557
+ msgid "Exclude Payment Methods"
558
+ msgstr "Excluir métodos de pago"
559
+
560
+ #: mercadopago/mercadopago-gateway.php:428
561
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
562
+ msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
563
+
564
+ #: mercadopago/mercadopago-gateway.php:436
565
+ msgid "Cancel order &amp; Clear cart"
566
+ msgstr "Cancelar &amp; Limpiar carrito"
567
+
568
+ #: mercadopago/mercadopago-gateway.php:446
569
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
570
+ msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
571
+
572
+ #: mercadopago/mercadopago-gateway.php:697
573
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
574
+ msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
575
+
576
+ msgid " as it appears in your card ..."
577
+ msgstr " tal como aparece en su tarjeta ..."
578
+
579
+ msgid "Done, your payment was accredited!"
580
+ msgstr "Listo, su pago ha sido aceptado!"
581
+
582
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
583
+ msgstr "Estamos procesando su pago. En menos de una hora se le notificará por correo electrónico."
584
+
585
+ msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
586
+ msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
587
+
588
+ msgid "Check the card number."
589
+ msgstr "Compruebe el número de tarjeta."
590
+
591
+ msgid "Check the expiration date."
592
+ msgstr "Compruebe la fecha de expiración."
593
+
594
+ msgid "Check the information."
595
+ msgstr "Compruebe la información informada."
596
+
597
+ msgid "Check the security code."
598
+ msgstr "Compruebe el código de seguridad informado."
599
+
600
+ msgid "We could not process your payment."
601
+ msgstr "No se puede procesar su pago."
602
+
603
+ msgid "You must authorize the payment of your orders."
604
+ msgstr "Usted debe autorizar pagos de sus órdenes."
605
+
606
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
607
+ msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
608
+
609
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
610
+ msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
611
+
612
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
613
+ msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
614
+
615
+ msgid "Your payment do not have sufficient funds."
616
+ msgstr "Su pago no tiene fondos suficientes."
617
+
618
+ msgid "Your payment does not process payments with selected installments."
619
+ msgstr "El pago no puede procesar la cuota seleccionada."
620
+
621
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
622
+ msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta forma de pago no puede procesar su pago."
626
+
627
+ msgid "Mercado Pago - Ticket"
628
+ msgstr "Mercado Pago - Ticket"
629
+
630
+ msgid "Mercado Pago - Credit Card"
631
+ msgstr "Mercado Pago - Tarjeta de Crédito"
632
+
633
+ msgid "Ticket Options"
634
+ msgstr "Opciones de Ticket"
635
+
636
+ msgid "Enable Ticket Payment Method"
637
+ msgstr "Habilitar Pago con Ticket"
638
+
639
+ msgid "Other Bank"
640
+ msgstr "Otro Banco"
641
+
642
+ msgid "Choose"
643
+ msgstr "Escoger"
644
+
645
+ msgid "A problem was occurred when processing your payment. Please, try again."
646
+ msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
647
+
648
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
649
+ msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
650
+
651
+ msgid "Waiting for the ticket payment."
652
+ msgstr "Esperando el pago del ticket."
653
+
654
+ msgid "Print the Ticket"
655
+ msgstr "Imprimir el ticket"
656
+
657
+ msgid "To reprint the ticket click "
658
+ msgstr "Para imprimir nuevamente el ticket hace clic "
659
+
660
+ msgid "here"
661
+ msgstr "aquí"
662
+
663
+ msgid "Custom Checkout is Inactive"
664
+ msgstr "Checkout Custom Inactivo"
665
+
666
+ msgid "Standard Checkout is Inactive"
667
+ msgstr "Checkout Estándar Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
673
+ msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
674
+
675
+ msgid "Important: The order will be confirmed only after the payment approval."
676
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
677
+
678
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
679
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
680
+
681
+ msgid "Your Card"
682
+ msgstr "Sus Tarjetas"
683
+
684
+ msgid "Other Cards"
685
+ msgstr "Otras Tarjetas"
686
+
687
+ msgid "Other Card"
688
+ msgstr "Otra Tarjeta"
689
+
690
+ msgid "ended in"
691
+ msgstr "terminado en"
692
+
693
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
694
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito previo porque la tramitación del pago se realiza en el servidor."
languages/woocommerce-mercadopago-module-es_VE.mo CHANGED
Binary file
languages/woocommerce-mercadopago-module-es_VE.po CHANGED
@@ -4,9 +4,9 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
- "POT-Creation-Date: 2016-03-04 20:48-0300\n"
8
  "PO-Revision-Date: \n"
9
- "Language-Team: Your Team <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -14,335 +14,681 @@ msgstr ""
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
18
- "X-Poedit-Basepath: ..\n"
 
19
  "X-Generator: Poedit 1.8.7\n"
20
  "Last-Translator: \n"
21
- "Language: es_AR\n"
22
  "X-Poedit-SearchPath-0: .\n"
23
 
24
  #. Description of the plugin/theme
25
  msgid "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."
26
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
27
 
28
- #: mercadopago-module.php:66
29
  #, php-format
30
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
31
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
32
 
33
- #: mercadopago/mercadopago-gateway.php:63
 
 
 
 
 
 
 
 
 
 
 
 
34
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
35
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
36
 
37
- #: mercadopago/mercadopago-gateway.php:133
 
38
  msgid "Argentine"
39
  msgstr "Argentina"
40
 
41
- #: mercadopago/mercadopago-gateway.php:134
 
42
  msgid "Brazil"
43
  msgstr "Brasil"
44
 
45
- #: mercadopago/mercadopago-gateway.php:135
 
46
  msgid "Chile"
47
  msgstr "Chile"
48
 
49
- #: mercadopago/mercadopago-gateway.php:136
 
50
  msgid "Colombia"
51
  msgstr "Colombia"
52
 
53
- #: mercadopago/mercadopago-gateway.php:137
 
54
  msgid "Mexico"
55
  msgstr "México"
56
 
57
- #: mercadopago/mercadopago-gateway.php:138
58
  msgid "or"
59
  msgstr "o"
60
 
61
- #: mercadopago/mercadopago-gateway.php:139
 
62
  msgid "Venezuela"
63
  msgstr "Venezuela"
64
 
65
- #: mercadopago/mercadopago-gateway.php:154
66
- msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
67
- msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
68
-
69
- #: mercadopago/mercadopago-gateway.php:157
70
  msgid "Your credentials are <strong>valid</strong> for"
71
  msgstr "Sus credenciales <strong>son válidas</strong> para"
72
 
73
- #: mercadopago/mercadopago-gateway.php:164 mercadopago/mercadopago-gateway.php:173
74
- msgid "Configure your Client_id and Client_secret to have access to more options."
75
- msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
76
-
77
- #: mercadopago/mercadopago-gateway.php:167 mercadopago/mercadopago-gateway.php:176
78
  msgid "Your credentials are <strong>not valid</strong>!"
79
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
80
 
81
- #: mercadopago/mercadopago-gateway.php:190 mercadopago/mercadopago-gateway.php:198 mercadopago/mercadopago-gateway.php:208
82
- msgid "This field should be an integer."
83
- msgstr "Este campo debe ser un número."
84
-
85
- #: mercadopago/mercadopago-gateway.php:193
86
- msgid "If your integration method is iFrame, please inform the payment iFrame width."
87
- msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
88
-
89
- #: mercadopago/mercadopago-gateway.php:201
90
- msgid "If your integration method is iFrame, please inform the payment iFrame height."
91
- msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
92
-
93
- #: mercadopago/mercadopago-gateway.php:211
94
- msgid "Select the max number of installments for your customers."
95
- msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
96
-
97
- #: mercadopago/mercadopago-gateway.php:217
98
  msgid "Enable/Disable"
99
  msgstr "Habilitar/Deshabilitar"
100
 
101
- #: mercadopago/mercadopago-gateway.php:219
102
- msgid "Enable Mercado Pago Module"
103
- msgstr "Habilitar Mercado Pago"
104
 
105
- #: mercadopago/mercadopago-gateway.php:223
106
  msgid "Mercado Pago Credentials"
107
  msgstr "Credenciales de Mercado Pago"
108
 
109
- #: mercadopago/mercadopago-gateway.php:225
110
  msgid "You can obtain your credentials for"
111
  msgstr "Puedes obtener tus credenciales para"
112
 
113
- #: mercadopago/mercadopago-gateway.php:228
114
- msgid "Mercado Pago Client_id"
115
- msgstr "Client_id de Mercado Pago"
116
-
117
- #: mercadopago/mercadopago-gateway.php:230
118
- msgid "Insert your Mercado Pago Client_id."
119
- msgstr "Inserte su Client_id de Mercado Pago."
120
-
121
- #: mercadopago/mercadopago-gateway.php:235
122
- msgid "Mercado Pago Client_secret"
123
- msgstr "Client_secret de Mercado Pago"
124
 
125
- #: mercadopago/mercadopago-gateway.php:237
126
- msgid "Insert your Mercado Pago Client_secret."
127
- msgstr "Inserte su Client_secret de Mercado Pago."
128
 
129
- #: mercadopago/mercadopago-gateway.php:242
130
  msgid "Instant Payment Notification (IPN) URL"
131
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
132
 
133
- #: mercadopago/mercadopago-gateway.php:244
134
  msgid "Your IPN URL to receive instant payment notifications is"
135
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
136
 
137
- #: mercadopago/mercadopago-gateway.php:247
138
  msgid "Checkout Options"
139
  msgstr "Opciones de Checkout"
140
 
141
- #: mercadopago/mercadopago-gateway.php:252
142
  msgid "Title"
143
  msgstr "Título"
144
 
145
- #: mercadopago/mercadopago-gateway.php:254
146
  msgid "Title shown to the client in the checkout."
147
  msgstr "Título mostrado al cliente en el checkout."
148
 
149
- #: mercadopago/mercadopago-gateway.php:258
 
 
 
 
150
  msgid "Description"
151
  msgstr "Descripción"
152
 
153
- #: mercadopago/mercadopago-gateway.php:260
154
  msgid "Description shown to the client in the checkout."
155
  msgstr "Descripción mostrada al cliente en el checkout."
156
 
157
- #: mercadopago/mercadopago-gateway.php:261 mercadopago/mercadopago-gateway.php:406
158
  msgid "Pay with Mercado Pago"
159
  msgstr "Pagar con Mercado Pago"
160
 
161
- #: mercadopago/mercadopago-gateway.php:264
162
- msgid "Store Category"
163
- msgstr "Categoría de la tienda"
164
-
165
- #: mercadopago/mercadopago-gateway.php:266
166
- msgid "Define which type of products your store sells."
167
- msgstr "Defina el tipo de productos que su tienda vende."
168
-
169
- #: mercadopago/mercadopago-gateway.php:270
170
- msgid "Store Identificator"
171
- msgstr "Identificador de la tienda"
172
 
173
- #: mercadopago/mercadopago-gateway.php:272
174
- msgid "Please, inform a prefix to your store."
175
- msgstr "Por favor, informe un prefijo para su tienda."
176
 
177
- #: mercadopago/mercadopago-gateway.php:272
178
- msgid "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators."
179
- msgstr "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
180
 
181
- #: mercadopago/mercadopago-gateway.php:276
182
- msgid "Integration Method"
183
- msgstr "Método de integración"
184
 
185
- #: mercadopago/mercadopago-gateway.php:278
186
- msgid "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an internal window is embedded to the page layout)."
187
- msgstr "Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
188
 
189
- #: mercadopago/mercadopago-gateway.php:281
190
- msgid "iFrame"
191
- msgstr "iFrame"
192
 
193
- #: mercadopago/mercadopago-gateway.php:282
194
- msgid "Modal Window"
195
- msgstr "Ventana modal"
196
 
197
- #: mercadopago/mercadopago-gateway.php:283
198
- msgid "Redirect"
199
- msgstr "Redireccionamiento"
200
-
201
- #: mercadopago/mercadopago-gateway.php:287
202
- msgid "iFrame Width"
203
- msgstr "Ancho del iFrame"
204
-
205
- #: mercadopago/mercadopago-gateway.php:293
206
- msgid "iFrame Height"
207
- msgstr "Alto del iFrame"
208
-
209
- #: mercadopago/mercadopago-gateway.php:299
210
- msgid "Auto Return"
211
- msgstr "Redirección automática"
212
 
213
- #: mercadopago/mercadopago-gateway.php:301
214
- msgid "Automatic Return After Payment"
215
- msgstr "Redirección Automática Luego del Pago"
216
 
217
- #: mercadopago/mercadopago-gateway.php:303
218
- msgid "After the payment, client is automatically redirected."
219
- msgstr "Después del pago, el cliente será redireccionado automáticamente."
220
 
221
- #: mercadopago/mercadopago-gateway.php:306
222
- msgid "Payment Options"
223
- msgstr "Opciones de Pago"
224
 
225
- #: mercadopago/mercadopago-gateway.php:311
226
- msgid "Max installments"
227
- msgstr "Número máximo de cuotas"
228
 
229
- #: mercadopago/mercadopago-gateway.php:317
230
- msgid "Exclude Payment Methods"
231
- msgstr "Excluir métodos de pago"
 
 
 
232
 
233
- #: mercadopago/mercadopago-gateway.php:324
234
  msgid "Test and Debug Options"
235
  msgstr "Opciones de Prueba y Debug"
236
 
237
- #: mercadopago/mercadopago-gateway.php:329
238
  msgid "Mercado Pago Sandbox"
239
  msgstr "Sandbox Mercado Pago"
240
 
241
- #: mercadopago/mercadopago-gateway.php:331
242
  msgid "Enable Mercado Pago Sandbox"
243
  msgstr "Habilitar el sandbox de Mercado Pago"
244
 
245
- #: mercadopago/mercadopago-gateway.php:333
246
- msgid "This options allows you to test payments inside a sandbox environment."
247
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
248
 
249
- #: mercadopago/mercadopago-gateway.php:336
250
  msgid "Debug and Log"
251
  msgstr "Debug y Log"
252
 
253
- #: mercadopago/mercadopago-gateway.php:338
254
  msgid "Enable log"
255
  msgstr "Habilitar Log"
256
 
257
- #: mercadopago/mercadopago-gateway.php:340
258
- #, php-format
259
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
260
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
261
 
262
- #: mercadopago/mercadopago-gateway.php:402
263
- msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
264
- msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
265
 
266
- #: mercadopago/mercadopago-gateway.php:410
267
- msgid "Cancel order &amp; Clear cart"
268
- msgstr "Cancelar &amp; Limpiar carrito"
 
269
 
270
- #: mercadopago/mercadopago-gateway.php:420
271
- msgid "Thank you for your order. Proceed with your payment completing the following information."
272
- msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
273
 
274
- #: mercadopago/mercadopago-gateway.php:431
275
- msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
276
- msgstr "Un error ocurrió durante el procesamiento de su pago. Por favor intente nuevamente o contactenos para ayudarlo."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
 
278
- #: mercadopago/mercadopago-gateway.php:434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  msgid "Click to try again"
280
- msgstr "Haga click para intentar de nuevo"
 
 
 
 
 
 
 
 
281
 
282
- #: mercadopago/mercadopago-gateway.php:675 mercadopago/mercadopago-gateway.php:686
 
 
 
 
 
 
 
 
 
283
  msgid "Mercado Pago is Inactive"
284
  msgstr "Mercado Pago Inactivo"
285
 
286
- #: mercadopago/mercadopago-gateway.php:678
287
- msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
288
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
289
 
290
- #: mercadopago/mercadopago-gateway.php:679
291
  msgid "Click here and configure!"
292
  msgstr "Haga click aquí y configure!"
293
 
294
- #: mercadopago/mercadopago-gateway.php:689
295
  msgid "The currency"
296
  msgstr "La moneda"
297
 
298
- #: mercadopago/mercadopago-gateway.php:689
299
- msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, USD, VEF."
300
- msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, USD, VEF."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
 
302
- #: mercadopago/mercadopago-gateway.php:714
303
  msgid "Mercado Pago Request Failure"
304
  msgstr "La solicitud de Mercado Pago ha fallado."
305
 
306
- #: mercadopago/mercadopago-gateway.php:791
307
- msgid "Mercado Pago Transaction ID"
308
- msgstr "ID de operación de Mercado Pago"
309
-
310
- #: mercadopago/mercadopago-gateway.php:798
311
  msgid "Payer email"
312
  msgstr "Email del comprador"
313
 
314
- #: mercadopago/mercadopago-gateway.php:805
315
  msgid "Payment type"
316
  msgstr "Método de pago"
317
 
318
- #: mercadopago/mercadopago-gateway.php:810
319
- msgid "Payment approved."
320
- msgstr "Pago aprobado."
321
 
322
- #: mercadopago/mercadopago-gateway.php:816
323
  msgid "Customer haven't paid yet."
324
  msgstr "El cliente todavía no efectuó el pago."
325
 
326
- #: mercadopago/mercadopago-gateway.php:821
327
  msgid "Payment under review."
328
  msgstr "El pago está pendiente de revisión."
329
 
330
- #: mercadopago/mercadopago-gateway.php:826
331
  msgid "The payment was refused. The customer can try again."
332
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
333
 
334
- #: mercadopago/mercadopago-gateway.php:832
335
  msgid "The payment was refunded to the customer."
336
  msgstr "El pago fue devuelto al cliente."
337
 
338
- #: mercadopago/mercadopago-gateway.php:838
339
  msgid "The payment was cancelled."
340
  msgstr "El pago fue cancelado."
341
 
342
- #: mercadopago/mercadopago-gateway.php:843
343
- msgid "Mercado Pago Payment ID"
344
- msgstr "ID de pago de Mercado Pago"
345
-
346
- #: mercadopago/mercadopago-gateway.php:843 mercadopago/mercadopago-gateway.php:848
347
  msgid "The payment is under mediation or it was charged-back."
348
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
+ "POT-Creation-Date: 2016-05-23 14:52-0300\n"
8
  "PO-Revision-Date: \n"
9
+ "Language-Team: Product Development <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
18
+ "_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
19
+ "X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
20
  "X-Generator: Poedit 1.8.7\n"
21
  "Last-Translator: \n"
22
+ "Language: es\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
25
  #. Description of the plugin/theme
26
  msgid "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."
27
  msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
28
 
29
+ #: mercadopago-module.php:69
30
  #, php-format
31
  msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
32
  msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
33
 
34
+ #: mercadopago-module.php:109
35
+ msgid "Standard Checkout"
36
+ msgstr "Checkout Estándar"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Custom"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Custom"
45
+
46
+ #: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
47
  msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
48
  msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
49
 
50
+ #: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
51
+ #: mercadopago/mercadopago-gateway.php:716
52
  msgid "Argentine"
53
  msgstr "Argentina"
54
 
55
+ #: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
56
+ #: mercadopago/mercadopago-gateway.php:717
57
  msgid "Brazil"
58
  msgstr "Brasil"
59
 
60
+ #: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
61
+ #: mercadopago/mercadopago-gateway.php:719
62
  msgid "Chile"
63
  msgstr "Chile"
64
 
65
+ #: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
66
+ #: mercadopago/mercadopago-gateway.php:718
67
  msgid "Colombia"
68
  msgstr "Colombia"
69
 
70
+ #: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
71
+ #: mercadopago/mercadopago-gateway.php:720
72
  msgid "Mexico"
73
  msgstr "México"
74
 
75
+ #: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
76
  msgid "or"
77
  msgstr "o"
78
 
79
+ #: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
80
+ #: mercadopago/mercadopago-gateway.php:721
81
  msgid "Venezuela"
82
  msgstr "Venezuela"
83
 
84
+ #: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
 
 
 
 
85
  msgid "Your credentials are <strong>valid</strong> for"
86
  msgstr "Sus credenciales <strong>son válidas</strong> para"
87
 
88
+ #: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
89
+ #: mercadopago/mercadopago-gateway.php:170
 
 
 
90
  msgid "Your credentials are <strong>not valid</strong>!"
91
  msgstr "Sus credenciales <strong>no son válidas</strong>!"
92
 
93
+ #: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  msgid "Enable/Disable"
95
  msgstr "Habilitar/Deshabilitar"
96
 
97
+ #: mercadopago/mercadopago-custom-gateway.php:171
98
+ msgid "Enable Custom Checkout"
99
+ msgstr "Habilitar Checkout Custom"
100
 
101
+ #: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
102
  msgid "Mercado Pago Credentials"
103
  msgstr "Credenciales de Mercado Pago"
104
 
105
+ #: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
106
  msgid "You can obtain your credentials for"
107
  msgstr "Puedes obtener tus credenciales para"
108
 
109
+ #: mercadopago/mercadopago-custom-gateway.php:182
110
+ msgid "Insert your Mercado Pago Public key."
111
+ msgstr "Inserte su Public Key de Mercado Pago."
 
 
 
 
 
 
 
 
112
 
113
+ #: mercadopago/mercadopago-custom-gateway.php:189
114
+ msgid "Insert your Mercado Pago Access token."
115
+ msgstr "Inserte su Access Token de Mercado Pago."
116
 
117
+ #: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
118
  msgid "Instant Payment Notification (IPN) URL"
119
  msgstr "URL da Notificación Instantanea de Pago (IPN)"
120
 
121
+ #: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
122
  msgid "Your IPN URL to receive instant payment notifications is"
123
  msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
124
 
125
+ #: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
126
  msgid "Checkout Options"
127
  msgstr "Opciones de Checkout"
128
 
129
+ #: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
130
  msgid "Title"
131
  msgstr "Título"
132
 
133
+ #: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
134
  msgid "Title shown to the client in the checkout."
135
  msgstr "Título mostrado al cliente en el checkout."
136
 
137
+ #: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
138
+ msgid "Mercado Pago"
139
+ msgstr "Mercado Pago"
140
+
141
+ #: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
142
  msgid "Description"
143
  msgstr "Descripción"
144
 
145
+ #: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
146
  msgid "Description shown to the client in the checkout."
147
  msgstr "Descripción mostrada al cliente en el checkout."
148
 
149
+ #: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
150
  msgid "Pay with Mercado Pago"
151
  msgstr "Pagar con Mercado Pago"
152
 
153
+ #: mercadopago/mercadopago-custom-gateway.php:216
154
+ msgid "Statement Descriptor"
155
+ msgstr "Descripción de la Factura"
 
 
 
 
 
 
 
 
156
 
157
+ #: mercadopago/mercadopago-custom-gateway.php:218
158
+ msgid "The description that will be shown in your customer's invoice."
159
+ msgstr "La descripción que se muestra en la factura de su cliente."
160
 
161
+ #: mercadopago/mercadopago-custom-gateway.php:222
162
+ msgid "Binary Mode"
163
+ msgstr "Modo binario"
164
 
165
+ #: mercadopago/mercadopago-custom-gateway.php:224
166
+ msgid "Enable binary mode for checkout status"
167
+ msgstr "Activar el modo binario para el estado del checkout"
168
 
169
+ #: mercadopago/mercadopago-custom-gateway.php:226
170
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
171
+ msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
172
 
173
+ #: mercadopago/mercadopago-custom-gateway.php:229
174
+ msgid "Ticket"
175
+ msgstr "Ticket"
176
 
177
+ #: mercadopago/mercadopago-custom-gateway.php:231
178
+ msgid "Enable Ticket for Custom Checkout"
179
+ msgstr "Habilitar Ticket para Checkout Custom"
180
 
181
+ #: mercadopago/mercadopago-custom-gateway.php:233
182
+ msgid "Let your customer pay you with tickets"
183
+ msgstr "Deje que su cliente le paga con tickets"
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
+ #: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
186
+ msgid "Store Category"
187
+ msgstr "Categoría de la tienda"
188
 
189
+ #: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
190
+ msgid "Define which type of products your store sells."
191
+ msgstr "Defina el tipo de productos que su tienda vende."
192
 
193
+ #: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
194
+ msgid "Store Identificator"
195
+ msgstr "Identificador de la tienda"
196
 
197
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
198
+ msgid "Please, inform a prefix to your store."
199
+ msgstr "Por favor, informe un prefijo para su tienda."
200
 
201
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
202
+ msgid ""
203
+ "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
204
+ "identificators."
205
+ msgstr ""
206
+ "Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
207
 
208
+ #: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
209
  msgid "Test and Debug Options"
210
  msgstr "Opciones de Prueba y Debug"
211
 
212
+ #: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
213
  msgid "Mercado Pago Sandbox"
214
  msgstr "Sandbox Mercado Pago"
215
 
216
+ #: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
217
  msgid "Enable Mercado Pago Sandbox"
218
  msgstr "Habilitar el sandbox de Mercado Pago"
219
 
220
+ #: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
221
+ msgid "This option allows you to test payments inside a sandbox environment."
222
  msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
223
 
224
+ #: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
225
  msgid "Debug and Log"
226
  msgstr "Debug y Log"
227
 
228
+ #: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
229
  msgid "Enable log"
230
  msgstr "Habilitar Log"
231
 
232
+ #: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
 
233
  msgid "Register event logs of Mercado Pago, such as API requests, in the file"
234
  msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
235
 
236
+ #: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
237
+ msgid "File location: "
238
+ msgstr "Local del archivo: "
239
 
240
+ #: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
241
+ #, php-format
242
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
243
+ msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Métodos de Pago"
248
 
249
+ #: mercadopago/mercadopago-custom-gateway.php:333
250
+ msgid "Credit card number"
251
+ msgstr "Número de tarjeta de crédito"
252
+
253
+ #: mercadopago/mercadopago-custom-gateway.php:334
254
+ msgid "Expiration month"
255
+ msgstr "Mes de expiración"
256
+
257
+ #: mercadopago/mercadopago-custom-gateway.php:335
258
+ msgid "Expiration year"
259
+ msgstr "Año de expiración"
260
+
261
+ #: mercadopago/mercadopago-custom-gateway.php:336
262
+ msgid "Year"
263
+ msgstr "Año"
264
+
265
+ #: mercadopago/mercadopago-custom-gateway.php:337
266
+ msgid "Month"
267
+ msgstr "Mes"
268
+
269
+ #: mercadopago/mercadopago-custom-gateway.php:338
270
+ msgid "Card holder name"
271
+ msgstr "Nombre del titular de la tarjeta"
272
+
273
+ #: mercadopago/mercadopago-custom-gateway.php:339
274
+ msgid "Security code"
275
+ msgstr "Código de seguridad"
276
+
277
+ #: mercadopago/mercadopago-custom-gateway.php:340
278
+ msgid "Document Type"
279
+ msgstr "Tipo de Documento"
280
 
281
+ #: mercadopago/mercadopago-custom-gateway.php:341
282
+ msgid "Document number"
283
+ msgstr "Número del Documento"
284
+
285
+ #: mercadopago/mercadopago-custom-gateway.php:342
286
+ msgid "Issuer"
287
+ msgstr "Emisor"
288
+
289
+ #: mercadopago/mercadopago-custom-gateway.php:343
290
+ msgid "Installments"
291
+ msgstr "Cuotas"
292
+
293
+ #: mercadopago/mercadopago-custom-gateway.php:347
294
+ msgid "Parameter cardNumber can not be null/empty"
295
+ msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Numero de tarjeta invalido"
300
+
301
+ #: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
302
+ #: mercadopago/mercadopago-custom-gateway.php:353
303
+ msgid "Invalid Expiration Date"
304
+ msgstr "Fecha de vencimiento inválida"
305
+
306
+ #: mercadopago/mercadopago-custom-gateway.php:355
307
+ msgid "Parameter cardholderName can not be null/empty"
308
+ msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
309
+
310
+ #: mercadopago/mercadopago-custom-gateway.php:356
311
+ msgid "Invalid Card Holder Name"
312
+ msgstr "Nombre del titular de la tarjeta invalido"
313
+
314
+ #: mercadopago/mercadopago-custom-gateway.php:358
315
+ msgid "Parameter securityCode can not be null/empty"
316
+ msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
317
+
318
+ #: mercadopago/mercadopago-custom-gateway.php:359
319
+ msgid "Invalid Security Code"
320
+ msgstr "Código de seguridad invalido"
321
+
322
+ #: mercadopago/mercadopago-custom-gateway.php:361
323
+ msgid "Parameter docType can not be null/empty"
324
+ msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
325
+
326
+ #: mercadopago/mercadopago-custom-gateway.php:362
327
+ msgid "Invalid Document Type"
328
+ msgstr "Tipo de Documento invalido"
329
+
330
+ #: mercadopago/mercadopago-custom-gateway.php:364
331
+ msgid "Parameter docNumber can not be null/empty"
332
+ msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
333
+
334
+ #: mercadopago/mercadopago-custom-gateway.php:365
335
+ msgid "Invalid Document Number"
336
+ msgstr "Número del Documento invalido"
337
+
338
+ #: mercadopago/mercadopago-custom-gateway.php:367
339
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
340
+ msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
341
+
342
+ #: mercadopago/mercadopago-custom-gateway.php:368
343
+ msgid "Invalid Document Sub Type"
344
+ msgstr "Subtipo del documento invalido"
345
+
346
+ #: mercadopago/mercadopago-custom-gateway.php:370
347
+ msgid "Parameter cardIssuerId can not be null/empty"
348
+ msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
349
+
350
+ #: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
351
+ msgid "Payment approved."
352
+ msgstr "Pago aprobado."
353
+
354
+ #: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
355
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
356
+ msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
357
+
358
+ #: mercadopago/mercadopago-custom-gateway.php:418
359
+ msgid "Check your order resume"
360
+ msgstr "Ver su hoja de pedido"
361
+
362
+ #: mercadopago/mercadopago-custom-gateway.php:431
363
+ msgid "Your payment was refused. You can try again."
364
+ msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
365
+
366
+ #: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
367
  msgid "Click to try again"
368
+ msgstr "Haga clic para Inténtalo de nuevo"
369
+
370
+ #: mercadopago/mercadopago-custom-gateway.php:455
371
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
372
+ msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
373
+
374
+ #: mercadopago/mercadopago-custom-gateway.php:544
375
+ msgid "Shipping"
376
+ msgstr "Envío"
377
 
378
+ #: mercadopago/mercadopago-custom-gateway.php:545
379
+ msgid "Shipping service used by store"
380
+ msgstr "Servicio de envío utilizado por el almacén"
381
+
382
+ #: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
383
+ msgid "WooCommerce &gt; System Status &gt; Logs"
384
+ msgstr "WooCommerce &gt; Estado del Sistema &gt; Logs"
385
+
386
+ #: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
387
+ #: mercadopago/mercadopago-gateway.php:705
388
  msgid "Mercado Pago is Inactive"
389
  msgstr "Mercado Pago Inactivo"
390
 
391
+ #: mercadopago/mercadopago-custom-gateway.php:769
392
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
393
  msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
394
 
395
+ #: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
396
  msgid "Click here and configure!"
397
  msgstr "Haga click aquí y configure!"
398
 
399
+ #: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
400
  msgid "The currency"
401
  msgstr "La moneda"
402
 
403
+ #: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
404
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Peru"
410
+
411
+ #: mercadopago/mercadopago-custom-gateway.php:809
412
+ msgid "Click to check your order"
413
+ msgstr "Haga clic para comprobar su pedido"
414
+
415
+ #: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
416
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
417
+ msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
418
+
419
+ #: mercadopago/mercadopago-custom-gateway.php:816
420
+ msgid "Reason is: "
421
+ msgstr "La razón es:"
422
 
423
+ #: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
424
  msgid "Mercado Pago Request Failure"
425
  msgstr "La solicitud de Mercado Pago ha fallado."
426
 
427
+ #: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
 
 
 
 
428
  msgid "Payer email"
429
  msgstr "Email del comprador"
430
 
431
+ #: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
432
  msgid "Payment type"
433
  msgstr "Método de pago"
434
 
435
+ #: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
436
+ msgid "Mercado Pago Payment ID"
437
+ msgstr "ID de pago de Mercado Pago"
438
 
439
+ #: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
440
  msgid "Customer haven't paid yet."
441
  msgstr "El cliente todavía no efectuó el pago."
442
 
443
+ #: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
444
  msgid "Payment under review."
445
  msgstr "El pago está pendiente de revisión."
446
 
447
+ #: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
448
  msgid "The payment was refused. The customer can try again."
449
  msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
450
 
451
+ #: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
452
  msgid "The payment was refunded to the customer."
453
  msgstr "El pago fue devuelto al cliente."
454
 
455
+ #: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
456
  msgid "The payment was cancelled."
457
  msgstr "El pago fue cancelado."
458
 
459
+ #: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
460
+ #: mercadopago/mercadopago-gateway.php:909
 
 
 
461
  msgid "The payment is under mediation or it was charged-back."
462
  msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
463
+
464
+ #: mercadopago/mercadopago-gateway.php:51
465
+ msgid "Mercado Pago - Standard Checkout"
466
+ msgstr "Mercado Pago - Checkout Estándar"
467
+
468
+ #: mercadopago/mercadopago-gateway.php:148
469
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
470
+ msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
471
+
472
+ #: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
473
+ msgid "Configure your Client_id and Client_secret to have access to more options."
474
+ msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
475
+
476
+ #: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
477
+ msgid "This field should be an integer."
478
+ msgstr "Este campo debe ser un número."
479
+
480
+ #: mercadopago/mercadopago-gateway.php:187
481
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
482
+ msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
483
+
484
+ #: mercadopago/mercadopago-gateway.php:195
485
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
486
+ msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
487
+
488
+ #: mercadopago/mercadopago-gateway.php:205
489
+ msgid "Select the max number of installments for your customers."
490
+ msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Standard Checkout"
494
+ msgstr "Habilitar el Checkout Estándar"
495
+
496
+ #: mercadopago/mercadopago-gateway.php:224
497
+ msgid "Insert your Mercado Pago Client_id."
498
+ msgstr "Inserte su Client_id de Mercado Pago."
499
+
500
+ #: mercadopago/mercadopago-gateway.php:231
501
+ msgid "Insert your Mercado Pago Client_secret."
502
+ msgstr "Inserte su Client_secret de Mercado Pago."
503
+
504
+ #: mercadopago/mercadopago-gateway.php:270
505
+ msgid "Integration Method"
506
+ msgstr "Método de integración"
507
+
508
+ #: mercadopago/mercadopago-gateway.php:272
509
+ msgid ""
510
+ "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
511
+ "internal window is embedded to the page layout)."
512
+ msgstr ""
513
+ "Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
514
+ "redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
515
+
516
+ #: mercadopago/mercadopago-gateway.php:275
517
+ msgid "iFrame"
518
+ msgstr "iFrame"
519
+
520
+ #: mercadopago/mercadopago-gateway.php:276
521
+ msgid "Modal Window"
522
+ msgstr "Ventana modal"
523
+
524
+ #: mercadopago/mercadopago-gateway.php:277
525
+ msgid "Redirect"
526
+ msgstr "Redireccionamiento"
527
+
528
+ #: mercadopago/mercadopago-gateway.php:281
529
+ msgid "iFrame Width"
530
+ msgstr "Ancho del iFrame"
531
+
532
+ #: mercadopago/mercadopago-gateway.php:287
533
+ msgid "iFrame Height"
534
+ msgstr "Alto del iFrame"
535
+
536
+ #: mercadopago/mercadopago-gateway.php:293
537
+ msgid "Auto Return"
538
+ msgstr "Redirección automática"
539
+
540
+ #: mercadopago/mercadopago-gateway.php:295
541
+ msgid "Automatic Return After Payment"
542
+ msgstr "Redirección Automática Luego del Pago"
543
+
544
+ #: mercadopago/mercadopago-gateway.php:297
545
+ msgid "After the payment, client is automatically redirected."
546
+ msgstr "Después del pago, el cliente será redireccionado automáticamente."
547
+
548
+ #: mercadopago/mercadopago-gateway.php:300
549
+ msgid "Payment Options"
550
+ msgstr "Opciones de Pago"
551
+
552
+ #: mercadopago/mercadopago-gateway.php:305
553
+ msgid "Max installments"
554
+ msgstr "Número máximo de cuotas"
555
+
556
+ #: mercadopago/mercadopago-gateway.php:311
557
+ msgid "Exclude Payment Methods"
558
+ msgstr "Excluir métodos de pago"
559
+
560
+ #: mercadopago/mercadopago-gateway.php:428
561
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
562
+ msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
563
+
564
+ #: mercadopago/mercadopago-gateway.php:436
565
+ msgid "Cancel order &amp; Clear cart"
566
+ msgstr "Cancelar &amp; Limpiar carrito"
567
+
568
+ #: mercadopago/mercadopago-gateway.php:446
569
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
570
+ msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
571
+
572
+ #: mercadopago/mercadopago-gateway.php:697
573
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
574
+ msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
575
+
576
+ msgid " as it appears in your card ..."
577
+ msgstr " tal como aparece en su tarjeta ..."
578
+
579
+ msgid "Done, your payment was accredited!"
580
+ msgstr "Listo, su pago ha sido aceptado!"
581
+
582
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
583
+ msgstr "Estamos procesando su pago. En menos de una hora se le notificará por correo electrónico."
584
+
585
+ msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
586
+ msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
587
+
588
+ msgid "Check the card number."
589
+ msgstr "Compruebe el número de tarjeta."
590
+
591
+ msgid "Check the expiration date."
592
+ msgstr "Compruebe la fecha de expiración."
593
+
594
+ msgid "Check the information."
595
+ msgstr "Compruebe la información informada."
596
+
597
+ msgid "Check the security code."
598
+ msgstr "Compruebe el código de seguridad informado."
599
+
600
+ msgid "We could not process your payment."
601
+ msgstr "No se puede procesar su pago."
602
+
603
+ msgid "You must authorize the payment of your orders."
604
+ msgstr "Usted debe autorizar pagos de sus órdenes."
605
+
606
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
607
+ msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
608
+
609
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
610
+ msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
611
+
612
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
613
+ msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
614
+
615
+ msgid "Your payment do not have sufficient funds."
616
+ msgstr "Su pago no tiene fondos suficientes."
617
+
618
+ msgid "Your payment does not process payments with selected installments."
619
+ msgstr "El pago no puede procesar la cuota seleccionada."
620
+
621
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
622
+ msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta forma de pago no puede procesar su pago."
626
+
627
+ msgid "Mercado Pago - Ticket"
628
+ msgstr "Mercado Pago - Ticket"
629
+
630
+ msgid "Mercado Pago - Credit Card"
631
+ msgstr "Mercado Pago - Tarjeta de Crédito"
632
+
633
+ msgid "Ticket Options"
634
+ msgstr "Opciones de Ticket"
635
+
636
+ msgid "Enable Ticket Payment Method"
637
+ msgstr "Habilitar Pago con Ticket"
638
+
639
+ msgid "Other Bank"
640
+ msgstr "Otro Banco"
641
+
642
+ msgid "Choose"
643
+ msgstr "Escoger"
644
+
645
+ msgid "A problem was occurred when processing your payment. Please, try again."
646
+ msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
647
+
648
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
649
+ msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
650
+
651
+ msgid "Waiting for the ticket payment."
652
+ msgstr "Esperando el pago del ticket."
653
+
654
+ msgid "Print the Ticket"
655
+ msgstr "Imprimir el Ticket"
656
+
657
+ msgid "To reprint the ticket click "
658
+ msgstr "Para imprimir nuevamente el ticket hace clic "
659
+
660
+ msgid "here"
661
+ msgstr "aquí"
662
+
663
+ msgid "Custom Checkout is Inactive"
664
+ msgstr "Checkout Custom Inactivo"
665
+
666
+ msgid "Standard Checkout is Inactive"
667
+ msgstr "Checkout Estándar Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
673
+ msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
674
+
675
+ msgid "Important: The order will be confirmed only after the payment approval."
676
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
677
+
678
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
679
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
680
+
681
+ msgid "Your Card"
682
+ msgstr "Sus Tarjetas"
683
+
684
+ msgid "Other Cards"
685
+ msgstr "Otras Tarjetas"
686
+
687
+ msgid "Other Card"
688
+ msgstr "Otra Tarjeta"
689
+
690
+ msgid "ended in"
691
+ msgstr "terminado en"
692
+
693
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
694
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito previo porque la tramitación del pago se realiza en el servidor."
languages/woocommerce-mercadopago-module-pt_BR.mo CHANGED
Binary file
languages/woocommerce-mercadopago-module-pt_BR.po CHANGED
@@ -4,9 +4,9 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
- "POT-Creation-Date: 2016-03-04 17:44-0300\n"
8
  "PO-Revision-Date: \n"
9
- "Language-Team: Your Team <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -14,10 +14,8 @@ msgstr ""
14
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;"
18
- "esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
19
- "_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
20
- "X-Poedit-Basepath: ..\n"
21
  "X-Generator: Poedit 1.8.7\n"
22
  "Last-Translator: \n"
23
  "Language: pt_BR\n"
@@ -27,386 +25,662 @@ msgstr ""
27
  msgid "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."
28
  msgstr "Este é o módulo <strong>oficial</strong> do Mercado Pago para o plugin WooCommerce. Este módulo habilita o WooCommerce a usar o Mercado Pago como meio de pagamento para compras realizadas em sua loja virtual."
29
 
30
- #: mercadopago-module.php:66
31
  #, php-format
32
- msgid ""
33
- "Woo Mercado Pago Module depends on the last version of %s to "
34
- "execute!"
35
- msgstr ""
36
- "O Woo Mercado Pago Module depende da última versão do %s para "
37
- "executar!"
38
 
39
- #: mercadopago/mercadopago-gateway.php:63
40
- msgid ""
41
- "This module enables WooCommerce to use Mercado Pago as payment method for "
42
- "purchases made in your virtual store."
43
- msgstr ""
44
- "Este módulo habilita o WooCommerce a usar o Mercado Pago como meio de "
45
- "pagamento para compras realizadas em sua loja virtual."
46
 
47
- #: mercadopago/mercadopago-gateway.php:133
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  msgid "Argentine"
49
  msgstr "Argentina"
50
 
51
- #: mercadopago/mercadopago-gateway.php:134
 
52
  msgid "Brazil"
53
  msgstr "Brasil"
54
 
55
- #: mercadopago/mercadopago-gateway.php:135
 
56
  msgid "Chile"
57
  msgstr "Chile"
58
 
59
- #: mercadopago/mercadopago-gateway.php:136
 
60
  msgid "Colombia"
61
  msgstr "Colômbia"
62
 
63
- #: mercadopago/mercadopago-gateway.php:137
 
64
  msgid "Mexico"
65
  msgstr "México"
66
 
67
- #: mercadopago/mercadopago-gateway.php:138
68
  msgid "or"
69
  msgstr "ou"
70
 
71
- #: mercadopago/mercadopago-gateway.php:139
 
72
  msgid "Venezuela"
73
  msgstr "Venezuela"
74
 
75
- #: mercadopago/mercadopago-gateway.php:154
76
- msgid ""
77
- "Select the payment methods that you <strong>don't</strong> want to receive "
78
- "with Mercado Pago."
79
- msgstr ""
80
- "Selecione os meios de pagamento que <strong>não</strong> gostaria de receber "
81
- "com o Mercado Pago."
82
-
83
- #: mercadopago/mercadopago-gateway.php:157
84
  msgid "Your credentials are <strong>valid</strong> for"
85
  msgstr "Suas credenciais <strong>são válidas</strong> para"
86
 
87
- #: mercadopago/mercadopago-gateway.php:164
88
- #: mercadopago/mercadopago-gateway.php:173
89
- msgid ""
90
- "Configure your Client_id and Client_secret to have access to more options."
91
- msgstr "Configure seu Client_id e Client_secret para ter acesso a mais opções."
92
-
93
- #: mercadopago/mercadopago-gateway.php:167
94
- #: mercadopago/mercadopago-gateway.php:176
95
  msgid "Your credentials are <strong>not valid</strong>!"
96
  msgstr "Suas credenciais <strong>não são válidas</strong>!"
97
 
98
- #: mercadopago/mercadopago-gateway.php:190
99
- #: mercadopago/mercadopago-gateway.php:198
100
- #: mercadopago/mercadopago-gateway.php:208
101
- msgid "This field should be an integer."
102
- msgstr "Este campo deve ser um número inteiro."
103
-
104
- #: mercadopago/mercadopago-gateway.php:193
105
- msgid ""
106
- "If your integration method is iFrame, please inform the payment iFrame width."
107
- msgstr ""
108
- "Se o seu método de integração é por iFrame, por favor informe a largura do "
109
- "layout."
110
-
111
- #: mercadopago/mercadopago-gateway.php:201
112
- msgid ""
113
- "If your integration method is iFrame, please inform the payment iFrame "
114
- "height."
115
- msgstr ""
116
- "Se o seu método de integração é por iFrame, por favor informe a altura do "
117
- "layout."
118
-
119
- #: mercadopago/mercadopago-gateway.php:211
120
- msgid "Select the max number of installments for your customers."
121
- msgstr ""
122
- "Selecione o número máximo de parcelas que sua loja oferece a seus clientes."
123
-
124
- #: mercadopago/mercadopago-gateway.php:217
125
  msgid "Enable/Disable"
126
  msgstr "Habilitar/Desabilitar"
127
 
128
- #: mercadopago/mercadopago-gateway.php:219
129
- msgid "Enable Mercado Pago Module"
130
- msgstr "Habilitar o Módulo Mercado Pago"
131
 
132
- #: mercadopago/mercadopago-gateway.php:223
133
  msgid "Mercado Pago Credentials"
134
  msgstr "Credenciais do Mercado Pago"
135
 
136
- #: mercadopago/mercadopago-gateway.php:225
137
  msgid "You can obtain your credentials for"
138
  msgstr "Você pode obter suas credenciais para"
139
 
140
- #: mercadopago/mercadopago-gateway.php:228
141
- msgid "Mercado Pago Client_id"
142
- msgstr "Client_id do Mercado Pago"
143
-
144
- #: mercadopago/mercadopago-gateway.php:230
145
- msgid "Insert your Mercado Pago Client_id."
146
- msgstr "Insira seu Client_id do Mercado Pago."
147
-
148
- #: mercadopago/mercadopago-gateway.php:235
149
- msgid "Mercado Pago Client_secret"
150
- msgstr "Client_secret do Mercado Pago"
151
 
152
- #: mercadopago/mercadopago-gateway.php:237
153
- msgid "Insert your Mercado Pago Client_secret."
154
- msgstr "Insira seu Client_secret do Mercado Pago."
155
 
156
- #: mercadopago/mercadopago-gateway.php:242
157
  msgid "Instant Payment Notification (IPN) URL"
158
  msgstr "URL de Notificações Instantâneas de Pagamento (IPN)"
159
 
160
- #: mercadopago/mercadopago-gateway.php:244
161
  msgid "Your IPN URL to receive instant payment notifications is"
162
  msgstr "Sua URL de IPN para receber notificações instantâneas de pagamentos é"
163
 
164
- #: mercadopago/mercadopago-gateway.php:247
165
  msgid "Checkout Options"
166
  msgstr "Opções de Checkout"
167
 
168
- #: mercadopago/mercadopago-gateway.php:252
169
  msgid "Title"
170
  msgstr "Título"
171
 
172
- #: mercadopago/mercadopago-gateway.php:254
173
  msgid "Title shown to the client in the checkout."
174
  msgstr "Título mostrado ao cliente durante o checkout."
175
 
176
- #: mercadopago/mercadopago-gateway.php:258
 
 
 
 
177
  msgid "Description"
178
  msgstr "Descrição"
179
 
180
- #: mercadopago/mercadopago-gateway.php:260
181
  msgid "Description shown to the client in the checkout."
182
  msgstr "Descrição mostrada ao cliente durante o checkout."
183
 
184
- #: mercadopago/mercadopago-gateway.php:261
185
- #: mercadopago/mercadopago-gateway.php:406
186
  msgid "Pay with Mercado Pago"
187
  msgstr "Pagar com Mercado Pago"
188
 
189
- #: mercadopago/mercadopago-gateway.php:264
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  msgid "Store Category"
191
  msgstr "Categoria da loja"
192
 
193
- #: mercadopago/mercadopago-gateway.php:266
194
  msgid "Define which type of products your store sells."
195
  msgstr "Defina qual o tipo dos produtos que sua loja vende."
196
 
197
- #: mercadopago/mercadopago-gateway.php:270
198
  msgid "Store Identificator"
199
  msgstr "Identificador da Loja"
200
 
201
- #: mercadopago/mercadopago-gateway.php:272
202
  msgid "Please, inform a prefix to your store."
203
  msgstr "Por favor, informe um prefixo para sua loja."
204
 
205
- #: mercadopago/mercadopago-gateway.php:272
206
- msgid ""
207
- "If you use your Mercado Pago account on multiple stores you should make sure "
208
- "that this prefix is unique as Mercado Pago will not allow orders with same "
209
- "identificators."
210
- msgstr ""
211
- "Se estiver usando sua conta Mercado Pago para múltiplas lojas então você "
212
- "deverá assegurar-se que este prefixo seja único pois o Mercado Pago não "
213
- "permitirá pedidos com um mesmo identificador."
214
 
215
- #: mercadopago/mercadopago-gateway.php:276
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  msgid "Integration Method"
217
- msgstr "Método de integração"
218
 
219
- #: mercadopago/mercadopago-gateway.php:278
220
- msgid ""
221
- "Select how your clients should interact with Mercado Pago. Modal Window "
222
- "(inside your store), Redirect (Client is redirected to Mercado Pago), or "
223
- "iFrame (an internal window is embedded to the page layout)."
224
- msgstr ""
225
- "Selecione como seus clientes irão interagir com o Mercado Pago. Janela Modal "
226
- "(Dentro de sua loja), Redirecionamento (O cliente é redirecionado ao Mercado "
227
- "Pago), ou iFrame (Uma janela de pagamento é incorporada ao layout da página)."
228
 
229
- #: mercadopago/mercadopago-gateway.php:281
230
  msgid "iFrame"
231
  msgstr "iFrame"
232
 
233
- #: mercadopago/mercadopago-gateway.php:282
234
  msgid "Modal Window"
235
  msgstr "Janela Modal"
236
 
237
- #: mercadopago/mercadopago-gateway.php:283
238
  msgid "Redirect"
239
  msgstr "Redirecionamento"
240
 
241
- #: mercadopago/mercadopago-gateway.php:287
242
  msgid "iFrame Width"
243
  msgstr "Largura do iFrame"
244
 
245
- #: mercadopago/mercadopago-gateway.php:293
246
  msgid "iFrame Height"
247
  msgstr "Altura do iFrame"
248
 
249
- #: mercadopago/mercadopago-gateway.php:299
250
  msgid "Auto Return"
251
  msgstr "Auto Retorno"
252
 
253
- #: mercadopago/mercadopago-gateway.php:301
254
  msgid "Automatic Return After Payment"
255
  msgstr "Retorno com Redirecionamento Automático"
256
 
257
- #: mercadopago/mercadopago-gateway.php:303
258
  msgid "After the payment, client is automatically redirected."
259
  msgstr "Após a compra, o cliente é redirecionado automaticamente."
260
 
261
- #: mercadopago/mercadopago-gateway.php:306
262
  msgid "Payment Options"
263
  msgstr "Opções de Pagamento"
264
 
265
- #: mercadopago/mercadopago-gateway.php:311
266
  msgid "Max installments"
267
  msgstr "Número Máximo de Parcelamentos"
268
 
269
- #: mercadopago/mercadopago-gateway.php:317
270
  msgid "Exclude Payment Methods"
271
  msgstr "Excluir Métodos de Pagamento"
272
 
273
- #: mercadopago/mercadopago-gateway.php:324
274
- msgid "Test and Debug Options"
275
- msgstr "Opções de Teste e Debug"
276
 
277
- #: mercadopago/mercadopago-gateway.php:329
278
- msgid "Mercado Pago Sandbox"
279
- msgstr "Sandbox Mercado Pago"
280
 
281
- #: mercadopago/mercadopago-gateway.php:331
282
- msgid "Enable Mercado Pago Sandbox"
283
- msgstr "Habilitar o sandbox do Mercado Pago"
284
 
285
- #: mercadopago/mercadopago-gateway.php:333
286
- msgid "This options allows you to test payments inside a sandbox environment."
287
- msgstr "Esta opção permite a você testar pagamentos em um ambiente sandbox."
288
 
289
- #: mercadopago/mercadopago-gateway.php:336
290
- msgid "Debug and Log"
291
- msgstr "Debug e Log"
292
 
293
- #: mercadopago/mercadopago-gateway.php:338
294
- msgid "Enable log"
295
- msgstr "Habilitar Log"
296
 
297
- #: mercadopago/mercadopago-gateway.php:340
298
- #, php-format
299
- msgid "Register event logs of Mercado Pago, such as API requests, in the file"
300
- msgstr ""
301
- "Registrar logs de events do Mercado Pago, como requisições à API, dentro do "
302
- "arquivo"
303
 
304
- #: mercadopago/mercadopago-gateway.php:402
305
- msgid ""
306
- "Thank you for your order. Please, proceed with your payment clicking in the "
307
- "bellow button."
308
- msgstr ""
309
- "Obrigado pela sua compra. Por favor, prossiga para a página de pagamento "
310
- "clicando no botão abaixo."
311
 
312
- #: mercadopago/mercadopago-gateway.php:410
313
- msgid "Cancel order &amp; Clear cart"
314
- msgstr "Cancelar &amp; Limpar carrinho"
315
 
316
- #: mercadopago/mercadopago-gateway.php:420
317
- msgid ""
318
- "Thank you for your order. Proceed with your payment completing the following "
319
- "information."
320
- msgstr ""
321
- "Obrigado pela sua compra. Prossiga com seu pagamento completando as "
322
- "informações abaixo."
323
 
324
- #: mercadopago/mercadopago-gateway.php:431
325
- msgid ""
326
- "An error occurred when proccessing your payment. Please try again or contact "
327
- "us for assistence."
328
- msgstr ""
329
- "Um erro ocorreu durante o processamento do seu pagamento. Por favor tente "
330
- "novamente ou contacte-nos para assistência."
331
 
332
- #: mercadopago/mercadopago-gateway.php:434
333
- msgid "Click to try again"
334
- msgstr "Clique para tentar de novo"
335
 
336
- #: mercadopago/mercadopago-gateway.php:675
337
- #: mercadopago/mercadopago-gateway.php:686
338
- msgid "Mercado Pago is Inactive"
339
- msgstr "O Mercado Pago está inativo"
340
 
341
- #: mercadopago/mercadopago-gateway.php:678
342
- msgid ""
343
- "Your Mercado Pago credentials Client_id/Client_secret appears to be "
344
- "misconfigured."
345
- msgstr ""
346
- "Suas credenciais Client_id/Client_secret do Mercado Pago parecem estar "
347
- "desconfiguradas."
348
 
349
- #: mercadopago/mercadopago-gateway.php:679
350
- msgid "Click here and configure!"
351
- msgstr "Clique aqui e configure!"
352
 
353
- #: mercadopago/mercadopago-gateway.php:689
354
- msgid "The currency"
355
- msgstr "As moedas"
356
 
357
- #: mercadopago/mercadopago-gateway.php:689
358
- msgid ""
359
- "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, USD, "
360
- "VEF."
361
- msgstr ""
362
- "não são suportadas. As moedas suportadas são: ARS, BRL, COP, MXN, USD, VEF."
363
 
364
- #: mercadopago/mercadopago-gateway.php:714
365
- msgid "Mercado Pago Request Failure"
366
- msgstr "Falha na Requisição do Mercado Pago"
367
 
368
- #: mercadopago/mercadopago-gateway.php:791
369
- msgid "Mercado Pago Transaction ID"
370
- msgstr "ID de Transação do Mercado Pago"
371
 
372
- #: mercadopago/mercadopago-gateway.php:798
373
- msgid "Payer email"
374
- msgstr "Email do pagador"
375
 
376
- #: mercadopago/mercadopago-gateway.php:805
377
- msgid "Payment type"
378
- msgstr "Tipo de pagamento"
379
 
380
- #: mercadopago/mercadopago-gateway.php:810
381
- msgid "Payment approved."
382
- msgstr "pagamento aprovado."
383
 
384
- #: mercadopago/mercadopago-gateway.php:816
385
- msgid "Customer haven't paid yet."
386
- msgstr "O cliente ainda não realizou o pagamento."
387
 
388
- #: mercadopago/mercadopago-gateway.php:821
389
- msgid "Payment under review."
390
- msgstr "O pagamento está em revisão."
391
 
392
- #: mercadopago/mercadopago-gateway.php:826
393
- msgid "The payment was refused. The customer can try again."
394
- msgstr "O pagamento foi recusado. O cliente pode tentar novamente."
395
 
396
- #: mercadopago/mercadopago-gateway.php:832
397
- msgid "The payment was refunded to the customer."
398
- msgstr "O pagamento foi estornado ao cliente."
399
 
400
- #: mercadopago/mercadopago-gateway.php:838
401
- msgid "The payment was cancelled."
402
- msgstr "O pagamento foi cancelado."
403
 
404
- #: mercadopago/mercadopago-gateway.php:843
405
- msgid "Mercado Pago Payment ID"
406
- msgstr "ID de Pagamento do Mercado Pago"
407
 
408
- #: mercadopago/mercadopago-gateway.php:843
409
- #: mercadopago/mercadopago-gateway.php:848
410
- msgid "The payment is under mediation or it was charged-back."
411
- msgstr ""
412
- "O pagamento está em mediação ou a compra não foi reconhecida pelo cliente."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WordPress Blank Pot v1.0.0\n"
7
+ "POT-Creation-Date: 2016-05-23 14:12-0300\n"
8
  "PO-Revision-Date: \n"
9
+ "Language-Team: Product Development <translations@example.com>\n"
10
  "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
  "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
18
+ "X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
 
 
19
  "X-Generator: Poedit 1.8.7\n"
20
  "Last-Translator: \n"
21
  "Language: pt_BR\n"
25
  msgid "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."
26
  msgstr "Este é o módulo <strong>oficial</strong> do Mercado Pago para o plugin WooCommerce. Este módulo habilita o WooCommerce a usar o Mercado Pago como meio de pagamento para compras realizadas em sua loja virtual."
27
 
28
+ #: mercadopago-module.php:69
29
  #, php-format
30
+ msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
31
+ msgstr "Woo Mercado Pago Module depends on the last version of %s to execute!"
 
 
 
 
32
 
33
+ #: mercadopago-module.php:109
34
+ msgid "Standard Checkout"
35
+ msgstr "Checkout Padrão"
 
 
 
 
36
 
37
+ #: mercadopago-module.php:113
38
+ msgid "Custom Checkout"
39
+ msgstr "Checkout Customizado"
40
+
41
+ #: mercadopago/mercadopago-custom-gateway.php:48
42
+ msgid "Mercado Pago - Custom Checkout"
43
+ msgstr "Mercado Pago - Checkout Customizado"
44
+
45
+ #: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
46
+ msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
47
+ msgstr "Este módulo habilita o WooCommerce a usar o Mercado Pago como meio de pagamento para compras realizadas em sua loja virtual."
48
+
49
+ #: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
50
+ #: mercadopago/mercadopago-gateway.php:716
51
  msgid "Argentine"
52
  msgstr "Argentina"
53
 
54
+ #: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
55
+ #: mercadopago/mercadopago-gateway.php:717
56
  msgid "Brazil"
57
  msgstr "Brasil"
58
 
59
+ #: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
60
+ #: mercadopago/mercadopago-gateway.php:719
61
  msgid "Chile"
62
  msgstr "Chile"
63
 
64
+ #: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
65
+ #: mercadopago/mercadopago-gateway.php:718
66
  msgid "Colombia"
67
  msgstr "Colômbia"
68
 
69
+ #: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
70
+ #: mercadopago/mercadopago-gateway.php:720
71
  msgid "Mexico"
72
  msgstr "México"
73
 
74
+ #: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
75
  msgid "or"
76
  msgstr "ou"
77
 
78
+ #: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
79
+ #: mercadopago/mercadopago-gateway.php:721
80
  msgid "Venezuela"
81
  msgstr "Venezuela"
82
 
83
+ #: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
 
 
 
 
 
 
 
 
84
  msgid "Your credentials are <strong>valid</strong> for"
85
  msgstr "Suas credenciais <strong>são válidas</strong> para"
86
 
87
+ #: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
88
+ #: mercadopago/mercadopago-gateway.php:170
 
 
 
 
 
 
89
  msgid "Your credentials are <strong>not valid</strong>!"
90
  msgstr "Suas credenciais <strong>não são válidas</strong>!"
91
 
92
+ #: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  msgid "Enable/Disable"
94
  msgstr "Habilitar/Desabilitar"
95
 
96
+ #: mercadopago/mercadopago-custom-gateway.php:171
97
+ msgid "Enable Custom Checkout"
98
+ msgstr "Habilitar o Checkout Customizado"
99
 
100
+ #: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
101
  msgid "Mercado Pago Credentials"
102
  msgstr "Credenciais do Mercado Pago"
103
 
104
+ #: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
105
  msgid "You can obtain your credentials for"
106
  msgstr "Você pode obter suas credenciais para"
107
 
108
+ #: mercadopago/mercadopago-custom-gateway.php:182
109
+ msgid "Insert your Mercado Pago Public key."
110
+ msgstr "Insira sua Public Key do Mercado Pago."
 
 
 
 
 
 
 
 
111
 
112
+ #: mercadopago/mercadopago-custom-gateway.php:189
113
+ msgid "Insert your Mercado Pago Access token."
114
+ msgstr "Insira seu Access Token do Mercado Pago."
115
 
116
+ #: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
117
  msgid "Instant Payment Notification (IPN) URL"
118
  msgstr "URL de Notificações Instantâneas de Pagamento (IPN)"
119
 
120
+ #: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
121
  msgid "Your IPN URL to receive instant payment notifications is"
122
  msgstr "Sua URL de IPN para receber notificações instantâneas de pagamentos é"
123
 
124
+ #: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
125
  msgid "Checkout Options"
126
  msgstr "Opções de Checkout"
127
 
128
+ #: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
129
  msgid "Title"
130
  msgstr "Título"
131
 
132
+ #: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
133
  msgid "Title shown to the client in the checkout."
134
  msgstr "Título mostrado ao cliente durante o checkout."
135
 
136
+ #: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
137
+ msgid "Mercado Pago"
138
+ msgstr "Mercado Pago"
139
+
140
+ #: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
141
  msgid "Description"
142
  msgstr "Descrição"
143
 
144
+ #: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
145
  msgid "Description shown to the client in the checkout."
146
  msgstr "Descrição mostrada ao cliente durante o checkout."
147
 
148
+ #: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
 
149
  msgid "Pay with Mercado Pago"
150
  msgstr "Pagar com Mercado Pago"
151
 
152
+ #: mercadopago/mercadopago-custom-gateway.php:216
153
+ msgid "Statement Descriptor"
154
+ msgstr "Descritor da Nota Fiscal"
155
+
156
+ #: mercadopago/mercadopago-custom-gateway.php:218
157
+ msgid "The description that will be shown in your customer's invoice."
158
+ msgstr "A descrição que será mostrada na nota fiscal de seu cliente."
159
+
160
+ #: mercadopago/mercadopago-custom-gateway.php:222
161
+ msgid "Binary Mode"
162
+ msgstr "Modo Binário"
163
+
164
+ #: mercadopago/mercadopago-custom-gateway.php:224
165
+ msgid "Enable binary mode for checkout status"
166
+ msgstr "Habilita o modo binário para o status do checkout"
167
+
168
+ #: mercadopago/mercadopago-custom-gateway.php:226
169
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
170
+ msgstr "Ao realizar a cobrança no cartão, apenas os status [aprovado] ou [rejeitado] serão considerados."
171
+
172
+ #: mercadopago/mercadopago-custom-gateway.php:229
173
+ msgid "Ticket"
174
+ msgstr "Boleto"
175
+
176
+ #: mercadopago/mercadopago-custom-gateway.php:231
177
+ msgid "Enable Ticket for Custom Checkout"
178
+ msgstr "Habilitar Boleto para o Checkout Customizado"
179
+
180
+ #: mercadopago/mercadopago-custom-gateway.php:233
181
+ msgid "Let your customer pay you with tickets"
182
+ msgstr "Permitir que seus clientes façam pagamentos por boletos"
183
+
184
+ #: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
185
  msgid "Store Category"
186
  msgstr "Categoria da loja"
187
 
188
+ #: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
189
  msgid "Define which type of products your store sells."
190
  msgstr "Defina qual o tipo dos produtos que sua loja vende."
191
 
192
+ #: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
193
  msgid "Store Identificator"
194
  msgstr "Identificador da Loja"
195
 
196
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
197
  msgid "Please, inform a prefix to your store."
198
  msgstr "Por favor, informe um prefixo para sua loja."
199
 
200
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
201
+ msgid "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators."
202
+ msgstr "Se estiver usando sua conta Mercado Pago para múltiplas lojas então você deverá assegurar-se que este prefixo seja único pois o Mercado Pago não permitirá pedidos com um mesmo identificador."
 
 
 
 
 
 
203
 
204
+ #: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
205
+ msgid "Test and Debug Options"
206
+ msgstr "Opções de Teste e Debug"
207
+
208
+ #: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
209
+ msgid "Mercado Pago Sandbox"
210
+ msgstr "Sandbox Mercado Pago"
211
+
212
+ #: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
213
+ msgid "Enable Mercado Pago Sandbox"
214
+ msgstr "Habilitar o sandbox do Mercado Pago"
215
+
216
+ #: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
217
+ msgid "This option allows you to test payments inside a sandbox environment."
218
+ msgstr "Esta opção permite a você testar pagamentos em um ambiente sandbox."
219
+
220
+ #: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
221
+ msgid "Debug and Log"
222
+ msgstr "Debug e Log"
223
+
224
+ #: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
225
+ msgid "Enable log"
226
+ msgstr "Habilitar Log"
227
+
228
+ #: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
229
+ msgid "Register event logs of Mercado Pago, such as API requests, in the file"
230
+ msgstr "Registrar logs de eventos do Mercado Pago, como requisições à API, dentro do arquivo"
231
+
232
+ #: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
233
+ msgid "File location: "
234
+ msgstr "Local do arquivo: "
235
+
236
+ #: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
237
+ #, php-format
238
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
239
+ msgstr "Por favor, avalie-nos com %s na WordPress.org e dê seu feedback para ajudar a melhorar este módulo!"
240
+
241
+ #: mercadopago/mercadopago-custom-gateway.php:332
242
+ msgid "Payment Method"
243
+ msgstr "Método de Pagamento"
244
+
245
+ #: mercadopago/mercadopago-custom-gateway.php:333
246
+ msgid "Credit card number"
247
+ msgstr "Número do cartão de crédito"
248
+
249
+ #: mercadopago/mercadopago-custom-gateway.php:334
250
+ msgid "Expiration month"
251
+ msgstr "Mês de expiração"
252
+
253
+ #: mercadopago/mercadopago-custom-gateway.php:335
254
+ msgid "Expiration year"
255
+ msgstr "Ano de expiração"
256
+
257
+ #: mercadopago/mercadopago-custom-gateway.php:336
258
+ msgid "Year"
259
+ msgstr "Ano"
260
+
261
+ #: mercadopago/mercadopago-custom-gateway.php:337
262
+ msgid "Month"
263
+ msgstr "Mês"
264
+
265
+ #: mercadopago/mercadopago-custom-gateway.php:338
266
+ msgid "Card holder name"
267
+ msgstr "Nome do dono do cartão"
268
+
269
+ #: mercadopago/mercadopago-custom-gateway.php:339
270
+ msgid "Security code"
271
+ msgstr "Código de segurança"
272
+
273
+ #: mercadopago/mercadopago-custom-gateway.php:340
274
+ msgid "Document Type"
275
+ msgstr "Tipo de documento"
276
+
277
+ #: mercadopago/mercadopago-custom-gateway.php:341
278
+ msgid "Document number"
279
+ msgstr "Número do documento"
280
+
281
+ #: mercadopago/mercadopago-custom-gateway.php:342
282
+ msgid "Issuer"
283
+ msgstr "Emitente"
284
+
285
+ #: mercadopago/mercadopago-custom-gateway.php:343
286
+ msgid "Installments"
287
+ msgstr "Parcelas"
288
+
289
+ #: mercadopago/mercadopago-custom-gateway.php:347
290
+ msgid "Parameter cardNumber can not be null/empty"
291
+ msgstr "O campo [Número do cartão] não pode ser nulo/vazio"
292
+
293
+ #: mercadopago/mercadopago-custom-gateway.php:348
294
+ msgid "Invalid Card Number"
295
+ msgstr "Número do cartão inválido"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
298
+ #: mercadopago/mercadopago-custom-gateway.php:353
299
+ msgid "Invalid Expiration Date"
300
+ msgstr "Data de expiração inválida"
301
+
302
+ #: mercadopago/mercadopago-custom-gateway.php:355
303
+ msgid "Parameter cardholderName can not be null/empty"
304
+ msgstr "O campo [Nome do dono do cartão] não pode ser nulo/vazio"
305
+
306
+ #: mercadopago/mercadopago-custom-gateway.php:356
307
+ msgid "Invalid Card Holder Name"
308
+ msgstr "Nome do dono do cartão inválido"
309
+
310
+ #: mercadopago/mercadopago-custom-gateway.php:358
311
+ msgid "Parameter securityCode can not be null/empty"
312
+ msgstr "O campo [Código de segurança] não pode ser nulo/vazio"
313
+
314
+ #: mercadopago/mercadopago-custom-gateway.php:359
315
+ msgid "Invalid Security Code"
316
+ msgstr "Código de segurança inválido"
317
+
318
+ #: mercadopago/mercadopago-custom-gateway.php:361
319
+ msgid "Parameter docType can not be null/empty"
320
+ msgstr "O campo [Tipo do documento] não pode ser nulo/vazio"
321
+
322
+ #: mercadopago/mercadopago-custom-gateway.php:362
323
+ msgid "Invalid Document Type"
324
+ msgstr "Tipo do documento inválido"
325
+
326
+ #: mercadopago/mercadopago-custom-gateway.php:364
327
+ msgid "Parameter docNumber can not be null/empty"
328
+ msgstr "O campo [Número do documento] não pode ser nulo/vazio"
329
+
330
+ #: mercadopago/mercadopago-custom-gateway.php:365
331
+ msgid "Invalid Document Number"
332
+ msgstr "Número do documento inválido"
333
+
334
+ #: mercadopago/mercadopago-custom-gateway.php:367
335
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
336
+ msgstr "O campo [Subtipo do documento] não pode ser nulo/vazio"
337
+
338
+ #: mercadopago/mercadopago-custom-gateway.php:368
339
+ msgid "Invalid Document Sub Type"
340
+ msgstr "Subtipo do documento inválido"
341
+
342
+ #: mercadopago/mercadopago-custom-gateway.php:370
343
+ msgid "Parameter cardIssuerId can not be null/empty"
344
+ msgstr "O campo [Emitente do cartão] não pode ser nulo/vazio"
345
+
346
+ #: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
347
+ msgid "Payment approved."
348
+ msgstr "Pagamento aprovado."
349
+
350
+ #: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
351
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
352
+ msgstr "Seu pagamento está sob análise. Em menos de 1h, você deverá ser notificado por email."
353
+
354
+ #: mercadopago/mercadopago-custom-gateway.php:418
355
+ msgid "Check your order resume"
356
+ msgstr "Ver o resumo do pedido"
357
+
358
+ #: mercadopago/mercadopago-custom-gateway.php:431
359
+ msgid "Your payment was refused. You can try again."
360
+ msgstr "Seu pagamento foi rejeitado. Você pode tentar novamente."
361
+
362
+ #: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
363
+ msgid "Click to try again"
364
+ msgstr "Clique para tentar novamente"
365
+
366
+ #: mercadopago/mercadopago-custom-gateway.php:455
367
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
368
+ msgstr "Um problema ocorreu ao processar seu pagamento. Você tem certeza que preencheu corretamente todos os campos do formulário do checkout?"
369
+
370
+ #: mercadopago/mercadopago-custom-gateway.php:544
371
+ msgid "Shipping"
372
+ msgstr "Método de envio"
373
+
374
+ #: mercadopago/mercadopago-custom-gateway.php:545
375
+ msgid "Shipping service used by store"
376
+ msgstr "Serviço de envio usado pela loja"
377
+
378
+ #: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
379
+ msgid "WooCommerce &gt; System Status &gt; Logs"
380
+ msgstr "WooCommerce &gt; Status de Sistema &gt; Logs"
381
+
382
+ #: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
383
+ #: mercadopago/mercadopago-gateway.php:705
384
+ msgid "Mercado Pago is Inactive"
385
+ msgstr "O Mercado Pago está inativo"
386
+
387
+ #: mercadopago/mercadopago-custom-gateway.php:769
388
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
389
+ msgstr "Suas credenciais Public Key/Access Token do Mercado Pago parecem estar desconfiguradas."
390
+
391
+ #: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
392
+ msgid "Click here and configure!"
393
+ msgstr "Clique aqui e configure!"
394
+
395
+ #: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
396
+ msgid "The currency"
397
+ msgstr "As moedas"
398
+
399
+ #: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
400
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
401
+ msgstr "não são suportadas. As moedas suportadas são: ARS, BRL, CLP, COP, MXN, VEF."
402
+
403
+ #: mercadopago/mercadopago-custom-gateway.php:797
404
+ msgid "Peru"
405
+ msgstr "Peru"
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:809
408
+ msgid "Click to check your order"
409
+ msgstr "Clique para ver o resumo do seu pedido"
410
+
411
+ #: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
412
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
413
+ msgstr "Um erro ocorreu ao processar seu pagamento. Por favor tente novamente ou nos contacte para assistência."
414
+
415
+ #: mercadopago/mercadopago-custom-gateway.php:816
416
+ msgid "Reason is: "
417
+ msgstr "Causa: "
418
+
419
+ #: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
420
+ msgid "Mercado Pago Request Failure"
421
+ msgstr "Falha na Requisição do Mercado Pago"
422
+
423
+ #: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
424
+ msgid "Payer email"
425
+ msgstr "Email do pagador"
426
+
427
+ #: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
428
+ msgid "Payment type"
429
+ msgstr "Tipo de pagamento"
430
+
431
+ #: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
432
+ msgid "Mercado Pago Payment ID"
433
+ msgstr "ID de Pagamento do Mercado Pago"
434
+
435
+ #: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
436
+ msgid "Customer haven't paid yet."
437
+ msgstr "O cliente ainda não realizou o pagamento."
438
+
439
+ #: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
440
+ msgid "Payment under review."
441
+ msgstr "O pagamento está em revisão."
442
+
443
+ #: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
444
+ msgid "The payment was refused. The customer can try again."
445
+ msgstr "O pagamento foi recusado. O cliente pode tentar novamente."
446
+
447
+ #: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
448
+ msgid "The payment was refunded to the customer."
449
+ msgstr "O pagamento foi estornado ao cliente."
450
+
451
+ #: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
452
+ msgid "The payment was cancelled."
453
+ msgstr "O pagamento foi cancelado."
454
+
455
+ #: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
456
+ #: mercadopago/mercadopago-gateway.php:909
457
+ msgid "The payment is under mediation or it was charged-back."
458
+ msgstr "O pagamento está em mediação ou a compra não foi reconhecida pelo cliente."
459
+
460
+ #: mercadopago/mercadopago-gateway.php:51
461
+ msgid "Mercado Pago - Standard Checkout"
462
+ msgstr "Mercado Pago - Checkout Padrão"
463
+
464
+ #: mercadopago/mercadopago-gateway.php:148
465
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
466
+ msgstr "Selecione os meios de pagamento que <strong>não</strong> gostaria de receber com o Mercado Pago."
467
+
468
+ #: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
469
+ msgid "Configure your Client_id and Client_secret to have access to more options."
470
+ msgstr "Configure seu Client_id e Client_secret para ter acesso a mais opções."
471
+
472
+ #: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
473
+ msgid "This field should be an integer."
474
+ msgstr "Este campo deve ser um número inteiro."
475
+
476
+ #: mercadopago/mercadopago-gateway.php:187
477
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
478
+ msgstr "Se o seu método de integração é por iFrame, por favor informe a largura do layout."
479
+
480
+ #: mercadopago/mercadopago-gateway.php:195
481
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
482
+ msgstr "Se o seu método de integração é por iFrame, por favor informe a altura do layout."
483
+
484
+ #: mercadopago/mercadopago-gateway.php:205
485
+ msgid "Select the max number of installments for your customers."
486
+ msgstr "Selecione o número máximo de parcelas que sua loja oferece a seus clientes."
487
+
488
+ #: mercadopago/mercadopago-gateway.php:213
489
+ msgid "Enable Standard Checkout"
490
+ msgstr "Habilitar o Checkout Padrão"
491
+
492
+ #: mercadopago/mercadopago-gateway.php:224
493
+ msgid "Insert your Mercado Pago Client_id."
494
+ msgstr "Insira seu Client_id do Mercado Pago."
495
+
496
+ #: mercadopago/mercadopago-gateway.php:231
497
+ msgid "Insert your Mercado Pago Client_secret."
498
+ msgstr "Insira seu Client_secret do Mercado Pago."
499
+
500
+ #: mercadopago/mercadopago-gateway.php:270
501
  msgid "Integration Method"
502
+ msgstr "Método de Integração"
503
 
504
+ #: mercadopago/mercadopago-gateway.php:272
505
+ msgid "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an internal window is embedded to the page layout)."
506
+ msgstr "Selecione como seus clientes irão interagir com o Mercado Pago. Janela Modal (Dentro de sua loja), Redirecionamento (O cliente é redirecionado ao Mercado Pago), ou iFrame (Uma janela de pagamento é incorporada ao layout da página)."
 
 
 
 
 
 
507
 
508
+ #: mercadopago/mercadopago-gateway.php:275
509
  msgid "iFrame"
510
  msgstr "iFrame"
511
 
512
+ #: mercadopago/mercadopago-gateway.php:276
513
  msgid "Modal Window"
514
  msgstr "Janela Modal"
515
 
516
+ #: mercadopago/mercadopago-gateway.php:277
517
  msgid "Redirect"
518
  msgstr "Redirecionamento"
519
 
520
+ #: mercadopago/mercadopago-gateway.php:281
521
  msgid "iFrame Width"
522
  msgstr "Largura do iFrame"
523
 
524
+ #: mercadopago/mercadopago-gateway.php:287
525
  msgid "iFrame Height"
526
  msgstr "Altura do iFrame"
527
 
528
+ #: mercadopago/mercadopago-gateway.php:293
529
  msgid "Auto Return"
530
  msgstr "Auto Retorno"
531
 
532
+ #: mercadopago/mercadopago-gateway.php:295
533
  msgid "Automatic Return After Payment"
534
  msgstr "Retorno com Redirecionamento Automático"
535
 
536
+ #: mercadopago/mercadopago-gateway.php:297
537
  msgid "After the payment, client is automatically redirected."
538
  msgstr "Após a compra, o cliente é redirecionado automaticamente."
539
 
540
+ #: mercadopago/mercadopago-gateway.php:300
541
  msgid "Payment Options"
542
  msgstr "Opções de Pagamento"
543
 
544
+ #: mercadopago/mercadopago-gateway.php:305
545
  msgid "Max installments"
546
  msgstr "Número Máximo de Parcelamentos"
547
 
548
+ #: mercadopago/mercadopago-gateway.php:311
549
  msgid "Exclude Payment Methods"
550
  msgstr "Excluir Métodos de Pagamento"
551
 
552
+ #: mercadopago/mercadopago-gateway.php:428
553
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
554
+ msgstr "Obrigado pela sua compra. Por favor, prossiga para a página de pagamento clicando no botão abaixo."
555
 
556
+ #: mercadopago/mercadopago-gateway.php:436
557
+ msgid "Cancel order &amp; Clear cart"
558
+ msgstr "Cancelar &amp; Limpar carrinho"
559
 
560
+ #: mercadopago/mercadopago-gateway.php:446
561
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
562
+ msgstr "Obrigado pela sua compra. Prossiga com seu pagamento completando as informações abaixo."
563
 
564
+ #: mercadopago/mercadopago-gateway.php:697
565
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
566
+ msgstr "Suas credenciais Client_id/Client_secret do Mercado Pago parecem estar desconfiguradas."
567
 
568
+ msgid " as it appears in your card ..."
569
+ msgstr " como aparece no seu cartão ..."
 
570
 
571
+ msgid "Done, your payment was accredited!"
572
+ msgstr "Pronto, seu pagamento foi aprovado!"
 
573
 
574
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
575
+ msgstr "Estamos processando seu pagamento. Em menos de uma hora você será notificado por email."
 
 
 
 
576
 
577
+ msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
578
+ msgstr "Estamos processando seu pagamento. Em menos de 2 dias úteis você será notificado por email se o pagamento foi aprovado ou se são necessárias informações adicionais."
 
 
 
 
 
579
 
580
+ msgid "Check the card number."
581
+ msgstr "Verifique o número do cartão."
 
582
 
583
+ msgid "Check the expiration date."
584
+ msgstr "Verifique a data de expiração."
 
 
 
 
 
585
 
586
+ msgid "Check the information."
587
+ msgstr "Verifique as informações preenchidas."
 
 
 
 
 
588
 
589
+ msgid "Check the security code."
590
+ msgstr "Verifique o código de segurança informado."
 
591
 
592
+ msgid "We could not process your payment."
593
+ msgstr "Não foi possível processar seu pagamento."
 
 
594
 
595
+ msgid "You must authorize the payment of your orders."
596
+ msgstr "Você precisa autorizar o pagamento de seus pedidos."
 
 
 
 
 
597
 
598
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
599
+ msgstr "Contacte o emissor de seu cartão para ativá-lo. O telefone está no verso do seu cartão."
 
600
 
601
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
602
+ msgstr "Você já realizou o pagamento para esse valor. Se precisa pagar novamente, use outro cartão ou outro método de pagamento."
 
603
 
604
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
605
+ msgstr "Seu pagamento foi rejeitado. Escolha outro método de pagamento. Recomenda-se dinheiro."
 
 
 
 
606
 
607
+ msgid "Your payment do not have sufficient funds."
608
+ msgstr "Seu pagamento não possui fundos suficientes."
 
609
 
610
+ msgid "Your payment does not process payments with selected installments."
611
+ msgstr "Seu pagamento não pode processar o parcelamento selecionado."
 
612
 
613
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
614
+ msgstr "Você atingiu o limite de tentativas permitidas. Escolha outro cartão ou outro método de pagamento."
 
615
 
616
+ msgid "This payment method did not process the payment."
617
+ msgstr "Este método de pagamento não pôde processar o seu pagamento."
 
618
 
619
+ msgid "Mercado Pago - Ticket"
620
+ msgstr "Mercado Pago - Boleto"
 
621
 
622
+ msgid "Mercado Pago - Credit Card"
623
+ msgstr "Mercado Pago - Cartão de Crédito"
 
624
 
625
+ msgid "Ticket Options"
626
+ msgstr "Opções do Boleto"
 
627
 
628
+ msgid "Enable Ticket Payment Method"
629
+ msgstr "Habilitar o Método de Pagamento por Boleto"
 
630
 
631
+ msgid "Other Bank"
632
+ msgstr "Outro Banco"
 
633
 
634
+ msgid "Choose"
635
+ msgstr "Escolha"
 
636
 
637
+ msgid "A problem was occurred when processing your payment. Please, try again."
638
+ msgstr "Um problema ocorreu ao processar seu pagamento. Por favor, tente novamente."
 
639
 
640
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
641
+ msgstr "Obrigado pelo seu pedido. Por favor, pague o boleto para ter seu pedido aprovado."
642
+
643
+ msgid "Waiting for the ticket payment."
644
+ msgstr "Aguardando o pagamento do boleto."
645
+
646
+ msgid "Print the Ticket"
647
+ msgstr "Imprimir o boleto"
648
+
649
+ msgid "To reprint the ticket click "
650
+ msgstr "Para reimprimir o boleto clique "
651
+
652
+ msgid "here"
653
+ msgstr "aqui"
654
+
655
+ msgid "Custom Checkout is Inactive"
656
+ msgstr "O Checkout Customizado está Inativo"
657
+
658
+ msgid "Standard Checkout is Inactive"
659
+ msgstr "O Checkout Padrão está Inativo"
660
+
661
+ msgid "Ticket is Inactive"
662
+ msgstr "O Boleto está Inativo"
663
+
664
+ msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
665
+ msgstr "Por favor, selecione o emissor de sua preferência e clique no botão "FINALIZAR COMPRA". O boleto será gerado e você será redirecionado para imprimí-lo."
666
+
667
+ msgid "Important: The order will be confirmed only after the payment approval."
668
+ msgstr "Importante: O pedido só será confirmado após a aprovação do pagamento."
669
+
670
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
671
+ msgstr "Sua credencial Access Token do Mercado Pago parece estar desconfigurada."
672
+
673
+ msgid "Your Card"
674
+ msgstr "Seus Cartões"
675
+
676
+ msgid "Other Cards"
677
+ msgstr "Outros Cartões"
678
+
679
+ msgid "Other Card"
680
+ msgstr "Outro Cartão"
681
+
682
+ msgid "ended in"
683
+ msgstr "terminado em"
684
+
685
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
686
+ msgstr "Seu site parece não possuir certificação SSL. SSL é um pré-requisito pois o processamento dos pagamentos é feito em seu servidor."
languages/woocommerce-mercadopago-module.pot CHANGED
@@ -64,6 +64,10 @@ msgid ""
64
  "execute!"
65
  msgstr ""
66
 
 
 
 
 
67
  #: mercadopago/mercadopago-gateway.php:63
68
  msgid ""
69
  "This module enables "
@@ -210,6 +214,18 @@ msgid ""
210
  "Client_secret."
211
  msgstr ""
212
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  #: mercadopago/mercadopago-gateway.php:242
214
  msgid ""
215
  "Instant Payment "
@@ -348,6 +364,18 @@ msgstr ""
348
  msgid "Max installments"
349
  msgstr ""
350
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  #: mercadopago/mercadopago-gateway.php:317
352
  msgid ""
353
  "Exclude Payment Methods"
@@ -371,7 +399,7 @@ msgstr ""
371
 
372
  #: mercadopago/mercadopago-gateway.php:333
373
  msgid ""
374
- "This options allows you "
375
  "to test payments inside "
376
  "a sandbox environment."
377
  msgstr ""
@@ -393,6 +421,16 @@ msgid ""
393
  "file"
394
  msgstr ""
395
 
 
 
 
 
 
 
 
 
 
 
396
  #: mercadopago/mercadopago-gateway.php:402
397
  msgid ""
398
  "Thank you for your "
@@ -460,6 +498,10 @@ msgid ""
460
  "MXN, USD, VEF."
461
  msgstr ""
462
 
 
 
 
 
463
  #: mercadopago/mercadopago-gateway.php:714
464
  msgid ""
465
  "Mercado Pago Request "
@@ -525,3 +567,126 @@ msgid ""
525
  "mediation or it was "
526
  "charged-back."
527
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  "execute!"
65
  msgstr ""
66
 
67
+ #: mercadopago-module.php:110
68
+ msgid "Settings"
69
+ msgstr ""
70
+
71
  #: mercadopago/mercadopago-gateway.php:63
72
  msgid ""
73
  "This module enables "
214
  "Client_secret."
215
  msgstr ""
216
 
217
+ #: mercadopago/mercadopago-gateway.php:265
218
+ msgid "Custom Checkout"
219
+ msgstr ""
220
+
221
+ #: mercadopago/mercadopago-gateway.php:267
222
+ msgid "Enable Custom Checkout"
223
+ msgstr ""
224
+
225
+ #: mercadopago/mercadopago-gateway.php:269
226
+ msgid "This option allows your store to present the custom/transparent checkout to your customers."
227
+ msgstr ""
228
+
229
  #: mercadopago/mercadopago-gateway.php:242
230
  msgid ""
231
  "Instant Payment "
364
  msgid "Max installments"
365
  msgstr ""
366
 
367
+ #: mercadopago/mercadopago-gateway.php:339
368
+ msgid "Payment with 2 Credit Card"
369
+ msgstr ""
370
+
371
+ #: mercadopago/mercadopago-gateway.php:341
372
+ msgid "Enable payments with 2 credit cards"
373
+ msgstr ""
374
+
375
+ #: mercadopago/mercadopago-gateway.php:343
376
+ msgid "Enable this option to let your customers use 2 credit cards to pay orders."
377
+ msgstr ""
378
+
379
  #: mercadopago/mercadopago-gateway.php:317
380
  msgid ""
381
  "Exclude Payment Methods"
399
 
400
  #: mercadopago/mercadopago-gateway.php:333
401
  msgid ""
402
+ "This option allows you "
403
  "to test payments inside "
404
  "a sandbox environment."
405
  msgstr ""
421
  "file"
422
  msgstr ""
423
 
424
+ #: mercadopago/mercadopago-gateway.php:380
425
+ #, php-format
426
+ msgid "File location: "
427
+ msgstr ""
428
+
429
+ #: mercadopago/mercadopago-gateway.php:398
430
+ #, php-format
431
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
432
+ msgstr ""
433
+
434
  #: mercadopago/mercadopago-gateway.php:402
435
  msgid ""
436
  "Thank you for your "
498
  "MXN, USD, VEF."
499
  msgstr ""
500
 
501
+ #: mercadopago/mercadopago-gateway.php:712
502
+ msgid "WooCommerce &gt; System Status &gt; Logs"
503
+ msgstr ""
504
+
505
  #: mercadopago/mercadopago-gateway.php:714
506
  msgid ""
507
  "Mercado Pago Request "
567
  "mediation or it was "
568
  "charged-back."
569
  msgstr ""
570
+
571
+ msgid " as it appears in your card ..."
572
+ msgstr ""
573
+
574
+ msgid "Done, your payment was accredited!"
575
+ msgstr ""
576
+
577
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
578
+ msgstr ""
579
+
580
+ msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
581
+ msgstr ""
582
+
583
+ msgid "Check the card number."
584
+ msgstr ""
585
+
586
+ msgid "Check the expiration date."
587
+ msgstr ""
588
+
589
+ msgid "Check the information."
590
+ msgstr ""
591
+
592
+ msgid "Check the security code."
593
+ msgstr ""
594
+
595
+ msgid "We could not process your payment."
596
+ msgstr ""
597
+
598
+ msgid "You must authorize the payment of your orders."
599
+ msgstr ""
600
+
601
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
602
+ msgstr ""
603
+
604
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
605
+ msgstr ""
606
+
607
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
608
+ msgstr ""
609
+
610
+ msgid "Your payment do not have sufficient funds."
611
+ msgstr ""
612
+
613
+ msgid "Your payment does not process payments with selected installments."
614
+ msgstr ""
615
+
616
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
617
+ msgstr ""
618
+
619
+ msgid "This payment method did not process the payment."
620
+ msgstr ""
621
+
622
+ msgid "Ticket"
623
+ msgstr ""
624
+
625
+ msgid "Mercado Pago - Ticket"
626
+ msgstr ""
627
+
628
+ msgid "Mercado Pago - Credit Card"
629
+ msgstr ""
630
+
631
+ msgid "Ticket Options"
632
+ msgstr ""
633
+
634
+ msgid "Enable Ticket Payment Method"
635
+ msgstr ""
636
+
637
+ msgid "Other Bank"
638
+ msgstr ""
639
+
640
+ msgid "Choose"
641
+ msgstr ""
642
+
643
+ msgid "A problem was occurred when processing your payment. Please, try again."
644
+ msgstr ""
645
+
646
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
647
+ msgstr ""
648
+
649
+ msgid "Waiting for the ticket payment."
650
+ msgstr ""
651
+
652
+ msgid "Print the Ticket"
653
+ msgstr ""
654
+
655
+ msgid "To reprint the ticket click "
656
+ msgstr ""
657
+
658
+ msgid "here"
659
+ msgstr ""
660
+
661
+ msgid "Custom Checkout is Inactive"
662
+ msgstr ""
663
+
664
+ msgid "Standard Checkout is Inactive"
665
+ msgstr ""
666
+
667
+ msgid "Ticket is Inactive"
668
+ msgstr ""
669
+
670
+ msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
671
+ msgstr ""
672
+
673
+ msgid "Important: The order will be confirmed only after the payment approval."
674
+ msgstr ""
675
+
676
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
677
+ msgstr ""
678
+
679
+ msgid "Your Card"
680
+ msgstr ""
681
+
682
+ msgid "Other Cards"
683
+ msgstr ""
684
+
685
+ msgid "Other Card"
686
+ msgstr ""
687
+
688
+ msgid "ended in"
689
+ msgstr ""
690
+
691
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
692
+ msgstr ""
mercadopago-module.php CHANGED
@@ -7,7 +7,7 @@
7
  * Author URI: https://www.mercadopago.com.br/developers/
8
  * Developer: Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
9
  * Copyright: Copyright(c) MercadoPago [http://www.mercadopago.com]
10
- * Version: 1.0.3
11
  * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
12
  * Text Domain: woocommerce-mercadopago-module
13
  * Domain Path: /languages/
@@ -20,22 +20,20 @@
20
  */
21
 
22
  // Exit if accessed directly
23
- if (!defined('ABSPATH')) {
24
  exit;
25
  }
26
 
27
  // Check if class is already loaded
28
- if (!class_exists('WC_WooMercadoPago_Module')) :
29
 
30
- /*
31
- * WooCommerce MercadoPago Module main class
32
- */
33
  class WC_WooMercadoPago_Module {
34
 
35
  // Singleton design pattern
36
  protected static $instance = null;
37
  public static function initMercadoPagoGatewayClass() {
38
- if (null == self::$instance) {
39
  self::$instance = new self;
40
  }
41
  return self::$instance;
@@ -44,37 +42,50 @@ class WC_WooMercadoPago_Module {
44
  // Class constructor
45
  private function __construct() {
46
  // load plugin text domain
47
- add_action('init', array($this, 'load_plugin_textdomain'));
48
  // verify if WooCommerce is already installed
49
- if (class_exists('WC_Payment_Gateway')) {
50
  include_once 'mercadopago/mercadopago-gateway.php';
51
- add_filter('woocommerce_payment_gateways', array( $this, 'addGateway'));
 
 
 
52
  } else {
53
- add_action('admin_notices', array($this, 'notifyWooCommerceMiss'));
54
  }
55
  }
56
 
57
  // As well as defining your class, you need to also tell WooCommerce (WC) that
58
  // it exists. Do this by filtering woocommerce_payment_gateways.
59
- public function addGateway($methods) {
60
  $methods[] = 'WC_WooMercadoPago_Gateway';
 
 
61
  return $methods;
62
  }
63
 
64
  // Places a warning error to notify user that WooCommerce is missing
65
  public function notifyWooCommerceMiss() {
66
  echo
67
- '<div class="error"><p>' .
68
- sprintf(
69
- __('Woo Mercado Pago Module depends on the last version of %s to execute!', 'woocommerce-mercadopago-module'),
70
  '<a href="http://wordpress.org/extend/plugins/woocommerce/">' . 'WooCommerce' . '</a>'
71
  ) .
72
  '</p></div>';
73
  }
74
 
75
- // IPN compatibility with version prior to 2.1
 
 
 
 
 
 
 
 
 
76
  public static function woocommerceInstance() {
77
- if (function_exists('WC')) {
78
  return WC();
79
  } else {
80
  global $woocommerce;
@@ -82,28 +93,35 @@ class WC_WooMercadoPago_Module {
82
  }
83
  }
84
 
85
- // Multi-language plugin
86
- public function load_plugin_textdomain() {
87
- $locale = apply_filters('plugin_locale', get_locale(), 'woocommerce-mercadopago-module');
88
- load_textdomain('woocommerce-mercadopago-module', trailingslashit(WP_LANG_DIR ) . 'woocommerce-mercadopago-module/woocommerce-mercadopago-module-' . $locale . '.mo');
89
- load_plugin_textdomain('woocommerce-mercadopago-module', false, dirname(plugin_basename(__FILE__)) . '/languages/');
90
  }
91
 
92
  }
93
 
94
  // Payment gateways should be created as additional plugins that hook into WooCommerce.
95
  // Inside the plugin, you need to create a class after plugins are loaded
96
- add_action('plugins_loaded', array('WC_WooMercadoPago_Module', 'initMercadoPagoGatewayClass'), 0);
97
-
98
- // Support to previous IPN implementations
99
- function wcmercadopago_legacy_ipn() {
100
- if (isset($_GET['topic']) && !isset($_GET['wc-api'])) {
101
- $woocommerce = WC_WooMercadoPago_Module::woocommerceInstance();
102
- $woocommerce->payment_gateways();
103
- do_action('woocommerce_api_wc_woomercadopago_gateway');
104
- }
 
 
 
 
 
 
 
 
 
105
  }
106
- add_action('init', 'wcmercadopago_legacy_ipn');
 
107
 
108
  endif;
109
 
7
  * Author URI: https://www.mercadopago.com.br/developers/
8
  * Developer: Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
9
  * Copyright: Copyright(c) MercadoPago [http://www.mercadopago.com]
10
+ * Version: 2.0.2
11
  * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
12
  * Text Domain: woocommerce-mercadopago-module
13
  * Domain Path: /languages/
20
  */
21
 
22
  // Exit if accessed directly
23
+ if ( !defined( 'ABSPATH' ) ) {
24
  exit;
25
  }
26
 
27
  // Check if class is already loaded
28
+ if ( !class_exists( 'WC_WooMercadoPago_Module' ) ) :
29
 
30
+ // WooCommerce MercadoPago Module main class
 
 
31
  class WC_WooMercadoPago_Module {
32
 
33
  // Singleton design pattern
34
  protected static $instance = null;
35
  public static function initMercadoPagoGatewayClass() {
36
+ if ( null == self::$instance ) {
37
  self::$instance = new self;
38
  }
39
  return self::$instance;
42
  // Class constructor
43
  private function __construct() {
44
  // load plugin text domain
45
+ add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
46
  // verify if WooCommerce is already installed
47
+ if ( class_exists( 'WC_Payment_Gateway' ) ) {
48
  include_once 'mercadopago/mercadopago-gateway.php';
49
+ include_once 'mercadopago/mercadopago-custom-gateway.php';
50
+ include_once 'mercadopago/mercadopago-ticket-gateway.php';
51
+ add_filter( 'woocommerce_payment_gateways', array( $this, 'addGateway' ) );
52
+ add_filter( 'woomercadopago_settings_link_' . plugin_basename( __FILE__ ), array( $this, 'woomercadopago_settings_link' ) );
53
  } else {
54
+ add_action( 'admin_notices', array( $this, 'notifyWooCommerceMiss' ) );
55
  }
56
  }
57
 
58
  // As well as defining your class, you need to also tell WooCommerce (WC) that
59
  // it exists. Do this by filtering woocommerce_payment_gateways.
60
+ public function addGateway( $methods ) {
61
  $methods[] = 'WC_WooMercadoPago_Gateway';
62
+ $methods[] = 'WC_WooMercadoPagoCustom_Gateway';
63
+ $methods[] = 'WC_WooMercadoPagoTicket_Gateway';
64
  return $methods;
65
  }
66
 
67
  // Places a warning error to notify user that WooCommerce is missing
68
  public function notifyWooCommerceMiss() {
69
  echo
70
+ '<div class="error"><p>' . sprintf(
71
+ __( 'Woo Mercado Pago Module depends on the last version of %s to execute!', 'woocommerce-mercadopago-module' ),
 
72
  '<a href="http://wordpress.org/extend/plugins/woocommerce/">' . 'WooCommerce' . '</a>'
73
  ) .
74
  '</p></div>';
75
  }
76
 
77
+ // Multi-language plugin
78
+ public function load_plugin_textdomain() {
79
+ $locale = apply_filters( 'plugin_locale', get_locale(), 'woocommerce-mercadopago-module' );
80
+ load_textdomain(
81
+ 'woocommerce-mercadopago-module',
82
+ trailingslashit(WP_LANG_DIR ) . 'woocommerce-mercadopago-module/woocommerce-mercadopago-module-' . $locale . '.mo'
83
+ );
84
+ load_plugin_textdomain( 'woocommerce-mercadopago-module', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
85
+ }
86
+
87
  public static function woocommerceInstance() {
88
+ if ( function_exists( 'WC' ) ) {
89
  return WC();
90
  } else {
91
  global $woocommerce;
93
  }
94
  }
95
 
96
+ public static function getTemplatesPath() {
97
+ return plugin_dir_path( __FILE__ ) . 'templates/';
 
 
 
98
  }
99
 
100
  }
101
 
102
  // Payment gateways should be created as additional plugins that hook into WooCommerce.
103
  // Inside the plugin, you need to create a class after plugins are loaded
104
+ add_action( 'plugins_loaded', array( 'WC_WooMercadoPago_Module', 'initMercadoPagoGatewayClass' ), 0 );
105
+
106
+ // Add settings link on plugin page
107
+ function woomercadopago_settings_link( $links ) {
108
+ $plugin_links = array();
109
+ $plugin_links[] = '<a href="' . esc_url( admin_url(
110
+ 'admin.php?page=wc-settings&tab=checkout&section=WC_WooMercadoPago_Gateway' ) ) . '">' .
111
+ __( 'Standard Checkout', 'woocommerce-mercadopago-module' ) .
112
+ '</a>';
113
+ $plugin_links[] = '<a href="' . esc_url( admin_url(
114
+ 'admin.php?page=wc-settings&tab=checkout&section=WC_WooMercadoPagoCustom_Gateway' ) ) . '">' .
115
+ __( 'Custom Checkout', 'woocommerce-mercadopago-module' ) .
116
+ '</a>';
117
+ $plugin_links[] = '<a href="' . esc_url( admin_url(
118
+ 'admin.php?page=wc-settings&tab=checkout&section=WC_WooMercadoPagoTicket_Gateway' ) ) . '">' .
119
+ __( 'Ticket', 'woocommerce-mercadopago-module' ) .
120
+ '</a>';
121
+ return array_merge( $plugin_links, $links );
122
  }
123
+ $plugin = plugin_basename( __FILE__ );
124
+ add_filter( "plugin_action_links_$plugin", 'woomercadopago_settings_link' );
125
 
126
  endif;
127
 
mercadopago/mercadopago-custom-gateway.php ADDED
@@ -0,0 +1,1061 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Part of Woo Mercado Pago Module
4
+ * Author - Mercado Pago
5
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
6
+ * Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
7
+ * License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
8
+ */
9
+
10
+ // This include Mercado Pago library SDK
11
+ require_once "sdk/lib/mercadopago.php";
12
+
13
+ // Extending from WooCommerce Payment Gateway class.
14
+ // This extension implements the custom checkout.
15
+ class WC_WooMercadoPagoCustom_Gateway extends WC_Payment_Gateway {
16
+
17
+ // This array stores each banner image, depending on the country it belongs to or on
18
+ // the type of checkout we use.
19
+ private $banners_mercadopago_credit = array(
20
+ "MLA" => 'MLA/credit_card.png',
21
+ "MLB" => 'MLB/credit_card.png',
22
+ "MCO" => 'MCO/credit_card.png',
23
+ "MLC" => 'MLC/credit_card.png',
24
+ "MPE" => 'MPE/credit_card.png',
25
+ "MLV" => 'MLV/credit_card.png',
26
+ "MLM" => 'MLM/credit_card.png'
27
+ );
28
+
29
+ // Sponsor ID array by country
30
+ private $sponsor_id = array(
31
+ "MLA" => '208682286',
32
+ "MLB" => '208686191',
33
+ "MCO" => '208687643',
34
+ "MLC" => '208690789',
35
+ "MPE" => '216998692',
36
+ "MLV" => '208692735',
37
+ "MLM" => '208692380'
38
+ );
39
+
40
+ // Required inherited method from WC_Payment_Gateway class: __construct.
41
+ // Please check:
42
+ // [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
43
+ // for documentation and further information.
44
+ public function __construct() {
45
+
46
+ // These fields are declared because we use them dinamically in our gateway class.
47
+ $this->domain = get_site_url() . '/index.php';
48
+ $this->site_id = null;
49
+ $this->isTestUser = false;
50
+ $this->store_categories_id = array();
51
+ $this->store_categories_description = array();
52
+
53
+ // Within your constructor, you should define the following variables.
54
+ $this->id = 'woocommerce-mercadopago-custom-module';
55
+ $this->method_title = __( 'Mercado Pago - Custom Checkout', 'woocommerce-mercadopago-module' );
56
+ $this->method_description = '<img width="200" height="52" src="' .
57
+ plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
58
+ wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
59
+ '</strong>';
60
+
61
+ // These fields are used in our Mercado Pago Module configuration page.
62
+ $this->public_key = $this->get_option( 'public_key' );
63
+ $this->access_token = $this->get_option( 'access_token' );
64
+ $this->title = $this->get_option( 'title' );
65
+ $this->description = $this->get_option( 'description' );
66
+ $this->statement_descriptor = $this->get_option( 'statement_descriptor' );
67
+ $this->binary_mode = $this->get_option( 'binary_mode' );
68
+ $this->category_id = $this->get_option( 'category_id' );
69
+ $this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
70
+ $this->sandbox = $this->get_option( 'sandbox', false );
71
+ $this->debug = $this->get_option( 'debug', false );
72
+
73
+ // Render our configuration page and init/load fields.
74
+ $this->init_form_fields();
75
+ $this->init_settings();
76
+
77
+ // Hook actions for WordPress.
78
+ add_action( // Used by IPN to receive IPN incomings.
79
+ 'woocommerce_api_wc_woomercadopagocustom_gateway',
80
+ array($this, 'check_ipn_response')
81
+ );
82
+ add_action( // Used by IPN to process valid incomings.
83
+ 'valid_mercadopagocustom_ipn_request',
84
+ array($this, 'successful_request')
85
+ );
86
+ add_action( // Used in settings page to hook "save settings" action.
87
+ 'woocommerce_update_options_payment_gateways_' . $this->id,
88
+ array( $this, 'process_admin_options' )
89
+ );
90
+ add_action( // Scripts for custom checkout
91
+ 'wp_enqueue_scripts',
92
+ array( $this, 'customCheckoutScripts' )
93
+ );
94
+
95
+ // Verify if public_key or client_secret is empty.
96
+ if ( ( empty( $this->public_key ) || empty( $this->access_token ) ) && $this->enabled == 'yes' ) {
97
+ add_action( 'admin_notices', array( $this, 'credentialsMissingMessage' ) );
98
+ }
99
+
100
+ add_action( // Verify if SSL is supported.
101
+ 'admin_notices', array( $this, 'checkSSLAbsence' )
102
+ );
103
+
104
+ // Logging and debug.
105
+ if ( 'yes' == $this->debug ) {
106
+ if ( class_exists( 'WC_Logger' ) ) {
107
+ $this->log = new WC_Logger();
108
+ } else {
109
+ $this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
110
+ }
111
+ }
112
+
113
+ }
114
+
115
+ // Required inherited method from WC_Payment_Gateway class: init_form_fields.
116
+ // Initialise Gateway settings form fields with a customized page.
117
+ public function init_form_fields() {
118
+
119
+ $api_secret_locale = sprintf(
120
+ '<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
121
+ '<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
122
+ '<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
123
+ '<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
124
+ '<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a>, ' .
125
+ '<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a> %s ' .
126
+ '<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
127
+ __( 'Argentine', 'woocommerce-mercadopago-module' ),
128
+ __( 'Brazil', 'woocommerce-mercadopago-module' ),
129
+ __( 'Chile', 'woocommerce-mercadopago-module' ),
130
+ __( 'Colombia', 'woocommerce-mercadopago-module' ),
131
+ __( 'Mexico', 'woocommerce-mercadopago-module' ),
132
+ __( 'Peru', 'woocommerce-mercadopago-module' ),
133
+ __( 'or', 'woocommerce-mercadopago-module' ),
134
+ __( 'Venezuela', 'woocommerce-mercadopago-module' )
135
+ );
136
+
137
+ // Trigger API to get payment methods and site_id, also validates public_key/access_token.
138
+ if ( $this->validateCredentials() ) {
139
+ try {
140
+ $mp = new MP( $this->access_token );
141
+ $get_request = $mp->get( "/users/me?access_token=" . $this->access_token );
142
+ $this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
143
+ $this->site_id = $get_request[ 'response' ][ 'site_id' ];
144
+ $this->credentials_message = '<img width="12" height="12" src="' .
145
+ plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
146
+ ' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
147
+ ': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
148
+ plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
149
+ } catch ( MercadoPagoException $e ) {
150
+ $this->credentials_message = '<img width="12" height="12" src="' .
151
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
152
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
153
+ }
154
+ } else {
155
+ $this->credentials_message = '<img width="12" height="12" src="' .
156
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
157
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
158
+ }
159
+
160
+ // Fills categoy selector. We do not need credentials to make this call.
161
+ $categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
162
+ foreach ( $categories[ "response" ] as $category ) {
163
+ array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
164
+ array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
165
+ }
166
+
167
+ // This array draws each UI (text, selector, checkbox, label, etc).
168
+ $this->form_fields = array(
169
+ 'enabled' => array(
170
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
171
+ 'type' => 'checkbox',
172
+ 'label' => __( 'Enable Custom Checkout', 'woocommerce-mercadopago-module' ),
173
+ 'default' => 'yes'
174
+ ),
175
+ 'credentials_title' => array(
176
+ 'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
177
+ 'type' => 'title',
178
+ 'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
179
+ ),
180
+ 'public_key' => array(
181
+ 'title' => 'Public key',
182
+ 'type' => 'text',
183
+ 'description' => __( 'Insert your Mercado Pago Public key.', 'woocommerce-mercadopago-module' ),
184
+ 'default' => '',
185
+ 'required' => true
186
+ ),
187
+ 'access_token' => array(
188
+ 'title' => 'Access token',
189
+ 'type' => 'text',
190
+ 'description' => __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
191
+ 'default' => '',
192
+ 'required' => true
193
+ ),
194
+ 'ipn_url' => array(
195
+ 'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
196
+ 'type' => 'title',
197
+ 'description' => sprintf( __( 'Your IPN URL to receive instant payment notifications is', 'woocommerce-mercadopago-module' ) . '<br>%s', '<code>' . $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway' . '</code>.' )
198
+ ),
199
+ 'checkout_options_title' => array(
200
+ 'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
201
+ 'type' => 'title',
202
+ 'description' => ''
203
+ ),
204
+ 'title' => array(
205
+ 'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
206
+ 'type' => 'text',
207
+ 'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
208
+ 'default' => __( 'Mercado Pago - Credit Card', 'woocommerce-mercadopago-module' )
209
+ ),
210
+ 'description' => array(
211
+ 'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
212
+ 'type' => 'textarea',
213
+ 'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
214
+ 'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
215
+ ),
216
+ 'statement_descriptor' => array(
217
+ 'title' => __( 'Statement Descriptor', 'woocommerce-mercadopago-module' ),
218
+ 'type' => 'text',
219
+ 'description' => __( 'The description that will be shown in your customer\'s invoice.', 'woocommerce-mercadopago-module' ),
220
+ 'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
221
+ ),
222
+ 'binary_mode' => array(
223
+ 'title' => __( 'Binary Mode', 'woocommerce-mercadopago-module' ),
224
+ 'type' => 'checkbox',
225
+ 'label' => __( 'Enable binary mode for checkout status', 'woocommerce-mercadopago-module' ),
226
+ 'default' => 'no',
227
+ 'description' => __( 'When charging a credit card, only [approved] or [reject] status will be taken.', 'woocommerce-mercadopago-module' )
228
+ ),
229
+ 'category_id' => array(
230
+ 'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
231
+ 'type' => 'select',
232
+ 'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
233
+ 'options' => $this->store_categories_id
234
+ ),
235
+ 'invoice_prefix' => array(
236
+ 'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
237
+ 'type' => 'text',
238
+ 'description' => __( 'Please, inform a prefix to your store.', 'woocommerce-mercadopago-module' ) . ' ' . __( 'If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators.', 'woocommerce-mercadopago-module' ),
239
+ 'default' => 'WC-'
240
+ ),
241
+ 'testing' => array(
242
+ 'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
243
+ 'type' => 'title',
244
+ 'description' => ''
245
+ ),
246
+ 'sandbox' => array(
247
+ 'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
248
+ 'type' => 'checkbox',
249
+ 'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
250
+ 'default' => 'no',
251
+ 'description' => __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
252
+ ),
253
+ 'debug' => array(
254
+ 'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
255
+ 'type' => 'checkbox',
256
+ 'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
257
+ 'default' => 'no',
258
+ 'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
259
+ ' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
260
+ '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
261
+ )
262
+ );
263
+
264
+ }
265
+
266
+ public function admin_options() {
267
+ $this->validate_settings_fields();
268
+ if ( count( $this->errors ) > 0 ) {
269
+ $this->display_errors();
270
+ return false;
271
+ } else {
272
+ echo wpautop( $this->method_description );
273
+ ?>
274
+ <p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
275
+ <?php esc_html_e( sprintf( __( 'Please, rate us %s on WordPress.org and give your feedback to help improve this module!', 'woocommerce-mercadopago-module' ), '&#9733;&#9733;&#9733;&#9733;&#9733;' ) ); ?>
276
+ </a></p>
277
+ <table class="form-table">
278
+ <?php $this->generate_settings_html(); ?>
279
+ </table>
280
+ <?php
281
+ return true;
282
+ }
283
+ }
284
+
285
+ /*
286
+ * ========================================================================
287
+ * CHECKOUT BUSINESS RULES
288
+ * ========================================================================
289
+ */
290
+
291
+ public function customCheckoutScripts() {
292
+ if ( is_checkout() && $this->is_available() ) {
293
+ if ( !get_query_var( 'order-received' ) ) {
294
+ wp_enqueue_style(
295
+ 'woocommerce-mercadopago-style', plugins_url(
296
+ 'assets/css/custom_checkout_mercadopago.css',
297
+ plugin_dir_path( __FILE__ ) ) );
298
+ wp_enqueue_script(
299
+ 'woocommerce-mercadopago-v1',
300
+ 'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js' );
301
+ }
302
+ }
303
+ }
304
+
305
+ public function payment_fields() {
306
+ $amount = $this->get_order_total();
307
+
308
+ $parameters = array(
309
+ 'public_key' => $this->public_key,
310
+ 'site_id' => $this->site_id,
311
+ 'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
312
+ 'banner_path' => plugins_url( 'images/' .
313
+ $this->banners_mercadopago_credit[ $this->site_id ], plugin_dir_path( __FILE__ ) ),
314
+ 'amount' => $amount,
315
+ 'form_labels' => array(
316
+ "form" => array(
317
+ 'label_other_bank' => __( "Other Bank", "woocommerce-mercadopago-module" ),
318
+ 'label_choose' => __( "Choose", "woocommerce-mercadopago-module" ),
319
+ "your_card" => __( "Your Card", 'woocommerce-mercadopago-module' ),
320
+ "other_cards" => __( "Other Cards", 'woocommerce-mercadopago-module' ),
321
+ "other_card" => __( "Other Card", 'woocommerce-mercadopago-module' ),
322
+ "ended_in" => __( "ended in", 'woocommerce-mercadopago-module' ),
323
+ "card_holder_placeholder" => __( " as it appears in your card ...", 'woocommerce-mercadopago-module' ),
324
+ "payment_method" => __( "Payment Method", 'woocommerce-mercadopago-module' ),
325
+ "credit_card_number" => __( "Credit card number", 'woocommerce-mercadopago-module' ),
326
+ "expiration_month" => __( "Expiration month", 'woocommerce-mercadopago-module' ),
327
+ "expiration_year" => __( "Expiration year", 'woocommerce-mercadopago-module' ),
328
+ "year" => __( "Year", 'woocommerce-mercadopago-module' ),
329
+ "month" => __( "Month", 'woocommerce-mercadopago-module' ),
330
+ "card_holder_name" => __( "Card holder name", 'woocommerce-mercadopago-module' ),
331
+ "security_code" => __( "Security code", 'woocommerce-mercadopago-module' ),
332
+ "document_type" => __( "Document Type", 'woocommerce-mercadopago-module' ),
333
+ "document_number" => __( "Document number", 'woocommerce-mercadopago-module' ),
334
+ "issuer" => __( "Issuer", 'woocommerce-mercadopago-module' ),
335
+ "installments" => __( "Installments", 'woocommerce-mercadopago-module' )
336
+ ),
337
+ "error" => array(
338
+ //card number
339
+ "205" => __( "Parameter cardNumber can not be null/empty", 'woocommerce-mercadopago-module' ),
340
+ "E301" => __( "Invalid Card Number", 'woocommerce-mercadopago-module' ),
341
+ //expiration date
342
+ "208" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
343
+ "209" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
344
+ "325" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
345
+ "326" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
346
+ //card holder name
347
+ "221" => __( "Parameter cardholderName can not be null/empty", 'woocommerce-mercadopago-module' ),
348
+ "316" => __( "Invalid Card Holder Name", 'woocommerce-mercadopago-module' ),
349
+ //security code
350
+ "224" => __( "Parameter securityCode can not be null/empty", 'woocommerce-mercadopago-module' ),
351
+ "E302" => __( "Invalid Security Code", 'woocommerce-mercadopago-module' ),
352
+ //doc type
353
+ "212" => __( "Parameter docType can not be null/empty", 'woocommerce-mercadopago-module' ),
354
+ "322" => __( "Invalid Document Type", 'woocommerce-mercadopago-module' ),
355
+ //doc number
356
+ "214" => __( "Parameter docNumber can not be null/empty", 'woocommerce-mercadopago-module' ),
357
+ "324" => __( "Invalid Document Number", 'woocommerce-mercadopago-module' ),
358
+ //doc sub type
359
+ "213" => __( "The parameter cardholder.document.subtype can not be null or empty", 'woocommerce-mercadopago-module' ),
360
+ "323" => __( "Invalid Document Sub Type", 'woocommerce-mercadopago-module' ),
361
+ //issuer
362
+ "220" => __( "Parameter cardIssuerId can not be null/empty", 'woocommerce-mercadopago-module' )
363
+ )
364
+ )
365
+ );
366
+
367
+ try {
368
+ if ( wp_get_current_user()->ID != 0 ) {
369
+ $mp = new MP( $this->access_token );
370
+ $logged_user_email = wp_get_current_user()->user_email;
371
+ $customer = $mp->get_or_create_customer( $logged_user_email );
372
+ $customer_cards = $customer[ 'cards' ];
373
+ if ( 'yes' == $this->debug ) {
374
+ $this->log->add( $this->id, $this->id .
375
+ ': @[process_fields] - Logged user ' . $logged_user_email . ' cards: ' .
376
+ json_encode( $customer_cards, JSON_PRETTY_PRINT ) );
377
+ }
378
+ $parameters[ 'customerId' ] = $customer[ 'id' ];
379
+ $parameters[ 'customer_cards' ] = $customer_cards;
380
+ } else {
381
+ if ( 'yes' == $this->debug ) {
382
+ $this->log->add( $this->id, $this->id .
383
+ ': @[process_fields] - Logged user cards: user is not logged in' );
384
+ }
385
+ }
386
+ } catch (Exception $e) {
387
+ if ( 'yes' == $this->debug ) {
388
+ $this->log->add( $this->id, $this->id .
389
+ ': @[process_fields] - There is a problem when retrieving information for cards: ' .
390
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) )
391
+ );
392
+ }
393
+ }
394
+
395
+ wc_get_template(
396
+ 'credit-card/payment-form.php',
397
+ $parameters,
398
+ 'woocommerce/mercadopago/',
399
+ WC_WooMercadoPago_Module::getTemplatesPath()
400
+ );
401
+ }
402
+
403
+ // This function is called after we clock on [place_order] button, and each field is passed to this
404
+ // function through $_POST variable.
405
+ public function process_payment( $order_id ) {
406
+ $order = new WC_Order( $order_id );
407
+ // we have got parameters from checkout page, now its time to charge the card
408
+ if ( 'yes' == $this->debug ) {
409
+ $this->log->add( $this->id, $this->id .
410
+ ': @[process_payment] - Received [$_POST] from customer front-end page: ' .
411
+ json_encode( $_POST, JSON_PRETTY_PRINT ) );
412
+ }
413
+ // Mexico country case
414
+ if ( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] == "" || empty( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) ) {
415
+ $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] = $_POST[ 'mercadopago_custom' ][ 'paymentMethodSelector' ];
416
+ }
417
+ if ( isset( $_POST[ 'mercadopago_custom' ][ 'amount' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'amount' ] ) &&
418
+ isset( $_POST[ 'mercadopago_custom' ][ 'token' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'token' ] ) &&
419
+ isset( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) &&
420
+ isset( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) && $_POST[ 'mercadopago_custom' ][ 'installments' ] != -1 ) {
421
+ $post = $_POST;
422
+ $response = $this->createUrl( $order, $post );
423
+ if ( array_key_exists( 'status', $response ) ) {
424
+ switch ( $response[ 'status' ] ) {
425
+ case 'approved':
426
+ WC()->cart->empty_cart();
427
+ wc_add_notice(
428
+ '<p>' . __( $this->getOrderStatus( 'accredited' ), 'woocommerce-mercadopago-module') . '</p>',
429
+ 'notice'
430
+ );
431
+ $order->add_order_note(
432
+ 'Mercado Pago: ' .
433
+ __( 'Payment approved.', 'woocommerce-mercadopago-module' )
434
+ );
435
+ return array(
436
+ 'result' => 'success',
437
+ 'redirect' => $order->get_checkout_order_received_url()
438
+ );
439
+ break;
440
+ case 'pending':
441
+ // order approved/pending, we just redirect to the thankyou page
442
+ return array(
443
+ 'result' => 'success',
444
+ 'redirect' => $order->get_checkout_order_received_url()
445
+ );
446
+ break;
447
+ case 'in_process':
448
+ // for pending, we don't know if the purchase will be made, so we must inform this status
449
+ WC()->cart->empty_cart();
450
+ wc_add_notice(
451
+ '<p>' . __( $this->getOrderStatus( $response[ 'status_detail' ] ), 'woocommerce-mercadopago-module') . '</p>' .
452
+ '<p><a class="button" href="' . esc_url( $order->get_checkout_order_received_url() ) . '">' .
453
+ __( 'Check your order resume', 'woocommerce-mercadopago-module' ) .
454
+ '</a></p>',
455
+ 'notice'
456
+ );
457
+ return array(
458
+ 'result' => 'success',
459
+ 'redirect' => $order->get_checkout_payment_url( true )
460
+ );
461
+ break;
462
+ case 'rejected':
463
+ // if rejected is received, the order will not proceed until another payment try,
464
+ // so we must inform this status
465
+ wc_add_notice(
466
+ '<p>' . __( 'Your payment was refused. You can try again.', 'woocommerce-mercadopago-module' ) .
467
+ '<br>' . __( $this->getOrderStatus( $response[ 'status_detail' ] ), 'woocommerce-mercadopago-module') . '</p>' .
468
+ '<p><a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
469
+ __( 'Click to try again', 'woocommerce-mercadopago-module' ) .
470
+ '</a></p>',
471
+ 'error'
472
+ );
473
+ return array(
474
+ 'result' => 'success',
475
+ 'redirect' => $order->get_checkout_payment_url( true )
476
+ );
477
+ break;
478
+ case 'cancelled':
479
+ case 'in_mediation':
480
+ case 'charged-back':
481
+ break;
482
+ default:
483
+ break;
484
+ }
485
+ }
486
+ } else {
487
+ // process when fields are imcomplete
488
+ wc_add_notice(
489
+ '<p>' . __( 'A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?', 'woocommerce-mercadopago-module' ) . '</p>',
490
+ 'error'
491
+ );
492
+ }
493
+ }
494
+
495
+ protected function createUrl( $order, $post_from_form ) {
496
+
497
+ $mp = new MP( $this->access_token );
498
+ // Checks for sandbox mode
499
+ if ( 'yes' == $this->sandbox ) {
500
+ $mp->sandbox_mode( true );
501
+ if ( 'yes' == $this->debug ) {
502
+ $this->log->add( $this->id, $this->id . ': @[createUrl] - sandbox mode is enabled' );
503
+ }
504
+ } else {
505
+ $mp->sandbox_mode( false );
506
+ }
507
+
508
+ // Creates the order parameters by checking the cart configuration
509
+ $preferences = $this->createPreferences( $order, $post_from_form );
510
+ try {
511
+ // Create order preferences with Mercado Pago API request
512
+ $checkout_info = $mp->post( "/v1/payments", json_encode( $preferences ) );
513
+ if ( 'yes' == $this->debug ) {
514
+ $this->log->add( $this->id, $this->id .
515
+ ': @[createUrl] - Received [$checkout_info] from Mercado Pago API: ' .
516
+ json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
517
+ }
518
+ if ( is_wp_error( $checkout_info ) ||
519
+ $checkout_info[ 'status' ] < 200 || $checkout_info[ 'status' ] >= 300 ) {
520
+ if ( 'yes' == $this->debug ) {
521
+ $this->log->add( $this->id, $this->id .
522
+ ': @[createUrl] - payment creation failed with error: ' .
523
+ $checkout_info[ 'response' ][ 'status' ] );
524
+ }
525
+ return false;
526
+ } else {
527
+ return $checkout_info[ 'response' ];
528
+ }
529
+ } catch ( MercadoPagoException $e ) {
530
+ if ( 'yes' == $this->debug ) {
531
+ $this->log->add( $this->id, $this->id .
532
+ ': @[createUrl] - payment creation failed with exception: ' .
533
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
534
+ }
535
+ return false;
536
+ }
537
+
538
+ }
539
+
540
+ private function createPreferences( $order, $post_from_form ) {
541
+
542
+ // Here we build the array that contains ordered itens, from customer cart
543
+ $items = array();
544
+ $purchase_description = "";
545
+ if ( sizeof( $order->get_items() ) > 0 ) {
546
+ foreach ( $order->get_items() as $item ) {
547
+ if ( $item['qty'] ) {
548
+ $product = new WC_product( $item[ 'product_id' ] );
549
+ $purchase_description =
550
+ $purchase_description . ' ' .
551
+ ( $product->post->post_title . ' x ' . $item[ 'qty' ] );
552
+ array_push( $items, array(
553
+ 'id' => $item[ 'product_id' ],
554
+ 'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
555
+ 'description' => (
556
+ // This handles description width limit of Mercado Pago
557
+ strlen( $product->post->post_content ) > 230 ?
558
+ substr( $product->post->post_content, 0, 230 ) . "..." :
559
+ $product->post->post_content
560
+ ),
561
+ 'picture_url' => $product->get_image(),
562
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
563
+ 'quantity' => 1,
564
+ 'unit_price' => (float) $item[ 'line_total' ] + (float) $item[ 'line_tax' ],
565
+ ));
566
+ }
567
+ }
568
+ }
569
+
570
+ // Creates the shipment cost structure
571
+ $shipping_cost = (float) $order->get_total_shipping();
572
+ if ( $shipping_cost > 0 ) {
573
+ $item = array(
574
+ 'title' => __( 'Shipping', 'woocommerce-mercadopago-module' ),
575
+ 'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
576
+ 'quantity' => 1,
577
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
578
+ 'unit_price' => $shipping_cost
579
+ );
580
+ $items[] = $item;
581
+ }
582
+
583
+ // Discounts features
584
+ /*
585
+ $discounts = (double) $cart->getOrderTotal( true, Cart::ONLY_DISCOUNTS );
586
+ if ( $discounts > 0 ) {
587
+ $item = array(
588
+ 'title' => 'Discount',
589
+ 'description' => 'Discount provided by store',
590
+ 'quantity' => 1,
591
+ 'category_id' => Configuration::get( 'MERCADOPAGO_CATEGORY' ),
592
+ 'unit_price' => - $discounts
593
+ );
594
+ $items[] = $item;
595
+ }
596
+ */
597
+
598
+ // Build additional information from the customer data
599
+ $payer_additional_info = array(
600
+ 'first_name' => $order->billing_first_name,
601
+ 'last_name' => $order->billing_last_name,
602
+ //'registration_date' =>
603
+ 'phone' => array(
604
+ //'area_code' =>
605
+ 'number' => $order->billing_phone
606
+ ),
607
+ 'address' => array(
608
+ 'zip_code' => $order->billing_postcode,
609
+ //'street_number' =>
610
+ 'street_name' => $order->billing_address_1 . ' / ' .
611
+ $order->billing_city . ' ' .
612
+ $order->billing_state . ' ' .
613
+ $order->billing_country
614
+ )
615
+ );
616
+
617
+ // Create the shipment address information set
618
+ $shipments = array(
619
+ 'receiver_address' => array(
620
+ 'zip_code' => $order->shipping_postcode,
621
+ //'street_number' =>
622
+ 'street_name' => $order->shipping_address_1 . ' ' .
623
+ $order->shipping_address_2 . ' ' .
624
+ $order->shipping_city . ' ' .
625
+ $order->shipping_state . ' ' .
626
+ $order->shipping_country,
627
+ //'floor' =>
628
+ 'apartment' => $order->shipping_address_2
629
+ )
630
+ );
631
+
632
+ // The payment preference
633
+ $payment_preference = array (
634
+ 'transaction_amount' => (float) $post_from_form[ 'mercadopago_custom' ][ 'amount' ],
635
+ 'token' => $post_from_form[ 'mercadopago_custom' ][ 'token' ],
636
+ 'description' => $purchase_description,
637
+ 'installments' => (int) $post_from_form[ 'mercadopago_custom' ][ 'installments' ],
638
+ 'payment_method_id' => $post_from_form[ 'mercadopago_custom' ][ 'paymentMethodId' ],
639
+ 'payer' => array(
640
+ 'email' => $order->billing_email
641
+ ),
642
+ 'external_reference' => $this->invoice_prefix . $order->id,
643
+ 'statement_descriptor' => $this->statement_descriptor,
644
+ 'binary_mode' => ($this->binary_mode == "yes"),
645
+ 'additional_info' => array(
646
+ 'items' => $items,
647
+ 'payer' => $payer_additional_info,
648
+ 'shipments' => $shipments
649
+ )
650
+ );
651
+
652
+ // Customer's Card Feature, add only it has issuer id
653
+ if ( array_key_exists( 'token', $post_from_form[ 'mercadopago_custom' ] ) ) {
654
+ $payment_preference[ 'metadata' ][ 'token' ] = $post_from_form[ 'mercadopago_custom' ][ 'token' ];
655
+ if ( array_key_exists( 'issuer', $post_from_form[ 'mercadopago_custom' ] ) ) {
656
+ if ( !empty( $post_from_form[ 'mercadopago_custom' ][ 'issuer' ] ) ) {
657
+ $payment_preference[ 'issuer_id' ] = (integer) $post_from_form[ 'mercadopago_custom' ][ 'issuer' ];
658
+ }
659
+ }
660
+ if ( !empty( $post_from_form[ 'mercadopago_custom' ][ 'CustomerId' ] ) ) {
661
+ $payment_preference[ 'payer' ][ 'id' ] = $post_from_form[ 'mercadopago_custom' ][ 'CustomerId' ];
662
+ }
663
+ }
664
+
665
+ // Do not set IPN url if it is a localhost!
666
+ $notification_url = $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway';
667
+ if ( !strrpos( $notification_url, "localhost" ) ) {
668
+ $payment_preference['notification_url'] = $notification_url;
669
+ }
670
+
671
+ // Coupon Feature
672
+ /*
673
+ $mercadopago_coupon = isset( $post[ 'mercadopago_coupon' ] ) ? $post[ 'mercadopago_coupon' ] : "";
674
+ if ( $mercadopago_coupon != "" ) {
675
+ $coupon = $this->validCoupon( $mercadopago_coupon );
676
+ if ( $coupon[ 'status' ] == 200 ) {
677
+ $payment_preference[ 'campaign_id' ] = $coupon[ 'response' ][ 'id' ];
678
+ $payment_preference[ 'coupon_amount' ] = (float) $coupon[ 'response' ][ 'coupon_amount' ];
679
+ $payment_preference[ 'coupon_code' ] = strtoupper( $mercadopago_coupon );
680
+ } else {
681
+ PrestaShopLogger::addLog ( $coupon['response']['error'] . Tools::jsonEncode($coupon), MP_SDK::ERROR, 0 );
682
+ $this->context->smarty->assign( array(
683
+ 'message_error' => $coupon[ 'response' ][ 'error' ],
684
+ 'version' => $this->getPrestashopVersion()
685
+ ) );
686
+ return $this->display ( __file__, '/views/templates/front/error_admin.tpl' );
687
+ }
688
+ }
689
+ */
690
+
691
+ if ( !$this->isTestUser ) {
692
+ $preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
693
+ }
694
+
695
+ if ( 'yes' == $this->debug ) {
696
+ $this->log->add( $this->id, $this->id .
697
+ ': @[createPreferences] - Returning just created [$payment_preference] structure: ' .
698
+ json_encode( $payment_preference, JSON_PRETTY_PRINT ) );
699
+ }
700
+
701
+ $payment_preference = apply_filters(
702
+ 'woocommerce_mercadopago_module_custom_preferences',
703
+ $payment_preference, $order
704
+ );
705
+ return $payment_preference;
706
+
707
+ }
708
+
709
+ public function checkAndSaveCustomerCard( $checkout_info ) {
710
+ if ( 'yes' == $this->debug ) {
711
+ $this->log->add( $this->id, $this->id .
712
+ ': @[checkAndSaveCustomerCard] - Checking info to create card: ' .
713
+ json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
714
+ }
715
+ $custId = null;
716
+ $token = null;
717
+ $issuer_id = null;
718
+ $payment_method_id = null;
719
+ if ( isset( $checkout_info[ 'payer' ][ 'id' ] ) && !empty( $checkout_info[ 'payer' ][ 'id' ] ) ) {
720
+ $custId = $checkout_info[ 'payer' ][ 'id' ];
721
+ } else {
722
+ return;
723
+ }
724
+ if ( isset( $checkout_info[ 'metadata' ][ 'token' ] ) && !empty( $checkout_info[ 'metadata' ][ 'token' ] ) ) {
725
+ $token = $checkout_info[ 'metadata' ][ 'token' ];
726
+ } else {
727
+ return;
728
+ }
729
+ if ( isset( $checkout_info[ 'issuer_id' ] ) && !empty( $checkout_info[ 'issuer_id' ] ) ) {
730
+ $issuer_id = (integer)( $checkout_info[ 'issuer_id' ] );
731
+ }
732
+ if ( isset( $checkout_info[ 'payment_method_id' ] ) && !empty( $checkout_info[ 'payment_method_id' ] ) ) {
733
+ $payment_method_id = $checkout_info[ 'payment_method_id' ];
734
+ }
735
+ try {
736
+ $mp = new MP( $this->access_token );
737
+ $mp->create_card_in_customer( $custId, $token, $payment_method_id, $issuer_id );
738
+ } catch ( MercadoPagoException $e ) {
739
+ if ( 'yes' == $this->debug ) {
740
+ $this->log->add( $this->id, $this->id .
741
+ ': @[checkAndSaveCustomerCard] - card creation failed: ' .
742
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
743
+ }
744
+ }
745
+ }
746
+
747
+ /*
748
+ * ========================================================================
749
+ * AUXILIARY AND FEEDBACK METHODS
750
+ * ========================================================================
751
+ */
752
+
753
+ // Check if we have valid credentials.
754
+ public function validateCredentials() {
755
+ if ( empty( $this->public_key ) ) return false;
756
+ if ( empty( $this->access_token ) ) return false;
757
+ if ( strlen( $this->public_key ) > 0 && strlen( $this->access_token ) > 0 ) {
758
+ try {
759
+ $mp = new MP( $this->access_token );
760
+ return true;
761
+ } catch ( MercadoPagoException $e ) {
762
+ return false;
763
+ }
764
+ }
765
+ return false;
766
+ }
767
+
768
+ // Build the string representing the path to the log file
769
+ protected function buildLogPathString() {
770
+ return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
771
+ esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
772
+ __( 'WooCommerce &gt; System Status &gt; Logs', 'woocommerce-mercadopago-module' ) . '</a>';
773
+ }
774
+
775
+ // Return boolean indicating if currency is supported.
776
+ protected function isSupportedCurrency() {
777
+ return in_array( $this->site_id, array( 'MLA', 'MLB', 'MLC', 'MCO', 'MLM', 'MPE', 'MLV' ) );
778
+ }
779
+
780
+ public function checkSSLAbsence() {
781
+ if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
782
+ if ( 'yes' == $this->settings[ 'enabled' ] ) {
783
+ echo '<div class="error"><p><strong>' .
784
+ __( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
785
+ '</strong>: ' .
786
+ sprintf(
787
+ __( 'Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server.', 'woocommerce-mercadopago-module' )
788
+ ) . '</p></div>';
789
+ }
790
+ }
791
+ }
792
+
793
+ // Called automatically by WooCommerce, verify if Module is available to use.
794
+ public function is_available() {
795
+ // check SSL connection, as we can't use normal http in custom checkout
796
+ if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
797
+ return false;
798
+ }
799
+ $available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
800
+ !empty( $this->public_key ) &&
801
+ !empty( $this->access_token ) &&
802
+ $this->isSupportedCurrency();
803
+ return $available;
804
+ }
805
+
806
+ // Get the URL to admin page.
807
+ protected function admin_url() {
808
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
809
+ return admin_url(
810
+ 'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopagocustom_gateway'
811
+ );
812
+ }
813
+ return admin_url(
814
+ 'admin.php?page=woocommerce_settings&tab=payment_gateways&section=WC_WooMercadoPagoCustom_Gateway'
815
+ );
816
+ }
817
+
818
+ // Notify that public_key and/or access_token are not valid.
819
+ public function credentialsMissingMessage() {
820
+ echo '<div class="error"><p><strong>' .
821
+ __( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
822
+ '</strong>: ' .
823
+ sprintf(
824
+ __( 'Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
825
+ '<a href="' . $this->admin_url() . '">' .
826
+ __( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
827
+ '</p></div>';
828
+ }
829
+
830
+ public function getCountryName( $site_id ) {
831
+ $country = $site_id;
832
+ switch ( $site_id ) {
833
+ case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
834
+ case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
835
+ case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
836
+ case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
837
+ case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
838
+ case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
839
+ case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
840
+ }
841
+ }
842
+
843
+ public function getOrderStatus( $status_detail ) {
844
+ switch ( $status_detail ) {
845
+ case 'accredited':
846
+ return __( 'Done, your payment was accredited!', 'woocommerce-mercadopago-module' );
847
+ case 'pending_contingency':
848
+ return __( 'We are processing the payment. In less than an hour we will e-mail you the results.', 'woocommerce-mercadopago-module' );
849
+ case 'pending_review_manual':
850
+ return __( 'We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information.', 'woocommerce-mercadopago-module' );
851
+ case 'cc_rejected_bad_filled_card_number':
852
+ return __( 'Check the card number.', 'woocommerce-mercadopago-module' );
853
+ case 'cc_rejected_bad_filled_date':
854
+ return __( 'Check the expiration date.', 'woocommerce-mercadopago-module' );
855
+ case 'cc_rejected_bad_filled_other':
856
+ return __( 'Check the information.', 'woocommerce-mercadopago-module' );
857
+ case 'cc_rejected_bad_filled_security_code':
858
+ return __( 'Check the security code.', 'woocommerce-mercadopago-module' );
859
+ case 'cc_rejected_blacklist':
860
+ return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
861
+ case 'cc_rejected_call_for_authorize':
862
+ return __( 'You must authorize the payment of your orders.', 'woocommerce-mercadopago-module' );
863
+ case 'cc_rejected_card_disabled':
864
+ return __( 'Call your card issuer to activate your card. The phone is on the back of your card.', 'woocommerce-mercadopago-module' );
865
+ case 'cc_rejected_card_error':
866
+ return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
867
+ case 'cc_rejected_duplicated_payment':
868
+ return __( 'You already made a payment for that amount. If you need to repay, use another card or other payment method.', 'woocommerce-mercadopago-module' );
869
+ case 'cc_rejected_high_risk':
870
+ return __( 'Your payment was rejected. Choose another payment method. We recommend cash.', 'woocommerce-mercadopago-module' );
871
+ case 'cc_rejected_insufficient_amount':
872
+ return __( 'Your payment do not have sufficient funds.', 'woocommerce-mercadopago-module' );
873
+ case 'cc_rejected_invalid_installments':
874
+ return __( 'Your payment does not process payments with selected installments.', 'woocommerce-mercadopago-module' );
875
+ case 'cc_rejected_max_attempts':
876
+ return __( 'You have reached the limit of allowed attempts. Choose another card or another payment method.', 'woocommerce-mercadopago-module' );
877
+ case 'cc_rejected_other_reason':
878
+ return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
879
+ default:
880
+ return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
881
+ }
882
+ }
883
+
884
+ /*
885
+ * ========================================================================
886
+ * IPN MECHANICS
887
+ * ========================================================================
888
+ */
889
+
890
+ // This call checks any incoming notifications from Mercado Pago server.
891
+ public function check_ipn_response() {
892
+ @ob_clean();
893
+ if ( 'yes' == $this->debug ) {
894
+ $this->log->add( $this->id, $this->id .
895
+ ': @[check_ipn_response] - Received _get content: ' .
896
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
897
+ }
898
+ $data = $this->check_ipn_request_is_valid( $_GET );
899
+ if ( $data ) {
900
+ header( 'HTTP/1.1 200 OK' );
901
+ do_action( 'valid_mercadopagocustom_ipn_request', $data );
902
+ } else {
903
+ if ( 'yes' == $this->debug ) {
904
+ $this->log->add( $this->id, $this->id .
905
+ ': @[check_ipn_response] - Mercado Pago Request Failure: ' .
906
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
907
+ }
908
+ wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
909
+ }
910
+ }
911
+
912
+ // Get received data from IPN and checks if we have an associated
913
+ // payment. If we have these information, we return data to be
914
+ // processed by successful_request function.
915
+ public function check_ipn_request_is_valid( $data ) {
916
+ if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
917
+ if ( 'yes' == $this->debug ) {
918
+ $this->log->add( $this->id, $this->id .
919
+ ': @[check_ipn_request_is_valid] - data_id or type not set: ' .
920
+ json_encode( $data, JSON_PRETTY_PRINT ) );
921
+ }
922
+ return false; // No ID? No process!
923
+ }
924
+ $mp = new MP( $this->access_token );
925
+ if ( 'yes' == $this->sandbox )
926
+ $mp->sandbox_mode( true );
927
+ else
928
+ $mp->sandbox_mode( false );
929
+ try {
930
+ $access_token = array( "access_token" => $mp->get_access_token() );
931
+ if ( $data[ "type" ] == 'payment' ) {
932
+ $payment_info = $mp->get( "/v1/payments/" . $data[ "data_id" ], $access_token, false );
933
+ if ( !is_wp_error( $payment_info ) &&
934
+ ( $payment_info[ "status" ] == 200 || $payment_info[ "status" ] == 201 ) ) {
935
+ return $payment_info[ 'response' ];
936
+ } else {
937
+ if ( 'yes' == $this->debug ) {
938
+ $this->log->add( $this->id, $this->id .
939
+ ': @[check_ipn_request_is_valid] - error when processing received data: ' .
940
+ json_encode( $payment_info, JSON_PRETTY_PRINT ) );
941
+ }
942
+ return false;
943
+ }
944
+ }
945
+ } catch ( MercadoPagoException $e ) {
946
+ if ( 'yes' == $this->debug ) {
947
+ $this->log->add( $this->id, $this->id .
948
+ ': @[check_ipn_request_is_valid] - MercadoPagoException: ' .
949
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
950
+ }
951
+ return false;
952
+ }
953
+ return true;
954
+ }
955
+
956
+ // Properly handles each case of notification, based in payment status.
957
+ public function successful_request( $data ) {
958
+ if ( 'yes' == $this->debug ) {
959
+ $this->log->add( $this->id, $this->id .
960
+ ': @[successful_request] - starting to process ipn update...' );
961
+ }
962
+ $order_key = $data[ 'external_reference' ];
963
+ if ( !empty( $order_key ) ) {
964
+ $order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
965
+ $order = new WC_Order( $order_id );
966
+ // Checks whether the invoice number matches the order, if true processes the payment
967
+ if ( $order->id === $order_id ) {
968
+ if ( 'yes' == $this->debug ) {
969
+ $this->log->add( $this->id, $this->id .
970
+ ': @[successful_request] - got order with ID ' . $order->id .
971
+ ' and status ' . $data[ 'status' ] );
972
+ }
973
+ // Order details.
974
+ if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
975
+ update_post_meta(
976
+ $order_id,
977
+ __( 'Payer email',
978
+ 'woocommerce-mercadopago-module' ),
979
+ $data[ 'payer' ][ 'email' ]
980
+ );
981
+ }
982
+ if ( !empty( $data[ 'payment_type_id' ] ) ) {
983
+ update_post_meta(
984
+ $order_id,
985
+ __( 'Payment type',
986
+ 'woocommerce-mercadopago-module' ),
987
+ $data[ 'payment_type_id' ]
988
+ );
989
+ }
990
+ if ( !empty( $data ) ) {
991
+ update_post_meta(
992
+ $order_id,
993
+ __( 'Mercado Pago Payment ID',
994
+ 'woocommerce-mercadopago-module' ),
995
+ $data[ 'id' ]
996
+ );
997
+ }
998
+ // Switch the status and update in WooCommerce
999
+ switch ( $data[ 'status' ] ) {
1000
+ case 'approved':
1001
+ $order->add_order_note(
1002
+ 'Mercado Pago: ' . __( 'Payment approved.',
1003
+ 'woocommerce-mercadopago-module' )
1004
+ );
1005
+ $this->checkAndSaveCustomerCard( $data );
1006
+ $order->payment_complete();
1007
+ break;
1008
+ case 'pending':
1009
+ $order->add_order_note(
1010
+ 'Mercado Pago: ' . __( 'Customer haven\'t paid yet.',
1011
+ 'woocommerce-mercadopago-module' )
1012
+ );
1013
+ break;
1014
+ case 'in_process':
1015
+ $order->update_status(
1016
+ 'on-hold',
1017
+ 'Mercado Pago: ' . __( 'Payment under review.',
1018
+ 'woocommerce-mercadopago-module' )
1019
+ );
1020
+ break;
1021
+ case 'rejected':
1022
+ $order->update_status(
1023
+ 'failed',
1024
+ 'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.',
1025
+ 'woocommerce-mercadopago-module' )
1026
+ );
1027
+ break;
1028
+ case 'refunded':
1029
+ $order->update_status(
1030
+ 'refunded',
1031
+ 'Mercado Pago: ' . __( 'The payment was refunded to the customer.',
1032
+ 'woocommerce-mercadopago-module' )
1033
+ );
1034
+ break;
1035
+ case 'cancelled':
1036
+ $order->update_status(
1037
+ 'cancelled',
1038
+ 'Mercado Pago: ' . __( 'The payment was cancelled.',
1039
+ 'woocommerce-mercadopago-module' )
1040
+ );
1041
+ break;
1042
+ case 'in_mediation':
1043
+ $order->add_order_note(
1044
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
1045
+ 'woocommerce-mercadopago-module' )
1046
+ );
1047
+ break;
1048
+ case 'charged-back':
1049
+ $order->add_order_note(
1050
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
1051
+ 'woocommerce-mercadopago-module' )
1052
+ );
1053
+ break;
1054
+ default:
1055
+ break;
1056
+ }
1057
+ }
1058
+ }
1059
+ }
1060
+
1061
+ }
mercadopago/mercadopago-gateway.php CHANGED
@@ -1,46 +1,29 @@
1
  <?php
2
  /**
3
- * Plugin Name: Woo Mercado Pago Module
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
- * Author: Mercado Pago
7
- * Author URI: https://www.mercadopago.com.br/developers/
8
- * Developer: Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
9
- * Copyright: Copyright(c) MercadoPago [http://www.mercadopago.com]
10
- * Version: 1.0.3
11
- * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
12
- * Text Domain: woocommerce-mercadopago-module
13
- * Domain Path: /languages/
14
- */
15
-
16
- /**
17
- * Implementation references:
18
- * 1. https://docs.woothemes.com/document/payment-gateway-api/
19
- * 2. https://www.mercadopago.com.br/developers/en/api-docs/
20
  */
21
 
22
  // This include Mercado Pago library SDK
23
  require_once "sdk/lib/mercadopago.php";
24
 
25
- /**
26
- * Extending from WooCommerce Payment Gateway class.
27
- * TODO: better describe this class functionalities.
28
- */
29
  class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
30
 
31
  // This array stores each banner image, depending on the country it belongs to or on
32
  // the type of checkout we use.
33
- private $banners = array(
34
- "mercadopago_custom" => array(),
35
- "mercadopago_customticket" => array(),
36
- "mercadopago_standard" => array(
37
- "MLA" => 'MLA.jpg',
38
- "MLB" => 'MLB.jpg',
39
- "MCO" => 'MCO.jpg',
40
- "MLC" => 'MLC.gif',
41
- "MLV" => 'MLV.jpg',
42
- "MLM" => 'MLM.jpg'
43
- )
44
  );
45
 
46
  // Sponsor ID array by country
@@ -49,6 +32,7 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
49
  "MLB" => '208686191',
50
  "MCO" => '208687643',
51
  "MLC" => '208690789',
 
52
  "MLV" => '208692735',
53
  "MLM" => '208692380'
54
  );
@@ -58,11 +42,9 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
58
  // [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
59
  // for documentation and further information.
60
  public function __construct() {
61
-
62
- $this->domain = get_site_url() . '/index.php';
63
- //$this->domain = 'http://7a2bb004.ngrok.io';
64
 
65
  // These fields are declared because we use them dinamically in our gateway class.
 
66
  $this->site_id = null;
67
  $this->isTestUser = false;
68
  $this->payment_methods = array();
@@ -73,27 +55,27 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
73
  $this->id = 'woocommerce-mercadopago-module';
74
  $this->icon = apply_filters(
75
  'woocommerce_mercadopago_icon',
76
- plugins_url('images/mercadopago.png', plugin_dir_path(__FILE__))
77
  );
78
- $this->method_title = 'Mercado Pago';
79
  $this->method_description = '<img width="200" height="52" src="' .
80
- plugins_url('images/mplogo.png', plugin_dir_path(__FILE__)) . '"><br><br>' . '<strong>' .
81
- wordwrap(__('This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module'), 80, "\n") .
82
  '</strong>';
83
 
84
  // These fields are used in our Mercado Pago Module configuration page.
85
- $this->client_id = $this->get_option('client_id');
86
- $this->client_secret = $this->get_option('client_secret');
87
- $this->title = $this->get_option('title');
88
- $this->description = $this->get_option('description');
89
- $this->category_id = $this->get_option('category_id');
90
- $this->invoice_prefix = $this->get_option('invoice_prefix', 'WC-');
91
- $this->method = $this->get_option('method', 'modal');
92
- $this->iframe_width = $this->get_option('iframe_width', 640);
93
- $this->iframe_height = $this->get_option('iframe_height', 800);
94
- $this->auto_return = $this->get_option('auto_return', true);
95
- $this->installments = $this->get_option('installments', '24');
96
- $this->ex_payments = $this->get_option('ex_payments', 'n/d');
97
  $this->sandbox = $this->get_option('sandbox', false);
98
  $this->debug = $this->get_option('debug');
99
 
@@ -104,40 +86,36 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
104
  // Hook actions for WordPress.
105
  add_action( // Used by IPN to receive IPN incomings.
106
  'woocommerce_api_wc_woomercadopago_gateway',
107
- array($this, 'check_ipn_response')
108
  );
109
  add_action( // Used by IPN to process valid incomings.
110
  'valid_mercadopago_ipn_request',
111
- array($this, 'successful_request')
112
  );
113
  add_action( // Used by WordPress to render the custom checkout page.
114
  'woocommerce_receipt_' . $this->id,
115
- array($this, 'receipt_page')
116
  );
117
  add_action( // Used to fix CSS in some older WordPress/WooCommerce versions.
118
- 'wp_head', array($this, 'css')
 
119
  );
120
  add_action( // Used in settings page to hook "save settings" action.
121
  'woocommerce_update_options_payment_gateways_' . $this->id,
122
- array($this, 'process_admin_options')
123
  );
124
 
125
  // Verify if client_id or client_secret is empty.
126
- if (empty($this->client_id) || empty($this->client_secret)) {
127
- add_action('admin_notices', array($this, 'clientIdOrSecretMissingMessage'));
128
- }
129
-
130
- // Verify if currency is supported.
131
- if (!$this->isSupportedCurrency()) {
132
- add_action('admin_notices', array($this, 'currencyNotSupportedMessage'));
133
  }
134
 
135
  // Logging and debug.
136
- if ('yes' == $this->debug) {
137
- if (class_exists('WC_Logger')) {
138
  $this->log = new WC_Logger();
139
  } else {
140
- $this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
141
  }
142
  }
143
 
@@ -148,255 +126,293 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
148
  public function init_form_fields() {
149
 
150
  $api_secret_locale = sprintf(
151
- '<a href="https://www.mercadopago.com/mla/herramientas/aplicaciones" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mlb/ferramentas/aplicacoes" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mlc/herramientas/aplicaciones" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mco/ferramentas/aplicacoes" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mlm/herramientas/aplicaciones" target="_blank">%s</a> %s <a href="https://www.mercadopago.com/mlv/herramientas/aplicaciones" target="_blank">%s</a>',
152
- __('Argentine', 'woocommerce-mercadopago-module'),
153
- __('Brazil', 'woocommerce-mercadopago-module'),
154
- __('Chile', 'woocommerce-mercadopago-module'),
155
- __('Colombia', 'woocommerce-mercadopago-module'),
156
- __('Mexico', 'woocommerce-mercadopago-module'),
157
- __('or', 'woocommerce-mercadopago-module'),
158
- __('Venezuela', 'woocommerce-mercadopago-module')
 
 
 
 
 
 
 
159
  );
160
 
161
  // Trigger API to get payment methods and site_id, also validates Client_id/Client_secret.
162
- if ($this->validateCredentials()) {
163
  try {
164
- $mp = new MP($this->client_id, $this->client_secret);
165
  $access_token = $mp->get_access_token();
166
- $get_request = $mp->get("/users/me?access_token=" . $access_token);
167
- $this->isTestUser = in_array('test_user', $get_request['response']['tags']);
168
- $this->site_id = $get_request['response']['site_id'];
169
- $payments = $mp->get("/v1/payment_methods/?access_token=" . $access_token);
170
- array_push($this->payment_methods, "n/d");
171
- foreach ($payments["response"] as $payment) {
172
- array_push($this->payment_methods, str_replace("_", " ", $payment['id']));
173
  }
174
  $this->payment_desc =
175
- __('Select the payment methods that you <strong>don\'t</strong> want to receive with Mercado Pago.', 'woocommerce-mercadopago-module');
176
  $this->credentials_message = '<img width="12" height="12" src="' .
177
- plugins_url('images/check.png', plugin_dir_path(__FILE__)) . '">' .
178
- ' ' . __('Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module') .
179
- ': ' . $this->getCountryName($this->site_id) . ' <img width="18.6" height="12" src="' .
180
- plugins_url('images/' . $this->site_id . '.png', plugin_dir_path(__FILE__)) . '"> ';
181
- } catch (MercadoPagoException $e) {
182
- array_push($this->payment_methods, "n/d");
183
  $this->payment_desc = '<img width="12" height="12" src="' .
184
- plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
185
- ' ' . __('Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module');
186
  $this->credentials_message = '<img width="12" height="12" src="' .
187
- plugins_url('images/error.png', plugin_dir_path(__FILE__)) . '">' .
188
- ' ' . __('Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module');
189
  }
190
  } else {
191
- array_push($this->payment_methods, "n/d");
192
  $this->payment_desc = '<img width="12" height="12" src="' .
193
- plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
194
- ' ' . __('Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module');
195
  $this->credentials_message = '<img width="12" height="12" src="' .
196
- plugins_url('images/error.png', plugin_dir_path(__FILE__)) . '">' .
197
- ' ' . __('Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module');
198
  }
199
 
200
  // Fills categoy selector. We do not need credentials to make this call.
201
- $categories = MPRestClient::get(array("uri" => "/item_categories"));
202
- foreach ($categories["response"] as $category) {
203
- array_push($this->store_categories_id, str_replace("_", " ", $category['id']));
204
- array_push($this->store_categories_description, str_replace("_", " ", $category['description']));
205
  }
206
 
207
  // Checks validity of iFrame width/height fields.
208
- if (!is_numeric($this->iframe_width)) {
209
  $this->iframe_width_desc = '<img width="12" height="12" src="' .
210
- plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
211
- ' ' . __('This field should be an integer.', 'woocommerce-mercadopago-module');
212
  } else {
213
  $this->iframe_width_desc =
214
- __('If your integration method is iFrame, please inform the payment iFrame width.', 'woocommerce-mercadopago-module');
215
  }
216
- if (!is_numeric($this->iframe_height)) {
217
  $this->iframe_height_desc = '<img width="12" height="12" src="' .
218
- plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
219
- ' ' . __('This field should be an integer.', 'woocommerce-mercadopago-module');
220
  } else {
221
  $this->iframe_height_desc =
222
- __('If your integration method is iFrame, please inform the payment iFrame height.', 'woocommerce-mercadopago-module');
223
  }
224
 
225
  // Checks if max installments is a number.
226
- if (!is_numeric($this->installments)) {
227
  $this->installments_desc = '<img width="12" height="12" src="' .
228
- plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
229
- ' ' . __('This field should be an integer.', 'woocommerce-mercadopago-module');
230
  } else {
231
  $this->installments_desc =
232
- __('Select the max number of installments for your customers.', 'woocommerce-mercadopago-module');
233
  }
234
 
235
  // This array draws each UI (text, selector, checkbox, label, etc).
236
  $this->form_fields = array(
237
  'enabled' => array(
238
- 'title' => __('Enable/Disable', 'woocommerce-mercadopago-module'),
239
  'type' => 'checkbox',
240
- 'label' => __('Enable Mercado Pago Module', 'woocommerce-mercadopago-module'),
241
- 'default' => 'yes'
242
  ),
243
  'credentials_title' => array(
244
- 'title' => __('Mercado Pago Credentials', 'woocommerce-mercadopago-module'),
245
  'type' => 'title',
246
- 'description' => sprintf('%s', $this->credentials_message) . '<br>' . sprintf(__('You can obtain your credentials for', 'woocommerce-mercadopago-module') . ' %s.', $api_secret_locale)
247
  ),
248
  'client_id' => array(
249
  'title' => 'Client_id',
250
  'type' => 'text',
251
- 'description' => __('Insert your Mercado Pago Client_id.', 'woocommerce-mercadopago-module'),
252
  'default' => '',
253
  'required' => true
254
  ),
255
  'client_secret' => array(
256
  'title' => 'Client_secret',
257
  'type' => 'text',
258
- 'description' => __('Insert your Mercado Pago Client_secret.', 'woocommerce-mercadopago-module'),
259
  'default' => '',
260
  'required' => true
261
  ),
262
  'ipn_url' => array(
263
- 'title' => __('Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module'),
264
  'type' => 'title',
265
- 'description' => sprintf(__('Your IPN URL to receive instant payment notifications is', 'woocommerce-mercadopago-module') . '<br>%s', '<code>' . $this->domain . '/' . $this->id . '/?wc-api=WC_WooMercadoPago_Gateway' . '</code>.')
266
  ),
267
  'checkout_options_title' => array(
268
- 'title' => __('Checkout Options', 'woocommerce-mercadopago-module'),
269
  'type' => 'title',
270
  'description' => ''
271
  ),
272
  'title' => array(
273
- 'title' => __('Title', 'woocommerce-mercadopago-module'),
274
  'type' => 'text',
275
- 'description' => __('Title shown to the client in the checkout.', 'woocommerce-mercadopago-module'),
276
- 'default' => 'Mercado Pago'
277
  ),
278
  'description' => array(
279
- 'title' => __('Description', 'woocommerce-mercadopago-module'),
280
  'type' => 'textarea',
281
- 'description' => __('Description shown to the client in the checkout.', 'woocommerce-mercadopago-module'),
282
- 'default' => __('Pay with Mercado Pago', 'woocommerce-mercadopago-module')
283
  ),
284
  'category_id' => array(
285
- 'title' => __('Store Category', 'woocommerce-mercadopago-module'),
286
  'type' => 'select',
287
- 'description' => __('Define which type of products your store sells.', 'woocommerce-mercadopago-module'),
288
  'options' => $this->store_categories_id
289
  ),
290
  'invoice_prefix' => array(
291
- 'title' => __('Store Identificator', 'woocommerce-mercadopago-module'),
292
  'type' => 'text',
293
- 'description' => __('Please, inform a prefix to your store.', 'woocommerce-mercadopago-module') . ' ' . __('If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators.', 'woocommerce-mercadopago-module'),
294
  'default' => 'WC-'
295
  ),
296
  'method' => array(
297
- 'title' => __('Integration Method', 'woocommerce-mercadopago-module'),
298
  'type' => 'select',
299
- 'description' => __('Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an internal window is embedded to the page layout).', 'woocommerce-mercadopago-module'),
300
  'default' => 'iframe',
301
  'options' => array(
302
- 'iframe' => __('iFrame', 'woocommerce-mercadopago-module'),
303
- 'modal' => __('Modal Window', 'woocommerce-mercadopago-module'),
304
- 'redirect' => __('Redirect', 'woocommerce-mercadopago-module')
305
  )
306
  ),
307
  'iframe_width' => array(
308
- 'title' => __('iFrame Width', 'woocommerce-mercadopago-module'),
309
  'type' => 'text',
310
  'description' => $this->iframe_width_desc,
311
  'default' => '640'
312
  ),
313
  'iframe_height' => array(
314
- 'title' => __('iFrame Height', 'woocommerce-mercadopago-module'),
315
  'type' => 'text',
316
  'description' => $this->iframe_height_desc,
317
  'default' => '800'
318
  ),
319
  'auto_return' => array(
320
- 'title' => __('Auto Return', 'woocommerce-mercadopago-module'),
321
  'type' => 'checkbox',
322
- 'label' => __('Automatic Return After Payment', 'woocommerce-mercadopago-module'),
323
  'default' => 'yes',
324
- 'description' => __('After the payment, client is automatically redirected.', 'woocommerce-mercadopago-module'),
325
  ),
326
  'testing_title' => array(
327
- 'title' => __('Payment Options', 'woocommerce-mercadopago-module'),
328
  'type' => 'title',
329
  'description' => ''
330
  ),
331
  'installments' => array(
332
- 'title' => __('Max installments', 'woocommerce-mercadopago-module'),
333
  'type' => 'text',
334
  'description' => $this->installments_desc,
335
  'default' => '24'
336
  ),
337
  'ex_payments' => array(
338
- 'title' => __('Exclude Payment Methods', 'woocommerce-mercadopago-module'),
339
  'description' => $this->payment_desc,
340
  'type' => 'multiselect',
341
  'options' => $this->payment_methods,
342
  'default' => ''
343
  ),
344
  'testing' => array(
345
- 'title' => __('Test and Debug Options', 'woocommerce-mercadopago-module'),
346
  'type' => 'title',
347
  'description' => ''
348
  ),
349
  'sandbox' => array(
350
- 'title' => __('Mercado Pago Sandbox', 'woocommerce-mercadopago-module'),
351
  'type' => 'checkbox',
352
- 'label' => __('Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module'),
353
  'default' => 'no',
354
- 'description' => __('This options allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module'),
355
  ),
356
  'debug' => array(
357
- 'title' => __('Debug and Log', 'woocommerce-mercadopago-module'),
358
  'type' => 'checkbox',
359
- 'label' => __('Enable log', 'woocommerce-mercadopago-module'),
360
  'default' => 'no',
361
- 'description' => sprintf(__('Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module') . ' %s.', '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name(wp_hash($this->id)) . '.txt</code>')
 
 
362
  )
363
  );
364
 
365
  }
366
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  /*
368
  * ========================================================================
369
  * CHECKOUT BUSINESS RULES
370
  * ========================================================================
371
  */
372
-
 
 
 
 
 
 
 
 
 
 
373
  // 1. First step occurs when the customer selects Mercado Pago and proceed to
374
  // checkout. This method verify which integration method was selected and
375
  // makes the build for the checkout URL.
376
- public function process_payment($order_id) {
377
- $order = new WC_Order($order_id);
378
  // Check for the type of integration.
379
- if ('redirect' == $this->method) {
380
- if ('yes' == $this->debug) {
381
- $this->log->add($this->id, $this->id . ': @[process_payment] - customer being redirected to Mercado Pago environment.');
382
  }
383
  return array(
384
  'result' => 'success',
385
- 'redirect' => $this->createUrl($order)
386
  );
387
- } else if ('modal' == $this->method || 'iframe' == $this->method) {
388
- if ('yes' == $this->debug) {
389
- $this->log->add($this->id, $this->id . ': @[process_payment] - preparing to render Mercado Pago checkout view.');
390
  }
391
- if (defined('WC_VERSION') && version_compare(WC_VERSION, '2.1', '>=')) {
392
  return array(
393
  'result' => 'success',
394
- 'redirect' => $order->get_checkout_payment_url(true)
395
  );
396
  } else {
397
  return array(
398
  'result' => 'success',
399
- 'redirect' => add_query_arg('order', $order->id, add_query_arg('key', $order->order_key, get_permalink(woocommerce_get_page_id('pay'))))
400
  );
401
  }
402
  }
@@ -404,56 +420,56 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
404
 
405
  // 2. Order page and this generates the form that shows the pay button. This step
406
  // generates the form to proceed to checkout.
407
- public function receipt_page($order) {
408
- echo $this->renderOrderForm($order);
409
  }
410
  // --------------------------------------------------
411
- public function renderOrderForm($order_id) {
412
- $order = new WC_Order($order_id);
413
- $url = $this->createUrl($order);
414
- if ($url) {
415
  // Display checkout.
416
  $html =
417
  $this->iframe_width_desc = '<img width="468" height="60" src="' .
418
- plugins_url('images/' . $this->banners['mercadopago_standard'][$this->site_id], plugin_dir_path(__FILE__)) . '">';
419
- if ('iframe' != $this->method) {
420
- if ('yes' == $this->debug) {
421
- $this->log->add($this->id, $this->id . ': @[renderOrderForm] - rendering Mercado Pago lightbox (modal window).');
422
  }
423
  $html .= '<p></p><p>' . wordwrap(
424
- __('Thank you for your order. Please, proceed with your payment clicking in the bellow button.', 'woocommerce-mercadopago-module'),
425
  60, '<br>') . '</p>';
426
  $html .=
427
  '<a id="submit-payment" href="' . $url . '" name="MP-Checkout" class="button alt" mp-mode="modal">' .
428
- __('Pay with Mercado Pago', 'woocommerce-mercadopago-module') .
429
  '</a> ';
430
  $html .=
431
- '<a class="button cancel" href="' . esc_url($order->get_cancel_order_url()) . '">' .
432
- __('Cancel order &amp; Clear cart', 'woocommerce-mercadopago-module') .
433
  '</a><style type="text/css">#MP-Checkout-dialog #MP-Checkout-IFrame { bottom: -28px !important; height: 590px !important; }</style>';
434
  // Includes javascript.
435
  $html .=
436
  '<script type="text/javascript">(function(){function $MPBR_load(){window.$MPBR_loaded !== true && (function(){var s = document.createElement("script");s.type = "text/javascript";s.async = true;s.src = ("https:"==document.location.protocol?"https://www.mercadopago.com/org-img/jsapi/mptools/buttons/":"http://mp-tools.mlstatic.com/buttons/")+"render.js";var x = document.getElementsByTagName("script")[0];x.parentNode.insertBefore(s, x);window.$MPBR_loaded = true;})();}window.$MPBR_loaded !== true ? (window.attachEvent ? window.attachEvent("onload", $MPBR_load) : window.addEventListener("load", $MPBR_load, false)) : null;})();</script>';
437
  } else {
438
- if ('yes' == $this->debug) {
439
- $this->log->add($this->id, $this->id . ': @[renderOrderForm] - embedding Mercado Pago iFrame.');
440
  }
441
  $html .= '<p></p><p>' . wordwrap(
442
- __('Thank you for your order. Proceed with your payment completing the following information.', 'woocommerce-mercadopago-module'),
443
- 60, '<br>') . '</p>';
444
  $html .=
445
  '<iframe src="' . $url . '" name="MP-Checkout" ' .
446
- 'width="' . (is_numeric((int)$this->iframe_width) ? $this->iframe_width : 640) . '" ' .
447
- 'height="' . (is_numeric((int)$this->iframe_height) ? $this->iframe_height : 800) . '" ' .
448
  'frameborder="0" scrolling="no" id="checkout_mercadopago"></iframe>';
449
  }
450
  return $html;
451
  } else {
452
  $html =
453
- '<p>' . __('An error occurred when proccessing your payment. Please try again or contact us for assistence.', 'woocommerce-mercadopago-module') . '</p>';
454
  $html .=
455
- '<a class="button cancel" href="' . esc_url($order->get_cancel_order_url()) . '">' .
456
- __('Click to try again', 'woocommerce-mercadopago-module') .
457
  '</a>';
458
  return $html;
459
  }
@@ -461,65 +477,61 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
461
 
462
  // 3. Create Mercado Pago preference and get init_point URL based in the
463
  // order options from the cart.
464
- public function buildPaymentPreference($order) {
465
 
466
  // Here we build the array that contains ordered itens, from customer cart
467
  $items = array();
468
- if (sizeof($order->get_items()) > 0) {
469
- foreach ($order->get_items() as $item) {
470
- if ($item['qty']) {
471
- $product = new WC_product($item['product_id']);
472
- array_push($items, array(
473
- 'id' => $item['product_id'],
474
- 'title' => ($product->post->post_title . ' x ' . $item['qty']),
475
  'description' => (
476
  // This handles description width limit of Mercado Pago.
477
- strlen($product->post->post_content) > 230 ?
478
- substr($product->post->post_content, 0, 230) . "..." :
479
  $product->post->post_content
480
  ),
481
  'picture_url' => $product->get_image(),
482
- 'category_id' => $this->store_categories_id[$this->category_id],
483
  'quantity' => 1,
484
- 'unit_price' => (float)$item['line_total'],
485
- 'currency_id' => get_woocommerce_currency()
486
  ));
487
  }
488
  }
489
- // shipment cost as an item (if we enable it in custom, we loss the 2 cards feature)
490
- /*array_push($items, array(
491
- 'title' => $order->get_shipping_to_display(),
492
- 'description' => $order->get_shipping_to_display(),
493
- 'category_id' => $this->store_categories_id[$this->category_id],
494
- 'quantity' => 1,
495
- 'unit_price' => (float)$order->get_total_shipping(),
496
- 'currency_id' => get_woocommerce_currency()
497
- ));*/
498
  }
499
 
500
  // Find excluded payment methods. If 'n/d' is in array index, we should
501
  // disconsider the remaining values.
502
  $excluded_payment_methods = array();
503
- try { // in some PHP versions, $this->ex_payments is interpreted as a not iterable object
504
- foreach ($this->ex_payments as $excluded) {
505
- if ($excluded == 0) // if "n/d" is selected, we just not add any items to the array
506
- break;
507
- array_push($excluded_payment_methods, array(
508
- "id" => $this->payment_methods[$excluded]
509
- ));
510
- }
511
- } catch (MercadoPagoException $e) {
512
- if ('yes' == $this->debug) {
513
- $this->log->add($this->id, $this->id . ': @[DEBUG] - excluded payments: exception caught: ' . print_r($e, true));
514
- }
515
- }
 
 
 
 
 
516
  $payment_methods = array(
517
- 'installments' => (is_numeric((int)$this->installments) ? (int)$this->installments : 24),
518
  'default_installments' => 1
519
  );
520
  // Set excluded payment methods.
521
- if (count($excluded_payment_methods) > 0) {
522
- $payment_methods['excluded_payment_methods'] = $excluded_payment_methods;
523
  }
524
 
525
  // Create Mercado Pago preference.
@@ -542,15 +554,15 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
542
  )
543
  ),
544
  'back_urls' => array(
545
- 'success' => esc_url($this->get_return_url($order)),
546
- 'failure' => str_replace('&amp;', '&', $order->get_cancel_order_url()),
547
- 'pending' => esc_url($this->get_return_url($order))
548
  ),
549
- //'marketplace' => $this->site_id,
550
  //'marketplace_fee' =>
551
  'shipments' => array(
552
- 'cost' => (float)$order->get_total_shipping(),
553
- 'mode' => 'custom',
554
  'receiver_address' => array(
555
  'zip_code' => $order->shipping_postcode,
556
  //'street_number' =>
@@ -571,54 +583,62 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
571
  //'expiration_date_to' =>
572
  );
573
  // Set sponsor ID
574
- if (!$this->isTestUser) {
575
- $preferences['sponsor_id'] = (int)($sponsor_id[$this->site_id]);
576
  }
577
  // Auto return options.
578
- if ('yes' == $this->auto_return) {
579
- $preferences['auto_return'] = "approved";
580
  }
581
- if ('yes' == $this->debug) {
582
- $this->log->add($this->id, $this->id . ': @[buildPaymentPreference] - requesting mercado pago preference creation with following structure: ' . print_r($preferences, true));
 
 
 
583
  }
584
- $preferences = apply_filters('woocommerce_mercadopago_module_preferences', $preferences, $order);
585
  return $preferences;
586
  }
587
  // --------------------------------------------------
588
- protected function createUrl($order) {
589
  // Creates the order parameters by checking the cart configuration.
590
- $preferences = $this->buildPaymentPreference($order);
591
- $mp = new MP($this->client_id, $this->client_secret);
592
  // Checks for sandbox mode.
593
- if ('yes' == $this->sandbox) {
594
- $mp->sandbox_mode(true);
595
- if ('yes' == $this->debug) {
596
- $this->log->add($this->id, $this->id . ': @[createUrl] - sandbox mode is enabled');
597
  }
598
  } else {
599
- $mp->sandbox_mode(false);
600
  }
601
  // Create order preferences with Mercado Pago API request.
602
  try {
603
- $checkout_info = $mp->create_preference(json_encode($preferences));
604
- if (is_wp_error($checkout_info) || $checkout_info['status'] < 200 || $checkout_info['status'] >= 300) {
605
- if ('yes' == $this->debug) {
606
- $this->log->add($this->id, $this->id . ': @[createUrl] - payment creation failed with error: ' . $checkout_info['response']['status']);
607
  }
608
  return false;
609
  } else {
610
- if ('yes' == $this->debug) {
611
- $this->log->add($this->id, $this->id . ': @[createUrl] - payment link generated with success from mercado pago, with structure as follow: ' . print_r($checkout_info, true));
 
 
612
  }
613
- if ('yes' == $this->sandbox) {
614
- return $checkout_info['response']['sandbox_init_point'];
615
  } else {
616
- return $checkout_info['response']['init_point'];
617
  }
618
  }
619
- } catch (MercadoPagoException $e) {
620
- if ('yes' == $this->debug) {
621
- $this->log->add($this->id, $this->id . ': @[createUrl] - payment creation failed with exception: ' . print_r($e, true));
 
 
 
622
  }
623
  return false;
624
  }
@@ -632,49 +652,70 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
632
 
633
  // Check if we have valid credentials.
634
  public function validateCredentials() {
635
- if (empty($this->client_id)) return false;
636
- if (empty($this->client_secret)) return false;
637
- if (strlen($this->client_id) > 0 && strlen($this->client_secret) > 0) {
638
  try {
639
- $mp = new MP($this->client_id, $this->client_secret);
640
  return true;
641
- } catch (Exception $e) {
642
  return false;
643
  }
644
  }
645
  return false;
646
  }
647
 
 
 
 
 
 
 
 
648
  // Return boolean indicating if currency is supported.
649
  protected function isSupportedCurrency() {
650
- return in_array(get_woocommerce_currency(), array('ARS', 'BRL', 'CLP', 'COP', 'MXN', 'USD', 'VEF'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
651
  }
652
 
653
  // Called automatically by WooCommerce, verify if Module is available to use.
654
  public function is_available() {
655
  // Test if is valid for use.
656
- $available = ('yes' == $this->settings['enabled']) &&
657
- ! empty($this->client_id) &&
658
- ! empty($this->client_secret) &&
659
  $this->isSupportedCurrency();
660
  return $available;
661
  }
662
 
663
  // Fix css for Mercado Pago in specific cases.
664
  public function css() {
665
- if (defined('WC_VERSION') && version_compare(WC_VERSION, '2.1', '>=')) {
666
- $page_id = wc_get_page_id('checkout');
667
  } else {
668
- $page_id = woocommerce_get_page_id('checkout');
669
  }
670
- if (is_page($page_id)) {
671
  echo '<style type="text/css">#MP-Checkout-dialog { z-index: 9999 !important; }</style>' . PHP_EOL;
672
  }
673
  }
674
 
675
  // Get the URL to admin page.
676
  protected function admin_url() {
677
- if (defined('WC_VERSION') && version_compare(WC_VERSION, '2.1', '>=')) {
678
  return admin_url(
679
  'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopago_gateway'
680
  );
@@ -687,34 +728,23 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
687
  // Notify that Client_id and/or Client_secret are not valid.
688
  public function clientIdOrSecretMissingMessage() {
689
  echo '<div class="error"><p><strong>' .
690
- __('Mercado Pago is Inactive', 'woocommerce-mercadopago-module') .
691
- '</strong>: ' .
692
- sprintf(
693
- __('Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured.', 'woocommerce-mercadopago-module') . ' %s',
694
- '<a href="' . $this->admin_url() . '">' . __('Click here and configure!', 'woocommerce-mercadopago-module') . '</a>') .
695
- '</p></div>';
696
- }
697
-
698
- // Notify that currency is not supported.
699
- public function currencyNotSupportedMessage() {
700
- echo '<div class="error"><p><strong>' .
701
- __('Mercado Pago is Inactive', 'woocommerce-mercadopago-module') .
702
  '</strong>: ' .
703
  sprintf(
704
- __('The currency') . ' <code>%s</code> ' . __('is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, USD, VEF.', 'woocommerce-mercadopago-module'),
705
- get_woocommerce_currency()) .
706
  '</p></div>';
707
  }
708
 
709
- public function getCountryName($site_id) {
710
- $country = $site_id;
711
- switch ($site_id) {
712
- case 'MLA': return __('Argentine', 'woocommerce-mercadopago-module');
713
- case 'MLB': return __('Brazil', 'woocommerce-mercadopago-module');
714
- case 'MCO': return __('Colombia', 'woocommerce-mercadopago-module');
715
- case 'MLC': return __('Chile', 'woocommerce-mercadopago-module');
716
- case 'MLV': return __('Mexico', 'woocommerce-mercadopago-module');
717
- case 'MLM': return __('Venezuela', 'woocommerce-mercadopago-module');
718
  }
719
  }
720
 
@@ -726,74 +756,84 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
726
 
727
  // This call checks any incoming notifications from Mercado Pago server.
728
  public function check_ipn_response() {
729
- if ('yes' == $this->debug) {
730
- $this->log->add($this->id, $this->id . ': @[check_ipn_response] - got a call from mercado pago ipn');
731
  }
732
  @ob_clean();
733
- $data = $this->check_ipn_request_is_valid($_GET);
734
- if ($data) {
735
- header('HTTP/1.1 200 OK');
736
- if ('yes' == $this->debug) {
737
- $this->log->add($this->id, $this->id . ': @[check_ipn_response] - received _get call with following content: ' . print_r($data, true));
 
 
 
738
  }
739
- do_action('valid_mercadopago_ipn_request', $data);
740
  } else {
741
- if ('yes' == $this->debug) {
742
- $this->log->add($this->id, $this->id . ': @[check_ipn_response] - Mercado Pago Request Failure: ' . print_r($_GET, true));
 
 
 
743
  }
744
- wp_die(__('Mercado Pago Request Failure', 'woocommerce-mercadopago-module'));
745
  }
746
  }
747
 
748
  // Get received data from IPN and checks if we have a merchant_order or
749
  // payment associated. If we have these information, we return data to be
750
  // processed by successful_request function.
751
- public function check_ipn_request_is_valid($data) {
752
- if ('yes' == $this->debug) {
753
- $this->log->add($this->id, $this->id . ': @[check_ipn_request_is_valid] - received ipn message from mercado pago, checking validity with $data containing: ' . print_r($data, true));
 
 
 
754
  }
755
- if (!isset($data['id'])) {
756
- if ('yes' == $this->debug) {
757
- $this->log->add($this->id, $this->id . ': @[check_ipn_request_is_valid] - failing due to ID absent');
 
 
758
  }
759
  return false; // No ID? No process!
760
  }
761
  // Create MP object and setup sandbox mode.
762
- $mp = new MP($this->client_id, $this->client_secret);
763
- if ('yes' == $this->sandbox) {
764
- $mp->sandbox_mode(true);
765
  } else {
766
- $mp->sandbox_mode(false);
767
  }
768
  try { // Get the merchant_order reported by the IPN. Glossary of attributes response in https://developers.mercadopago.com
769
- $params = array("access_token" => $mp->get_access_token());
770
- if ($data["topic"] == 'merchant_order') {
771
- $merchant_order_info = $mp->get("/merchant_orders/" . $_GET["id"], $params, false);
772
  // If the payment's transaction amount is equal (or bigger) than the merchant order's amount you can release your items
773
- if (!is_wp_error($merchant_order_info) && ($merchant_order_info["status"] == 200)) {
774
- $payments = $merchant_order_info["response"]["payments"];
775
  // check if we have more than one payment method
776
- if (sizeof($payments) == 2) {
777
- if (strcasecmp($payments[0]['status'], $payments[1]['status']) != 0) {
778
- if ('yes' == $this->debug) {
779
- $this->log->add($this->id, $this->id . ': @[check_ipn_request_is_valid] - two payments with status not equal');
780
- }
781
- } else {
782
- return $merchant_order_info["response"];
783
  }
784
- } else { // If we have only one payment, we can go on its status
785
- return $merchant_order_info['response'];
786
- }
787
  } else {
788
- if ('yes' == $this->debug) {
789
- $this->log->add($this->id, $this->id . ': @[check_ipn_request_is_valid] - got status not equal 200 or some error');
790
  }
791
  return false;
792
  }
793
  }
794
- } catch (MercadoPagoException $e) {
795
- if ('yes' == $this->debug) {
796
- $this->log->add($this->id, $this->id . ': @[check_ipn_request_is_valid] - GOT EXCEPTION: ' . $e->getMessage());
 
 
797
  }
798
  return false;
799
  }
@@ -801,97 +841,113 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
801
  }
802
 
803
  // Properly handles each case of notification, based in payment status.
804
- public function successful_request($data) {
805
- if ('yes' == $this->debug) {
806
- $this->log->add($this->id, $this->id . ': @[successful_request] - starting to process ipn update...');
807
  }
808
- $order_key = $data['external_reference'];
809
- if (!empty($order_key)) {
810
- $order_id = (int)str_replace($this->invoice_prefix, '', $order_key);
811
- $order = new WC_Order($order_id);
812
  // Checks whether the invoice number matches the order. If true processes the payment.
813
- if ($order->id === $order_id) {
814
  if ( 'yes' == $this->debug ) {
815
- $this->log->add($this->id, $this->id . ': @[successful_request] - got order with ID ' . $order->id . ' and status ' . $data['payments'][0]['status']);
816
  }
817
  // Order details.
818
- if (!empty($data['id'])) {
819
- update_post_meta(
820
- $order_id,
821
- __('Mercado Pago Transaction ID', 'woocommerce-mercadopago-module'),
822
- $data['id']
823
- );
824
- }
825
- if (!empty($data['payer']['email'])) {
826
  update_post_meta(
827
  $order_id,
828
- __('Payer email', 'woocommerce-mercadopago-module'),
829
- $data['payer']['email']
830
  );
831
  }
832
- if (!empty($data['payment_type'])) {
833
  update_post_meta(
834
  $order_id,
835
- __('Payment type', 'woocommerce-mercadopago-module'),
836
- $data['payment_type']
837
  );
838
  }
839
- if (!empty($data['payments'])) {
840
  $payment_ids = array();
841
- foreach ($data['payments'] as $payment) {
842
- $payment_ids[] = $payment['id'];
843
  }
844
- if (sizeof($payment_ids) > 0) {
845
  update_post_meta(
846
  $order_id,
847
- __('Mercado Pago Payment ID', 'woocommerce-mercadopago-module'),
848
- implode(', ', $payment_ids)
849
  );
850
  }
851
  }
852
- switch ($data['payments'][0]['status']) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
853
  case 'approved':
854
  $order->add_order_note(
855
- 'Mercado Pago: ' . __('Payment approved.', 'woocommerce-mercadopago-module')
856
  );
857
  $order->payment_complete();
858
  break;
859
  case 'pending':
860
  $order->add_order_note(
861
- 'Mercado Pago: ' . __('Customer haven\'t paid yet.', 'woocommerce-mercadopago-module')
862
  );
863
  break;
864
  case 'in_process':
865
- $order->update_status('on-hold',
866
- 'Mercado Pago: ' . __('Payment under review.', 'woocommerce-mercadopago-module')
 
867
  );
868
  break;
869
  case 'rejected':
870
- $order->update_status('failed',
871
- 'Mercado Pago: ' . __('The payment was refused. The customer can try again.', 'woocommerce-mercadopago-module')
 
872
  );
873
  break;
874
  case 'refunded':
875
  $order->update_status(
876
  'refunded',
877
- 'Mercado Pago: ' . __('The payment was refunded to the customer.', 'woocommerce-mercadopago-module')
878
  );
879
  break;
880
  case 'cancelled':
881
  $order->update_status(
882
  'cancelled',
883
- 'Mercado Pago: ' . __('The payment was cancelled.', 'woocommerce-mercadopago-module')
884
  );
885
  break;
886
  case 'in_mediation':
887
  $order->add_order_note(
888
- 'Mercado Pago: ' . __('The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module')
889
  );
890
  break;
891
  case 'charged-back':
892
  $order->add_order_note(
893
- 'Mercado Pago: ' . __('The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module')
894
  );
 
895
  default:
896
  break;
897
  }
@@ -899,4 +955,4 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
899
  }
900
  }
901
 
902
- }
1
  <?php
2
  /**
3
+ * Part of Woo Mercado Pago Module
4
+ * Author - Mercado Pago
5
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
6
+ * Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
7
+ * License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
 
 
 
 
 
 
 
 
 
 
 
 
8
  */
9
 
10
  // This include Mercado Pago library SDK
11
  require_once "sdk/lib/mercadopago.php";
12
 
13
+ // Extending from WooCommerce Payment Gateway class.
14
+ // This class implements Mercado Pago standard checkout.
 
 
15
  class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
16
 
17
  // This array stores each banner image, depending on the country it belongs to or on
18
  // the type of checkout we use.
19
+ private $banners_mercadopago_standard = array(
20
+ "MLA" => 'MLA/standard_mla.jpg',
21
+ "MLB" => 'MLB/standard_mlb.jpg',
22
+ "MCO" => 'MCO/standard_mco.jpg',
23
+ "MLC" => 'MLC/standard_mlc.gif',
24
+ "MPE" => 'MPE/standard_mpe.png',
25
+ "MLV" => 'MLV/standard_mlv.jpg',
26
+ "MLM" => 'MLM/standard_mlm.jpg'
 
 
 
27
  );
28
 
29
  // Sponsor ID array by country
32
  "MLB" => '208686191',
33
  "MCO" => '208687643',
34
  "MLC" => '208690789',
35
+ "MPE" => '216998692',
36
  "MLV" => '208692735',
37
  "MLM" => '208692380'
38
  );
42
  // [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
43
  // for documentation and further information.
44
  public function __construct() {
 
 
 
45
 
46
  // These fields are declared because we use them dinamically in our gateway class.
47
+ $this->domain = get_site_url() . '/index.php';
48
  $this->site_id = null;
49
  $this->isTestUser = false;
50
  $this->payment_methods = array();
55
  $this->id = 'woocommerce-mercadopago-module';
56
  $this->icon = apply_filters(
57
  'woocommerce_mercadopago_icon',
58
+ plugins_url( 'images/mercadopago.png', plugin_dir_path( __FILE__ ) )
59
  );
60
+ $this->method_title = __( 'Mercado Pago - Standard Checkout', 'woocommerce-mercadopago-module' );
61
  $this->method_description = '<img width="200" height="52" src="' .
62
+ plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
63
+ wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
64
  '</strong>';
65
 
66
  // These fields are used in our Mercado Pago Module configuration page.
67
+ $this->client_id = $this->get_option( 'client_id' );
68
+ $this->client_secret = $this->get_option( 'client_secret' );
69
+ $this->title = $this->get_option( 'title' );
70
+ $this->description = $this->get_option( 'description' );
71
+ $this->category_id = $this->get_option( 'category_id' );
72
+ $this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
73
+ $this->method = $this->get_option( 'method', 'modal' );
74
+ $this->iframe_width = $this->get_option( 'iframe_width', 640 );
75
+ $this->iframe_height = $this->get_option( 'iframe_height', 800 );
76
+ $this->auto_return = $this->get_option( 'auto_return', true );
77
+ $this->installments = $this->get_option( 'installments', '24' );
78
+ $this->ex_payments = $this->get_option( 'ex_payments', 'n/d' );
79
  $this->sandbox = $this->get_option('sandbox', false);
80
  $this->debug = $this->get_option('debug');
81
 
86
  // Hook actions for WordPress.
87
  add_action( // Used by IPN to receive IPN incomings.
88
  'woocommerce_api_wc_woomercadopago_gateway',
89
+ array( $this, 'check_ipn_response' )
90
  );
91
  add_action( // Used by IPN to process valid incomings.
92
  'valid_mercadopago_ipn_request',
93
+ array( $this, 'successful_request' )
94
  );
95
  add_action( // Used by WordPress to render the custom checkout page.
96
  'woocommerce_receipt_' . $this->id,
97
+ array( $this, 'receipt_page' )
98
  );
99
  add_action( // Used to fix CSS in some older WordPress/WooCommerce versions.
100
+ 'wp_head',
101
+ array( $this, 'css' )
102
  );
103
  add_action( // Used in settings page to hook "save settings" action.
104
  'woocommerce_update_options_payment_gateways_' . $this->id,
105
+ array( $this, 'process_admin_options' )
106
  );
107
 
108
  // Verify if client_id or client_secret is empty.
109
+ if ( empty( $this->client_id ) || empty( $this->client_secret ) ) {
110
+ add_action( 'admin_notices', array( $this, 'clientIdOrSecretMissingMessage' ) );
 
 
 
 
 
111
  }
112
 
113
  // Logging and debug.
114
+ if ( 'yes' == $this->debug ) {
115
+ if ( class_exists( 'WC_Logger' ) ) {
116
  $this->log = new WC_Logger();
117
  } else {
118
+ $this->log = WC_MercadoPago_Module::woocommerceInstance()->logger();
119
  }
120
  }
121
 
126
  public function init_form_fields() {
127
 
128
  $api_secret_locale = sprintf(
129
+ '<a href="https://www.mercadopago.com/mla/herramientas/aplicaciones" target="_blank">%s</a>, ' .
130
+ '<a href="https://www.mercadopago.com/mlb/ferramentas/aplicacoes" target="_blank">%s</a>, ' .
131
+ '<a href="https://www.mercadopago.com/mlc/herramientas/aplicaciones" target="_blank">%s</a>, ' .
132
+ '<a href="https://www.mercadopago.com/mco/ferramentas/aplicacoes" target="_blank">%s</a>, ' .
133
+ '<a href="https://www.mercadopago.com/mlm/ferramentas/aplicacoes" target="_blank">%s</a>, ' .
134
+ '<a href="https://www.mercadopago.com/mpe/account/credentials?type=basic" target="_blank">%s</a> %s ' .
135
+ '<a href="https://www.mercadopago.com/mlv/herramientas/aplicaciones" target="_blank">%s</a>',
136
+ __( 'Argentine', 'woocommerce-mercadopago-module' ),
137
+ __( 'Brazil', 'woocommerce-mercadopago-module' ),
138
+ __( 'Chile', 'woocommerce-mercadopago-module' ),
139
+ __( 'Colombia', 'woocommerce-mercadopago-module' ),
140
+ __( 'Mexico', 'woocommerce-mercadopago-module' ),
141
+ __( 'Peru', 'woocommerce-mercadopago-module' ),
142
+ __( 'or', 'woocommerce-mercadopago-module' ),
143
+ __( 'Venezuela', 'woocommerce-mercadopago-module' )
144
  );
145
 
146
  // Trigger API to get payment methods and site_id, also validates Client_id/Client_secret.
147
+ if ( $this->validateCredentials() ) {
148
  try {
149
+ $mp = new MP( $this->client_id, $this->client_secret );
150
  $access_token = $mp->get_access_token();
151
+ $get_request = $mp->get( "/users/me?access_token=" . $access_token );
152
+ $this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
153
+ $this->site_id = $get_request[ 'response' ][ 'site_id' ];
154
+ $payments = $mp->get( "/v1/payment_methods/?access_token=" . $access_token );
155
+ array_push( $this->payment_methods, "n/d" );
156
+ foreach ( $payments[ "response" ] as $payment ) {
157
+ array_push( $this->payment_methods, str_replace( "_", " ", $payment[ 'id' ] ) );
158
  }
159
  $this->payment_desc =
160
+ __( 'Select the payment methods that you <strong>don\'t</strong> want to receive with Mercado Pago.', 'woocommerce-mercadopago-module' );
161
  $this->credentials_message = '<img width="12" height="12" src="' .
162
+ plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
163
+ ' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
164
+ ': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
165
+ plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
166
+ } catch ( MercadoPagoException $e ) {
167
+ array_push( $this->payment_methods, "n/d" );
168
  $this->payment_desc = '<img width="12" height="12" src="' .
169
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
170
+ ' ' . __( 'Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module' );
171
  $this->credentials_message = '<img width="12" height="12" src="' .
172
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
173
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
174
  }
175
  } else {
176
+ array_push( $this->payment_methods, "n/d" );
177
  $this->payment_desc = '<img width="12" height="12" src="' .
178
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
179
+ ' ' . __( 'Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module' );
180
  $this->credentials_message = '<img width="12" height="12" src="' .
181
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
182
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
183
  }
184
 
185
  // Fills categoy selector. We do not need credentials to make this call.
186
+ $categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
187
+ foreach ( $categories[ "response" ] as $category ) {
188
+ array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
189
+ array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
190
  }
191
 
192
  // Checks validity of iFrame width/height fields.
193
+ if ( !is_numeric( $this->iframe_width ) ) {
194
  $this->iframe_width_desc = '<img width="12" height="12" src="' .
195
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
196
+ ' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
197
  } else {
198
  $this->iframe_width_desc =
199
+ __( 'If your integration method is iFrame, please inform the payment iFrame width.', 'woocommerce-mercadopago-module' );
200
  }
201
+ if ( !is_numeric( $this->iframe_height ) ) {
202
  $this->iframe_height_desc = '<img width="12" height="12" src="' .
203
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
204
+ ' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
205
  } else {
206
  $this->iframe_height_desc =
207
+ __( 'If your integration method is iFrame, please inform the payment iFrame height.', 'woocommerce-mercadopago-module' );
208
  }
209
 
210
  // Checks if max installments is a number.
211
+ if ( !is_numeric( $this->installments ) ) {
212
  $this->installments_desc = '<img width="12" height="12" src="' .
213
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
214
+ ' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
215
  } else {
216
  $this->installments_desc =
217
+ __( 'Select the max number of installments for your customers.', 'woocommerce-mercadopago-module' );
218
  }
219
 
220
  // This array draws each UI (text, selector, checkbox, label, etc).
221
  $this->form_fields = array(
222
  'enabled' => array(
223
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
224
  'type' => 'checkbox',
225
+ 'label' => __( 'Enable Standard Checkout', 'woocommerce-mercadopago-module' ),
226
+ 'default' => 'no'
227
  ),
228
  'credentials_title' => array(
229
+ 'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
230
  'type' => 'title',
231
+ 'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
232
  ),
233
  'client_id' => array(
234
  'title' => 'Client_id',
235
  'type' => 'text',
236
+ 'description' => __( 'Insert your Mercado Pago Client_id.', 'woocommerce-mercadopago-module' ),
237
  'default' => '',
238
  'required' => true
239
  ),
240
  'client_secret' => array(
241
  'title' => 'Client_secret',
242
  'type' => 'text',
243
+ 'description' => __( 'Insert your Mercado Pago Client_secret.', 'woocommerce-mercadopago-module' ),
244
  'default' => '',
245
  'required' => true
246
  ),
247
  'ipn_url' => array(
248
+ 'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
249
  'type' => 'title',
250
+ 'description' => sprintf( __( 'Your IPN URL to receive instant payment notifications is', 'woocommerce-mercadopago-module' ) . '<br>%s', '<code>' . $this->domain . '/' . $this->id . '/?wc-api=WC_WooMercadoPago_Gateway' . '</code>.' )
251
  ),
252
  'checkout_options_title' => array(
253
+ 'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
254
  'type' => 'title',
255
  'description' => ''
256
  ),
257
  'title' => array(
258
+ 'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
259
  'type' => 'text',
260
+ 'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
261
+ 'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
262
  ),
263
  'description' => array(
264
+ 'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
265
  'type' => 'textarea',
266
+ 'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
267
+ 'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
268
  ),
269
  'category_id' => array(
270
+ 'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
271
  'type' => 'select',
272
+ 'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
273
  'options' => $this->store_categories_id
274
  ),
275
  'invoice_prefix' => array(
276
+ 'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
277
  'type' => 'text',
278
+ 'description' => __( 'Please, inform a prefix to your store.', 'woocommerce-mercadopago-module' ) . ' ' . __( 'If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators.', 'woocommerce-mercadopago-module' ),
279
  'default' => 'WC-'
280
  ),
281
  'method' => array(
282
+ 'title' => __( 'Integration Method', 'woocommerce-mercadopago-module' ),
283
  'type' => 'select',
284
+ 'description' => __( 'Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an internal window is embedded to the page layout).', 'woocommerce-mercadopago-module' ),
285
  'default' => 'iframe',
286
  'options' => array(
287
+ 'iframe' => __( 'iFrame', 'woocommerce-mercadopago-module' ),
288
+ 'modal' => __( 'Modal Window', 'woocommerce-mercadopago-module' ),
289
+ 'redirect' => __( 'Redirect', 'woocommerce-mercadopago-module' )
290
  )
291
  ),
292
  'iframe_width' => array(
293
+ 'title' => __( 'iFrame Width', 'woocommerce-mercadopago-module' ),
294
  'type' => 'text',
295
  'description' => $this->iframe_width_desc,
296
  'default' => '640'
297
  ),
298
  'iframe_height' => array(
299
+ 'title' => __( 'iFrame Height', 'woocommerce-mercadopago-module' ),
300
  'type' => 'text',
301
  'description' => $this->iframe_height_desc,
302
  'default' => '800'
303
  ),
304
  'auto_return' => array(
305
+ 'title' => __( 'Auto Return', 'woocommerce-mercadopago-module' ),
306
  'type' => 'checkbox',
307
+ 'label' => __( 'Automatic Return After Payment', 'woocommerce-mercadopago-module' ),
308
  'default' => 'yes',
309
+ 'description' => __( 'After the payment, client is automatically redirected.', 'woocommerce-mercadopago-module' ),
310
  ),
311
  'testing_title' => array(
312
+ 'title' => __( 'Payment Options', 'woocommerce-mercadopago-module' ),
313
  'type' => 'title',
314
  'description' => ''
315
  ),
316
  'installments' => array(
317
+ 'title' => __( 'Max installments', 'woocommerce-mercadopago-module' ),
318
  'type' => 'text',
319
  'description' => $this->installments_desc,
320
  'default' => '24'
321
  ),
322
  'ex_payments' => array(
323
+ 'title' => __( 'Exclude Payment Methods', 'woocommerce-mercadopago-module' ),
324
  'description' => $this->payment_desc,
325
  'type' => 'multiselect',
326
  'options' => $this->payment_methods,
327
  'default' => ''
328
  ),
329
  'testing' => array(
330
+ 'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
331
  'type' => 'title',
332
  'description' => ''
333
  ),
334
  'sandbox' => array(
335
+ 'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
336
  'type' => 'checkbox',
337
+ 'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
338
  'default' => 'no',
339
+ 'description' => __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
340
  ),
341
  'debug' => array(
342
+ 'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
343
  'type' => 'checkbox',
344
+ 'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
345
  'default' => 'no',
346
+ 'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
347
+ ' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
348
+ '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
349
  )
350
  );
351
 
352
  }
353
 
354
+ public function admin_options() {
355
+ $this->validate_settings_fields();
356
+ if ( count( $this->errors ) > 0 ) {
357
+ $this->display_errors();
358
+ return false;
359
+ } else {
360
+ echo wpautop( $this->method_description );
361
+ ?>
362
+ <p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
363
+ <?php esc_html_e( sprintf( __( 'Please, rate us %s on WordPress.org and give your feedback to help improve this module!', 'woocommerce-mercadopago-module' ), '&#9733;&#9733;&#9733;&#9733;&#9733;' ) ); ?>
364
+ </a></p>
365
+ <table class="form-table">
366
+ <?php $this->generate_settings_html(); ?>
367
+ </table>
368
+ <?php
369
+ return true;
370
+ }
371
+ }
372
+
373
  /*
374
  * ========================================================================
375
  * CHECKOUT BUSINESS RULES
376
  * ========================================================================
377
  */
378
+
379
+ public function payment_fields() {
380
+ // standard checkout
381
+ if ($description = $this->get_description() ) {
382
+ echo wpautop( wptexturize( $description ) );
383
+ }
384
+ if ( $this->supports( 'default_credit_card_form' ) ) {
385
+ $this->credit_card_form();
386
+ }
387
+ }
388
+
389
  // 1. First step occurs when the customer selects Mercado Pago and proceed to
390
  // checkout. This method verify which integration method was selected and
391
  // makes the build for the checkout URL.
392
+ public function process_payment( $order_id ) {
393
+ $order = new WC_Order( $order_id );
394
  // Check for the type of integration.
395
+ if ( 'redirect' == $this->method ) {
396
+ if ( 'yes' == $this->debug ) {
397
+ $this->log->add( $this->id, $this->id . ': @[process_payment] - customer being redirected to Mercado Pago environment.' );
398
  }
399
  return array(
400
  'result' => 'success',
401
+ 'redirect' => $this->createUrl( $order )
402
  );
403
+ } else if ( 'modal' == $this->method || 'iframe' == $this->method ) {
404
+ if ( 'yes' == $this->debug ) {
405
+ $this->log->add( $this->id, $this->id . ': @[process_payment] - preparing to render Mercado Pago checkout view.' );
406
  }
407
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
408
  return array(
409
  'result' => 'success',
410
+ 'redirect' => $order->get_checkout_payment_url( true )
411
  );
412
  } else {
413
  return array(
414
  'result' => 'success',
415
+ 'redirect' => add_query_arg( 'order', $order->id, add_query_arg( 'key', $order->order_key, get_permalink( woocommerce_get_page_id( 'pay' ) ) ) )
416
  );
417
  }
418
  }
420
 
421
  // 2. Order page and this generates the form that shows the pay button. This step
422
  // generates the form to proceed to checkout.
423
+ public function receipt_page( $order ) {
424
+ echo $this->renderOrderForm( $order );
425
  }
426
  // --------------------------------------------------
427
+ public function renderOrderForm( $order_id ) {
428
+ $order = new WC_Order( $order_id );
429
+ $url = $this->createUrl( $order );
430
+ if ( $url ) {
431
  // Display checkout.
432
  $html =
433
  $this->iframe_width_desc = '<img width="468" height="60" src="' .
434
+ plugins_url( 'images/' . $this->banners_mercadopago_standard[ $this->site_id ], plugin_dir_path( __FILE__ ) ) . '">';
435
+ if ( 'iframe' != $this->method ) {
436
+ if ( 'yes' == $this->debug ) {
437
+ $this->log->add( $this->id, $this->id . ': @[renderOrderForm] - rendering Mercado Pago lightbox (modal window).' );
438
  }
439
  $html .= '<p></p><p>' . wordwrap(
440
+ __( 'Thank you for your order. Please, proceed with your payment clicking in the bellow button.', 'woocommerce-mercadopago-module' ),
441
  60, '<br>') . '</p>';
442
  $html .=
443
  '<a id="submit-payment" href="' . $url . '" name="MP-Checkout" class="button alt" mp-mode="modal">' .
444
+ __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' ) .
445
  '</a> ';
446
  $html .=
447
+ '<a class="button cancel" href="' . esc_url( $order->get_cancel_order_url() ) . '">' .
448
+ __( 'Cancel order &amp; Clear cart', 'woocommerce-mercadopago-module' ) .
449
  '</a><style type="text/css">#MP-Checkout-dialog #MP-Checkout-IFrame { bottom: -28px !important; height: 590px !important; }</style>';
450
  // Includes javascript.
451
  $html .=
452
  '<script type="text/javascript">(function(){function $MPBR_load(){window.$MPBR_loaded !== true && (function(){var s = document.createElement("script");s.type = "text/javascript";s.async = true;s.src = ("https:"==document.location.protocol?"https://www.mercadopago.com/org-img/jsapi/mptools/buttons/":"http://mp-tools.mlstatic.com/buttons/")+"render.js";var x = document.getElementsByTagName("script")[0];x.parentNode.insertBefore(s, x);window.$MPBR_loaded = true;})();}window.$MPBR_loaded !== true ? (window.attachEvent ? window.attachEvent("onload", $MPBR_load) : window.addEventListener("load", $MPBR_load, false)) : null;})();</script>';
453
  } else {
454
+ if ( 'yes' == $this->debug ) {
455
+ $this->log->add( $this->id, $this->id . ': @[renderOrderForm] - embedding Mercado Pago iFrame.' );
456
  }
457
  $html .= '<p></p><p>' . wordwrap(
458
+ __( 'Thank you for your order. Proceed with your payment completing the following information.', 'woocommerce-mercadopago-module' ),
459
+ 60, '<br>' ) . '</p>';
460
  $html .=
461
  '<iframe src="' . $url . '" name="MP-Checkout" ' .
462
+ 'width="' . ( is_numeric( (int) $this->iframe_width ) ? $this->iframe_width : 640 ) . '" ' .
463
+ 'height="' . ( is_numeric( (int) $this->iframe_height ) ? $this->iframe_height : 800 ) . '" ' .
464
  'frameborder="0" scrolling="no" id="checkout_mercadopago"></iframe>';
465
  }
466
  return $html;
467
  } else {
468
  $html =
469
+ '<p>' . __( 'An error occurred when proccessing your payment. Please try again or contact us for assistence.', 'woocommerce-mercadopago-module' ) . '</p>';
470
  $html .=
471
+ '<a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
472
+ __( 'Click to try again', 'woocommerce-mercadopago-module' ) .
473
  '</a>';
474
  return $html;
475
  }
477
 
478
  // 3. Create Mercado Pago preference and get init_point URL based in the
479
  // order options from the cart.
480
+ public function buildPaymentPreference( $order ) {
481
 
482
  // Here we build the array that contains ordered itens, from customer cart
483
  $items = array();
484
+ if ( sizeof( $order->get_items() ) > 0 ) {
485
+ foreach ( $order->get_items() as $item ) {
486
+ if ( $item['qty'] ) {
487
+ $product = new WC_product( $item[ 'product_id' ] );
488
+ array_push( $items, array(
489
+ 'id' => $item[ 'product_id' ],
490
+ 'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
491
  'description' => (
492
  // This handles description width limit of Mercado Pago.
493
+ strlen( $product->post->post_content ) > 230 ?
494
+ substr( $product->post->post_content, 0, 230 ) . "..." :
495
  $product->post->post_content
496
  ),
497
  'picture_url' => $product->get_image(),
498
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
499
  'quantity' => 1,
500
+ 'unit_price' => (float) $item[ 'line_total' ] + (float) $item[ 'line_tax' ],
501
+ 'currency_id' => $this->getCurrencyId($this->site_id)
502
  ));
503
  }
504
  }
 
 
 
 
 
 
 
 
 
505
  }
506
 
507
  // Find excluded payment methods. If 'n/d' is in array index, we should
508
  // disconsider the remaining values.
509
  $excluded_payment_methods = array();
510
+ if ( is_array( $this->ex_payments ) || is_object( $this->ex_payments ) ) {
511
+ try { // in some PHP versions, $this->ex_payments is interpreted as a not iterable object
512
+ foreach ( $this->ex_payments as $excluded ) {
513
+ if ( $excluded == 0 ) // if "n/d" is selected, we just not add any items to the array
514
+ break;
515
+ array_push( $excluded_payment_methods, array(
516
+ "id" => $this->payment_methods[ $excluded ]
517
+ ));
518
+ }
519
+ } catch ( MercadoPagoException $e ) {
520
+ if ( 'yes' == $this->debug ) {
521
+ $this->log->add(
522
+ $this->id, $this->id .
523
+ ': @[DEBUG] - excluded payments: exception caught: ' .
524
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
525
+ }
526
+ }
527
+ }
528
  $payment_methods = array(
529
+ 'installments' => ( is_numeric( (int) $this->installments) ? (int) $this->installments : 24 ),
530
  'default_installments' => 1
531
  );
532
  // Set excluded payment methods.
533
+ if ( count( $excluded_payment_methods ) > 0 ) {
534
+ $payment_methods[ 'excluded_payment_methods' ] = $excluded_payment_methods;
535
  }
536
 
537
  // Create Mercado Pago preference.
554
  )
555
  ),
556
  'back_urls' => array(
557
+ 'success' => esc_url( $this->get_return_url( $order ) ),
558
+ 'failure' => str_replace( '&amp;', '&', $order->get_cancel_order_url() ),
559
+ 'pending' => esc_url( $this->get_return_url( $order ) )
560
  ),
561
+ //'marketplace' =>
562
  //'marketplace_fee' =>
563
  'shipments' => array(
564
+ 'cost' => (float) $order->get_total_shipping(),
565
+ //'mode' =>
566
  'receiver_address' => array(
567
  'zip_code' => $order->shipping_postcode,
568
  //'street_number' =>
583
  //'expiration_date_to' =>
584
  );
585
  // Set sponsor ID
586
+ if ( !$this->isTestUser ) {
587
+ $preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
588
  }
589
  // Auto return options.
590
+ if ( 'yes' == $this->auto_return ) {
591
+ $preferences[ 'auto_return' ] = "approved";
592
  }
593
+ if ( 'yes' == $this->debug ) {
594
+ $this->log->add(
595
+ $this->id, $this->id .
596
+ ': @[buildPaymentPreference] - requesting mercado pago preference creation with following structure: ' .
597
+ json_encode( $preferences, JSON_PRETTY_PRINT ) );
598
  }
599
+ $preferences = apply_filters( 'woocommerce_mercadopago_module_preferences', $preferences, $order );
600
  return $preferences;
601
  }
602
  // --------------------------------------------------
603
+ protected function createUrl( $order ) {
604
  // Creates the order parameters by checking the cart configuration.
605
+ $preferences = $this->buildPaymentPreference( $order );
606
+ $mp = new MP( $this->client_id, $this->client_secret );
607
  // Checks for sandbox mode.
608
+ if ( 'yes' == $this->sandbox ) {
609
+ $mp->sandbox_mode( true );
610
+ if ( 'yes' == $this->debug ) {
611
+ $this->log->add( $this->id, $this->id . ': @[createUrl] - sandbox mode is enabled' );
612
  }
613
  } else {
614
+ $mp->sandbox_mode( false );
615
  }
616
  // Create order preferences with Mercado Pago API request.
617
  try {
618
+ $checkout_info = $mp->create_preference( json_encode( $preferences ) );
619
+ if ( is_wp_error( $checkout_info ) || $checkout_info[ 'status' ] < 200 || $checkout_info[ 'status' ] >= 300 ) {
620
+ if ( 'yes' == $this->debug ) {
621
+ $this->log->add( $this->id, $this->id . ': @[createUrl] - payment creation failed with error: ' . $checkout_info[ 'response' ][ 'status' ] );
622
  }
623
  return false;
624
  } else {
625
+ if ( 'yes' == $this->debug ) {
626
+ $this->log->add( $this->id, $this->id .
627
+ ': @[createUrl] - payment link generated with success from mercado pago, with structure as follow: ' .
628
+ json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
629
  }
630
+ if ( 'yes' == $this->sandbox ) {
631
+ return $checkout_info[ 'response' ][ 'sandbox_init_point' ];
632
  } else {
633
+ return $checkout_info[ 'response' ][ 'init_point' ];
634
  }
635
  }
636
+ } catch ( MercadoPagoException $e ) {
637
+ if ( 'yes' == $this->debug ) {
638
+ $this->log->add(
639
+ $this->id, $this->id .
640
+ ': @[createUrl] - payment creation failed with exception: ' .
641
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
642
  }
643
  return false;
644
  }
652
 
653
  // Check if we have valid credentials.
654
  public function validateCredentials() {
655
+ if ( empty( $this->client_id ) ) return false;
656
+ if ( empty( $this->client_secret ) ) return false;
657
+ if ( strlen( $this->client_id ) > 0 && strlen( $this->client_secret ) > 0 ) {
658
  try {
659
+ $mp = new MP( $this->client_id, $this->client_secret );
660
  return true;
661
+ } catch ( MercadoPagoException $e ) {
662
  return false;
663
  }
664
  }
665
  return false;
666
  }
667
 
668
+ // Build the string representing the path to the log file
669
+ protected function buildLogPathString() {
670
+ return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
671
+ esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
672
+ __( 'WooCommerce &gt; System Status &gt; Logs', 'woocommerce-mercadopago-module' ) . '</a>';
673
+ }
674
+
675
  // Return boolean indicating if currency is supported.
676
  protected function isSupportedCurrency() {
677
+ return in_array( $this->site_id, array( 'MLA', 'MLB', 'MLC', 'MCO', 'MLM', 'MPE', 'MLV' ) );
678
+ }
679
+
680
+ // Get currency id for a country
681
+ protected function getCurrencyId( $site_id ) {
682
+ switch ( $site_id ) {
683
+ case 'MLA': return 'ARS';
684
+ case 'MLB': return 'BRL';
685
+ case 'MCO': return 'COP';
686
+ case 'MLC': return 'CLP';
687
+ case 'MLM': return 'MXN';
688
+ case 'MLV': return 'VEF';
689
+ case 'MPE': return 'PEN';
690
+ default: return '';
691
+ }
692
  }
693
 
694
  // Called automatically by WooCommerce, verify if Module is available to use.
695
  public function is_available() {
696
  // Test if is valid for use.
697
+ $available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
698
+ ! empty( $this->client_id ) &&
699
+ ! empty( $this->client_secret ) &&
700
  $this->isSupportedCurrency();
701
  return $available;
702
  }
703
 
704
  // Fix css for Mercado Pago in specific cases.
705
  public function css() {
706
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
707
+ $page_id = wc_get_page_id( 'checkout' );
708
  } else {
709
+ $page_id = woocommerce_get_page_id( 'checkout' );
710
  }
711
+ if ( is_page($page_id ) ) {
712
  echo '<style type="text/css">#MP-Checkout-dialog { z-index: 9999 !important; }</style>' . PHP_EOL;
713
  }
714
  }
715
 
716
  // Get the URL to admin page.
717
  protected function admin_url() {
718
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
719
  return admin_url(
720
  'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopago_gateway'
721
  );
728
  // Notify that Client_id and/or Client_secret are not valid.
729
  public function clientIdOrSecretMissingMessage() {
730
  echo '<div class="error"><p><strong>' .
731
+ __( 'Standard Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
 
 
 
 
 
 
 
 
 
 
 
732
  '</strong>: ' .
733
  sprintf(
734
+ __( 'Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
735
+ '<a href="' . $this->admin_url() . '">' . __( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
736
  '</p></div>';
737
  }
738
 
739
+ public function getCountryName( $site_id ) {
740
+ switch ( $site_id ) {
741
+ case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
742
+ case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
743
+ case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
744
+ case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
745
+ case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
746
+ case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
747
+ case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
748
  }
749
  }
750
 
756
 
757
  // This call checks any incoming notifications from Mercado Pago server.
758
  public function check_ipn_response() {
759
+ if ( 'yes' == $this->debug ) {
760
+ $this->log->add( $this->id, $this->id . ': @[check_ipn_response] - got a call from mercado pago ipn' );
761
  }
762
  @ob_clean();
763
+ $data = $this->check_ipn_request_is_valid( $_GET );
764
+ if ( $data ) {
765
+ header( 'HTTP/1.1 200 OK' );
766
+ if ( 'yes' == $this->debug ) {
767
+ $this->log->add(
768
+ $this->id, $this->id .
769
+ ': @[check_ipn_response] - received _get call with following content: ' .
770
+ json_encode( $data, JSON_PRETTY_PRINT ) );
771
  }
772
+ do_action( 'valid_mercadopago_ipn_request', $data );
773
  } else {
774
+ if ( 'yes' == $this->debug ) {
775
+ $this->log->add(
776
+ $this->id, $this->id .
777
+ ': @[check_ipn_response] - Mercado Pago Request Failure: ' .
778
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
779
  }
780
+ wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
781
  }
782
  }
783
 
784
  // Get received data from IPN and checks if we have a merchant_order or
785
  // payment associated. If we have these information, we return data to be
786
  // processed by successful_request function.
787
+ public function check_ipn_request_is_valid( $data ) {
788
+ if ( 'yes' == $this->debug ) {
789
+ $this->log->add(
790
+ $this->id, $this->id .
791
+ ': @[check_ipn_request_is_valid] - received ipn message from mercado pago, checking validity with $data containing: ' .
792
+ json_encode( $data, JSON_PRETTY_PRINT ) );
793
  }
794
+ if ( !isset( $data[ 'id' ] ) ) {
795
+ if ( 'yes' == $this->debug ) {
796
+ $this->log->add(
797
+ $this->id, $this->id .
798
+ ': @[check_ipn_request_is_valid] - failing due to ID absent' );
799
  }
800
  return false; // No ID? No process!
801
  }
802
  // Create MP object and setup sandbox mode.
803
+ $mp = new MP( $this->client_id, $this->client_secret );
804
+ if ( 'yes' == $this->sandbox ) {
805
+ $mp->sandbox_mode( true );
806
  } else {
807
+ $mp->sandbox_mode( false );
808
  }
809
  try { // Get the merchant_order reported by the IPN. Glossary of attributes response in https://developers.mercadopago.com
810
+ $params = array( "access_token" => $mp->get_access_token() );
811
+ if ( $data[ "topic" ] == 'merchant_order' ) {
812
+ $merchant_order_info = $mp->get( "/merchant_orders/" . $_GET[ "id" ], $params, false );
813
  // If the payment's transaction amount is equal (or bigger) than the merchant order's amount you can release your items
814
+ if ( !is_wp_error( $merchant_order_info ) && ($merchant_order_info[ "status" ] == 200 ) ) {
815
+ $payments = $merchant_order_info[ "response" ][ "payments" ];
816
  // check if we have more than one payment method
817
+ if ( sizeof( $payments ) >= 1 ) { // We have payments
818
+ return $merchant_order_info[ 'response' ];
819
+ } else { // We have no payments?
820
+ if ( 'yes' == $this->debug ) {
821
+ $this->log->add( $this->id, $this->id . ': @[check_ipn_request_is_valid] - order received but has no payment' );
 
 
822
  }
823
+ return false;
824
+ }
 
825
  } else {
826
+ if ( 'yes' == $this->debug ) {
827
+ $this->log->add( $this->id, $this->id . ': @[check_ipn_request_is_valid] - got status not equal 200 or some error' );
828
  }
829
  return false;
830
  }
831
  }
832
+ } catch ( MercadoPagoException $e ) {
833
+ if ( 'yes' == $this->debug ) {
834
+ $this->log->add( $this->id, $this->id .
835
+ ': @[check_ipn_request_is_valid] - GOT EXCEPTION: ' .
836
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
837
  }
838
  return false;
839
  }
841
  }
842
 
843
  // Properly handles each case of notification, based in payment status.
844
+ public function successful_request( $data ) {
845
+ if ( 'yes' == $this->debug ) {
846
+ $this->log->add( $this->id, $this->id . ': @[successful_request] - starting to process ipn update...' );
847
  }
848
+ $order_key = $data[ 'external_reference' ];
849
+ if ( !empty( $order_key ) ) {
850
+ $order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
851
+ $order = new WC_Order( $order_id );
852
  // Checks whether the invoice number matches the order. If true processes the payment.
853
+ if ( $order->id === $order_id ) {
854
  if ( 'yes' == $this->debug ) {
855
+ $this->log->add( $this->id, $this->id . ': @[successful_request] - got order with ID ' . $order->id . ' and status ' . $data[ 'payments' ][ 0 ][ 'status' ] );
856
  }
857
  // Order details.
858
+ if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
 
 
 
 
 
 
 
859
  update_post_meta(
860
  $order_id,
861
+ __( 'Payer email', 'woocommerce-mercadopago-module' ),
862
+ $data[ 'payer' ][ 'email' ]
863
  );
864
  }
865
+ if ( !empty( $data[ 'payment_type' ] ) ) {
866
  update_post_meta(
867
  $order_id,
868
+ __( 'Payment type', 'woocommerce-mercadopago-module' ),
869
+ $data[ 'payment_type' ]
870
  );
871
  }
872
+ if ( !empty( $data[ 'payments' ] ) ) {
873
  $payment_ids = array();
874
+ foreach ( $data[ 'payments' ] as $payment ) {
875
+ $payment_ids[] = $payment[ 'id' ];
876
  }
877
+ if ( sizeof( $payment_ids ) > 0 ) {
878
  update_post_meta(
879
  $order_id,
880
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
881
+ implode( ', ', $payment_ids )
882
  );
883
  }
884
  }
885
+ // Here, we process the status...
886
+ $status = 'pending';
887
+ if ( sizeof( $data[ 'payments' ] ) == 1 ) {
888
+ // if there's only one payment, then we get its status
889
+ $status = $data[ 'payments' ][ 0 ][ 'status' ];
890
+ } else if ( sizeof( $data[ 'payments' ] ) > 1 ) {
891
+ // otherwise, we check payment sum
892
+ $total_paid = 0.00;
893
+ foreach ( $data[ 'payments' ] as $payment ) {
894
+ if ( $payment[ 'status' ] === 'approved' ) {
895
+ $total_paid = $total_paid + (float) $payment[ 'total_paid_amount' ];
896
+ }
897
+ }
898
+ $total = $data[ 'shipping_cost' ] + $data[ 'total_amount' ];
899
+ if ( $total_paid >= $total ) {
900
+ // At this point, the sum of approved payments are above or equal than the total order amount, so it is approved
901
+ $status = 'approved';
902
+ }
903
+ }
904
+ // Switch the status and update in WooCommerce
905
+ switch ( $status ) {
906
  case 'approved':
907
  $order->add_order_note(
908
+ 'Mercado Pago: ' . __( 'Payment approved.', 'woocommerce-mercadopago-module' )
909
  );
910
  $order->payment_complete();
911
  break;
912
  case 'pending':
913
  $order->add_order_note(
914
+ 'Mercado Pago: ' . __( 'Customer haven\'t paid yet.', 'woocommerce-mercadopago-module' )
915
  );
916
  break;
917
  case 'in_process':
918
+ $order->update_status(
919
+ 'on-hold',
920
+ 'Mercado Pago: ' . __( 'Payment under review.', 'woocommerce-mercadopago-module' )
921
  );
922
  break;
923
  case 'rejected':
924
+ $order->update_status(
925
+ 'failed',
926
+ 'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.', 'woocommerce-mercadopago-module' )
927
  );
928
  break;
929
  case 'refunded':
930
  $order->update_status(
931
  'refunded',
932
+ 'Mercado Pago: ' . __( 'The payment was refunded to the customer.', 'woocommerce-mercadopago-module' )
933
  );
934
  break;
935
  case 'cancelled':
936
  $order->update_status(
937
  'cancelled',
938
+ 'Mercado Pago: ' . __( 'The payment was cancelled.', 'woocommerce-mercadopago-module' )
939
  );
940
  break;
941
  case 'in_mediation':
942
  $order->add_order_note(
943
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
944
  );
945
  break;
946
  case 'charged-back':
947
  $order->add_order_note(
948
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
949
  );
950
+ break;
951
  default:
952
  break;
953
  }
955
  }
956
  }
957
 
958
+ }
mercadopago/mercadopago-ticket-gateway.php ADDED
@@ -0,0 +1,805 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Part of Woo Mercado Pago Module
4
+ * Author - Mercado Pago
5
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
6
+ * Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
7
+ * License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
8
+ */
9
+
10
+ // This include Mercado Pago library SDK
11
+ require_once "sdk/lib/mercadopago.php";
12
+
13
+ // Extending from WooCommerce Payment Gateway class.
14
+ // This extension implements the ticket payment method.
15
+ class WC_WooMercadoPagoTicket_Gateway extends WC_Payment_Gateway {
16
+
17
+ // Sponsor ID array by country
18
+ private $sponsor_id = array(
19
+ "MLA" => '208682286',
20
+ "MLB" => '208686191',
21
+ "MCO" => '208687643',
22
+ "MLC" => '208690789',
23
+ "MPE" => '216998692',
24
+ "MLV" => '208692735',
25
+ "MLM" => '208692380'
26
+ );
27
+
28
+ // Required inherited method from WC_Payment_Gateway class: __construct.
29
+ // Please check:
30
+ // [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
31
+ // for documentation and further information.
32
+ public function __construct() {
33
+
34
+ // These fields are declared because we use them dinamically in our gateway class.
35
+ $this->domain = get_site_url() . '/index.php';
36
+ $this->site_id = null;
37
+ $this->isTestUser = false;
38
+ $this->payment_methods = array();
39
+ $this->store_categories_id = array();
40
+ $this->store_categories_description = array();
41
+
42
+ // Within your constructor, you should define the following variables.
43
+ $this->id = 'woocommerce-mercadopago-ticket-module';
44
+ $this->method_title = __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' );
45
+ $this->method_description = '<img width="200" height="52" src="' .
46
+ plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
47
+ wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
48
+ '</strong>';
49
+
50
+ // These fields are used in our Mercado Pago Module configuration page.
51
+ $this->access_token = $this->get_option( 'access_token' );
52
+ $this->title = $this->get_option( 'title' );
53
+ $this->description = $this->get_option( 'description' );
54
+ $this->category_id = $this->get_option( 'category_id' );
55
+ $this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
56
+ $this->debug = $this->get_option( 'debug' );
57
+
58
+ // Render our configuration page and init/load fields.
59
+ $this->init_form_fields();
60
+ $this->init_settings();
61
+
62
+ // Hook actions for WordPress.
63
+ add_action( // Used by IPN to receive IPN incomings.
64
+ 'woocommerce_api_wc_woomercadopagoticket_gateway',
65
+ array($this, 'check_ipn_response')
66
+ );
67
+ add_action( // Used by IPN to process valid incomings.
68
+ 'valid_mercadopagoticket_ipn_request',
69
+ array($this, 'successful_request')
70
+ );
71
+ add_action( // Used in settings page to hook "save settings" action.
72
+ 'woocommerce_update_options_payment_gateways_' . $this->id,
73
+ array( $this, 'process_admin_options' )
74
+ );
75
+ add_action( // Scripts for custom checkout
76
+ 'wp_enqueue_scripts',
77
+ array( $this, 'ticketCheckoutScripts' )
78
+ );
79
+
80
+ // Verify if access token is empty.
81
+ if ( empty( $this->access_token ) && $this->enabled == 'yes' ) {
82
+ add_action( 'admin_notices', array( $this, 'credentialsMissingMessage' ) );
83
+ }
84
+
85
+ add_action( // Verify if SSL is supported.
86
+ 'admin_notices', array( $this, 'checkSSLAbsence' )
87
+ );
88
+
89
+ // Logging and debug.
90
+ if ( 'yes' == $this->debug ) {
91
+ if ( class_exists( 'WC_Logger' ) ) {
92
+ $this->log = new WC_Logger();
93
+ } else {
94
+ $this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
95
+ }
96
+ }
97
+
98
+ }
99
+
100
+ // Required inherited method from WC_Payment_Gateway class: init_form_fields.
101
+ // Initialise Gateway settings form fields with a customized page.
102
+ public function init_form_fields() {
103
+
104
+ $api_secret_locale = sprintf(
105
+ '<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
106
+ '<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
107
+ '<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
108
+ '<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
109
+ '<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a>, ' .
110
+ '<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a> %s ' .
111
+ '<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
112
+ __( 'Argentine', 'woocommerce-mercadopago-module' ),
113
+ __( 'Brazil', 'woocommerce-mercadopago-module' ),
114
+ __( 'Chile', 'woocommerce-mercadopago-module' ),
115
+ __( 'Colombia', 'woocommerce-mercadopago-module' ),
116
+ __( 'Mexico', 'woocommerce-mercadopago-module' ),
117
+ __( 'Peru', 'woocommerce-mercadopago-module' ),
118
+ __( 'or', 'woocommerce-mercadopago-module' ),
119
+ __( 'Venezuela', 'woocommerce-mercadopago-module' )
120
+ );
121
+
122
+ // Trigger API to get payment methods and site_id, also validates access_token.
123
+ if ( $this->validateCredentials() ) {
124
+ try {
125
+ $mp = new MP( $this->access_token );
126
+ $get_request = $mp->get( "/users/me?access_token=" . $this->access_token );
127
+ $this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
128
+ $this->site_id = $get_request[ 'response' ][ 'site_id' ];
129
+ $payments = $mp->get( "/v1/payment_methods/?access_token=" . $this->access_token );
130
+ foreach ( $payments[ "response" ] as $payment ) {
131
+ if ( $payment[ 'payment_type_id' ] != 'account_money' && $payment[ 'payment_type_id' ] != 'credit_card' &&
132
+ $payment[ 'payment_type_id' ] != 'debit_card' && $payment[ 'payment_type_id' ] != 'prepaid_card' ) {
133
+ array_push( $this->payment_methods, $payment );
134
+ }
135
+ }
136
+ $this->credentials_message = '<img width="12" height="12" src="' .
137
+ plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
138
+ ' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
139
+ ': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
140
+ plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
141
+ } catch ( MercadoPagoException $e ) {
142
+ $this->credentials_message = '<img width="12" height="12" src="' .
143
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
144
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
145
+ }
146
+ } else {
147
+ $this->credentials_message = '<img width="12" height="12" src="' .
148
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
149
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
150
+ }
151
+
152
+ // Fills categoy selector. We do not need credentials to make this call.
153
+ $categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
154
+ foreach ( $categories[ "response" ] as $category ) {
155
+ array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
156
+ array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
157
+ }
158
+
159
+ // This array draws each UI (text, selector, checkbox, label, etc).
160
+ $this->form_fields = array(
161
+ 'enabled' => array(
162
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
163
+ 'type' => 'checkbox',
164
+ 'label' => __( 'Enable Ticket Payment Method', 'woocommerce-mercadopago-module' ),
165
+ 'default' => 'yes'
166
+ ),
167
+ 'credentials_title' => array(
168
+ 'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
169
+ 'type' => 'title',
170
+ 'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
171
+ ),
172
+ 'access_token' => array(
173
+ 'title' => 'Access token',
174
+ 'type' => 'text',
175
+ 'description' => __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
176
+ 'default' => '',
177
+ 'required' => true
178
+ ),
179
+ 'ipn_url' => array(
180
+ 'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
181
+ 'type' => 'title',
182
+ 'description' => sprintf( __( 'Your IPN URL to receive instant payment notifications is', 'woocommerce-mercadopago-module' ) . '<br>%s', '<code>' . $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway' . '</code>.' )
183
+ ),
184
+ 'checkout_options_title' => array(
185
+ 'title' => __( 'Ticket Options', 'woocommerce-mercadopago-module' ),
186
+ 'type' => 'title',
187
+ 'description' => ''
188
+ ),
189
+ 'title' => array(
190
+ 'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
191
+ 'type' => 'text',
192
+ 'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
193
+ 'default' => __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' )
194
+ ),
195
+ 'description' => array(
196
+ 'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
197
+ 'type' => 'textarea',
198
+ 'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
199
+ 'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
200
+ ),
201
+ 'category_id' => array(
202
+ 'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
203
+ 'type' => 'select',
204
+ 'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
205
+ 'options' => $this->store_categories_id
206
+ ),
207
+ 'invoice_prefix' => array(
208
+ 'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
209
+ 'type' => 'text',
210
+ 'description' => __( 'Please, inform a prefix to your store.', 'woocommerce-mercadopago-module' ) . ' ' . __( 'If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators.', 'woocommerce-mercadopago-module' ),
211
+ 'default' => 'WC-'
212
+ ),
213
+ 'testing' => array(
214
+ 'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
215
+ 'type' => 'title',
216
+ 'description' => ''
217
+ ),
218
+ 'debug' => array(
219
+ 'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
220
+ 'type' => 'checkbox',
221
+ 'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
222
+ 'default' => 'no',
223
+ 'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
224
+ ' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
225
+ '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
226
+ )
227
+ );
228
+
229
+ }
230
+
231
+ public function admin_options() {
232
+ $this->validate_settings_fields();
233
+ if ( count( $this->errors ) > 0 ) {
234
+ $this->display_errors();
235
+ return false;
236
+ } else {
237
+ echo wpautop( $this->method_description );
238
+ ?>
239
+ <p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
240
+ <?php esc_html_e( sprintf( __( 'Please, rate us %s on WordPress.org and give your feedback to help improve this module!', 'woocommerce-mercadopago-module' ), '&#9733;&#9733;&#9733;&#9733;&#9733;' ) ); ?>
241
+ </a></p>
242
+ <table class="form-table">
243
+ <?php $this->generate_settings_html(); ?>
244
+ </table>
245
+ <?php
246
+ return true;
247
+ }
248
+ }
249
+
250
+ /*
251
+ * ========================================================================
252
+ * CHECKOUT BUSINESS RULES
253
+ * ========================================================================
254
+ */
255
+
256
+ public function ticketCheckoutScripts() {
257
+ if ( is_checkout() && $this->is_available() ) {
258
+ if ( !get_query_var( 'order-received' ) ) {
259
+ wp_enqueue_style(
260
+ 'woocommerce-mercadopago-style', plugins_url(
261
+ 'assets/css/custom_checkout_mercadopago.css',
262
+ plugin_dir_path( __FILE__ ) ) );
263
+ }
264
+ }
265
+ }
266
+
267
+ public function payment_fields() {
268
+ $amount = $this->get_order_total();
269
+ wc_get_template(
270
+ 'ticket/ticket-form.php',
271
+ array(
272
+ 'form_labels' => array(
273
+ 'label_choose' => __( "Choose", "woocommerce-mercadopago-module" ),
274
+ "payment_instructions" => __( 'Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it.', 'woocommerce-mercadopago-module' ),
275
+ "ticket_note" => __( 'Important: The order will be confirmed only after the payment approval.', 'woocommerce-mercadopago-module' )
276
+ ),
277
+ 'payment_methods' => $this->payment_methods,
278
+ 'site_id' => $this->site_id,
279
+ 'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
280
+ 'amount' => $amount
281
+ ),
282
+ 'woocommerce/mercadopago/',
283
+ WC_WooMercadoPago_Module::getTemplatesPath()
284
+ );
285
+ }
286
+
287
+ // This function is called after we clock on [place_order] button, and each field is passed to this
288
+ // function through $_POST variable.
289
+ public function process_payment( $order_id ) {
290
+ $order = new WC_Order( $order_id );
291
+ // we have got parameters from checkout page, now its time to charge the card
292
+ if ( 'yes' == $this->debug ) {
293
+ $this->log->add( $this->id, $this->id .
294
+ ': @[process_payment] - Received [$_POST] from customer front-end page: ' .
295
+ json_encode( $_POST, JSON_PRETTY_PRINT ) );
296
+ }
297
+
298
+ if ( isset( $_POST[ 'mercadopago_ticket' ][ 'amount' ] ) && !empty( $_POST[ 'mercadopago_ticket' ][ 'amount' ] ) &&
299
+ isset( $_POST[ 'mercadopago_ticket' ][ 'paymentMethodId' ] ) && !empty( $_POST[ 'mercadopago_ticket' ][ 'paymentMethodId' ] ) ) {
300
+ return $this->createUrl( $order, $_POST );
301
+ } else {
302
+ // process when fields are imcomplete
303
+ wc_add_notice(
304
+ '<p>' . __( 'A problem was occurred when processing your payment. Please, try again.', 'woocommerce-mercadopago-module' ) . '</p>',
305
+ 'error'
306
+ );
307
+ return array(
308
+ 'result' => 'fail',
309
+ 'redirect' => '',
310
+ );
311
+ }
312
+ }
313
+
314
+ protected function createUrl( $order, $post_from_form ) {
315
+
316
+ $mp = new MP( $this->access_token );
317
+ $mp->sandbox_mode( false );
318
+
319
+ // Creates the order parameters by checking the cart configuration
320
+ $preferences = $this->createPreferences( $order, $post_from_form );
321
+ try {
322
+ // Create order preferences with Mercado Pago API request
323
+ $ticket_info = $mp->create_payment( json_encode( $preferences ) );
324
+ if ( 'yes' == $this->debug ) {
325
+ $this->log->add( $this->id, $this->id .
326
+ ': @[createUrl] - Received [$checkout_info] from Mercado Pago API: ' .
327
+ json_encode( $ticket_info, JSON_PRETTY_PRINT ) );
328
+ }
329
+ if ( is_wp_error( $ticket_info ) ||
330
+ $ticket_info[ 'status' ] < 200 || $ticket_info[ 'status' ] >= 300 ) {
331
+ if ( 'yes' == $this->debug ) {
332
+ $this->log->add( $this->id, $this->id .
333
+ ': @[createUrl] - payment creation failed with error: ' .
334
+ $ticket_info[ 'response' ][ 'status' ] );
335
+ }
336
+ } else {
337
+ $response = $ticket_info[ 'response' ];
338
+ if ( array_key_exists( 'status', $response ) ) {
339
+ if ( $response[ 'status' ] == "pending" && $response[ 'status_detail' ] == "pending_waiting_payment" ) {
340
+ WC()->cart->empty_cart();
341
+
342
+ $html = '<p></p><p>' . wordwrap(
343
+ __( 'Thank you for your order. Please, pay the ticket to get your order approved.', 'woocommerce-mercadopago-module'),
344
+ 60, '<br>') . '</p>';
345
+ $html .=
346
+ '<a id="submit-payment" target="_blank" href="' . $response[ 'transaction_details' ][ 'external_resource_url' ] . '" class="button alt">' .
347
+ __( 'Print the Ticket', 'woocommerce-mercadopago-module' ) .
348
+ '</a> ';
349
+
350
+ wc_add_notice(
351
+ '<p>' . $html . '</p>',
352
+ 'notice'
353
+ );
354
+ $order->add_order_note(
355
+ 'Mercado Pago: ' .
356
+ __( 'Waiting for the ticket payment.', 'woocommerce-mercadopago-module' )
357
+ );
358
+ $order->add_order_note(
359
+ 'Mercado Pago: ' .
360
+ __( 'To reprint the ticket click ', 'woocommerce-mercadopago-module' ) .
361
+ '<a href="' . $response[ 'transaction_details' ][ 'external_resource_url' ] . '">' .
362
+ __( 'here', 'woocommerce-mercadopago-module' ) .
363
+ '</a>'
364
+ );
365
+
366
+ return array(
367
+ 'result' => 'success',
368
+ 'redirect' => $order->get_checkout_payment_url( true )
369
+ );
370
+ }
371
+ }
372
+ }
373
+ } catch ( MercadoPagoException $e ) {
374
+ if ( 'yes' == $this->debug ) {
375
+ $this->log->add(
376
+ $this->id, $this->id .
377
+ ': @[createUrl] - payment creation failed with exception: ' .
378
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
379
+ }
380
+ }
381
+ return false;
382
+
383
+ }
384
+
385
+ private function createPreferences( $order, $post_from_form ) {
386
+
387
+ // Here we build the array that contains ordered itens, from customer cart
388
+ $items = array();
389
+ $purchase_description = "";
390
+ if ( sizeof( $order->get_items() ) > 0 ) {
391
+ foreach ( $order->get_items() as $item ) {
392
+ if ( $item['qty'] ) {
393
+ $product = new WC_product( $item[ 'product_id' ] );
394
+ $purchase_description =
395
+ $purchase_description . ' ' .
396
+ ( $product->post->post_title . ' x ' . $item[ 'qty' ] );
397
+ array_push( $items, array(
398
+ 'id' => $item[ 'product_id' ],
399
+ 'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
400
+ 'description' => (
401
+ // This handles description width limit of Mercado Pago
402
+ strlen( $product->post->post_content ) > 230 ?
403
+ substr( $product->post->post_content, 0, 230 ) . "..." :
404
+ $product->post->post_content
405
+ ),
406
+ 'picture_url' => $product->get_image(),
407
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
408
+ 'quantity' => 1,
409
+ 'unit_price' => (float) $item[ 'line_total' ] + (float) $item[ 'line_tax' ],
410
+ ));
411
+ }
412
+ }
413
+ }
414
+
415
+ // Creates the shipment cost structure
416
+ $shipping_cost = (float) $order->get_total_shipping();
417
+ if ( $shipping_cost > 0 ) {
418
+ $item = array(
419
+ 'title' => __( 'Shipping', 'woocommerce-mercadopago-module' ),
420
+ 'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
421
+ 'quantity' => 1,
422
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
423
+ 'unit_price' => $shipping_cost
424
+ );
425
+ $items[] = $item;
426
+ }
427
+
428
+ // Discounts features
429
+ /*
430
+ $discounts = (double) $cart->getOrderTotal( true, Cart::ONLY_DISCOUNTS );
431
+ if ( $discounts > 0 ) {
432
+ $item = array(
433
+ 'title' => 'Discount',
434
+ 'description' => 'Discount provided by store',
435
+ 'quantity' => 1,
436
+ 'category_id' => Configuration::get( 'MERCADOPAGO_CATEGORY' ),
437
+ 'unit_price' => - $discounts
438
+ );
439
+ $items[] = $item;
440
+ }
441
+ */
442
+
443
+ // Build additional information from the customer data
444
+ $payer_additional_info = array(
445
+ 'first_name' => $order->billing_first_name,
446
+ 'last_name' => $order->billing_last_name,
447
+ //'registration_date' =>
448
+ 'phone' => array(
449
+ //'area_code' =>
450
+ 'number' => $order->billing_phone
451
+ ),
452
+ 'address' => array(
453
+ 'zip_code' => $order->billing_postcode,
454
+ //'street_number' =>
455
+ 'street_name' => $order->billing_address_1 . ' / ' .
456
+ $order->billing_city . ' ' .
457
+ $order->billing_state . ' ' .
458
+ $order->billing_country
459
+ )
460
+ );
461
+
462
+ // Create the shipment address information set
463
+ $shipments = array(
464
+ 'receiver_address' => array(
465
+ 'zip_code' => $order->shipping_postcode,
466
+ //'street_number' =>
467
+ 'street_name' => $order->shipping_address_1 . ' ' .
468
+ $order->shipping_address_2 . ' ' .
469
+ $order->shipping_city . ' ' .
470
+ $order->shipping_state . ' ' .
471
+ $order->shipping_country,
472
+ //'floor' =>
473
+ 'apartment' => $order->shipping_address_2
474
+ )
475
+ );
476
+
477
+ // The payment preference
478
+ $payment_preference = array (
479
+ 'transaction_amount' => (float) $post_from_form[ 'mercadopago_ticket' ][ 'amount' ],
480
+ 'description' => $purchase_description,
481
+ 'payment_method_id' => $post_from_form[ 'mercadopago_ticket' ][ 'paymentMethodId' ],
482
+ 'payer' => array(
483
+ 'email' => $order->billing_email
484
+ ),
485
+ 'external_reference' => $this->invoice_prefix . $order->id,
486
+ 'additional_info' => array(
487
+ 'items' => $items,
488
+ 'payer' => $payer_additional_info,
489
+ 'shipments' => $shipments
490
+ )
491
+ );
492
+
493
+ // Do not set IPN url if it is a localhost!
494
+ $notification_url = $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoTicket_Gateway';
495
+ if ( !strrpos( $notification_url, "localhost" ) ) {
496
+ $payment_preference['notification_url'] = $notification_url;
497
+ }
498
+
499
+ // Coupon Feature
500
+ /*
501
+ $mercadopago_coupon = isset( $post[ 'mercadopago_coupon' ] ) ? $post[ 'mercadopago_coupon' ] : "";
502
+ if ( $mercadopago_coupon != "" ) {
503
+ $coupon = $this->validCoupon( $mercadopago_coupon );
504
+ if ( $coupon[ 'status' ] == 200 ) {
505
+ $payment_preference[ 'campaign_id' ] = $coupon[ 'response' ][ 'id' ];
506
+ $payment_preference[ 'coupon_amount' ] = (float) $coupon[ 'response' ][ 'coupon_amount' ];
507
+ $payment_preference[ 'coupon_code' ] = strtoupper( $mercadopago_coupon );
508
+ } else {
509
+ PrestaShopLogger::addLog ( $coupon['response']['error'] . Tools::jsonEncode($coupon), MP_SDK::ERROR, 0 );
510
+ $this->context->smarty->assign( array(
511
+ 'message_error' => $coupon[ 'response' ][ 'error' ],
512
+ 'version' => $this->getPrestashopVersion()
513
+ ) );
514
+ return $this->display ( __file__, '/views/templates/front/error_admin.tpl' );
515
+ }
516
+ }
517
+ */
518
+
519
+ if ( !$this->isTestUser ) {
520
+ $preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
521
+ }
522
+
523
+ if ( 'yes' == $this->debug ) {
524
+ $this->log->add( $this->id, $this->id .
525
+ ': @[createPreferences] - Returning just created [$payment_preference] structure: ' .
526
+ json_encode( $payment_preference, JSON_PRETTY_PRINT ) );
527
+ }
528
+
529
+ $payment_preference = apply_filters(
530
+ 'woocommerce_mercadopago_module_ticket_preferences',
531
+ $payment_preference, $order
532
+ );
533
+ return $payment_preference;
534
+
535
+ }
536
+
537
+ /*
538
+ * ========================================================================
539
+ * AUXILIARY AND FEEDBACK METHODS
540
+ * ========================================================================
541
+ */
542
+
543
+ // Check if we have valid credentials.
544
+ public function validateCredentials() {
545
+ if ( empty( $this->access_token ) ) return false;
546
+ if ( strlen( $this->access_token ) > 0 ) {
547
+ try {
548
+ $mp = new MP( $this->access_token );
549
+ return true;
550
+ } catch ( MercadoPagoException $e ) {
551
+ return false;
552
+ }
553
+ }
554
+ return false;
555
+ }
556
+
557
+ // Build the string representing the path to the log file
558
+ protected function buildLogPathString() {
559
+ return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
560
+ esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
561
+ __( 'WooCommerce &gt; System Status &gt; Logs', 'woocommerce-mercadopago-module' ) . '</a>';
562
+ }
563
+
564
+ // Return boolean indicating if currency is supported.
565
+ protected function isSupportedCurrency() {
566
+ return in_array( $this->site_id, array( 'MLA', 'MLB', 'MLC', 'MCO', 'MLM', 'MPE', 'MLV' ) );
567
+ }
568
+
569
+ public function checkSSLAbsence() {
570
+ if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
571
+ if ( 'yes' == $this->settings[ 'enabled' ] ) {
572
+ echo '<div class="error"><p><strong>' .
573
+ __( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
574
+ '</strong>: ' .
575
+ sprintf(
576
+ __( 'Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server.', 'woocommerce-mercadopago-module' )
577
+ ) . '</p></div>';
578
+ }
579
+ }
580
+ }
581
+
582
+ // Called automatically by WooCommerce, verify if Module is available to use.
583
+ public function is_available() {
584
+ // check SSL connection, as we can't use normal http in custom checkout
585
+ if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
586
+ return false;
587
+ }
588
+ $available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
589
+ ! empty( $this->access_token ) &&
590
+ $this->isSupportedCurrency();
591
+ return $available;
592
+ }
593
+
594
+ // Get the URL to admin page.
595
+ protected function admin_url() {
596
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
597
+ return admin_url(
598
+ 'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopagoticket_gateway'
599
+ );
600
+ }
601
+ return admin_url(
602
+ 'admin.php?page=woocommerce_settings&tab=payment_gateways&section=WC_WooMercadoPagoTicket_Gateway'
603
+ );
604
+ }
605
+
606
+ // Notify that access_token are not valid.
607
+ public function credentialsMissingMessage() {
608
+ echo '<div class="error"><p><strong>' .
609
+ __( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
610
+ '</strong>: ' .
611
+ sprintf(
612
+ __( 'Your Mercado Pago credentials Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
613
+ '<a href="' . $this->admin_url() . '">' .
614
+ __( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
615
+ '</p></div>';
616
+ }
617
+
618
+ public function getCountryName( $site_id ) {
619
+ $country = $site_id;
620
+ switch ( $site_id ) {
621
+ case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
622
+ case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
623
+ case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
624
+ case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
625
+ case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
626
+ case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
627
+ case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
628
+ }
629
+ }
630
+
631
+ /*
632
+ * ========================================================================
633
+ * IPN MECHANICS
634
+ * ========================================================================
635
+ */
636
+
637
+ // This call checks any incoming notifications from Mercado Pago server.
638
+ public function check_ipn_response() {
639
+ @ob_clean();
640
+ if ( 'yes' == $this->debug ) {
641
+ $this->log->add( $this->id, $this->id .
642
+ ': @[check_ipn_response] - Received _get content: ' .
643
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
644
+ }
645
+ $data = $this->check_ipn_request_is_valid( $_GET );
646
+ if ( $data ) {
647
+ header( 'HTTP/1.1 200 OK' );
648
+ do_action( 'valid_mercadopagocustom_ipn_request', $data );
649
+ } else {
650
+ if ( 'yes' == $this->debug ) {
651
+ $this->log->add( $this->id, $this->id .
652
+ ': @[check_ipn_response] - Mercado Pago Request Failure: ' .
653
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
654
+ }
655
+ wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
656
+ }
657
+ }
658
+
659
+ // Get received data from IPN and checks if we have an associated
660
+ // payment. If we have these information, we return data to be
661
+ // processed by successful_request function.
662
+ public function check_ipn_request_is_valid( $data ) {
663
+ if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
664
+ if ( 'yes' == $this->debug ) {
665
+ $this->log->add( $this->id, $this->id .
666
+ ': @[check_ipn_request_is_valid] - data_id or type not set: ' .
667
+ json_encode( $data, JSON_PRETTY_PRINT ) );
668
+ }
669
+ return false; // No ID? No process!
670
+ }
671
+ $mp = new MP( $this->access_token );
672
+ $mp->sandbox_mode( false );
673
+ try {
674
+ $access_token = array( "access_token" => $mp->get_access_token() );
675
+ if ( $data[ "type" ] == 'payment' ) {
676
+ $payment_info = $mp->get( "/v1/payments/" . $data[ "data_id" ], $access_token, false );
677
+ if ( !is_wp_error( $payment_info ) &&
678
+ ( $payment_info[ "status" ] == 200 || $payment_info[ "status" ] == 201 ) ) {
679
+ return $payment_info[ 'response' ];
680
+ } else {
681
+ if ( 'yes' == $this->debug ) {
682
+ $this->log->add( $this->id, $this->id .
683
+ ': @[check_ipn_request_is_valid] - error when processing received data: ' .
684
+ json_encode( $payment_info, JSON_PRETTY_PRINT ) );
685
+ }
686
+ return false;
687
+ }
688
+ }
689
+ } catch ( MercadoPagoException $e ) {
690
+ if ( 'yes' == $this->debug ) {
691
+ $this->log->add(
692
+ $this->id, $this->id .
693
+ ': @[check_ipn_request_is_valid] - MercadoPagoException: ' .
694
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
695
+ }
696
+ return false;
697
+ }
698
+ return true;
699
+ }
700
+
701
+ // Properly handles each case of notification, based in payment status.
702
+ public function successful_request( $data ) {
703
+ if ( 'yes' == $this->debug ) {
704
+ $this->log->add( $this->id, $this->id .
705
+ ': @[successful_request] - starting to process ipn update...' );
706
+ }
707
+ $order_key = $data[ 'external_reference' ];
708
+ if ( !empty( $order_key ) ) {
709
+ $order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
710
+ $order = new WC_Order( $order_id );
711
+ // Checks whether the invoice number matches the order, if true processes the payment
712
+ if ( $order->id === $order_id ) {
713
+ if ( 'yes' == $this->debug ) {
714
+ $this->log->add( $this->id, $this->id .
715
+ ': @[successful_request] - got order with ID ' . $order->id .
716
+ ' and status ' . $data[ 'status' ] );
717
+ }
718
+ // Order details.
719
+ if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
720
+ update_post_meta(
721
+ $order_id,
722
+ __( 'Payer email',
723
+ 'woocommerce-mercadopago-module' ),
724
+ $data[ 'payer' ][ 'email' ]
725
+ );
726
+ }
727
+ if ( !empty( $data[ 'payment_type_id' ] ) ) {
728
+ update_post_meta(
729
+ $order_id,
730
+ __( 'Payment type',
731
+ 'woocommerce-mercadopago-module' ),
732
+ $data[ 'payment_type_id' ]
733
+ );
734
+ }
735
+ if ( !empty( $data ) ) {
736
+ update_post_meta(
737
+ $order_id,
738
+ __( 'Mercado Pago Payment ID',
739
+ 'woocommerce-mercadopago-module' ),
740
+ $data[ 'id' ]
741
+ );
742
+ }
743
+ // Switch the status and update in WooCommerce
744
+ switch ( $data[ 'status' ] ) {
745
+ case 'approved':
746
+ $order->add_order_note(
747
+ 'Mercado Pago: ' . __( 'Payment approved.',
748
+ 'woocommerce-mercadopago-module' )
749
+ );
750
+ $order->payment_complete();
751
+ break;
752
+ case 'pending':
753
+ $order->add_order_note(
754
+ 'Mercado Pago: ' . __( 'Customer haven\'t paid yet.',
755
+ 'woocommerce-mercadopago-module' )
756
+ );
757
+ break;
758
+ case 'in_process':
759
+ $order->update_status(
760
+ 'on-hold',
761
+ 'Mercado Pago: ' . __( 'Payment under review.',
762
+ 'woocommerce-mercadopago-module' )
763
+ );
764
+ break;
765
+ case 'rejected':
766
+ $order->update_status(
767
+ 'failed',
768
+ 'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.',
769
+ 'woocommerce-mercadopago-module' )
770
+ );
771
+ break;
772
+ case 'refunded':
773
+ $order->update_status(
774
+ 'refunded',
775
+ 'Mercado Pago: ' . __( 'The payment was refunded to the customer.',
776
+ 'woocommerce-mercadopago-module' )
777
+ );
778
+ break;
779
+ case 'cancelled':
780
+ $order->update_status(
781
+ 'cancelled',
782
+ 'Mercado Pago: ' . __( 'The payment was cancelled.',
783
+ 'woocommerce-mercadopago-module' )
784
+ );
785
+ break;
786
+ case 'in_mediation':
787
+ $order->add_order_note(
788
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
789
+ 'woocommerce-mercadopago-module' )
790
+ );
791
+ break;
792
+ case 'charged-back':
793
+ $order->add_order_note(
794
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
795
+ 'woocommerce-mercadopago-module' )
796
+ );
797
+ break;
798
+ default:
799
+ break;
800
+ }
801
+ }
802
+ }
803
+ }
804
+
805
+ }
mercadopago/sdk/lib/cacert.pem CHANGED
File without changes
mercadopago/sdk/lib/mercadopago.php CHANGED
@@ -75,6 +75,82 @@ class MP {
75
  return $this->access_data['access_token'];
76
  }
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  /**
79
  * Get information for specific payment
80
  * @param int $id
@@ -203,18 +279,21 @@ class MP {
203
  * @param array $preference
204
  * @return array(json)
205
  */
206
- public function create_preference($preference) {
207
- $request = array(
208
- "uri" => "/checkout/preferences",
209
- "params" => array(
210
- "access_token" => $this->get_access_token()
211
- ),
212
- "data" => $preference
213
- );
214
-
215
- $preference_result = MPRestClient::post($request);
216
- return $preference_result;
217
- }
 
 
 
218
 
219
  /**
220
  * Update a checkout preference
@@ -251,6 +330,26 @@ class MP {
251
  $preference_result = MPRestClient::get($request);
252
  return $preference_result;
253
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
 
255
  /**
256
  * Create a preapproval payment
75
  return $this->access_data['access_token'];
76
  }
77
 
78
+ /* APIs v1 */
79
+ /**
80
+ * Create a payment v1
81
+ * @param array $preference
82
+ * @return array(json)
83
+ */
84
+ public function search_paymentV1($id) {
85
+ $request = array(
86
+ "uri" => "/v1/payments/" . $id,
87
+ "params" => array(
88
+ "access_token" => $this->get_access_token()
89
+ )
90
+ );
91
+ $payment = MPRestClient::get($request);
92
+ return $payment;
93
+ }
94
+ public function get_or_create_customer($payer_email) {
95
+ $customer = $this->search_customer($payer_email);
96
+ if ($customer['status'] == 200 && $customer['response']['paging']['total'] > 0) {
97
+ $customer = $customer['response']['results'][0];
98
+ } else {
99
+ $resp = $this->create_customer($payer_email);
100
+ $customer = $resp['response'];
101
+ }
102
+ return $customer;
103
+ }
104
+ public function create_customer($email) {
105
+ $request = array(
106
+ "uri" => "/v1/customers",
107
+ "params" => array(
108
+ "access_token" => $this->get_access_token()
109
+ ),
110
+ "data" => array(
111
+ "email" => $email
112
+ )
113
+ );
114
+ $customer = MPRestClient::post($request);
115
+ return $customer;
116
+ }
117
+ public function search_customer($email) {
118
+ $request = array(
119
+ "uri" => "/v1/customers/search",
120
+ "params" => array(
121
+ "access_token" => $this->get_access_token(),
122
+ "email" => $email
123
+ )
124
+ );
125
+ $customer = MPRestClient::get($request);
126
+ return $customer;
127
+ }
128
+ public function create_card_in_customer($customer_id, $token, $payment_method_id = null, $issuer_id = null) {
129
+ $request = array(
130
+ "uri" => "/v1/customers/" . $customer_id . "/cards",
131
+ "params" => array(
132
+ "access_token" => $this->get_access_token()
133
+ ),
134
+ "data" => array(
135
+ "token" => $token,
136
+ "issuer_id" => $issuer_id,
137
+ "payment_method_id" => $payment_method_id
138
+ )
139
+ );
140
+ $card = MPRestClient::post($request);
141
+ return $card;
142
+ }
143
+ public function get_all_customer_cards($customer_id, $token) {
144
+ $request = array(
145
+ "uri" => "/v1/customers/" . $customer_id . "/cards",
146
+ "params" => array(
147
+ "access_token" => $this->get_access_token()
148
+ )
149
+ );
150
+ $cards = MPRestClient::get($request);
151
+ return $cards;
152
+ }
153
+
154
  /**
155
  * Get information for specific payment
156
  * @param int $id
279
  * @param array $preference
280
  * @return array(json)
281
  */
282
+ public function create_preference($preference) {
283
+ $request = array(
284
+ "uri" => "/checkout/preferences",
285
+ "params" => array(
286
+ "access_token" => $this->get_access_token()
287
+ ),
288
+ "headers" => array(
289
+ "user-agent" => "platform:desktop,type:woocommerce,so:2.0.2"
290
+ ),
291
+ "data" => $preference
292
+ );
293
+
294
+ $preference_result = MPRestClient::post($request);
295
+ return $preference_result;
296
+ }
297
 
298
  /**
299
  * Update a checkout preference
330
  $preference_result = MPRestClient::get($request);
331
  return $preference_result;
332
  }
333
+
334
+ /**
335
+ * Create a checkout preference
336
+ * @param array $preference
337
+ * @return array(json)
338
+ */
339
+ public function create_payment($preference) {
340
+ $request = array(
341
+ "uri" => "/v1/payments",
342
+ "params" => array(
343
+ "access_token" => $this->get_access_token()
344
+ ),
345
+ "headers" => array(
346
+ "X-Tracking-Id" => "platform:v1-whitelabel,type:woocommerce,so:2.0.2"
347
+ ),
348
+ "data" => $preference
349
+ );
350
+ $payment = MPRestClient::post($request);
351
+ return $payment;
352
+ }
353
 
354
  /**
355
  * Create a preapproval payment
templates/credit-card/payment-form.php ADDED
@@ -0,0 +1,932 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Part of Woo Mercado Pago Module
4
+ * Author - Mercado Pago
5
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
6
+ * Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
7
+ * License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
8
+ */
9
+
10
+ if ( !defined( 'ABSPATH' ) ) {
11
+ exit;
12
+ }
13
+ ?>
14
+
15
+ <div width="100%" style="margin:1px; padding:36px 36px 16px 36px; background:white; ">
16
+ <img class="logo" src="<?php echo ( $images_path . 'mplogo.png' ); ?>" width="156" height="40" />
17
+ <?php if ( !empty( $banner_path ) ) { ?>
18
+ <img class="mp-creditcard-banner" src="<?php echo $banner_path; ?>" width="312" height="40" />
19
+ <?php } ?>
20
+ </div>
21
+ <fieldset style="background:white; ">
22
+
23
+ <!-- payment method -->
24
+ <div id="mercadopago-form-customer-and-card" style="padding:0px 36px 0px 36px;">
25
+ <div class="mp-box-inputs mp-line">
26
+ <label for="paymentMethodIdSelector"><?php echo $form_labels['form']['payment_method']; ?> <em>*</em></label>
27
+ <select id="paymentMethodSelector" name="mercadopago_custom[paymentMethodSelector]" data-checkout='cardId'>
28
+ <optgroup label=<?php echo $form_labels['form']['your_card']; ?> id="payment-methods-for-customer-and-cards">
29
+ <?php foreach ( $customer_cards as $card) { ?>
30
+ <option value=<?php echo $card["id"]; ?>
31
+ first_six_digits=<?php echo $card["first_six_digits"]; ?>
32
+ last_four_digits=<?php echo $card["last_four_digits"]; ?>
33
+ security_code_length=<?php echo $card["security_code"]["length"]; ?>
34
+ type_checkout="customer_and_card"
35
+ payment_method_id=<?php echo $card["payment_method"]["id"]; ?>>
36
+ <?php echo ucfirst($card["payment_method"]["name"]); ?> <?php echo $form_labels['form']['ended_in']; ?> <?php echo $card["last_four_digits"]; ?>
37
+ </option>
38
+ <?php } ?>
39
+ </optgroup>
40
+ <optgroup label="<?php echo $form_labels['form']['other_cards']; ?>" id="payment-methods-list-other-cards">
41
+ <option value="-1"><?php echo $form_labels['form']['other_card']; ?></option>
42
+ </optgroup>
43
+ </select>
44
+ </div>
45
+ <div class="mp-box-inputs mp-line" id="mp-securityCode-customer-and-card">
46
+ <div class="mp-box-inputs mp-col-45">
47
+ <label for="customer-and-card-securityCode"><?php echo $form_labels['form']['security_code']; ?> <em>*</em></label>
48
+ <input type="text" id="customer-and-card-securityCode" data-checkout="securityCode"
49
+ name="mercadopago_custom[securityCode]" autocomplete="off" maxlength="4"
50
+ style="padding: 8px; background: url( <?php echo ( $images_path . 'cvv.png' ); ?> ) 98% 50% no-repeat;"/>
51
+ <span class="mp-error" id="mp-error-224" data-main="#customer-and-card-securityCode"> <?php echo $form_labels['error']['224']; ?> </span>
52
+ <span class="mp-error" id="mp-error-E302" data-main="#customer-and-card-securityCode"> <?php echo $form_labels['error']['E302']; ?> </span>
53
+ <span class="mp-error" id="mp-error-E203" data-main="#customer-and-card-securityCode"> <?php echo $form_labels['error']['E203']; ?> </span>
54
+ </div>
55
+ </div>
56
+ </div> <!-- end mercadopago-form-osc -->
57
+
58
+ <div id="mercadopago-form" style="padding:0px 36px 0px 36px;">
59
+ <!-- Card Number -->
60
+ <div class="mp-box-inputs mp-col-100">
61
+ <label for="cardNumber"><?php echo $form_labels['form']['credit_card_number']; ?> <em>*</em></label>
62
+ <input type="text" id="cardNumber" data-checkout="cardNumber" autocomplete="off" maxlength="19"/>
63
+ <span class="mp-error" id="mp-error-205" data-main="#cardNumber"> <?php echo $form_labels['error']['205']; ?> </span>
64
+ <span class="mp-error" id="mp-error-E301" data-main="#cardNumber"> <?php echo $form_labels['error']['E301']; ?> </span>
65
+ </div>
66
+ <!-- Expiry Date -->
67
+ <div class="mp-box-inputs mp-line">
68
+ <div class="mp-box-inputs mp-col-45">
69
+ <label for="cardExpirationMonth"><?php echo $form_labels['form']['expiration_month']; ?> <em>*</em></label>
70
+ <select id="cardExpirationMonth" data-checkout="cardExpirationMonth" name="mercadopago_custom[cardExpirationMonth]">
71
+ <option value="-1"> <?php echo $form_labels['form']['month']; ?> </option>
72
+ <?php for ($x=1; $x<=12; $x++): ?>
73
+ <option value="<?php echo $x; ?>"> <?php echo $x; ?></option>
74
+ <?php endfor; ?>
75
+ </select>
76
+ </div>
77
+ <div class="mp-box-inputs mp-col-10">
78
+ <div id="mp-separete-date">
79
+ /
80
+ </div>
81
+ </div>
82
+ <div class="mp-box-inputs mp-col-45">
83
+ <label for="cardExpirationYear"><?php echo $form_labels['form']['expiration_year']; ?> <em>*</em></label>
84
+ <select id="cardExpirationYear" data-checkout="cardExpirationYear" name="mercadopago_custom[cardExpirationYear]">
85
+ <option value="-1"> <?php echo $form_labels['form']['year']; ?> </option>
86
+ <?php for ($x=date("Y"); $x<= date("Y") + 10; $x++): ?>
87
+ <option value="<?php echo $x; ?>"> <?php echo $x; ?> </option>
88
+ <?php endfor; ?>
89
+ </select>
90
+ </div>
91
+ <span class="mp-error" id="mp-error-208" data-main="#cardExpirationMonth"> <?php echo $form_labels['error']['208']; ?> </span>
92
+ <span class="mp-error" id="mp-error-209" data-main="#cardExpirationYear"> </span>
93
+ <span class="mp-error" id="mp-error-325" data-main="#cardExpirationMonth"> <?php echo $form_labels['error']['325']; ?> </span>
94
+ <span class="mp-error" id="mp-error-326" data-main="#cardExpirationYear"> </span>
95
+ </div>
96
+ <!-- Card Holder Name -->
97
+ <div class="mp-box-inputs mp-col-100">
98
+ <label for="cardholderName"><?php echo $form_labels['form']['card_holder_name']; ?> <em>*</em></label>
99
+ <input type="text" id="cardholderName" name="mercadopago_custom[cardholderName]" data-checkout="cardholderName" autocomplete="off" />
100
+ <span class="mp-error" id="mp-error-221" data-main="#cardholderName"> <?php echo $form_labels['error']['221']; ?> </span>
101
+ <span class="mp-error" id="mp-error-316" data-main="#cardholderName"> <?php echo $form_labels['error']['316']; ?> </span>
102
+ </div>
103
+ <!-- CVV -->
104
+ <div class="mp-box-inputs mp-line">
105
+ <div class="mp-box-inputs mp-col-45">
106
+ <label for="securityCode"><?php echo $form_labels['form']['security_code']; ?> <em>*</em></label>
107
+ <input type="text" id="securityCode" data-checkout="securityCode" name="mercadopago_custom[securityCode]" autocomplete="off" maxlength="4" style="padding: 8px; background: url( <?php echo ( $images_path . 'cvv.png' ); ?> ) 98% 50% no-repeat;" />
108
+ <span class="mp-error" id="mp-error-224" data-main="#securityCode"> <?php echo $form_labels['error']['224']; ?> </span>
109
+ <span class="mp-error" id="mp-error-E302" data-main="#securityCode"> <?php echo $form_labels['error']['E302']; ?> </span>
110
+ </div>
111
+ </div>
112
+ <!-- Document Type -->
113
+ <div class="mp-box-inputs mp-col-100 mp-doc">
114
+ <div class="mp-box-inputs mp-col-35 mp-docType">
115
+ <label for="docType"><?php echo $form_labels['form']['document_type']; ?> <em>*</em></label>
116
+ <select id="docType" data-checkout="docType" name="mercadopago_custom[docType]"></select>
117
+ <span class="mp-error" id="mp-error-212" data-main="#docType"> <?php echo $form_labels['error']['212']; ?> </span>
118
+ <span class="mp-error" id="mp-error-322" data-main="#docType"> <?php echo $form_labels['error']['322']; ?> </span>
119
+ </div>
120
+ <div class="mp-box-inputs mp-col-65 mp-docNumber">
121
+ <label for="docNumber"><?php echo $form_labels['form']['document_number']; ?> <em>*</em></label>
122
+ <input type="text" id="docNumber" data-checkout="docNumber" name="mercadopago_custom[docNumber]" autocomplete="off" />
123
+ <span class="mp-error" id="mp-error-214" data-main="#docNumber"> <?php echo $form_labels['error']['214']; ?> </span>
124
+ <span class="mp-error" id="mp-error-324" data-main="#docNumber"> <?php echo $form_labels['error']['324']; ?> </span>
125
+ </div>
126
+ </div>
127
+ <!-- Issuer -->
128
+ <div class="mp-box-inputs mp-col-100 mp-issuer">
129
+ <label for="issuer"><?php echo $form_labels['form']['issuer']; ?> <em>*</em></label>
130
+ <select id="issuer" data-checkout="issuer" name="mercadopago_custom[issuer]"></select>
131
+ <span class="mp-error" id="mp-error-220" data-main="#issuer"> <?php echo $form_labels['error']['220']; ?> </span>
132
+ </div>
133
+ </div> <!-- end #mercadopago-form -->
134
+
135
+ <div class="mp-box-inputs mp-col-100" style="padding:0px 36px 0px 36px;">
136
+ <label for="installments"><?php echo $form_labels['form']['installments']; ?> <em>*</em></label>
137
+ <select id="installments" data-checkout="installments" name="mercadopago_custom[installments]"></select>
138
+ </div>
139
+ <div class="mp-box-inputs mp-line" style="padding:0px 36px 0px 36px;">
140
+ <!-- <div class="mp-box-inputs mp-col-50">
141
+ <input type="submit" id="submit" value="Pay">
142
+ </div> -->
143
+ <!-- NOT DELETE LOADING-->
144
+ <div class="mp-box-inputs mp-col-25">
145
+ <div id="mp-box-loading"></div>
146
+ </div>
147
+ </div>
148
+ <div class="mp-box-inputs mp-col-100" id="mercadopago-utilities" style="padding:0px 36px 0px 36px;">
149
+ <input type="hidden" id="site_id" name="mercadopago_custom[site_id]"/>
150
+ <input type="hidden" id="amount" value='<?php echo $amount; ?>' name="mercadopago_custom[amount]"/>
151
+ <input type="hidden" id="paymentMethodId" name="mercadopago_custom[paymentMethodId]"/>
152
+ <input type="hidden" id="token" name="mercadopago_custom[token]"/>
153
+ <input type="hidden" id="cardTruncated" name="mercadopago_custom[cardTruncated]"/>
154
+ <input type="hidden" id="CustomerAndCard" name="mercadopago_custom[CustomerAndCard]"/>
155
+ <input type="hidden" id="CustomerId" value='<?php echo $customerId; ?>' name="mercadopago_custom[CustomerId]"/>
156
+ </div>
157
+
158
+ </fieldset>
159
+
160
+ <script type="text/javascript">
161
+
162
+ (function() {
163
+
164
+ var MPv1 = {
165
+ debug: true,
166
+ add_truncated_card: true,
167
+ site_id: '',
168
+ public_key: '',
169
+ customer_and_card: {
170
+ default: true,
171
+ status: true
172
+ },
173
+ create_token_on: {
174
+ event: true, //if true create token on event, if false create on click and ignore others events. eg: paste or keyup
175
+ keyup: false,
176
+ paste: true,
177
+ },
178
+ inputs_to_create_token: [
179
+ "cardNumber",
180
+ "cardExpirationMonth",
181
+ "cardExpirationYear",
182
+ "cardholderName",
183
+ "securityCode",
184
+ "docType",
185
+ "docNumber"
186
+ ],
187
+
188
+ inputs_to_create_token_customer_and_card: [
189
+ "paymentMethodSelector",
190
+ "securityCode"
191
+ ],
192
+
193
+ selectors: {
194
+
195
+ paymentMethodSelector: "#paymentMethodSelector",
196
+ pmCustomerAndCards: "#payment-methods-for-customer-and-cards",
197
+ pmListOtherCards: "#payment-methods-list-other-cards",
198
+ mpSecurityCodeCustomerAndCard: "#mp-securityCode-customer-and-card",
199
+
200
+ cardNumber: "#cardNumber",
201
+ cardExpirationMonth: "#cardExpirationMonth",
202
+ cardExpirationYear: "#cardExpirationYear",
203
+ cardholderName: "#cardholderName",
204
+ securityCode: "#securityCode",
205
+ docType: "#docType",
206
+ docNumber: "#docNumber",
207
+ issuer: "#issuer",
208
+ installments: "#installments",
209
+
210
+ mpDoc: ".mp-doc",
211
+ mpIssuer: ".mp-issuer",
212
+ mpDocType: ".mp-docType",
213
+ mpDocNumber: ".mp-docNumber",
214
+ // mpPaymentMethodSelector: ".mp-paymentMethodsSelector",
215
+
216
+ paymentMethodId: "#paymentMethodId",
217
+ amount: "#amount",
218
+ token: "#token",
219
+ cardTruncated: "#cardTruncated",
220
+ site_id: "#site_id",
221
+ CustomerAndCard: '#CustomerAndCard',
222
+
223
+ box_loading: "#mp-box-loading",
224
+ submit: "#submit",
225
+ form: '#mercadopago-form',
226
+ formCustomerAndCard: '#mercadopago-form-customer-and-card',
227
+ utilities_fields: "#mercadopago-utilities"
228
+ },
229
+ text: {
230
+ choose: "Choose",
231
+ other_bank: "Other Bank"
232
+ },
233
+ paths: {
234
+ loading: "images/loading.gif"
235
+ }
236
+ }
237
+
238
+ MPv1.getBin = function() {
239
+ var cardSelector = document.querySelector(MPv1.selectors.paymentMethodSelector);
240
+ if (cardSelector && cardSelector[cardSelector.options.selectedIndex].value != "-1") {
241
+ return cardSelector[cardSelector.options.selectedIndex].getAttribute('first_six_digits');
242
+ }
243
+
244
+ var ccNumber = document.querySelector(MPv1.selectors.cardNumber);
245
+ return ccNumber.value.replace(/[ .-]/g, '').slice(0, 6);
246
+ }
247
+
248
+ MPv1.clearOptions = function() {
249
+ var bin = MPv1.getBin();
250
+
251
+ if (bin.length == 0) {
252
+ MPv1.hideIssuer();
253
+
254
+ var selectorInstallments = document.querySelector(MPv1.selectors.installments),
255
+ fragment = document.createDocumentFragment(),
256
+ option = new Option(MPv1.text.choose + "...", '-1');
257
+
258
+ selectorInstallments.options.length = 0;
259
+ fragment.appendChild(option);
260
+ selectorInstallments.appendChild(fragment);
261
+ selectorInstallments.setAttribute('disabled', 'disabled');
262
+ }
263
+ }
264
+
265
+ MPv1.guessingPaymentMethod = function(event) {
266
+
267
+ var bin = MPv1.getBin();
268
+ var amount = MPv1.getAmount();
269
+
270
+ if (event.type == "keyup") {
271
+ if (bin != null && bin.length == 6) {
272
+ Mercadopago.getPaymentMethod({
273
+ "bin": bin
274
+ }, MPv1.setPaymentMethodInfo);
275
+ }
276
+ } else {
277
+ setTimeout(function() {
278
+ if (bin.length >= 6) {
279
+ Mercadopago.getPaymentMethod({
280
+ "bin": bin
281
+ }, MPv1.setPaymentMethodInfo);
282
+ }
283
+ }, 100);
284
+ }
285
+ };
286
+
287
+ MPv1.setPaymentMethodInfo = function(status, response) {
288
+
289
+ if (status == 200) {
290
+
291
+ if (MPv1.site_id != "MLM") {
292
+ //guessing
293
+ document.querySelector(MPv1.selectors.paymentMethodId).value = response[0].id;
294
+
295
+ if (MPv1.customer_and_card.status) {
296
+ document.querySelector(MPv1.selectors.paymentMethodSelector).style.background = "url(" + response[0].secure_thumbnail + ") 95% 50% no-repeat #fff";
297
+ } else {
298
+ document.querySelector(MPv1.selectors.cardNumber).style.background = "url(" + response[0].secure_thumbnail + ") 98% 50% no-repeat #fff";
299
+ }
300
+
301
+ }
302
+
303
+ // check if the security code (ex: Tarshop) is required
304
+ var cardConfiguration = response[0].settings;
305
+ var bin = MPv1.getBin();
306
+ var amount = MPv1.getAmount();
307
+
308
+ Mercadopago.getInstallments({
309
+ "bin": bin,
310
+ "amount": amount
311
+ }, MPv1.setInstallmentInfo);
312
+
313
+ // check if the issuer is necessary to pay
314
+ var issuerMandatory = false,
315
+ additionalInfo = response[0].additional_info_needed;
316
+
317
+ for (var i = 0; i < additionalInfo.length; i++) {
318
+ if (additionalInfo[i] == "issuer_id") {
319
+ issuerMandatory = true;
320
+ }
321
+ };
322
+ if (issuerMandatory && MPv1.site_id != "MLM") {
323
+ var payment_method_id = response[0].id;
324
+ MPv1.getIssuersPaymentMethod(payment_method_id);
325
+ } else {
326
+ MPv1.hideIssuer();
327
+ }
328
+ }
329
+ }
330
+
331
+
332
+ MPv1.changePaymetMethodSelector = function() {
333
+ var payment_method_id = document.querySelector(MPv1.selectors.paymentMethodSelector).value;
334
+ MPv1.getIssuersPaymentMethod(payment_method_id);
335
+
336
+ }
337
+
338
+
339
+ /*
340
+ *
341
+ *
342
+ * Issuers
343
+ *
344
+ */
345
+
346
+ MPv1.getIssuersPaymentMethod = function(payment_method_id) {
347
+ var amount = MPv1.getAmount();
348
+
349
+ //flow: MLM mercadopagocard
350
+ if (payment_method_id == 'mercadopagocard') {
351
+ Mercadopago.getInstallments({
352
+ "payment_method_id": payment_method_id,
353
+ "amount": amount
354
+ }, MPv1.setInstallmentInfo);
355
+ }
356
+
357
+ Mercadopago.getIssuers(payment_method_id, MPv1.showCardIssuers);
358
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.issuer), 'change', MPv1.setInstallmentsByIssuerId);
359
+ }
360
+
361
+
362
+ MPv1.showCardIssuers = function(status, issuers) {
363
+
364
+ //if the API does not return any bank
365
+ if (issuers.length > 0) {
366
+ var issuersSelector = document.querySelector(MPv1.selectors.issuer),
367
+ fragment = document.createDocumentFragment();
368
+
369
+ issuersSelector.options.length = 0;
370
+ var option = new Option(MPv1.text.choose + "...", '-1');
371
+ fragment.appendChild(option);
372
+
373
+ for (var i = 0; i < issuers.length; i++) {
374
+ if (issuers[i].name != "default") {
375
+ option = new Option(issuers[i].name, issuers[i].id);
376
+ } else {
377
+ option = new Option("Otro", issuers[i].id);
378
+ }
379
+ fragment.appendChild(option);
380
+ }
381
+ issuersSelector.appendChild(fragment);
382
+ issuersSelector.removeAttribute('disabled');
383
+ //document.querySelector(MPv1.selectors.issuer).removeAttribute('style');
384
+ } else {
385
+ MPv1.hideIssuer();
386
+ }
387
+ }
388
+
389
+ MPv1.setInstallmentsByIssuerId = function(status, response) {
390
+ var issuerId = document.querySelector(MPv1.selectors.issuer).value;
391
+ var amount = MPv1.getAmount();
392
+
393
+ if (issuerId === '-1') {
394
+ return;
395
+ }
396
+
397
+ var params_installments = {
398
+ "bin": MPv1.getBin(),
399
+ "amount": amount,
400
+ "issuer_id": issuerId
401
+ }
402
+
403
+ if (MPv1.site_id == "MLM") {
404
+ params_installments = {
405
+ "payment_method_id": document.querySelector(MPv1.selectors.paymentMethodSelector).value,
406
+ "amount": amount,
407
+ "issuer_id": issuerId
408
+ }
409
+ }
410
+
411
+ Mercadopago.getInstallments(params_installments, MPv1.setInstallmentInfo);
412
+ }
413
+
414
+ MPv1.hideIssuer = function() {
415
+ var $issuer = document.querySelector(MPv1.selectors.issuer);
416
+ var opt = document.createElement('option');
417
+ opt.value = "-1";
418
+ opt.innerHTML = MPv1.text.other_bank;
419
+
420
+ $issuer.innerHTML = "";
421
+ $issuer.appendChild(opt);
422
+ $issuer.setAttribute('disabled', 'disabled');
423
+ }
424
+
425
+ /*
426
+ *
427
+ *
428
+ * Installments
429
+ *
430
+ */
431
+
432
+ MPv1.setInstallmentInfo = function(status, response) {
433
+ var selectorInstallments = document.querySelector(MPv1.selectors.installments);
434
+
435
+ if (response.length > 0) {
436
+
437
+ var html_option = '<option value="-1">' + MPv1.text.choose + '...</option>';
438
+ payerCosts = response[0].payer_costs;
439
+
440
+ // fragment.appendChild(option);
441
+ for (var i = 0; i < payerCosts.length; i++) {
442
+ html_option += '<option value="' + payerCosts[i].installments + '">' + (payerCosts[i].recommended_message || payerCosts[i].installments) + '</option>';
443
+ }
444
+
445
+ // not take the user's selection if equal
446
+ if (selectorInstallments.innerHTML != html_option) {
447
+ selectorInstallments.innerHTML = html_option;
448
+ }
449
+
450
+ selectorInstallments.removeAttribute('disabled');
451
+ }
452
+ }
453
+
454
+
455
+ /*
456
+ *
457
+ *
458
+ * Customer & Cards
459
+ *
460
+ */
461
+
462
+ MPv1.cardsHandler = function() {
463
+
464
+ var cardSelector = document.querySelector(MPv1.selectors.paymentMethodSelector);
465
+ var type_checkout = cardSelector[cardSelector.options.selectedIndex].getAttribute("type_checkout");
466
+ var amount = MPv1.getAmount();
467
+
468
+
469
+ if (MPv1.customer_and_card.default) {
470
+
471
+ if (cardSelector &&
472
+ cardSelector[cardSelector.options.selectedIndex].value != "-1" &&
473
+ type_checkout == "customer_and_card") {
474
+
475
+ document.querySelector(MPv1.selectors.paymentMethodId).value = cardSelector[cardSelector.options.selectedIndex].getAttribute('payment_method_id');
476
+
477
+ MPv1.clearOptions();
478
+
479
+ MPv1.customer_and_card.status = true;
480
+
481
+ var _bin = cardSelector[cardSelector.options.selectedIndex].getAttribute("first_six_digits");
482
+
483
+ Mercadopago.getPaymentMethod({
484
+ "bin": _bin
485
+ }, MPv1.setPaymentMethodInfo);
486
+
487
+ } else {
488
+ document.querySelector(MPv1.selectors.paymentMethodId).value = cardSelector.value != -1 ? cardSelector.value : "";
489
+ MPv1.customer_and_card.status = false;
490
+ MPv1.resetBackgroundCard();
491
+ MPv1.guessingPaymentMethod({
492
+ type: "keyup"
493
+ });
494
+ }
495
+
496
+ MPv1.setForm();
497
+ }
498
+ }
499
+
500
+ /*
501
+ * Payment Methods
502
+ *
503
+ */
504
+
505
+ MPv1.getPaymentMethods = function() {
506
+ var fragment = document.createDocumentFragment();
507
+ var paymentMethodsSelector = document.querySelector(MPv1.selectors.paymentMethodSelector)
508
+ var mainPaymentMethodSelector = document.querySelector(MPv1.selectors.paymentMethodSelector)
509
+
510
+ //set loading
511
+ mainPaymentMethodSelector.style.background = "url(" + MPv1.paths.loading + ") 95% 50% no-repeat #fff";
512
+
513
+ //if customer and card
514
+ if (MPv1.customer_and_card.status) {
515
+ paymentMethodsSelector = document.querySelector(MPv1.selectors.pmListOtherCards)
516
+
517
+ //clean payment methods
518
+ paymentMethodsSelector.innerHTML = "";
519
+ } else {
520
+ paymentMethodsSelector.innerHTML = "";
521
+ option = new Option(MPv1.text.choose + "...", '-1');
522
+ fragment.appendChild(option);
523
+ }
524
+
525
+ Mercadopago.getAllPaymentMethods(function(code, payment_methods) {
526
+
527
+ for (var x = 0; x < payment_methods.length; x++) {
528
+ var pm = payment_methods[x];
529
+
530
+ if ((pm.payment_type_id == "credit_card" ||
531
+ pm.payment_type_id == "debit_card" ||
532
+ pm.payment_type_id == "prepaid_card") &&
533
+ pm.status == "active") {
534
+
535
+ option = new Option(pm.name, pm.id);
536
+ option.setAttribute("type_checkout", "custom");
537
+ fragment.appendChild(option);
538
+
539
+ } //end if
540
+
541
+ } //end for
542
+
543
+ paymentMethodsSelector.appendChild(fragment);
544
+ mainPaymentMethodSelector.style.background = "#fff";
545
+ });
546
+ }
547
+
548
+ /*
549
+ *
550
+ * Functions related to Create Tokens
551
+ *
552
+ */
553
+
554
+
555
+ MPv1.createTokenByEvent = function() {
556
+
557
+ var $inputs = MPv1.getForm().querySelectorAll('[data-checkout]');
558
+ var $inputs_to_create_token = MPv1.getInputsToCreateToken();
559
+
560
+ console.log("createTokenByEvent", $inputs_to_create_token);
561
+
562
+ for (var x = 0; x < $inputs.length; x++) {
563
+ var element = $inputs[x];
564
+
565
+ //add events only in the required fields
566
+ if ($inputs_to_create_token.indexOf(element.getAttribute("data-checkout")) > -1) {
567
+
568
+ var event = "focusout";
569
+
570
+ if (element.nodeName == "SELECT") {
571
+ event = "change";
572
+ }
573
+
574
+ MPv1.addListenerEvent(element, event, MPv1.validateInputsCreateToken);
575
+
576
+ //for firefox
577
+ MPv1.addListenerEvent(element, "blur", MPv1.validateInputsCreateToken);
578
+
579
+ if (MPv1.create_token_on.keyup) {
580
+ MPv1.addListenerEvent(element, "keyup", MPv1.validateInputsCreateToken);
581
+ }
582
+
583
+ if (MPv1.create_token_on.paste) {
584
+ MPv1.addListenerEvent(element, "paste", MPv1.validateInputsCreateToken);
585
+ }
586
+
587
+ }
588
+ }
589
+ }
590
+
591
+ MPv1.createTokenBySubmit = function() {
592
+ addListenerEvent(document.querySelector(MPv1.selectors.form), 'submit', MPv1.doPay);
593
+ }
594
+
595
+ var doSubmit = false;
596
+
597
+ MPv1.doPay = function(event) {
598
+ event.preventDefault();
599
+ if (!doSubmit) {
600
+ MPv1.createToken();
601
+ return false;
602
+ }
603
+ }
604
+
605
+
606
+ MPv1.validateInputsCreateToken = function() {
607
+ var valid_to_create_token = true;
608
+ var $inputs = MPv1.getForm().querySelectorAll('[data-checkout]');
609
+ var $inputs_to_create_token = MPv1.getInputsToCreateToken();
610
+
611
+ for (var x = 0; x < $inputs.length; x++) {
612
+ var element = $inputs[x];
613
+
614
+ //check is a input to create token
615
+ if ($inputs_to_create_token.indexOf(element.getAttribute("data-checkout")) > -1) {
616
+ if (element.value == -1 || element.value == "") {
617
+ valid_to_create_token = false;
618
+ } //end if check values
619
+ } //end if check data-checkout
620
+ } //end for
621
+
622
+ if (valid_to_create_token) {
623
+ MPv1.createToken();
624
+ }
625
+ }
626
+
627
+ MPv1.createToken = function() {
628
+ MPv1.hideErrors();
629
+
630
+ //show loading
631
+ document.querySelector(MPv1.selectors.box_loading).style.background = "url(" + MPv1.paths.loading + ") 0 50% no-repeat #fff";
632
+
633
+ //form
634
+ var $form = MPv1.getForm();
635
+
636
+ Mercadopago.createToken($form, MPv1.sdkResponseHandler);
637
+
638
+ return false;
639
+ }
640
+
641
+ MPv1.sdkResponseHandler = function(status, response) {
642
+ //hide loading
643
+ document.querySelector(MPv1.selectors.box_loading).style.background = "";
644
+
645
+ if (status != 200 && status != 201) {
646
+ MPv1.showErrors(response);
647
+ } else {
648
+ var token = document.querySelector(MPv1.selectors.token);
649
+ token.value = response.id;
650
+
651
+ if (MPv1.add_truncated_card) {
652
+ var card = MPv1.truncateCard(response);
653
+ document.querySelector(MPv1.selectors.cardTruncated).value = card;
654
+ }
655
+
656
+ if (!MPv1.create_token_on.event) {
657
+ doSubmit = true;
658
+ btn = document.querySelector(MPv1.selectors.form);
659
+ btn.submit();
660
+ }
661
+ }
662
+ }
663
+
664
+ /*
665
+ *
666
+ *
667
+ * useful functions
668
+ *
669
+ */
670
+
671
+
672
+ MPv1.resetBackgroundCard = function() {
673
+ document.querySelector(MPv1.selectors.paymentMethodSelector).style.background = "no-repeat #fff";
674
+ document.querySelector(MPv1.selectors.cardNumber).style.background = "no-repeat #fff";
675
+ }
676
+
677
+
678
+ MPv1.setForm = function() {
679
+ if (MPv1.customer_and_card.status) {
680
+ document.querySelector(MPv1.selectors.form).style.display = 'none';
681
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).removeAttribute('style');
682
+ } else {
683
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).style.display = 'none';
684
+ document.querySelector(MPv1.selectors.form).removeAttribute('style');
685
+ }
686
+
687
+ Mercadopago.clearSession();
688
+
689
+ if (MPv1.create_token_on.event) {
690
+ MPv1.createTokenByEvent();
691
+ MPv1.validateInputsCreateToken();
692
+ }
693
+
694
+ document.querySelector(MPv1.selectors.CustomerAndCard).value = MPv1.customer_and_card.status;
695
+ }
696
+
697
+ MPv1.getForm = function() {
698
+ if (MPv1.customer_and_card.status) {
699
+ return document.querySelector(MPv1.selectors.formCustomerAndCard);
700
+ } else {
701
+ return document.querySelector(MPv1.selectors.form);
702
+ }
703
+ }
704
+
705
+ MPv1.getInputsToCreateToken = function() {
706
+ if (MPv1.customer_and_card.status) {
707
+ return MPv1.inputs_to_create_token_customer_and_card;
708
+ } else {
709
+ return MPv1.inputs_to_create_token;
710
+ }
711
+ }
712
+
713
+ MPv1.truncateCard = function(response_card_token) {
714
+ var first_six_digits;
715
+ var last_four_digits;
716
+
717
+ if (MPv1.customer_and_card.status) {
718
+ var cardSelector = document.querySelector(MPv1.selectors.paymentMethodSelector);
719
+ first_six_digits = cardSelector[cardSelector.options.selectedIndex].getAttribute("first_six_digits").match(/.{1,4}/g)
720
+ last_four_digits = cardSelector[cardSelector.options.selectedIndex].getAttribute("last_four_digits")
721
+ } else {
722
+ first_six_digits = response_card_token.first_six_digits.match(/.{1,4}/g)
723
+ last_four_digits = response_card_token.last_four_digits
724
+ }
725
+
726
+ var card = first_six_digits[0] + " " + first_six_digits[1] + "** **** " + last_four_digits;
727
+ return card;
728
+
729
+ }
730
+
731
+ MPv1.getAmount = function() {
732
+ return document.querySelector(MPv1.selectors.amount).value;
733
+ }
734
+
735
+ /*
736
+ *
737
+ *
738
+ * Show errors
739
+ *
740
+ */
741
+
742
+ MPv1.showErrors = function(response) {
743
+ var $form = MPv1.getForm();
744
+
745
+ for (var x = 0; x < response.cause.length; x++) {
746
+ var error = response.cause[x];
747
+ var $span = $form.querySelector('#mp-error-' + error.code);
748
+ var $input = $form.querySelector($span.getAttribute("data-main"));
749
+
750
+ $span.style.display = 'inline-block';
751
+ $input.classList.add("mp-error-input");
752
+
753
+ }
754
+
755
+ return;
756
+ }
757
+
758
+ MPv1.hideErrors = function() {
759
+
760
+ for (var x = 0; x < document.querySelectorAll('[data-checkout]').length; x++) {
761
+ var $field = document.querySelectorAll('[data-checkout]')[x];
762
+ $field.classList.remove("mp-error-input");
763
+
764
+ } //end for
765
+
766
+ for (var x = 0; x < document.querySelectorAll('.mp-error').length; x++) {
767
+ var $span = document.querySelectorAll('.mp-error')[x];
768
+ $span.style.display = 'none';
769
+
770
+ }
771
+
772
+ return;
773
+ }
774
+
775
+ /*
776
+ *
777
+ * Add events to guessing
778
+ *
779
+ */
780
+
781
+
782
+ MPv1.addListenerEvent = function(el, eventName, handler) {
783
+ if (el.addEventListener) {
784
+ el.addEventListener(eventName, handler);
785
+ } else {
786
+ el.attachEvent('on' + eventName, function() {
787
+ handler.call(el);
788
+ });
789
+ }
790
+ };
791
+
792
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.cardNumber), 'keyup', MPv1.guessingPaymentMethod);
793
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.cardNumber), 'keyup', MPv1.clearOptions);
794
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.cardNumber), 'change', MPv1.guessingPaymentMethod);
795
+
796
+
797
+ // MPv1.cardsHandler();
798
+
799
+
800
+
801
+
802
+ /*
803
+ *
804
+ *
805
+ * Initialization function
806
+ *
807
+ */
808
+
809
+ MPv1.Initialize = function(site_id, public_key) {
810
+
811
+ //sets
812
+ MPv1.site_id = site_id
813
+ MPv1.public_key = public_key
814
+
815
+ Mercadopago.setPublishableKey(MPv1.public_key);
816
+
817
+ //flow: customer & cards
818
+ var selectorPmCustomerAndCards = document.querySelector(MPv1.selectors.pmCustomerAndCards);
819
+ if (MPv1.customer_and_card.default && selectorPmCustomerAndCards.childElementCount > 0) {
820
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.paymentMethodSelector), 'change', MPv1.cardsHandler);
821
+ MPv1.cardsHandler();
822
+ } else {
823
+ //if customer & cards is disabled
824
+ //or customer does not have cards
825
+ MPv1.customer_and_card.status = false;
826
+ document.querySelector(MPv1.selectors.formCustomerAndCard).style.display = 'none';
827
+ }
828
+
829
+ if (MPv1.create_token_on.event) {
830
+ MPv1.createTokenByEvent();
831
+ } else {
832
+ MPv1.createTokenBySubmit()
833
+ }
834
+
835
+ //flow: MLM
836
+ if (MPv1.site_id != "MLM") {
837
+ Mercadopago.getIdentificationTypes();
838
+ }
839
+
840
+ if (MPv1.site_id == "MLM") {
841
+
842
+ //hide documento for mex
843
+ document.querySelector(MPv1.selectors.mpDoc).style.display = 'none';
844
+ // document.querySelector(MPv1.selectors.mpPaymentMethodSelector).removeAttribute('style');
845
+
846
+ // I've added this trying to fix paymentMethodSelector that not appear... by mhama
847
+ document.querySelector(MPv1.selectors.formCustomerAndCard).removeAttribute('style');
848
+ document.querySelector(MPv1.selectors.formCustomerAndCard).style.padding = "36px 36px 16px 36px";
849
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).style.display = 'none';
850
+
851
+ //removing not used fields for this country
852
+ MPv1.inputs_to_create_token.splice(MPv1.inputs_to_create_token.indexOf("docType"), 1);
853
+ MPv1.inputs_to_create_token.splice(MPv1.inputs_to_create_token.indexOf("docNumber"), 1);
854
+
855
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.paymentMethodSelector), 'change', MPv1.changePaymetMethodSelector);
856
+
857
+ //get payment methods and populate selector
858
+ MPv1.getPaymentMethods();
859
+ }
860
+
861
+ //flow: MLB AND MCO
862
+ if (MPv1.site_id == "MLB") {
863
+
864
+ document.querySelector(MPv1.selectors.mpDocType).style.display = 'none';
865
+ document.querySelector(MPv1.selectors.mpIssuer).style.display = 'none';
866
+ //ajust css
867
+ document.querySelector(MPv1.selectors.docNumber).classList.remove("mp-col-75");
868
+ document.querySelector(MPv1.selectors.docNumber).classList.add("mp-col-100");
869
+
870
+ } else if (MPv1.site_id == "MCO") {
871
+ document.querySelector(MPv1.selectors.mpIssuer).style.display = 'none';
872
+ }
873
+
874
+ if (MPv1.debug) {
875
+ document.querySelector(MPv1.selectors.utilities_fields).style.display = 'inline-block';
876
+ console.log(MPv1);
877
+ }
878
+
879
+ document.querySelector(MPv1.selectors.site_id).value = MPv1.site_id;
880
+
881
+ //set form for basic ou customer & cards
882
+ // MPv1.setForm();
883
+
884
+ return;
885
+ }
886
+
887
+
888
+ this.MPv1 = MPv1;
889
+
890
+ }).call();
891
+
892
+ // === Instantiation
893
+
894
+ var mercadopago_site_id = '<?php echo $site_id; ?>';
895
+ var mercadopago_public_key = '<?php echo $public_key; ?>';
896
+
897
+ MPv1.text.choose = '<?php echo $form_labels["form"]["label_choose"]; ?>';
898
+ MPv1.text.other_bank = '<?php echo $form_labels["form"]["label_other_bank"]; ?>';
899
+ MPv1.paths.loading = '<?php echo ( $images_path . "loading.gif" ); ?>';
900
+
901
+ // overriding this function to give form padding attribute
902
+ MPv1.setForm = function() {
903
+ if (MPv1.customer_and_card.status) {
904
+ document.querySelector(MPv1.selectors.form).style.display = 'none';
905
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).removeAttribute('style');
906
+ } else {
907
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).style.display = 'none';
908
+ document.querySelector(MPv1.selectors.form).removeAttribute('style');
909
+ document.querySelector(MPv1.selectors.form).style.padding = '0px 36px 0px 36px';
910
+ }
911
+ Mercadopago.clearSession();
912
+ if (MPv1.create_token_on.event) {
913
+ MPv1.createTokenByEvent();
914
+ MPv1.validateInputsCreateToken();
915
+ }
916
+ document.querySelector(MPv1.selectors.CustomerAndCard).value = MPv1.customer_and_card.status;
917
+ }
918
+
919
+ MPv1.showErrors = function(response) {
920
+ var $form = MPv1.getForm();
921
+ for (var x = 0; x < response.cause.length; x++) {
922
+ var error = response.cause[x];
923
+ var $span = $form.querySelector('#mp-error-' + error.code);
924
+ var $input = $form.querySelector($span.getAttribute("data-main"));
925
+ $span.style.display = 'inline-block';
926
+ $input.classList.add("mp-error-input");
927
+ }
928
+ return;
929
+ }
930
+ MPv1.Initialize(mercadopago_site_id, mercadopago_public_key);
931
+
932
+ </script>
templates/ticket/ticket-form.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Part of Woo Mercado Pago Module
4
+ * Author - Mercado Pago
5
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
6
+ * Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
7
+ * License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
8
+ */
9
+
10
+ if ( ! defined( 'ABSPATH' ) ) {
11
+ exit;
12
+ }
13
+ ?>
14
+
15
+ <div width="100%" style="margin:1px; padding:36px 36px 16px 36px; background:white; ">
16
+ <img class="logo" src="<?php echo ( $images_path . 'mplogo.png' ); ?>" width="156" height="40" />
17
+ <img class="logo" src="<?php echo ( $images_path . 'boleto.png' ); ?>" width="90" height="40" style="float:right;"/>
18
+ </div>
19
+ <fieldset id="mercadopago-form" style="background:white; ">
20
+ <div style="padding:0px 36px 0px 36px;">
21
+
22
+ <p>
23
+ <?php echo $form_labels[ 'payment_instructions' ] ?>
24
+ <br />
25
+ <?php echo $form_labels[ 'ticket_note' ] ?>
26
+ </p>
27
+ <?php if ( count( $payment_methods ) > 1 ) { ?>
28
+ <div class="mp-box-inputs mp-col-100">
29
+ <!--<select id="paymentMethodId" name="mercadopago_ticket[paymentMethodId]">
30
+ <option value="-1"> <?php /*echo $form_labels[ 'label_choose' ] . " ...";*/ ?> </option>-->
31
+ <?php $atFirst = true; ?>
32
+ <?php foreach ( $payment_methods as $payment ) { ?>
33
+ <!--<option value="<?php /*echo $payment[ 'id' ];*/ ?>"> <?php /*echo $payment[ 'name' ];*/ ?></option>-->
34
+ <div class="mp-box-inputs mp-line">
35
+ <div id="paymentMethodId" class="mp-box-inputs mp-col-5">
36
+ <input type="radio" class="input-radio" name="mercadopago_ticket[paymentMethodId]"
37
+ style="height:16px; width:16px;" value="<?php echo $payment[ 'id' ]; ?>"
38
+ <?php if ( $atFirst ) { ?> checked="checked" } <?php } ?> />
39
+ </div>
40
+ <div class="mp-box-inputs mp-col-45">
41
+ <label>
42
+ <img src="<?php echo $payment[ 'thumbnail' ]; ?>" alt="<?php echo $payment[ 'name' ]; ?>" />
43
+ &nbsp;(<?php echo $payment[ 'name' ]; ?>)
44
+ </label>
45
+ </div>
46
+ </div>
47
+ <?php $atFirst = false; ?>
48
+ <?php } ?>
49
+ <!--</select>-->
50
+ </div>
51
+ <?php } else { ?>
52
+ <div class="mp-box-inputs mp-col-100" style="display:none;">
53
+ <select id="paymentMethodId" name="mercadopago_ticket[paymentMethodId]">
54
+ <?php foreach ( $payment_methods as $payment ) { ?>
55
+ <option value="<?php echo $payment[ 'id' ]; ?>"
56
+ style="padding: 8px; background: url( 'http://img.mlstatic.com/org-img/MP3/API/logos/bapropagos.gif' ); ?> ) 98% 50% no-repeat;"> <?php echo $payment[ 'name' ]; ?></option>
57
+ <?php } ?>
58
+ </select>
59
+ </div>
60
+ <?php } ?>
61
+
62
+ <div class="mp-box-inputs mp-line">
63
+ <!-- <div class="mp-box-inputs mp-col-50">
64
+ <input type="submit" value="Pay" id="submit"/>
65
+ </div> -->
66
+ <div class="mp-box-inputs mp-col-25">
67
+ <div id="mp-box-loading">
68
+ </div>
69
+ </div>
70
+ </div>
71
+
72
+ <!-- utilities -->
73
+ <div class="mp-box-inputs mp-col-100" id="mercadopago-utilities">
74
+ <input type="hidden" id="public_key" value="<?php echo $public_key; ?>" name="mercadopago_ticket[amount]"/>
75
+ <input type="hidden" id="site_id" value="<?php echo $site_id; ?>" name="mercadopago_ticket[site_id]"/>
76
+ <input type="hidden" id="amount" value="<?php echo $amount; ?>" name="mercadopago_ticket[amount]"/>
77
+ </div>
78
+
79
+ </div>
80
+ </fieldset>