WooCommerce MercadoPago - Version old.2.1.0

Version Description

Download this release

Release Info

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

Code changes from version old.1.0.3 to old.2.1.0

Files changed (86) hide show
  1. README.txt +170 -60
  2. assets/css/custom_checkout_mercadopago.css +170 -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 +607 -180
  64. languages/woocommerce-mercadopago-module-es_CL.mo +0 -0
  65. languages/woocommerce-mercadopago-module-es_CL.po +608 -181
  66. languages/woocommerce-mercadopago-module-es_CO.mo +0 -0
  67. languages/woocommerce-mercadopago-module-es_CO.po +608 -188
  68. languages/woocommerce-mercadopago-module-es_ES.mo +0 -0
  69. languages/woocommerce-mercadopago-module-es_ES.po +775 -0
  70. languages/woocommerce-mercadopago-module-es_MX.mo +0 -0
  71. languages/woocommerce-mercadopago-module-es_MX.po +608 -181
  72. languages/woocommerce-mercadopago-module-es_PE.mo +0 -0
  73. languages/woocommerce-mercadopago-module-es_PE.po +775 -0
  74. languages/woocommerce-mercadopago-module-es_VE.mo +0 -0
  75. languages/woocommerce-mercadopago-module-es_VE.po +608 -181
  76. languages/woocommerce-mercadopago-module-pt_BR.mo +0 -0
  77. languages/woocommerce-mercadopago-module-pt_BR.po +601 -246
  78. languages/woocommerce-mercadopago-module.pot +248 -2
  79. mercadopago-module.php +50 -32
  80. mercadopago/mercadopago-custom-gateway.php +1216 -0
  81. mercadopago/mercadopago-gateway.php +519 -396
  82. mercadopago/mercadopago-ticket-gateway.php +981 -0
  83. mercadopago/sdk/lib/cacert.pem +0 -0
  84. mercadopago/sdk/lib/mercadopago.php +251 -14
  85. templates/credit-card/payment-form.php +1137 -0
  86. templates/ticket/ticket-form.php +348 -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,189 @@ 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.1.0
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 basic 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.1.0.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 - Basic 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/account/credentials?type=basic
52
+ * Brazil: https://www.mercadopago.com/mlb/account/credentials?type=basic
53
+ * Chile: https://www.mercadopago.com/mlc/account/credentials?type=basic
54
+ * Colombia: https://www.mercadopago.com/mco/account/credentials?type=basic
55
+ * Mexico: https://www.mercadopago.com/mlm/account/credentials?type=basic
56
+ * Peru: https://www.mercadopago.com/mpe/account/credentials?type=basic
57
+ * Venezuela: https://www.mercadopago.com/mlv/account/credentials?type=basic
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 - Basic 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 Basic, 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
+ * Enable coupon of campaigns for discounts (for Custom and Ticket);
74
+ * Set binary mode that when charging a credit card, only [approved] or [reject] status will be taken (only for Custom);
75
+ * Set the category of your store (for all solutions);
76
+ * Set a prefix to identify your store, when you have multiple stores for only one Mercado Pago account (for all solutions);
77
+ * Define how your customers will interact with Mercado Pago to pay their orders (only for Basic);
78
+ * Configure the after-pay return behavior (only for Basic);
79
+ * Configure the maximum installments allowed for your customers (only for Basic);
80
+ * Configure the payment methods that you want to not work with Mercado Pago (only for Basic);
81
+ * Enable currency conversion (for all solutions);
82
+ * Enable/disable sandbox mode, where you can test your payments in Mercado Pago sandbox environment (for all solutions);
83
+ * Enables/disable system logs (for all solutions).
84
+
85
+ = In this video, we show how you can install and configure from your WordPress store =
86
+
87
+ [youtube https://www.youtube.com/watch?v=CgV9aVlx5SE]
88
 
89
+ == Frequently Asked Questions ==
 
90
 
91
+ = What is Mercado Pago? =
92
+ Please, take a look: https://vimeo.com/125253122
93
 
94
+ = Any questions? =
95
+ Please, check our FAQ at: https://www.mercadopago.com.br/ajuda/
96
 
97
+ == Screenshots ==
98
 
99
+ 1. `Custom Checkout`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
+ 2. `One Click Payment`
102
 
103
+ 3. `Tickets`
104
 
105
+ 4. `Discount Coupon`
106
 
107
+ 5. `Configuration of Basic Checkout`
108
 
109
  == Changelog ==
110
 
111
+ = v2.1.0 (25/07/2016) =
112
+ * Mercado Pago Discount Coupon
113
+ - This feature lets Mercado Pago and merchants to use campaigns of discount created in their Mercado Pago accounts.
114
+ * Currency Conversion
115
+ - Added an option to try to use Mercado Pago currency ratio, to automatically convert any currencies to supported/used currency.
116
+ * Improvements
117
+ - Improved credentials validation algorithm;
118
+ - Improved checkout data, with more clean and sanitized info for product image and description.
119
+
120
+ = v2.0.5 (07/07/2016) =
121
+ * Bug fixes
122
+ - Fixed the informative URL of ticket IPN in admin page.
123
+ * Improvements
124
+ - Improved IPN behavior to handle consistent messages with absent IDs.
125
+
126
+ = v2.0.4 (29/06/2016) =
127
+ * Bug fixes
128
+ - We have wrote a snippet to handle the absent shipment cost problem;
129
+ - Fixed some URLs of the credentials link for Basic Checkout.
130
+ * Improvements
131
+ - Added a message in admin view when currency is different from used locally (used in credential's country).
132
+
133
+ = v2.0.3 (21/06/2016) =
134
+ * Bug fix in Basic Checkout for WooCommerce v2.6.x
135
+ In WooCommerce v2.6.x, there was a bug related with the ampersand char that was wrongly converted to #38; on URLs and breaking the checkout flow. This update should place a fix to this problem.
136
+
137
+ = v2.0.2 (13/06/2016) =
138
+ * Rollout to Peru
139
+ This plugin is now supporting Peru, which includes Basic Checkout, Custom Checkout, Tickets, and local language translations.
140
+ * Fix a PHP version issue
141
+ 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.
142
+ * Fix a tax issue
143
+ It wasn't been correctly added to the total value in Mercado Pago gateway.
144
+
145
+ = v2.0.1 (09/06/2016) =
146
+ * Customer Cards (One Click Payment)
147
+ 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.
148
+ * SSL verifications for custom checkout and ticket
149
+ 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.
150
+ * Enabling any type of currency without disabling module (now, error message from API)
151
+ 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.
152
+
153
+ = v2.0.0 (01/06/2016) =
154
+ * Custom Checkout for LatAm
155
+ Offer a checkout fully customized to your brand experience with our simple-to-use payments API.
156
+ * Ticket for LatAm
157
+ Now, customer can pay orders with bank tickets.
158
+ * Removed possibility to setting supportable but invalid currency
159
+ 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).
160
+
161
+ = v1.0.5 (29/04/2016) =
162
+ * Removal of extra shipment setup in checkout view
163
+ We have made a workaround to prevent an extra shipment screen to appear.
164
+ * Translation to es_ES
165
+ Users can select Spain as module country, and translation should be ok.
166
+ * Some bug fixes and code improvements
167
+
168
+ = v1.0.4 (15/04/2016) =
169
+ * Added a link to module settings page in plugin page
170
+ 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!
171
+ * Fixed status change when processing with two cards
172
+ When using payments with two cards in Basic 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.
173
 
174
+ = v1.0.3 (23/03/2016) =
175
+ * Improving algorithm when processing IPN
176
+ Async calls and processment were refined.
 
 
177
 
178
  = v1.0.2 (23/03/2016) =
179
  * IPN URL wasn’t triggered when topic=payment
180
+ Fixed a bug for some specific IPN messages of Mercado Pago.
181
 
182
+ = v1.0.1 (23/03/2016) =
183
+ * Added payment ID in order custom fields information
184
+ Added some good informations about the payment in the order view.
185
+ * Removed some unused files/code
186
+ We've made some code cleaning.
187
+ * Redesign of the logic of preferences when creating cart, separating items
188
+ Itens are now separated in cart description. This increases the readability and consistency of informations in API level.
189
+ * Proper information of shipment cost
190
+ Previously, the shipment cost was passed together with the cart total order amount.
191
+
192
+ = v1.0.0 (16/03/2016) =
193
+ * LatAm Basic Checkout support
194
+ Great for merchants who want to get going quickly and easily. This is the basic payment integration with Mercado Pago.
195
+ * Set of configurable fields and customizations
196
+ Title, description, category, and external reference customizations, integrations via iframe, modal, and redirection, with configurable auto-returning, max installments and payment method exclusion setup.
197
+ * Sandbox and debug options
198
+ Basicer can test orders by enabling debug mode or using sandbox environment.
199
+
200
+ == Upgrade Notice ==
201
+
202
+ 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,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ .mp-discount{
142
+ text-transform: uppercase;
143
+ font-size: 12px;
144
+ /*color: #009EE3;*/
145
+ color: #333333;
146
+ display: none;
147
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
148
+ clear: both;
149
+ float: left;
150
+ }
151
+
152
+ /*
153
+ *
154
+ *
155
+ * Error
156
+ *
157
+ *
158
+ */
159
+
160
+ .mp-error{
161
+ text-transform: uppercase;
162
+ font-size: 10px;
163
+ color: red;
164
+ font-weight: bold;
165
+ display: none;
166
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
167
+ clear: both;
168
+ float: left;
169
+ }
170
+
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,8 +14,9 @@ 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"
@@ -23,326 +24,752 @@ msgstr ""
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_AR\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 medio 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 "Basic Checkout"
36
+ msgstr "Checkout Básico"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Personalizado"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Personalizado"
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 medio 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 Personalizado"
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 Personalizado"
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, califíquenos con %s en WordPress.org y de su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Medios 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 de 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 [Número de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Número de tarjeta inválido"
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 expiración 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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 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 intentarlo 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. ¿Esta seguro que ha rellenado correctamente toda la información en el formulario 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 la tienda"
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, PEN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, PEN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Perú"
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 "Medio 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 - Basic Checkout"
466
+ msgstr "Mercado Pago - Checkout Básico"
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 disponibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Basic Checkout"
494
+ msgstr "Habilitar el Checkout Básico"
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 medios 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 le enviaremos el resultado 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 le enviaremos 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 los 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ó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio 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 medio de pago. Se recomienda en efectivo."
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 medio de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta medio 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, realice el pago del ticket para tener su orden 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 Personalizado Inactivo"
665
+
666
+ msgid "Basic Checkout is Inactive"
667
+ msgstr "Checkout Básico Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference."
673
+ msgstr "Por favor, seleccione el emisor de su elección."
674
+
675
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
676
+ msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
677
+
678
+ msgid "Important: The order will be confirmed only after the payment approval."
679
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
680
+
681
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
682
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
683
+
684
+ msgid "Your Card"
685
+ msgstr "Sus Tarjetas"
686
+
687
+ msgid "Other Cards"
688
+ msgstr "Otras Tarjetas"
689
+
690
+ msgid "Other Card"
691
+ msgstr "Otra Tarjeta"
692
+
693
+ msgid "ended in"
694
+ msgstr "terminado en"
695
+
696
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
697
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
698
+
699
+ msgid "ATTENTION: The currency"
700
+ msgstr "ATENCIÓN: La moneda"
701
+
702
+ msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
703
+ msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
704
+
705
+ msgid "Currency conversions should be made outside this module."
706
+ msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
707
+
708
+ msgid "Coupons"
709
+ msgstr "Cupones"
710
+
711
+ msgid "Enable coupons of discounts"
712
+ msgstr "Activar los cupones de descuento"
713
+
714
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
715
+ msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
716
+
717
+ msgid "You will save"
718
+ msgstr "Usted ahorrará"
719
+
720
+ msgid "Apply"
721
+ msgstr "Aplicar"
722
+
723
+ msgid "Remove"
724
+ msgstr "Eliminar"
725
+
726
+ msgid "Please, inform your coupon code"
727
+ msgstr "Por favor, introduzca el código de su cupón"
728
+
729
+ msgid "Please, inform your email in billing address to use this feature"
730
+ msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
731
+
732
+ msgid "Discount for %s coupon"
733
+ msgstr "Descuento para el cupón %s"
734
+
735
+ msgid "Discount provided by store"
736
+ msgstr "Descuento dado por la tienda"
737
+
738
+ msgid "Discount Coupon"
739
+ msgstr "Cupón de Descuento"
740
+
741
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
742
+ msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
743
+
744
+ msgid "ERROR: It was not possible to convert the unsupported currency"
745
+ msgstr "ERROR: No fue posible convertir la moneda no soportada"
746
+
747
+ msgid "to"
748
+ msgstr "para"
749
+
750
+ msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
751
+ msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
752
+
753
+ msgid " is: "
754
+ msgstr " es: "
755
+
756
+ msgid "Currency Conversion"
757
+ msgstr "Conversión de Moneda"
758
+
759
+ msgid "with discount from"
760
+ msgstr "con descuento de"
761
+
762
+ msgid "Total of your purchase:"
763
+ msgstr "Total de su compra:"
764
+
765
+ msgid "Total of your purchase with discount:"
766
+ msgstr "Total de su compra con descuento:"
767
+
768
+ msgid "*Uppon payment approval"
769
+ msgstr "*Con la aprobación de pago"
770
+
771
+ msgid "Terms and Conditions of Use"
772
+ msgstr "Términos y Condiciones de Uso"
773
+
774
+ msgid "Payment converted from"
775
+ msgstr "Pago convertido de"
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,762 @@ 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_CL\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 medio 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 "Basic Checkout"
36
+ msgstr "Checkout Básico"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Personalizado"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Personalizado"
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 medio 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 Personalizado"
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 Personalizado"
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, califíquenos con %s en WordPress.org y de su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Medios 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 de 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 [Número de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Número de tarjeta inválido"
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 expiración 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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 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 intentarlo 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. ¿Esta seguro que ha rellenado correctamente toda la información en el formulario 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 la tienda"
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, PEN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, PEN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Perú"
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 "Medio 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 - Basic Checkout"
466
+ msgstr "Mercado Pago - Checkout Básico"
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 disponibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Basic Checkout"
494
+ msgstr "Habilitar el Checkout Básico"
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 medios 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 le enviaremos el resultado 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 le enviaremos 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 los 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ó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio 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 medio de pago. Se recomienda en efectivo."
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 medio de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta medio 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, realice el pago del ticket para tener su orden 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 Personalizado Inactivo"
665
+
666
+ msgid "Basic Checkout is Inactive"
667
+ msgstr "Checkout Básico Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference."
673
+ msgstr "Por favor, seleccione el emisor de su elección."
674
+
675
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
676
+ msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
677
+
678
+ msgid "Important: The order will be confirmed only after the payment approval."
679
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
680
+
681
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
682
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
683
+
684
+ msgid "Your Card"
685
+ msgstr "Sus Tarjetas"
686
+
687
+ msgid "Other Cards"
688
+ msgstr "Otras Tarjetas"
689
+
690
+ msgid "Other Card"
691
+ msgstr "Otra Tarjeta"
692
+
693
+ msgid "ended in"
694
+ msgstr "terminado en"
695
+
696
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
697
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
698
+
699
+ msgid "ATTENTION: The currency"
700
+ msgstr "ATENCIÓN: La moneda"
701
+
702
+ msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
703
+ msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
704
+
705
+ msgid "Currency conversions should be made outside this module."
706
+ msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
707
+
708
+ msgid "Coupons"
709
+ msgstr "Cupones"
710
+
711
+ msgid "Enable coupons of discounts"
712
+ msgstr "Activar los cupones de descuento"
713
+
714
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
715
+ msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
716
+
717
+ msgid "You will save"
718
+ msgstr "Usted ahorrará"
719
+
720
+ msgid "Apply"
721
+ msgstr "Aplicar"
722
+
723
+ msgid "Remove"
724
+ msgstr "Eliminar"
725
+
726
+ msgid "Please, inform your coupon code"
727
+ msgstr "Por favor, introduzca el código de su cupón"
728
+
729
+ msgid "Please, inform your email in billing address to use this feature"
730
+ msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
731
+
732
+ msgid "Discount for %s coupon"
733
+ msgstr "Descuento para el cupón %s"
734
+
735
+ msgid "Discount provided by store"
736
+ msgstr "Descuento dado por la tienda"
737
+
738
+ msgid "Discount Coupon"
739
+ msgstr "Cupón de Descuento"
740
+
741
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
742
+ msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
743
+
744
+ msgid "ERROR: It was not possible to convert the unsupported currency"
745
+ msgstr "ERROR: No fue posible convertir la moneda no soportada"
746
+
747
+ msgid "to"
748
+ msgstr "para"
749
+
750
+ msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
751
+ msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
752
+
753
+ msgid " is: "
754
+ msgstr " es: "
755
+
756
+ msgid "Currency Conversion"
757
+ msgstr "Conversión de Moneda"
758
+
759
+ msgid "with discount from"
760
+ msgstr "con descuento de"
761
+
762
+ msgid "Total of your purchase:"
763
+ msgstr "Total de su compra:"
764
+
765
+ msgid "Total of your purchase with discount:"
766
+ msgstr "Total de su compra con descuento:"
767
+
768
+ msgid "*Uppon payment approval"
769
+ msgstr "*Con la aprobación de pago"
770
+
771
+ msgid "Terms and Conditions of Use"
772
+ msgstr "Términos y Condiciones de Uso"
773
+
774
+ msgid "Payment converted from"
775
+ msgstr "Pago convertido de"
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,762 @@ 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_CO\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 medio 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 "Basic Checkout"
36
+ msgstr "Checkout Básico"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Personalizado"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Personalizado"
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 medio 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 Personalizado"
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 Personalizado"
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, califíquenos con %s en WordPress.org y de su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Medios 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 de 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 [Número de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Número de tarjeta inválido"
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 expiración 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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 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 intentarlo 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. ¿Esta seguro que ha rellenado correctamente toda la información en el formulario 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 la tienda"
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, PEN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, PEN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Perú"
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 "Medio 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 - Basic Checkout"
466
+ msgstr "Mercado Pago - Checkout Básico"
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 disponibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Basic Checkout"
494
+ msgstr "Habilitar el Checkout Básico"
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 medios 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 le enviaremos el resultado 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 le enviaremos 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 los 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ó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio 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 medio de pago. Se recomienda en efectivo."
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 medio de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta medio 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, realice el pago del ticket para tener su orden 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 Personalizado Inactivo"
665
+
666
+ msgid "Basic Checkout is Inactive"
667
+ msgstr "Checkout Básico Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference."
673
+ msgstr "Por favor, seleccione el emisor de su elección."
674
+
675
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
676
+ msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
677
+
678
+ msgid "Important: The order will be confirmed only after the payment approval."
679
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
680
+
681
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
682
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
683
+
684
+ msgid "Your Card"
685
+ msgstr "Sus Tarjetas"
686
+
687
+ msgid "Other Cards"
688
+ msgstr "Otras Tarjetas"
689
+
690
+ msgid "Other Card"
691
+ msgstr "Otra Tarjeta"
692
+
693
+ msgid "ended in"
694
+ msgstr "terminado en"
695
+
696
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
697
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
698
+
699
+ msgid "ATTENTION: The currency"
700
+ msgstr "ATENCIÓN: La moneda"
701
+
702
+ msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
703
+ msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
704
+
705
+ msgid "Currency conversions should be made outside this module."
706
+ msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
707
+
708
+ msgid "Coupons"
709
+ msgstr "Cupones"
710
+
711
+ msgid "Enable coupons of discounts"
712
+ msgstr "Activar los cupones de descuento"
713
+
714
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
715
+ msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
716
+
717
+ msgid "You will save"
718
+ msgstr "Usted ahorrará"
719
+
720
+ msgid "Apply"
721
+ msgstr "Aplicar"
722
+
723
+ msgid "Remove"
724
+ msgstr "Eliminar"
725
+
726
+ msgid "Please, inform your coupon code"
727
+ msgstr "Por favor, introduzca el código de su cupón"
728
+
729
+ msgid "Please, inform your email in billing address to use this feature"
730
+ msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
731
+
732
+ msgid "Discount for %s coupon"
733
+ msgstr "Descuento para el cupón %s"
734
+
735
+ msgid "Discount provided by store"
736
+ msgstr "Descuento dado por la tienda"
737
+
738
+ msgid "Discount Coupon"
739
+ msgstr "Cupón de Descuento"
740
+
741
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
742
+ msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
743
+
744
+ msgid "ERROR: It was not possible to convert the unsupported currency"
745
+ msgstr "ERROR: No fue posible convertir la moneda no soportada"
746
+
747
+ msgid "to"
748
+ msgstr "para"
749
+
750
+ msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
751
+ msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
752
+
753
+ msgid " is: "
754
+ msgstr " es: "
755
+
756
+ msgid "Currency Conversion"
757
+ msgstr "Conversión de Moneda"
758
+
759
+ msgid "with discount from"
760
+ msgstr "con descuento de"
761
+
762
+ msgid "Total of your purchase:"
763
+ msgstr "Total de su compra:"
764
+
765
+ msgid "Total of your purchase with discount:"
766
+ msgstr "Total de su compra con descuento:"
767
+
768
+ msgid "*Uppon payment approval"
769
+ msgstr "*Con la aprobación de pago"
770
+
771
+ msgid "Terms and Conditions of Use"
772
+ msgstr "Términos y Condiciones de Uso"
773
+
774
+ msgid "Payment converted from"
775
+ msgstr "Pago convertido de"
languages/woocommerce-mercadopago-module-es_ES.mo ADDED
Binary file
languages/woocommerce-mercadopago-module-es_ES.po ADDED
@@ -0,0 +1,775 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_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 medio 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 "Basic Checkout"
36
+ msgstr "Checkout Básico"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Personalizado"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Personalizado"
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 medio 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 Personalizado"
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 Personalizado"
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, califíquenos con %s en WordPress.org y de su feedback para ayudar a mejorar este módulo!"
244
+
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Medios 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 de 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 [Número de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Número de tarjeta inválido"
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 expiración 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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 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 intentarlo 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. ¿Esta seguro que ha rellenado correctamente toda la información en el formulario 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 la tienda"
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, PEN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, PEN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Perú"
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 "Medio 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 - Basic Checkout"
466
+ msgstr "Mercado Pago - Checkout Básico"
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 disponibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Basic Checkout"
494
+ msgstr "Habilitar el Checkout Básico"
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 medios 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 le enviaremos el resultado 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 le enviaremos 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 los 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ó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio 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 medio de pago. Se recomienda en efectivo."
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 medio de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta medio 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, realice el pago del ticket para tener su orden 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 Personalizado Inactivo"
665
+
666
+ msgid "Basic Checkout is Inactive"
667
+ msgstr "Checkout Básico Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference."
673
+ msgstr "Por favor, seleccione el emisor de su elección."
674
+
675
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
676
+ msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
677
+
678
+ msgid "Important: The order will be confirmed only after the payment approval."
679
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
680
+
681
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
682
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
683
+
684
+ msgid "Your Card"
685
+ msgstr "Sus Tarjetas"
686
+
687
+ msgid "Other Cards"
688
+ msgstr "Otras Tarjetas"
689
+
690
+ msgid "Other Card"
691
+ msgstr "Otra Tarjeta"
692
+
693
+ msgid "ended in"
694
+ msgstr "terminado en"
695
+
696
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
697
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
698
+
699
+ msgid "ATTENTION: The currency"
700
+ msgstr "ATENCIÓN: La moneda"
701
+
702
+ msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
703
+ msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
704
+
705
+ msgid "Currency conversions should be made outside this module."
706
+ msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
707
+
708
+ msgid "Coupons"
709
+ msgstr "Cupones"
710
+
711
+ msgid "Enable coupons of discounts"
712
+ msgstr "Activar los cupones de descuento"
713
+
714
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
715
+ msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
716
+
717
+ msgid "You will save"
718
+ msgstr "Usted ahorrará"
719
+
720
+ msgid "Apply"
721
+ msgstr "Aplicar"
722
+
723
+ msgid "Remove"
724
+ msgstr "Eliminar"
725
+
726
+ msgid "Please, inform your coupon code"
727
+ msgstr "Por favor, introduzca el código de su cupón"
728
+
729
+ msgid "Please, inform your email in billing address to use this feature"
730
+ msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
731
+
732
+ msgid "Discount for %s coupon"
733
+ msgstr "Descuento para el cupón %s"
734
+
735
+ msgid "Discount provided by store"
736
+ msgstr "Descuento dado por la tienda"
737
+
738
+ msgid "Discount Coupon"
739
+ msgstr "Cupón de Descuento"
740
+
741
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
742
+ msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
743
+
744
+ msgid "ERROR: It was not possible to convert the unsupported currency"
745
+ msgstr "ERROR: No fue posible convertir la moneda no soportada"
746
+
747
+ msgid "to"
748
+ msgstr "para"
749
+
750
+ msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
751
+ msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
752
+
753
+ msgid " is: "
754
+ msgstr " es: "
755
+
756
+ msgid "Currency Conversion"
757
+ msgstr "Conversión de Moneda"
758
+
759
+ msgid "with discount from"
760
+ msgstr "con descuento de"
761
+
762
+ msgid "Total of your purchase:"
763
+ msgstr "Total de su compra:"
764
+
765
+ msgid "Total of your purchase with discount:"
766
+ msgstr "Total de su compra con descuento:"
767
+
768
+ msgid "*Uppon payment approval"
769
+ msgstr "*Con la aprobación de pago"
770
+
771
+ msgid "Terms and Conditions of Use"
772
+ msgstr "Términos y Condiciones de Uso"
773
+
774
+ msgid "Payment converted from"
775
+ msgstr "Pago convertido de"
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,762 @@ 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_MX\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 medio 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 "Basic Checkout"
36
+ msgstr "Checkout Básico"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Personalizado"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Personalizado"
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 medio 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 Personalizado"
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 Personalizado"
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, califíquenos con %s en WordPress.org y de su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Medios 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 de 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 [Número de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Número de tarjeta inválido"
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 expiración 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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 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 intentarlo 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. ¿Esta seguro que ha rellenado correctamente toda la información en el formulario 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 la tienda"
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, PEN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, PEN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Perú"
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 "Medio 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 - Basic Checkout"
466
+ msgstr "Mercado Pago - Checkout Básico"
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 disponibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Basic Checkout"
494
+ msgstr "Habilitar el Checkout Básico"
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 medios 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 le enviaremos el resultado 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 le enviaremos 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 los 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ó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio 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 medio de pago. Se recomienda en efectivo."
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 mensualidad 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 medio de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta medio 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, realice el pago del ticket para tener su orden 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 Personalizado Inactivo"
665
+
666
+ msgid "Basic Checkout is Inactive"
667
+ msgstr "Checkout Básico Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference."
673
+ msgstr "Por favor, seleccione el emisor de su elección."
674
+
675
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
676
+ msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
677
+
678
+ msgid "Important: The order will be confirmed only after the payment approval."
679
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
680
+
681
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
682
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
683
+
684
+ msgid "Your Card"
685
+ msgstr "Sus Tarjetas"
686
+
687
+ msgid "Other Cards"
688
+ msgstr "Otras Tarjetas"
689
+
690
+ msgid "Other Card"
691
+ msgstr "Otra Tarjeta"
692
+
693
+ msgid "ended in"
694
+ msgstr "terminado en"
695
+
696
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
697
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
698
+
699
+ msgid "ATTENTION: The currency"
700
+ msgstr "ATENCIÓN: La moneda"
701
+
702
+ msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
703
+ msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
704
+
705
+ msgid "Currency conversions should be made outside this module."
706
+ msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
707
+
708
+ msgid "Coupons"
709
+ msgstr "Cupones"
710
+
711
+ msgid "Enable coupons of discounts"
712
+ msgstr "Activar los cupones de descuento"
713
+
714
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
715
+ msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
716
+
717
+ msgid "You will save"
718
+ msgstr "Usted ahorrará"
719
+
720
+ msgid "Apply"
721
+ msgstr "Aplicar"
722
+
723
+ msgid "Remove"
724
+ msgstr "Eliminar"
725
+
726
+ msgid "Please, inform your coupon code"
727
+ msgstr "Por favor, introduzca el código de su cupón"
728
+
729
+ msgid "Please, inform your email in billing address to use this feature"
730
+ msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
731
+
732
+ msgid "Discount for %s coupon"
733
+ msgstr "Descuento para el cupón %s"
734
+
735
+ msgid "Discount provided by store"
736
+ msgstr "Descuento dado por la tienda"
737
+
738
+ msgid "Discount Coupon"
739
+ msgstr "Cupón de Descuento"
740
+
741
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
742
+ msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
743
+
744
+ msgid "ERROR: It was not possible to convert the unsupported currency"
745
+ msgstr "ERROR: No fue posible convertir la moneda no soportada"
746
+
747
+ msgid "to"
748
+ msgstr "para"
749
+
750
+ msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
751
+ msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
752
+
753
+ msgid " is: "
754
+ msgstr " es: "
755
+
756
+ msgid "Currency Conversion"
757
+ msgstr "Conversión de Moneda"
758
+
759
+ msgid "with discount from"
760
+ msgstr "con descuento de"
761
+
762
+ msgid "Total of your purchase:"
763
+ msgstr "Total de su compra:"
764
+
765
+ msgid "Total of your purchase with discount:"
766
+ msgstr "Total de su compra con descuento:"
767
+
768
+ msgid "*Uppon payment approval"
769
+ msgstr "*Con la aprobación de pago"
770
+
771
+ msgid "Terms and Conditions of Use"
772
+ msgstr "Términos y Condiciones de Uso"
773
+
774
+ msgid "Payment converted from"
775
+ msgstr "Pago convertido de"
languages/woocommerce-mercadopago-module-es_PE.mo ADDED
Binary file
languages/woocommerce-mercadopago-module-es_PE.po ADDED
@@ -0,0 +1,775 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 medio 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 "Basic Checkout"
36
+ msgstr "Checkout Básico"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Personalizado"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Personalizado"
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 medio 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 Personalizado"
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 Personalizado"
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, califíquenos con %s en WordPress.org y de su feedback para ayudar a mejorar este módulo!"
244
+
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Medios 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 de 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 [Número de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Número de tarjeta inválido"
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 expiración 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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 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 intentarlo 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. ¿Esta seguro que ha rellenado correctamente toda la información en el formulario 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 la tienda"
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, PEN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, PEN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Perú"
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 "Medio 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 - Basic Checkout"
466
+ msgstr "Mercado Pago - Checkout Básico"
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 disponibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Basic Checkout"
494
+ msgstr "Habilitar el Checkout Básico"
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 medios 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 le enviaremos el resultado 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 le enviaremos 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 los 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ó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio 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 medio de pago. Se recomienda en efectivo."
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 medio de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta medio 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, realice el pago del ticket para tener su orden 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 Personalizado Inactivo"
665
+
666
+ msgid "Basic Checkout is Inactive"
667
+ msgstr "Checkout Básico Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference."
673
+ msgstr "Por favor, seleccione el emisor de su elección."
674
+
675
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
676
+ msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
677
+
678
+ msgid "Important: The order will be confirmed only after the payment approval."
679
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
680
+
681
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
682
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
683
+
684
+ msgid "Your Card"
685
+ msgstr "Sus Tarjetas"
686
+
687
+ msgid "Other Cards"
688
+ msgstr "Otras Tarjetas"
689
+
690
+ msgid "Other Card"
691
+ msgstr "Otra Tarjeta"
692
+
693
+ msgid "ended in"
694
+ msgstr "terminado en"
695
+
696
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
697
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
698
+
699
+ msgid "ATTENTION: The currency"
700
+ msgstr "ATENCIÓN: La moneda"
701
+
702
+ msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
703
+ msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
704
+
705
+ msgid "Currency conversions should be made outside this module."
706
+ msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
707
+
708
+ msgid "Coupons"
709
+ msgstr "Cupones"
710
+
711
+ msgid "Enable coupons of discounts"
712
+ msgstr "Activar los cupones de descuento"
713
+
714
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
715
+ msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
716
+
717
+ msgid "You will save"
718
+ msgstr "Usted ahorrará"
719
+
720
+ msgid "Apply"
721
+ msgstr "Aplicar"
722
+
723
+ msgid "Remove"
724
+ msgstr "Eliminar"
725
+
726
+ msgid "Please, inform your coupon code"
727
+ msgstr "Por favor, introduzca el código de su cupón"
728
+
729
+ msgid "Please, inform your email in billing address to use this feature"
730
+ msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
731
+
732
+ msgid "Discount for %s coupon"
733
+ msgstr "Descuento para el cupón %s"
734
+
735
+ msgid "Discount provided by store"
736
+ msgstr "Descuento dado por la tienda"
737
+
738
+ msgid "Discount Coupon"
739
+ msgstr "Cupón de Descuento"
740
+
741
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
742
+ msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
743
+
744
+ msgid "ERROR: It was not possible to convert the unsupported currency"
745
+ msgstr "ERROR: No fue posible convertir la moneda no soportada"
746
+
747
+ msgid "to"
748
+ msgstr "para"
749
+
750
+ msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
751
+ msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
752
+
753
+ msgid " is: "
754
+ msgstr " es: "
755
+
756
+ msgid "Currency Conversion"
757
+ msgstr "Conversión de Moneda"
758
+
759
+ msgid "with discount from"
760
+ msgstr "con descuento de"
761
+
762
+ msgid "Total of your purchase:"
763
+ msgstr "Total de su compra:"
764
+
765
+ msgid "Total of your purchase with discount:"
766
+ msgstr "Total de su compra con descuento:"
767
+
768
+ msgid "*Uppon payment approval"
769
+ msgstr "*Con la aprobación de pago"
770
+
771
+ msgid "Terms and Conditions of Use"
772
+ msgstr "Términos y Condiciones de Uso"
773
+
774
+ msgid "Payment converted from"
775
+ msgstr "Pago convertido de"
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,762 @@ 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_VE\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 medio 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 "Basic Checkout"
36
+ msgstr "Checkout Básico"
37
+
38
+ #: mercadopago-module.php:113
39
+ msgid "Custom Checkout"
40
+ msgstr "Checkout Personalizado"
41
+
42
+ #: mercadopago/mercadopago-custom-gateway.php:48
43
+ msgid "Mercado Pago - Custom Checkout"
44
+ msgstr "Mercado Pago - Checkout Personalizado"
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 medio 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 Personalizado"
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 Personalizado"
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, califíquenos con %s en WordPress.org y de su feedback para ayudar a mejorar este módulo!"
244
 
245
+ #: mercadopago/mercadopago-custom-gateway.php:332
246
+ msgid "Payment Method"
247
+ msgstr "Medios 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 de 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 [Número de tarjeta] no puede ser nulo/vacío"
296
+
297
+ #: mercadopago/mercadopago-custom-gateway.php:348
298
+ msgid "Invalid Card Number"
299
+ msgstr "Número de tarjeta inválido"
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 expiración 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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 inválido"
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 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 intentarlo 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. ¿Esta seguro que ha rellenado correctamente toda la información en el formulario 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 la tienda"
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, PEN, VEF."
405
+ msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, PEN, VEF."
406
+
407
+ #: mercadopago/mercadopago-custom-gateway.php:797
408
+ msgid "Peru"
409
+ msgstr "Perú"
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 "Medio 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 - Basic Checkout"
466
+ msgstr "Mercado Pago - Checkout Básico"
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 disponibles para sus clientes."
491
+
492
+ #: mercadopago/mercadopago-gateway.php:213
493
+ msgid "Enable Basic Checkout"
494
+ msgstr "Habilitar el Checkout Básico"
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 medios 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 le enviaremos el resultado 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 le enviaremos 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 los 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ó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio 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 medio de pago. Se recomienda en efectivo."
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 medio de pago."
623
+
624
+ msgid "This payment method did not process the payment."
625
+ msgstr "Esta medio 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, realice el pago del ticket para tener su orden 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 Personalizado Inactivo"
665
+
666
+ msgid "Basic Checkout is Inactive"
667
+ msgstr "Checkout Básico Inactivo"
668
+
669
+ msgid "Ticket is Inactive"
670
+ msgstr "Ticket Inactivo"
671
+
672
+ msgid "Please, select the ticket issuer of your preference."
673
+ msgstr "Por favor, seleccione el emisor de su elección."
674
+
675
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
676
+ msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
677
+
678
+ msgid "Important: The order will be confirmed only after the payment approval."
679
+ msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
680
+
681
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
682
+ msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
683
+
684
+ msgid "Your Card"
685
+ msgstr "Sus Tarjetas"
686
+
687
+ msgid "Other Cards"
688
+ msgstr "Otras Tarjetas"
689
+
690
+ msgid "Other Card"
691
+ msgstr "Otra Tarjeta"
692
+
693
+ msgid "ended in"
694
+ msgstr "terminado en"
695
+
696
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
697
+ msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
698
+
699
+ msgid "ATTENTION: The currency"
700
+ msgstr "ATENCIÓN: La moneda"
701
+
702
+ msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
703
+ msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
704
+
705
+ msgid "Currency conversions should be made outside this module."
706
+ msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
707
+
708
+ msgid "Coupons"
709
+ msgstr "Cupones"
710
+
711
+ msgid "Enable coupons of discounts"
712
+ msgstr "Activar los cupones de descuento"
713
+
714
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
715
+ msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
716
+
717
+ msgid "You will save"
718
+ msgstr "Usted ahorrará"
719
+
720
+ msgid "Apply"
721
+ msgstr "Aplicar"
722
+
723
+ msgid "Remove"
724
+ msgstr "Eliminar"
725
+
726
+ msgid "Please, inform your coupon code"
727
+ msgstr "Por favor, introduzca el código de su cupón"
728
+
729
+ msgid "Please, inform your email in billing address to use this feature"
730
+ msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
731
+
732
+ msgid "Discount for %s coupon"
733
+ msgstr "Descuento para el cupón %s"
734
+
735
+ msgid "Discount provided by store"
736
+ msgstr "Descuento dado por la tienda"
737
+
738
+ msgid "Discount Coupon"
739
+ msgstr "Cupón de Descuento"
740
+
741
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
742
+ msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
743
+
744
+ msgid "ERROR: It was not possible to convert the unsupported currency"
745
+ msgstr "ERROR: No fue posible convertir la moneda no soportada"
746
+
747
+ msgid "to"
748
+ msgstr "para"
749
+
750
+ msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
751
+ msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
752
+
753
+ msgid " is: "
754
+ msgstr " es: "
755
+
756
+ msgid "Currency Conversion"
757
+ msgstr "Conversión de Moneda"
758
+
759
+ msgid "with discount from"
760
+ msgstr "con descuento de"
761
+
762
+ msgid "Total of your purchase:"
763
+ msgstr "Total de su compra:"
764
+
765
+ msgid "Total of your purchase with discount:"
766
+ msgstr "Total de su compra con descuento:"
767
+
768
+ msgid "*Uppon payment approval"
769
+ msgstr "*Con la aprobación de pago"
770
+
771
+ msgid "Terms and Conditions of Use"
772
+ msgstr "Términos y Condiciones de Uso"
773
+
774
+ msgid "Payment converted from"
775
+ msgstr "Pago convertido de"
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,743 @@ 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 "Basic Checkout"
35
+ msgstr "Checkout Básico"
36
+
37
+ #: mercadopago-module.php:113
38
+ msgid "Custom Checkout"
39
+ msgstr "Checkout Transparente"
40
 
41
+ #: mercadopago/mercadopago-custom-gateway.php:48
42
+ msgid "Mercado Pago - Custom Checkout"
43
+ msgstr "Mercado Pago - Checkout Transparente"
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 Transparente"
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 Transparente"
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 - Basic Checkout"
462
+ msgstr "Mercado Pago - Checkout Básico"
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 Basic Checkout"
490
+ msgstr "Habilitar o Checkout Básico"
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 Transparente está Inativo"
657
+
658
+ msgid "Basic Checkout is Inactive"
659
+ msgstr "O Checkout Básico 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."
665
+ msgstr "Por favor, selecione o emissor de sua preferência."
666
+
667
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
668
+ msgstr "Clique no botão "FINALIZAR COMPRA". O boleto será gerado e você será redirecionado para imprimí-lo."
669
+
670
+ msgid "Important: The order will be confirmed only after the payment approval."
671
+ msgstr "Importante: O pedido só será confirmado após a aprovação do pagamento."
672
+
673
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
674
+ msgstr "Sua credencial Access Token do Mercado Pago parece estar desconfigurada."
675
+
676
+ msgid "Your Card"
677
+ msgstr "Seus Cartões"
678
+
679
+ msgid "Other Cards"
680
+ msgstr "Outros Cartões"
681
+
682
+ msgid "Other Card"
683
+ msgstr "Outro Cartão"
684
+
685
+ msgid "ended in"
686
+ msgstr "terminado em"
687
+
688
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
689
+ msgstr "Seu site parece não possuir certificação SSL. SSL é um pré-requisito pois o processamento dos pagamentos é feito em seu servidor."
690
+
691
+ msgid "ATTENTION: The currency"
692
+ msgstr "ATENÇÃO: A moeda"
693
+
694
+ msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
695
+ msgstr "definida no WooCommerce é diferente da usada no país de suas credenciais.<br>A moeda para transações feitas por este meio de pagamento será"
696
+
697
+ msgid "Currency conversions should be made outside this module."
698
+ msgstr "Conversões devem ser feitas fora deste módulo."
699
+
700
+ msgid "Coupons"
701
+ msgstr "Cupons"
702
+
703
+ msgid "Enable coupons of discounts"
704
+ msgstr "Habilitar cupons de desconto"
705
+
706
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
707
+ msgstr "Caso haja uma campanha do Mercado Pago, permite que sua loja disponibilize descontos aos clientes."
708
+
709
+ msgid "You will save"
710
+ msgstr "Você economizará"
711
+
712
+ msgid "Apply"
713
+ msgstr "Aplicar"
714
+
715
+ msgid "Remove"
716
+ msgstr "Remover"
717
+
718
+ msgid "Please, inform your coupon code"
719
+ msgstr "Por favor, informe o código do seu cupom"
720
+
721
+ msgid "Please, inform your email in billing address to use this feature"
722
+ msgstr "Por favor, informe seu email no endereço de cobrança para fazer uso desta funcionalidade"
723
+
724
+ msgid "Discount for %s coupon"
725
+ msgstr "Desconto para o cupom %s"
726
+
727
+ msgid "Discount provided by store"
728
+ msgstr "Desconto dado pela loja"
729
+
730
+ msgid "Discount Coupon"
731
+ msgstr "Cupom de Desconto"
732
+
733
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
734
+ msgstr "MOEDA CONVERTIDA: A taxa de conversão de moeda de"
735
+
736
+ msgid "ERROR: It was not possible to convert the unsupported currency"
737
+ msgstr "ERRO: Não foi possível converter a moeda não suportada"
738
+
739
+ msgid "to"
740
+ msgstr "para"
741
+
742
+ msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
743
+ msgstr "Se a moeda utilizada pelo WooCommerce for diferente ou não suportada pelo Mercado Pago, converte os valores de suas transações usando a taxa de conversão do Mercado Pago"
744
+
745
+ msgid " is: "
746
+ msgstr " é: "
747
+
748
+ msgid "Currency Conversion"
749
+ msgstr "Conversão de Moeda"
750
+
751
+ msgid "with discount from"
752
+ msgstr "com o desconto de"
753
+
754
+ msgid "Total of your purchase:"
755
+ msgstr "Total da sua compra:"
756
+
757
+ msgid "Total of your purchase with discount:"
758
+ msgstr "Total da sua compra com desconto:"
759
+
760
+ msgid "*Uppon payment approval"
761
+ msgstr "*Mediante aprovação de pagamento"
762
+
763
+ msgid "Terms and Conditions of Use"
764
+ msgstr "Termos e condições"
765
+
766
+ msgid "Payment converted from"
767
+ msgstr "Pagamento convertido de"
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 "
@@ -457,7 +495,11 @@ msgid ""
457
  "is not supported. "
458
  "Supported currencies "
459
  "are: ARS, BRL, CLP, COP, "
460
- "MXN, USD, VEF."
 
 
 
 
461
  msgstr ""
462
 
463
  #: mercadopago/mercadopago-gateway.php:714
@@ -525,3 +567,207 @@ 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 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 "
495
  "is not supported. "
496
  "Supported currencies "
497
  "are: ARS, BRL, CLP, COP, "
498
+ "MXN, PEN, 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
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 "Basic Checkout is Inactive"
665
+ msgstr ""
666
+
667
+ msgid "Ticket is Inactive"
668
+ msgstr ""
669
+
670
+ msgid "Please, select the ticket issuer of your preference."
671
+ msgstr ""
672
+
673
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
674
+ msgstr ""
675
+
676
+ msgid "Important: The order will be confirmed only after the payment approval."
677
+ msgstr ""
678
+
679
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
680
+ msgstr ""
681
+
682
+ msgid "Your Card"
683
+ msgstr ""
684
+
685
+ msgid "Other Cards"
686
+ msgstr ""
687
+
688
+ msgid "Other Card"
689
+ msgstr ""
690
+
691
+ msgid "ended in"
692
+ msgstr ""
693
+
694
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
695
+ msgstr ""
696
+
697
+ msgid "ATTENTION: The currency"
698
+ msgstr ""
699
+
700
+ msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
701
+ msgstr ""
702
+
703
+ msgid "Currency conversions should be made outside this module."
704
+ msgstr ""
705
+
706
+ msgid "Coupons"
707
+ msgstr ""
708
+
709
+ msgid "Enable coupons of discounts"
710
+ msgstr ""
711
+
712
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
713
+ msgstr ""
714
+
715
+ msgid "You will save"
716
+ msgstr ""
717
+
718
+ msgid "Apply"
719
+ msgstr ""
720
+
721
+ msgid "Remove"
722
+ msgstr ""
723
+
724
+ msgid "Please, inform your coupon code"
725
+ msgstr ""
726
+
727
+ msgid "Please, inform your email in billing address to use this feature"
728
+ msgstr ""
729
+
730
+ msgid "Discount for %s coupon"
731
+ msgstr ""
732
+
733
+ msgid "Discount provided by store"
734
+ msgstr ""
735
+
736
+ msgid "Discount Coupon"
737
+ msgstr ""
738
+
739
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
740
+ msgstr ""
741
+
742
+ msgid "ERROR: It was not possible to convert the unsupported currency"
743
+ msgstr ""
744
+
745
+ msgid "to"
746
+ msgstr ""
747
+
748
+ msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
749
+ msgstr ""
750
+
751
+ msgid " is: "
752
+ msgstr ""
753
+
754
+ msgid "Currency Conversion"
755
+ msgstr ""
756
+
757
+ msgid "with discount from"
758
+ msgstr ""
759
+
760
+ msgid "Total of your purchase:"
761
+ msgstr ""
762
+
763
+ msgid "Total of your purchase with discount:"
764
+ msgstr ""
765
+
766
+ msgid "*Uppon payment approval"
767
+ msgstr ""
768
+
769
+ msgid "Terms and Conditions of Use"
770
+ msgstr ""
771
+
772
+ msgid "Payment converted from"
773
+ 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.1.0
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
+ __( 'Basic 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,1216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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->currency_ratio = -1;
49
+ $this->site_id = null;
50
+ $this->isTestUser = false;
51
+ $this->store_categories_id = array();
52
+ $this->store_categories_description = array();
53
+
54
+ // Within your constructor, you should define the following variables.
55
+ $this->id = 'woocommerce-mercadopago-custom-module';
56
+ $this->method_title = __( 'Mercado Pago - Credit Card', 'woocommerce-mercadopago-module' );
57
+ $this->method_description = '<img width="200" height="52" src="' .
58
+ plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
59
+ wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
60
+ '</strong>';
61
+
62
+ // These fields are used in our Mercado Pago Module configuration page.
63
+ $this->public_key = $this->get_option( 'public_key' );
64
+ $this->access_token = $this->get_option( 'access_token' );
65
+ $this->title = $this->get_option( 'title' );
66
+ $this->description = $this->get_option( 'description' );
67
+ $this->statement_descriptor = $this->get_option( 'statement_descriptor' );
68
+ $this->coupon_mode = $this->get_option( 'coupon_mode' );
69
+ $this->binary_mode = $this->get_option( 'binary_mode' );
70
+ $this->category_id = $this->get_option( 'category_id' );
71
+ $this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
72
+ $this->currency_conversion = $this->get_option('currency_conversion', false);
73
+ $this->sandbox = $this->get_option( 'sandbox', false );
74
+ $this->debug = $this->get_option( 'debug', false );
75
+
76
+ // Render our configuration page and init/load fields.
77
+ $this->init_form_fields();
78
+ $this->init_settings();
79
+
80
+ // Hook actions for WordPress.
81
+ add_action( // Used by IPN to receive IPN incomings.
82
+ 'woocommerce_api_wc_woomercadopagocustom_gateway',
83
+ array($this, 'process_http_request')
84
+ );
85
+ add_action( // Used by IPN to process valid incomings.
86
+ 'valid_mercadopagocustom_ipn_request',
87
+ array($this, 'successful_request')
88
+ );
89
+ add_action( // Used in settings page to hook "save settings" action.
90
+ 'woocommerce_update_options_payment_gateways_' . $this->id,
91
+ array( $this, 'process_admin_options' )
92
+ );
93
+ add_action( // Scripts for custom checkout
94
+ 'wp_enqueue_scripts',
95
+ array( $this, 'customCheckoutScripts' )
96
+ );
97
+ add_action( // Apply the discounts
98
+ 'woocommerce_cart_calculate_fees',
99
+ array( $this, 'add_discount_custom' ), 10
100
+ );
101
+
102
+ // Verify if public_key or client_secret is empty.
103
+ if ( ( empty( $this->public_key ) || empty( $this->access_token ) ) && $this->enabled == 'yes' ) {
104
+ add_action( 'admin_notices', array( $this, 'credentialsMissingMessage' ) );
105
+ } else {
106
+ add_action( // Verify if SSL is supported.
107
+ 'admin_notices', array( $this, 'checkSSLAbsence' )
108
+ );
109
+ }
110
+
111
+ // Logging and debug.
112
+ if ( 'yes' == $this->debug ) {
113
+ if ( class_exists( 'WC_Logger' ) ) {
114
+ $this->log = new WC_Logger();
115
+ } else {
116
+ $this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
117
+ }
118
+ }
119
+
120
+ }
121
+
122
+ // Required inherited method from WC_Payment_Gateway class: init_form_fields.
123
+ // Initialise Gateway settings form fields with a customized page.
124
+ public function init_form_fields() {
125
+
126
+ $api_secret_locale = sprintf(
127
+ '<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
128
+ '<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
129
+ '<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
130
+ '<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
131
+ '<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a>, ' .
132
+ '<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a> %s ' .
133
+ '<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
134
+ __( 'Argentine', 'woocommerce-mercadopago-module' ),
135
+ __( 'Brazil', 'woocommerce-mercadopago-module' ),
136
+ __( 'Chile', 'woocommerce-mercadopago-module' ),
137
+ __( 'Colombia', 'woocommerce-mercadopago-module' ),
138
+ __( 'Mexico', 'woocommerce-mercadopago-module' ),
139
+ __( 'Peru', 'woocommerce-mercadopago-module' ),
140
+ __( 'or', 'woocommerce-mercadopago-module' ),
141
+ __( 'Venezuela', 'woocommerce-mercadopago-module' )
142
+ );
143
+
144
+ // Trigger API to get payment methods and site_id, also validates public_key/access_token.
145
+ if ( $this->validateCredentials() ) {
146
+ try {
147
+ // checking the currency
148
+ $this->currency_message = "";
149
+ if ( !$this->isSupportedCurrency() && 'yes' == $this->settings[ 'enabled' ] ) {
150
+ if ( $this->currency_conversion == 'no' ) {
151
+ $this->currency_ratio = -1;
152
+ $this->currency_message .= '<img width="12" height="12" src="' .
153
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
154
+ ' ' . __( 'ATTENTION: The currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
155
+ ' ' . __( 'defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be', 'woocommerce-mercadopago-module' ) .
156
+ ' ' . $this->getCurrencyId( $this->site_id ) . ' (' . $this->getCountryName( $this->site_id ) . ').' .
157
+ ' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
158
+ } else if ( $this->currency_conversion == 'yes' && $this->currency_ratio != -1 ) {
159
+ $this->currency_message .= '<img width="12" height="12" src="' .
160
+ plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
161
+ ' ' . __( 'CURRENCY CONVERTED: The currency conversion ratio from', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
162
+ ' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . __( ' is: ', 'woocommerce-mercadopago-module' ) . $this->currency_ratio . ".";
163
+ } else {
164
+ $this->currency_ratio = -1;
165
+ $this->currency_message .= '<img width="12" height="12" src="' .
166
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
167
+ ' ' . __( 'ERROR: It was not possible to convert the unsupported currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
168
+ ' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . '.' .
169
+ ' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
170
+ }
171
+ } else {
172
+ $this->currency_ratio = -1;
173
+ }
174
+ $this->credentials_message = '<img width="12" height="12" src="' .
175
+ plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
176
+ ' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
177
+ ': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
178
+ plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
179
+ } catch ( MercadoPagoException $e ) {
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
+ } else {
185
+ $this->credentials_message = '<img width="12" height="12" src="' .
186
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
187
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
188
+ }
189
+
190
+ // Fills categoy selector. We do not need credentials to make this call.
191
+ $categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
192
+ foreach ( $categories[ "response" ] as $category ) {
193
+ array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
194
+ array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
195
+ }
196
+
197
+ // This array draws each UI (text, selector, checkbox, label, etc).
198
+ $this->form_fields = array(
199
+ 'enabled' => array(
200
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
201
+ 'type' => 'checkbox',
202
+ 'label' => __( 'Enable Custom Checkout', 'woocommerce-mercadopago-module' ),
203
+ 'default' => 'yes'
204
+ ),
205
+ 'credentials_title' => array(
206
+ 'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
207
+ 'type' => 'title',
208
+ 'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
209
+ ),
210
+ 'public_key' => array(
211
+ 'title' => 'Public key',
212
+ 'type' => 'text',
213
+ 'description' => __( 'Insert your Mercado Pago Public key.', 'woocommerce-mercadopago-module' ),
214
+ 'default' => '',
215
+ 'required' => true
216
+ ),
217
+ 'access_token' => array(
218
+ 'title' => 'Access token',
219
+ 'type' => 'text',
220
+ 'description' => __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
221
+ 'default' => '',
222
+ 'required' => true
223
+ ),
224
+ 'ipn_url' => array(
225
+ 'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
226
+ 'type' => 'title',
227
+ '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>.' )
228
+ ),
229
+ 'checkout_options_title' => array(
230
+ 'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
231
+ 'type' => 'title',
232
+ 'description' => ''
233
+ ),
234
+ 'title' => array(
235
+ 'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
236
+ 'type' => 'text',
237
+ 'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
238
+ 'default' => __( 'Mercado Pago - Credit Card', 'woocommerce-mercadopago-module' )
239
+ ),
240
+ 'description' => array(
241
+ 'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
242
+ 'type' => 'textarea',
243
+ 'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
244
+ 'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
245
+ ),
246
+ 'statement_descriptor' => array(
247
+ 'title' => __( 'Statement Descriptor', 'woocommerce-mercadopago-module' ),
248
+ 'type' => 'text',
249
+ 'description' => __( 'The description that will be shown in your customer\'s invoice.', 'woocommerce-mercadopago-module' ),
250
+ 'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
251
+ ),
252
+ 'coupon_mode' => array(
253
+ 'title' => __( 'Coupons', 'woocommerce-mercadopago-module' ),
254
+ 'type' => 'checkbox',
255
+ 'label' => __( 'Enable coupons of discounts', 'woocommerce-mercadopago-module' ),
256
+ 'default' => 'no',
257
+ 'description' => __( 'If there is a Mercado Pago campaign, allow your store to give discounts to customers.', 'woocommerce-mercadopago-module' )
258
+ ),
259
+ 'binary_mode' => array(
260
+ 'title' => __( 'Binary Mode', 'woocommerce-mercadopago-module' ),
261
+ 'type' => 'checkbox',
262
+ 'label' => __( 'Enable binary mode for checkout status', 'woocommerce-mercadopago-module' ),
263
+ 'default' => 'no',
264
+ 'description' => __( 'When charging a credit card, only [approved] or [reject] status will be taken.', 'woocommerce-mercadopago-module' )
265
+ ),
266
+ 'category_id' => array(
267
+ 'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
268
+ 'type' => 'select',
269
+ 'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
270
+ 'options' => $this->store_categories_id
271
+ ),
272
+ 'invoice_prefix' => array(
273
+ 'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
274
+ 'type' => 'text',
275
+ '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' ),
276
+ 'default' => 'WC-'
277
+ ),
278
+ 'currency_conversion' => array(
279
+ 'title' => __( 'Currency Conversion', 'woocommerce-mercadopago-module' ),
280
+ 'type' => 'checkbox',
281
+ 'label' => __( 'If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio', 'woocommerce-mercadopago-module' ),
282
+ 'default' => 'no',
283
+ 'description' => sprintf( '%s', $this->currency_message )
284
+ ),
285
+ 'testing' => array(
286
+ 'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
287
+ 'type' => 'title',
288
+ 'description' => ''
289
+ ),
290
+ 'sandbox' => array(
291
+ 'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
292
+ 'type' => 'checkbox',
293
+ 'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
294
+ 'default' => 'no',
295
+ 'description' => __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
296
+ ),
297
+ 'debug' => array(
298
+ 'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
299
+ 'type' => 'checkbox',
300
+ 'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
301
+ 'default' => 'no',
302
+ 'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
303
+ ' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
304
+ '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
305
+ )
306
+ );
307
+
308
+ }
309
+
310
+ public function admin_options() {
311
+ $this->validate_settings_fields();
312
+ if ( count( $this->errors ) > 0 ) {
313
+ $this->display_errors();
314
+ return false;
315
+ } else {
316
+ echo wpautop( $this->method_description );
317
+ ?>
318
+ <p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
319
+ <?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;' ) ); ?>
320
+ </a></p>
321
+ <table class="form-table">
322
+ <?php $this->generate_settings_html(); ?>
323
+ </table>
324
+ <?php
325
+ return true;
326
+ }
327
+ }
328
+
329
+ /*
330
+ * ========================================================================
331
+ * CHECKOUT BUSINESS RULES
332
+ * ========================================================================
333
+ */
334
+
335
+ public function customCheckoutScripts() {
336
+ if ( is_checkout() && $this->is_available() ) {
337
+ if ( !get_query_var( 'order-received' ) ) {
338
+ wp_enqueue_style(
339
+ 'woocommerce-mercadopago-style', plugins_url(
340
+ 'assets/css/custom_checkout_mercadopago.css',
341
+ plugin_dir_path( __FILE__ ) ) );
342
+ wp_enqueue_script(
343
+ 'woocommerce-mercadopago-v1',
344
+ 'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js' );
345
+ }
346
+ }
347
+ }
348
+
349
+ public function payment_fields() {
350
+ $amount = $this->get_order_total();
351
+
352
+ $parameters = array(
353
+ 'public_key' => $this->public_key,
354
+ 'site_id' => $this->site_id,
355
+ 'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
356
+ 'banner_path' => plugins_url( 'images/' .
357
+ $this->banners_mercadopago_credit[ $this->site_id ], plugin_dir_path( __FILE__ ) ),
358
+ 'amount' => $amount * ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ),
359
+ 'coupon_mode' => $this->coupon_mode,
360
+ 'is_currency_conversion' => $this->currency_ratio,
361
+ 'woocommerce_currency' => get_woocommerce_currency(),
362
+ 'account_currency' => $this->getCurrencyId( $this->site_id ),
363
+ 'discount_action_url' => $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway',
364
+ 'form_labels' => array(
365
+ "form" => array(
366
+ "payment_converted" => __("Payment converted from", "woocommerce-mercadopago-module" ),
367
+ "to" => __("to", "woocommerce-mercadopago-module" ),
368
+ "coupon_empty" => __( "Please, inform your coupon code", "woocommerce-mercadopago-module" ),
369
+ 'apply' => __( "Apply", "woocommerce-mercadopago-module" ),
370
+ 'remove' => __( "Remove", "woocommerce-mercadopago-module" ),
371
+ 'discount_info1' => __( "You will save", "woocommerce-mercadopago-module" ),
372
+ 'discount_info2' => __( "with discount from", "woocommerce-mercadopago-module" ),
373
+ 'discount_info3' => __( "Total of your purchase:", "woocommerce-mercadopago-module" ),
374
+ 'discount_info4' => __( "Total of your purchase with discount:", "woocommerce-mercadopago-module" ),
375
+ 'discount_info5' => __( "*Uppon payment approval", "woocommerce-mercadopago-module" ),
376
+ 'discount_info6' => __( "Terms and Conditions of Use", "woocommerce-mercadopago-module" ),
377
+ 'coupon_of_discounts' => __( "Discount Coupon", "woocommerce-mercadopago-module" ),
378
+ 'label_other_bank' => __( "Other Bank", "woocommerce-mercadopago-module" ),
379
+ 'label_choose' => __( "Choose", "woocommerce-mercadopago-module" ),
380
+ "your_card" => __( "Your Card", 'woocommerce-mercadopago-module' ),
381
+ "other_cards" => __( "Other Cards", 'woocommerce-mercadopago-module' ),
382
+ "other_card" => __( "Other Card", 'woocommerce-mercadopago-module' ),
383
+ "ended_in" => __( "ended in", 'woocommerce-mercadopago-module' ),
384
+ "card_holder_placeholder" => __( " as it appears in your card ...", 'woocommerce-mercadopago-module' ),
385
+ "payment_method" => __( "Payment Method", 'woocommerce-mercadopago-module' ),
386
+ "credit_card_number" => __( "Credit card number", 'woocommerce-mercadopago-module' ),
387
+ "expiration_month" => __( "Expiration month", 'woocommerce-mercadopago-module' ),
388
+ "expiration_year" => __( "Expiration year", 'woocommerce-mercadopago-module' ),
389
+ "year" => __( "Year", 'woocommerce-mercadopago-module' ),
390
+ "month" => __( "Month", 'woocommerce-mercadopago-module' ),
391
+ "card_holder_name" => __( "Card holder name", 'woocommerce-mercadopago-module' ),
392
+ "security_code" => __( "Security code", 'woocommerce-mercadopago-module' ),
393
+ "document_type" => __( "Document Type", 'woocommerce-mercadopago-module' ),
394
+ "document_number" => __( "Document number", 'woocommerce-mercadopago-module' ),
395
+ "issuer" => __( "Issuer", 'woocommerce-mercadopago-module' ),
396
+ "installments" => __( "Installments", 'woocommerce-mercadopago-module' )
397
+ ),
398
+ "error" => array(
399
+ //card number
400
+ "205" => __( "Parameter cardNumber can not be null/empty", 'woocommerce-mercadopago-module' ),
401
+ "E301" => __( "Invalid Card Number", 'woocommerce-mercadopago-module' ),
402
+ //expiration date
403
+ "208" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
404
+ "209" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
405
+ "325" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
406
+ "326" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
407
+ //card holder name
408
+ "221" => __( "Parameter cardholderName can not be null/empty", 'woocommerce-mercadopago-module' ),
409
+ "316" => __( "Invalid Card Holder Name", 'woocommerce-mercadopago-module' ),
410
+ //security code
411
+ "224" => __( "Parameter securityCode can not be null/empty", 'woocommerce-mercadopago-module' ),
412
+ "E302" => __( "Invalid Security Code", 'woocommerce-mercadopago-module' ),
413
+ //doc type
414
+ "212" => __( "Parameter docType can not be null/empty", 'woocommerce-mercadopago-module' ),
415
+ "322" => __( "Invalid Document Type", 'woocommerce-mercadopago-module' ),
416
+ //doc number
417
+ "214" => __( "Parameter docNumber can not be null/empty", 'woocommerce-mercadopago-module' ),
418
+ "324" => __( "Invalid Document Number", 'woocommerce-mercadopago-module' ),
419
+ //doc sub type
420
+ "213" => __( "The parameter cardholder.document.subtype can not be null or empty", 'woocommerce-mercadopago-module' ),
421
+ "323" => __( "Invalid Document Sub Type", 'woocommerce-mercadopago-module' ),
422
+ //issuer
423
+ "220" => __( "Parameter cardIssuerId can not be null/empty", 'woocommerce-mercadopago-module' )
424
+ )
425
+ )
426
+ );
427
+
428
+ try { // find logged user
429
+ if ( wp_get_current_user()->ID != 0 ) {
430
+ $mp = new MP( $this->access_token );
431
+ $logged_user_email = wp_get_current_user()->user_email;
432
+ $customer = $mp->get_or_create_customer( $logged_user_email );
433
+ $customer_cards = $customer[ 'cards' ];
434
+ $parameters[ 'customerId' ] = $customer[ 'id' ];
435
+ $parameters[ 'customer_cards' ] = $customer_cards;
436
+ }
437
+ } catch (Exception $e) {
438
+ if ( 'yes' == $this->debug ) {
439
+ $this->log->add( $this->id, $this->id .
440
+ ': @[process_fields] - There is a problem when retrieving information for cards: ' .
441
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) )
442
+ );
443
+ }
444
+ }
445
+
446
+ wc_get_template(
447
+ 'credit-card/payment-form.php',
448
+ $parameters,
449
+ 'woocommerce/mercadopago/',
450
+ WC_WooMercadoPago_Module::getTemplatesPath()
451
+ );
452
+ }
453
+
454
+ // This function is called after we click on [place_order] button, and each field is passed to this
455
+ // function through $_POST variable.
456
+ public function process_payment( $order_id ) {
457
+ $order = new WC_Order( $order_id );
458
+ // we have got parameters from checkout page, now its time to charge the card
459
+ if ( 'yes' == $this->debug ) {
460
+ $this->log->add( $this->id, $this->id .
461
+ ': @[process_payment] - Received [$_POST] from customer front-end page: ' .
462
+ json_encode( $_POST, JSON_PRETTY_PRINT ) );
463
+ }
464
+ // Mexico country case
465
+ if ( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] == "" || empty( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) ) {
466
+ $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] = $_POST[ 'mercadopago_custom' ][ 'paymentMethodSelector' ];
467
+ }
468
+ if ( isset( $_POST[ 'mercadopago_custom' ][ 'amount' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'amount' ] ) &&
469
+ isset( $_POST[ 'mercadopago_custom' ][ 'token' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'token' ] ) &&
470
+ isset( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) &&
471
+ isset( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) && $_POST[ 'mercadopago_custom' ][ 'installments' ] != -1 ) {
472
+ $post = $_POST;
473
+ $response = $this->createUrl( $order, $post );
474
+ if ( array_key_exists( 'status', $response ) ) {
475
+ switch ( $response[ 'status' ] ) {
476
+ case 'approved':
477
+ WC()->cart->empty_cart();
478
+ wc_add_notice(
479
+ '<p>' . __( $this->getOrderStatus( 'accredited' ), 'woocommerce-mercadopago-module') . '</p>',
480
+ 'notice'
481
+ );
482
+ $order->add_order_note(
483
+ 'Mercado Pago: ' .
484
+ __( 'Payment approved.', 'woocommerce-mercadopago-module' )
485
+ );
486
+ return array(
487
+ 'result' => 'success',
488
+ 'redirect' => $order->get_checkout_order_received_url()
489
+ );
490
+ break;
491
+ case 'pending':
492
+ // order approved/pending, we just redirect to the thankyou page
493
+ return array(
494
+ 'result' => 'success',
495
+ 'redirect' => $order->get_checkout_order_received_url()
496
+ );
497
+ break;
498
+ case 'in_process':
499
+ // for pending, we don't know if the purchase will be made, so we must inform this status
500
+ WC()->cart->empty_cart();
501
+ wc_add_notice(
502
+ '<p>' . __( $this->getOrderStatus( $response[ 'status_detail' ] ), 'woocommerce-mercadopago-module') . '</p>' .
503
+ '<p><a class="button" href="' . esc_url( $order->get_checkout_order_received_url() ) . '">' .
504
+ __( 'Check your order resume', 'woocommerce-mercadopago-module' ) .
505
+ '</a></p>',
506
+ 'notice'
507
+ );
508
+ return array(
509
+ 'result' => 'success',
510
+ 'redirect' => $order->get_checkout_payment_url( true )
511
+ );
512
+ break;
513
+ case 'rejected':
514
+ // if rejected is received, the order will not proceed until another payment try,
515
+ // so we must inform this status
516
+ wc_add_notice(
517
+ '<p>' . __( 'Your payment was refused. You can try again.', 'woocommerce-mercadopago-module' ) .
518
+ '<br>' . __( $this->getOrderStatus( $response[ 'status_detail' ] ), 'woocommerce-mercadopago-module') . '</p>' .
519
+ '<p><a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
520
+ __( 'Click to try again', 'woocommerce-mercadopago-module' ) .
521
+ '</a></p>',
522
+ 'error'
523
+ );
524
+ return array(
525
+ 'result' => 'success',
526
+ 'redirect' => $order->get_checkout_payment_url( true )
527
+ );
528
+ break;
529
+ case 'cancelled':
530
+ case 'in_mediation':
531
+ case 'charged-back':
532
+ break;
533
+ default:
534
+ break;
535
+ }
536
+ }
537
+ } else {
538
+ // process when fields are imcomplete
539
+ wc_add_notice(
540
+ '<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>',
541
+ 'error'
542
+ );
543
+ }
544
+ }
545
+
546
+ protected function createUrl( $order, $post_from_form ) {
547
+
548
+ $mp = new MP( $this->access_token );
549
+ // Checks for sandbox mode
550
+ if ( 'yes' == $this->sandbox ) {
551
+ $mp->sandbox_mode( true );
552
+ if ( 'yes' == $this->debug ) {
553
+ $this->log->add( $this->id, $this->id . ': @[createUrl] - sandbox mode is enabled' );
554
+ }
555
+ } else {
556
+ $mp->sandbox_mode( false );
557
+ }
558
+
559
+ // Creates the order parameters by checking the cart configuration
560
+ $preferences = $this->createPreferences( $order, $post_from_form );
561
+ try {
562
+ // Create order preferences with Mercado Pago API request
563
+ $checkout_info = $mp->post( "/v1/payments", json_encode( $preferences ) );
564
+ if ( 'yes' == $this->debug ) {
565
+ $this->log->add( $this->id, $this->id .
566
+ ': @[createUrl] - Received [$checkout_info] from Mercado Pago API: ' .
567
+ json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
568
+ }
569
+ if ( is_wp_error( $checkout_info ) ||
570
+ $checkout_info[ 'status' ] < 200 || $checkout_info[ 'status' ] >= 300 ) {
571
+ if ( 'yes' == $this->debug ) {
572
+ $this->log->add( $this->id, $this->id .
573
+ ': @[createUrl] - payment creation failed with error: ' .
574
+ $checkout_info[ 'response' ][ 'status' ] );
575
+ }
576
+ return false;
577
+ } else {
578
+ return $checkout_info[ 'response' ];
579
+ }
580
+ } catch ( MercadoPagoException $e ) {
581
+ if ( 'yes' == $this->debug ) {
582
+ $this->log->add( $this->id, $this->id .
583
+ ': @[createUrl] - payment creation failed with exception: ' .
584
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
585
+ }
586
+ return false;
587
+ }
588
+
589
+ }
590
+
591
+ private function createPreferences( $order, $post_from_form ) {
592
+
593
+ // Here we build the array that contains ordered itens, from customer cart
594
+ $items = array();
595
+ $purchase_description = "";
596
+ if ( sizeof( $order->get_items() ) > 0 ) {
597
+ foreach ( $order->get_items() as $item ) {
598
+ if ( $item['qty'] ) {
599
+ $product = new WC_product( $item[ 'product_id' ] );
600
+ $purchase_description =
601
+ $purchase_description . ' ' .
602
+ ( $product->post->post_title . ' x ' . $item[ 'qty' ] );
603
+ array_push( $items, array(
604
+ 'id' => $item[ 'product_id' ],
605
+ 'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
606
+ 'description' => sanitize_file_name( (
607
+ // This handles description width limit of Mercado Pago
608
+ strlen( $product->post->post_content ) > 230 ?
609
+ substr( $product->post->post_content, 0, 230 ) . "..." :
610
+ $product->post->post_content
611
+ ) ),
612
+ 'picture_url' => wp_get_attachment_url( $product->get_image_id() ),
613
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
614
+ 'quantity' => 1,
615
+ 'unit_price' => floor( ( (float) $item[ 'line_total' ] + (float) $item[ 'line_tax' ] ) *
616
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ) * 100 ) / 100,
617
+ ));
618
+ }
619
+ }
620
+ }
621
+
622
+ // Creates the shipment cost structure
623
+ $shipping_cost = (float) $order->get_total_shipping();
624
+ if ( $shipping_cost > 0 ) {
625
+ $item = array(
626
+ 'title' => $this->workaroundAmperSandBug( $this->workaroundAmperSandBug( $order->get_shipping_to_display() ) ),
627
+ 'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
628
+ 'quantity' => 1,
629
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
630
+ 'unit_price' => $shipping_cost * ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 )
631
+ );
632
+ $items[] = $item;
633
+ }
634
+
635
+ // Discounts features
636
+ if ( isset( $post_from_form[ 'mercadopago_custom' ][ 'discount' ] ) &&
637
+ $post_from_form[ 'mercadopago_custom' ][ 'discount' ] != "" &&
638
+ $post_from_form[ 'mercadopago_custom' ][ 'discount' ] > 0 &&
639
+ isset( $post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] ) &&
640
+ $post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] != "" &&
641
+ WC()->session->chosen_payment_method == "woocommerce-mercadopago-custom-module" ) {
642
+ $item = array(
643
+ 'title' => __( 'Discount', 'woocommerce-mercadopago-module' ),
644
+ 'description' => __( 'Discount provided by store', 'woocommerce-mercadopago-module' ),
645
+ 'quantity' => 1,
646
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
647
+ 'unit_price' => - ( (float) $post_from_form[ 'mercadopago_custom' ][ 'discount' ] )
648
+ );
649
+ $items[] = $item;
650
+ }
651
+
652
+ // Build additional information from the customer data
653
+ $payer_additional_info = array(
654
+ 'first_name' => $order->billing_first_name,
655
+ 'last_name' => $order->billing_last_name,
656
+ //'registration_date' =>
657
+ 'phone' => array(
658
+ //'area_code' =>
659
+ 'number' => $order->billing_phone
660
+ ),
661
+ 'address' => array(
662
+ 'zip_code' => $order->billing_postcode,
663
+ //'street_number' =>
664
+ 'street_name' => $order->billing_address_1 . ' / ' .
665
+ $order->billing_city . ' ' .
666
+ $order->billing_state . ' ' .
667
+ $order->billing_country
668
+ )
669
+ );
670
+
671
+ // Create the shipment address information set
672
+ $shipments = array(
673
+ 'receiver_address' => array(
674
+ 'zip_code' => $order->shipping_postcode,
675
+ //'street_number' =>
676
+ 'street_name' => $order->shipping_address_1 . ' ' .
677
+ $order->shipping_address_2 . ' ' .
678
+ $order->shipping_city . ' ' .
679
+ $order->shipping_state . ' ' .
680
+ $order->shipping_country,
681
+ //'floor' =>
682
+ 'apartment' => $order->shipping_address_2
683
+ )
684
+ );
685
+
686
+ // The payment preference
687
+ $payment_preference = array (
688
+ 'transaction_amount' => floor( ( (float) $post_from_form[ 'mercadopago_custom' ][ 'amount' ] ) * 100 ) / 100,
689
+ 'token' => $post_from_form[ 'mercadopago_custom' ][ 'token' ],
690
+ 'description' => $purchase_description,
691
+ 'installments' => (int) $post_from_form[ 'mercadopago_custom' ][ 'installments' ],
692
+ 'payment_method_id' => $post_from_form[ 'mercadopago_custom' ][ 'paymentMethodId' ],
693
+ 'payer' => array(
694
+ 'email' => $order->billing_email
695
+ ),
696
+ 'external_reference' => $this->invoice_prefix . $order->id,
697
+ 'statement_descriptor' => $this->statement_descriptor,
698
+ 'binary_mode' => ($this->binary_mode == "yes"),
699
+ 'additional_info' => array(
700
+ 'items' => $items,
701
+ 'payer' => $payer_additional_info,
702
+ 'shipments' => $shipments
703
+ )
704
+ );
705
+
706
+ // Customer's Card Feature, add only if it has issuer id
707
+ if ( array_key_exists( 'token', $post_from_form[ 'mercadopago_custom' ] ) ) {
708
+ $payment_preference[ 'metadata' ][ 'token' ] = $post_from_form[ 'mercadopago_custom' ][ 'token' ];
709
+ if ( array_key_exists( 'issuer', $post_from_form[ 'mercadopago_custom' ] ) ) {
710
+ if ( !empty( $post_from_form[ 'mercadopago_custom' ][ 'issuer' ] ) ) {
711
+ $payment_preference[ 'issuer_id' ] = (integer) $post_from_form[ 'mercadopago_custom' ][ 'issuer' ];
712
+ }
713
+ }
714
+ if ( !empty( $post_from_form[ 'mercadopago_custom' ][ 'CustomerId' ] ) ) {
715
+ $payment_preference[ 'payer' ][ 'id' ] = $post_from_form[ 'mercadopago_custom' ][ 'CustomerId' ];
716
+ }
717
+ }
718
+
719
+ // Do not set IPN url if it is a localhost!
720
+ $notification_url = $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway';
721
+ if ( !strrpos( $notification_url, "localhost" ) ) {
722
+ $payment_preference['notification_url'] = $this->workaroundAmperSandBug( $notification_url );
723
+ }
724
+
725
+ // Discounts features
726
+ if ( isset( $post_from_form[ 'mercadopago_custom' ][ 'discount' ] ) &&
727
+ $post_from_form[ 'mercadopago_custom' ][ 'discount' ] != "" &&
728
+ $post_from_form[ 'mercadopago_custom' ][ 'discount' ] > 0 &&
729
+ isset( $post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] ) &&
730
+ $post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] != "" &&
731
+ WC()->session->chosen_payment_method == "woocommerce-mercadopago-custom-module" ) {
732
+ $payment_preference[ 'campaign_id' ] = (int) $post_from_form[ 'mercadopago_custom' ][ 'campaign_id' ];
733
+ $payment_preference[ 'coupon_amount' ] = ( (float) $post_from_form[ 'mercadopago_custom' ][ 'discount' ] );
734
+ $payment_preference[ 'coupon_code' ] = strtoupper( $post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] );
735
+ }
736
+
737
+ if ( !$this->isTestUser ) {
738
+ $preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
739
+ }
740
+
741
+ if ( 'yes' == $this->debug ) {
742
+ $this->log->add( $this->id, $this->id .
743
+ ': @[createPreferences] - Returning just created [$payment_preference] structure: ' .
744
+ json_encode( $payment_preference, JSON_PRETTY_PRINT ) );
745
+ }
746
+
747
+ $payment_preference = apply_filters(
748
+ 'woocommerce_mercadopago_module_custom_preferences',
749
+ $payment_preference, $order
750
+ );
751
+ return $payment_preference;
752
+ }
753
+
754
+ public function checkAndSaveCustomerCard( $checkout_info ) {
755
+ if ( 'yes' == $this->debug ) {
756
+ $this->log->add( $this->id, $this->id .
757
+ ': @[checkAndSaveCustomerCard] - Checking info to create card: ' .
758
+ json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
759
+ }
760
+ $custId = null;
761
+ $token = null;
762
+ $issuer_id = null;
763
+ $payment_method_id = null;
764
+ if ( isset( $checkout_info[ 'payer' ][ 'id' ] ) && !empty( $checkout_info[ 'payer' ][ 'id' ] ) ) {
765
+ $custId = $checkout_info[ 'payer' ][ 'id' ];
766
+ } else {
767
+ return;
768
+ }
769
+ if ( isset( $checkout_info[ 'metadata' ][ 'token' ] ) && !empty( $checkout_info[ 'metadata' ][ 'token' ] ) ) {
770
+ $token = $checkout_info[ 'metadata' ][ 'token' ];
771
+ } else {
772
+ return;
773
+ }
774
+ if ( isset( $checkout_info[ 'issuer_id' ] ) && !empty( $checkout_info[ 'issuer_id' ] ) ) {
775
+ $issuer_id = (integer)( $checkout_info[ 'issuer_id' ] );
776
+ }
777
+ if ( isset( $checkout_info[ 'payment_method_id' ] ) && !empty( $checkout_info[ 'payment_method_id' ] ) ) {
778
+ $payment_method_id = $checkout_info[ 'payment_method_id' ];
779
+ }
780
+ try {
781
+ $mp = new MP( $this->access_token );
782
+ $mp->create_card_in_customer( $custId, $token, $payment_method_id, $issuer_id );
783
+ } catch ( MercadoPagoException $e ) {
784
+ if ( 'yes' == $this->debug ) {
785
+ $this->log->add( $this->id, $this->id .
786
+ ': @[checkAndSaveCustomerCard] - card creation failed: ' .
787
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
788
+ }
789
+ }
790
+ }
791
+
792
+ public function add_discount_custom() {
793
+ if ( is_admin() && ! defined( 'DOING_AJAX' ) || is_cart() ) {
794
+ return;
795
+ }
796
+ if ( 'yes' == $this->debug ) {
797
+ $this->log->add( $this->id, $this->id . ': @[add_discount_custom] - Custom checkout trying to apply discount...' );
798
+ }
799
+ if ( isset( $_POST[ 'mercadopago_custom' ][ 'discount' ] ) &&
800
+ $_POST[ 'mercadopago_custom' ][ 'discount' ] != "" &&
801
+ $_POST[ 'mercadopago_custom' ][ 'discount' ] > 0 &&
802
+ isset( $_POST[ 'mercadopago_custom' ][ 'coupon_code' ] ) &&
803
+ $_POST[ 'mercadopago_custom' ][ 'coupon_code' ] != "" &&
804
+ WC()->session->chosen_payment_method == "woocommerce-mercadopago-custom-module" ) {
805
+ $value = ( $_POST[ 'mercadopago_custom' ][ 'discount' ] ) /
806
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 );
807
+ global $woocommerce;
808
+ if ( apply_filters( 'wc_mercadopagocustom_module_apply_discount', 0 < $value, $woocommerce->cart ) ) {
809
+ $woocommerce->cart->add_fee(
810
+ sprintf( __( 'Discount for %s coupon', 'woocommerce-mercadopago-module' ), esc_attr( $_POST[ 'mercadopago_custom' ][ 'campaign' ] ) ),
811
+ ( $value * -1 ), true
812
+ );
813
+ }
814
+ }
815
+ }
816
+
817
+ /*
818
+ * ========================================================================
819
+ * AUXILIARY AND FEEDBACK METHODS
820
+ * ========================================================================
821
+ */
822
+
823
+ // Fix to URL Problem : #038; replaces & and breaks the navigation
824
+ function workaroundAmperSandBug( $link ) {
825
+ return str_replace('&#038;', '&', $link);
826
+ }
827
+
828
+ // Check if we have valid credentials.
829
+ public function validateCredentials() {
830
+ if ( empty( $this->public_key ) ) return false;
831
+ if ( empty( $this->access_token ) ) return false;
832
+ if ( strlen( $this->public_key ) > 0 && strlen( $this->access_token ) > 0 ) {
833
+ try {
834
+ $mp = new MP( $this->access_token );
835
+ $get_request = $mp->get( "/users/me?access_token=" . $this->access_token );
836
+ if ( isset( $get_request[ 'response' ][ 'site_id' ] ) ) {
837
+ $this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
838
+ $this->site_id = $get_request[ 'response' ][ 'site_id' ];
839
+ // check for auto converstion of currency
840
+ $currency_obj = MPRestClient::get_ml( array( "uri" =>
841
+ "/currency_conversions/search?from=" .
842
+ get_woocommerce_currency() .
843
+ "&to=" .
844
+ $this->getCurrencyId( $this->site_id )
845
+ ) );
846
+ if ( isset( $currency_obj[ 'response' ] ) ) {
847
+ $currency_obj = $currency_obj[ 'response' ];
848
+ if ( isset( $currency_obj['ratio'] ) ) {
849
+ $this->currency_ratio = (float) $currency_obj['ratio'];
850
+ } else {
851
+ $this->currency_ratio = -1;
852
+ }
853
+ } else {
854
+ $this->currency_ratio = -1;
855
+ }
856
+ return true;
857
+ } else return false;
858
+ } catch ( MercadoPagoException $e ) {
859
+ return false;
860
+ }
861
+ }
862
+ return false;
863
+ }
864
+
865
+ // Build the string representing the path to the log file
866
+ protected function buildLogPathString() {
867
+ return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
868
+ esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
869
+ __( 'WooCommerce &gt; System Status &gt; Logs', 'woocommerce-mercadopago-module' ) . '</a>';
870
+ }
871
+
872
+ // Return boolean indicating if currency is supported.
873
+ protected function isSupportedCurrency() {
874
+ return get_woocommerce_currency() == $this->getCurrencyId( $this->site_id );
875
+ }
876
+
877
+ // Get currency id for a country
878
+ protected function getCurrencyId( $site_id ) {
879
+ switch ( $site_id ) {
880
+ case 'MLA': return 'ARS';
881
+ case 'MLB': return 'BRL';
882
+ case 'MCO': return 'COP';
883
+ case 'MLC': return 'CLP';
884
+ case 'MLM': return 'MXN';
885
+ case 'MLV': return 'VEF';
886
+ case 'MPE': return 'PEN';
887
+ default: return '';
888
+ }
889
+ }
890
+
891
+ public function checkSSLAbsence() {
892
+ if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
893
+ if ( 'yes' == $this->settings[ 'enabled' ] ) {
894
+ echo '<div class="error"><p><strong>' .
895
+ __( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
896
+ '</strong>: ' .
897
+ sprintf(
898
+ __( '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' )
899
+ ) . '</p></div>';
900
+ }
901
+ }
902
+ }
903
+
904
+ // Called automatically by WooCommerce, verify if Module is available to use.
905
+ public function is_available() {
906
+ // check SSL connection, as we can't use normal http in custom checkout
907
+ if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
908
+ return false;
909
+ }
910
+ $available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
911
+ !empty( $this->public_key ) &&
912
+ !empty( $this->access_token );
913
+ return $available;
914
+ }
915
+
916
+ // Get the URL to admin page.
917
+ protected function admin_url() {
918
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
919
+ return admin_url(
920
+ 'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopagocustom_gateway'
921
+ );
922
+ }
923
+ return admin_url(
924
+ 'admin.php?page=woocommerce_settings&tab=payment_gateways&section=WC_WooMercadoPagoCustom_Gateway'
925
+ );
926
+ }
927
+
928
+ // Notify that public_key and/or access_token are not valid.
929
+ public function credentialsMissingMessage() {
930
+ echo '<div class="error"><p><strong>' .
931
+ __( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
932
+ '</strong>: ' .
933
+ sprintf(
934
+ __( 'Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
935
+ '<a href="' . $this->admin_url() . '">' .
936
+ __( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
937
+ '</p></div>';
938
+ }
939
+
940
+ public function getCountryName( $site_id ) {
941
+ $country = $site_id;
942
+ switch ( $site_id ) {
943
+ case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
944
+ case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
945
+ case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
946
+ case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
947
+ case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
948
+ case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
949
+ case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
950
+ }
951
+ }
952
+
953
+ public function getOrderStatus( $status_detail ) {
954
+ switch ( $status_detail ) {
955
+ case 'accredited':
956
+ return __( 'Done, your payment was accredited!', 'woocommerce-mercadopago-module' );
957
+ case 'pending_contingency':
958
+ return __( 'We are processing the payment. In less than an hour we will e-mail you the results.', 'woocommerce-mercadopago-module' );
959
+ case 'pending_review_manual':
960
+ 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' );
961
+ case 'cc_rejected_bad_filled_card_number':
962
+ return __( 'Check the card number.', 'woocommerce-mercadopago-module' );
963
+ case 'cc_rejected_bad_filled_date':
964
+ return __( 'Check the expiration date.', 'woocommerce-mercadopago-module' );
965
+ case 'cc_rejected_bad_filled_other':
966
+ return __( 'Check the information.', 'woocommerce-mercadopago-module' );
967
+ case 'cc_rejected_bad_filled_security_code':
968
+ return __( 'Check the security code.', 'woocommerce-mercadopago-module' );
969
+ case 'cc_rejected_blacklist':
970
+ return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
971
+ case 'cc_rejected_call_for_authorize':
972
+ return __( 'You must authorize the payment of your orders.', 'woocommerce-mercadopago-module' );
973
+ case 'cc_rejected_card_disabled':
974
+ return __( 'Call your card issuer to activate your card. The phone is on the back of your card.', 'woocommerce-mercadopago-module' );
975
+ case 'cc_rejected_card_error':
976
+ return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
977
+ case 'cc_rejected_duplicated_payment':
978
+ return __( 'You already made a payment for that amount. If you need to repay, use another card or other payment method.', 'woocommerce-mercadopago-module' );
979
+ case 'cc_rejected_high_risk':
980
+ return __( 'Your payment was rejected. Choose another payment method. We recommend cash.', 'woocommerce-mercadopago-module' );
981
+ case 'cc_rejected_insufficient_amount':
982
+ return __( 'Your payment do not have sufficient funds.', 'woocommerce-mercadopago-module' );
983
+ case 'cc_rejected_invalid_installments':
984
+ return __( 'Your payment does not process payments with selected installments.', 'woocommerce-mercadopago-module' );
985
+ case 'cc_rejected_max_attempts':
986
+ return __( 'You have reached the limit of allowed attempts. Choose another card or another payment method.', 'woocommerce-mercadopago-module' );
987
+ case 'cc_rejected_other_reason':
988
+ return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
989
+ default:
990
+ return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
991
+ }
992
+ }
993
+
994
+ /*
995
+ * ========================================================================
996
+ * IPN MECHANICS
997
+ * ========================================================================
998
+ */
999
+
1000
+ // [Server Side] This call checks any incoming notifications from Mercado Pago server.
1001
+ public function process_http_request() {
1002
+ @ob_clean();
1003
+ if ( 'yes' == $this->debug ) {
1004
+ $this->log->add( $this->id, $this->id .
1005
+ ': @[process_http_request] - Received _get content: ' .
1006
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
1007
+ }
1008
+ if ( isset( $_GET[ 'coupon_id' ] ) && $_GET[ 'coupon_id' ] != '' ) {
1009
+ // process coupon evaluations
1010
+ if ( isset( $_GET[ 'payer' ] ) && $_GET[ 'payer' ] != '' ) {
1011
+ $logged_user_email = $_GET[ 'payer' ];
1012
+ $coupon_id = $_GET[ 'coupon_id' ];
1013
+ $mp = new MP( $this->access_token );
1014
+ if ( 'yes' == $this->sandbox )
1015
+ $mp->sandbox_mode( true );
1016
+ else
1017
+ $mp->sandbox_mode( false );
1018
+ $response = $mp->check_discount_campaigns(
1019
+ $_GET[ 'amount' ],
1020
+ $logged_user_email,
1021
+ $coupon_id
1022
+ );
1023
+ header( 'HTTP/1.1 200 OK' );
1024
+ header( 'Content-Type: application/json' );
1025
+ echo json_encode( $response );
1026
+ } else {
1027
+ $obj = new stdClass();
1028
+ $obj->status = 404;
1029
+ $obj->response = array(
1030
+ 'message' => __( 'Please, inform your email in billing address to use this feature', 'woocommerce-mercadopago-module' ),
1031
+ 'error' => 'payer_not_found',
1032
+ 'status' => 404,
1033
+ 'cause' => array()
1034
+ );
1035
+ header( 'HTTP/1.1 200 OK' );
1036
+ header( 'Content-Type: application/json' );
1037
+ echo json_encode( $obj );
1038
+ }
1039
+ exit(0);
1040
+ } else {
1041
+ // process IPN messages
1042
+ $data = $this->check_ipn_request_is_valid( $_GET );
1043
+ if ( $data ) {
1044
+ header( 'HTTP/1.1 200 OK' );
1045
+ do_action( 'valid_mercadopagocustom_ipn_request', $data );
1046
+ }
1047
+ }
1048
+ }
1049
+
1050
+ // Get received data from IPN and checks if we have an associated
1051
+ // payment. If we have these information, we return data to be
1052
+ // processed by successful_request function.
1053
+ public function check_ipn_request_is_valid( $data ) {
1054
+
1055
+ if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
1056
+ if ( 'yes' == $this->debug ) {
1057
+ $this->log->add( $this->id, $this->id .
1058
+ ': @[check_ipn_request_is_valid] - data_id or type not set: ' .
1059
+ json_encode( $data, JSON_PRETTY_PRINT ) );
1060
+ }
1061
+ // at least, check if its a v0 ipn
1062
+ if ( !isset( $data[ 'id' ] ) || !isset( $data[ 'topic' ] ) ) {
1063
+ if ( 'yes' == $this->debug ) {
1064
+ $this->log->add(
1065
+ $this->id, $this->id .
1066
+ ': @[check_ipn_request_is_valid] - Mercado Pago Request Failure: ' .
1067
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
1068
+ }
1069
+ wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
1070
+ } else {
1071
+ header( 'HTTP/1.1 200 OK' );
1072
+ }
1073
+ // No ID? No process!
1074
+ return false;
1075
+ }
1076
+
1077
+ $mp = new MP( $this->access_token );
1078
+ if ( 'yes' == $this->sandbox )
1079
+ $mp->sandbox_mode( true );
1080
+ else
1081
+ $mp->sandbox_mode( false );
1082
+ try {
1083
+ $access_token = array( "access_token" => $mp->get_access_token() );
1084
+ if ( $data[ "type" ] == 'payment' ) {
1085
+ $payment_info = $mp->get( "/v1/payments/" . $data[ "data_id" ], $access_token, false );
1086
+ if ( !is_wp_error( $payment_info ) &&
1087
+ ( $payment_info[ "status" ] == 200 || $payment_info[ "status" ] == 201 ) ) {
1088
+ return $payment_info[ 'response' ];
1089
+ } else {
1090
+ if ( 'yes' == $this->debug ) {
1091
+ $this->log->add( $this->id, $this->id .
1092
+ ': @[check_ipn_request_is_valid] - error when processing received data: ' .
1093
+ json_encode( $payment_info, JSON_PRETTY_PRINT ) );
1094
+ }
1095
+ return false;
1096
+ }
1097
+ }
1098
+ } catch ( MercadoPagoException $e ) {
1099
+ if ( 'yes' == $this->debug ) {
1100
+ $this->log->add( $this->id, $this->id .
1101
+ ': @[check_ipn_request_is_valid] - MercadoPagoException: ' .
1102
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
1103
+ }
1104
+ return false;
1105
+ }
1106
+ return true;
1107
+ }
1108
+
1109
+ // Properly handles each case of notification, based in payment status.
1110
+ public function successful_request( $data ) {
1111
+ if ( 'yes' == $this->debug ) {
1112
+ $this->log->add( $this->id, $this->id .
1113
+ ': @[successful_request] - starting to process ipn update...' );
1114
+ }
1115
+ $order_key = $data[ 'external_reference' ];
1116
+ if ( !empty( $order_key ) ) {
1117
+ $order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
1118
+ $order = new WC_Order( $order_id );
1119
+ // Checks whether the invoice number matches the order, if true processes the payment
1120
+ if ( $order->id === $order_id ) {
1121
+ if ( 'yes' == $this->debug ) {
1122
+ $this->log->add( $this->id, $this->id .
1123
+ ': @[successful_request] - got order with ID ' . $order->id .
1124
+ ' and status ' . $data[ 'status' ] );
1125
+ }
1126
+ // Order details.
1127
+ if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
1128
+ update_post_meta(
1129
+ $order_id,
1130
+ __( 'Payer email',
1131
+ 'woocommerce-mercadopago-module' ),
1132
+ $data[ 'payer' ][ 'email' ]
1133
+ );
1134
+ }
1135
+ if ( !empty( $data[ 'payment_type_id' ] ) ) {
1136
+ update_post_meta(
1137
+ $order_id,
1138
+ __( 'Payment type',
1139
+ 'woocommerce-mercadopago-module' ),
1140
+ $data[ 'payment_type_id' ]
1141
+ );
1142
+ }
1143
+ if ( !empty( $data ) ) {
1144
+ update_post_meta(
1145
+ $order_id,
1146
+ __( 'Mercado Pago Payment ID',
1147
+ 'woocommerce-mercadopago-module' ),
1148
+ $data[ 'id' ]
1149
+ );
1150
+ }
1151
+ // Switch the status and update in WooCommerce
1152
+ switch ( $data[ 'status' ] ) {
1153
+ case 'approved':
1154
+ $order->add_order_note(
1155
+ 'Mercado Pago: ' . __( 'Payment approved.',
1156
+ 'woocommerce-mercadopago-module' )
1157
+ );
1158
+ $this->checkAndSaveCustomerCard( $data );
1159
+ $order->payment_complete();
1160
+ break;
1161
+ case 'pending':
1162
+ $order->add_order_note(
1163
+ 'Mercado Pago: ' . __( 'Customer haven\'t paid yet.',
1164
+ 'woocommerce-mercadopago-module' )
1165
+ );
1166
+ break;
1167
+ case 'in_process':
1168
+ $order->update_status(
1169
+ 'on-hold',
1170
+ 'Mercado Pago: ' . __( 'Payment under review.',
1171
+ 'woocommerce-mercadopago-module' )
1172
+ );
1173
+ break;
1174
+ case 'rejected':
1175
+ $order->update_status(
1176
+ 'failed',
1177
+ 'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.',
1178
+ 'woocommerce-mercadopago-module' )
1179
+ );
1180
+ break;
1181
+ case 'refunded':
1182
+ $order->update_status(
1183
+ 'refunded',
1184
+ 'Mercado Pago: ' . __( 'The payment was refunded to the customer.',
1185
+ 'woocommerce-mercadopago-module' )
1186
+ );
1187
+ break;
1188
+ case 'cancelled':
1189
+ $order->update_status(
1190
+ 'cancelled',
1191
+ 'Mercado Pago: ' . __( 'The payment was cancelled.',
1192
+ 'woocommerce-mercadopago-module' )
1193
+ );
1194
+ break;
1195
+ case 'in_mediation':
1196
+ $order->add_order_note(
1197
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
1198
+ 'woocommerce-mercadopago-module' )
1199
+ );
1200
+ break;
1201
+ case 'charged-back':
1202
+ $order->add_order_note(
1203
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
1204
+ 'woocommerce-mercadopago-module' )
1205
+ );
1206
+ break;
1207
+ default:
1208
+ break;
1209
+ }
1210
+ }
1211
+ }
1212
+ }
1213
+
1214
+ }
1215
+
1216
+ new WC_WooMercadoPagoCustom_Gateway();
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,10 @@ 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,71 +56,68 @@ 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
 
100
  // Render our configuration page and init/load fields.
101
  $this->init_form_fields();
102
  $this->init_settings();
103
-
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 +128,317 @@ 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 +446,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 +503,72 @@ 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 +591,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 +620,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
  }
@@ -630,51 +687,105 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
630
  * ========================================================================
631
  */
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 +798,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 +826,81 @@ 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 +908,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 +1022,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 Basic 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->currency_ratio = 1;
49
  $this->site_id = null;
50
  $this->isTestUser = false;
51
  $this->payment_methods = array();
56
  $this->id = 'woocommerce-mercadopago-module';
57
  $this->icon = apply_filters(
58
  'woocommerce_mercadopago_icon',
59
+ plugins_url( 'images/mercadopago.png', plugin_dir_path( __FILE__ ) )
60
  );
61
+ $this->method_title = __( 'Mercado Pago - Basic Checkout', 'woocommerce-mercadopago-module' );
62
  $this->method_description = '<img width="200" height="52" src="' .
63
+ plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
64
+ wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
65
  '</strong>';
66
 
67
  // These fields are used in our Mercado Pago Module configuration page.
68
+ $this->client_id = $this->get_option( 'client_id' );
69
+ $this->client_secret = $this->get_option( 'client_secret' );
70
+ $this->title = $this->get_option( 'title' );
71
+ $this->description = $this->get_option( 'description' );
72
+ $this->category_id = $this->get_option( 'category_id' );
73
+ $this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
74
+ $this->method = $this->get_option( 'method', 'modal' );
75
+ $this->iframe_width = $this->get_option( 'iframe_width', 640 );
76
+ $this->iframe_height = $this->get_option( 'iframe_height', 800 );
77
+ $this->auto_return = $this->get_option( 'auto_return', true );
78
+ $this->currency_conversion = $this->get_option('currency_conversion', false);
79
+ $this->installments = $this->get_option( 'installments', '24' );
80
+ $this->ex_payments = $this->get_option( 'ex_payments', 'n/d' );
81
  $this->sandbox = $this->get_option('sandbox', false);
82
  $this->debug = $this->get_option('debug');
83
 
84
  // Render our configuration page and init/load fields.
85
  $this->init_form_fields();
86
  $this->init_settings();
87
+
88
  // Hook actions for WordPress.
89
  add_action( // Used by IPN to receive IPN incomings.
90
  'woocommerce_api_wc_woomercadopago_gateway',
91
+ array( $this, 'check_ipn_response' )
92
  );
93
  add_action( // Used by IPN to process valid incomings.
94
  'valid_mercadopago_ipn_request',
95
+ array( $this, 'successful_request' )
96
  );
97
  add_action( // Used by WordPress to render the custom checkout page.
98
  'woocommerce_receipt_' . $this->id,
99
+ array( $this, 'receipt_page' )
100
  );
101
  add_action( // Used to fix CSS in some older WordPress/WooCommerce versions.
102
+ 'wp_head',
103
+ array( $this, 'css' )
104
  );
105
  add_action( // Used in settings page to hook "save settings" action.
106
  'woocommerce_update_options_payment_gateways_' . $this->id,
107
+ array( $this, 'process_admin_options' )
108
  );
109
 
110
  // Verify if client_id or client_secret is empty.
111
+ if ( empty( $this->client_id ) || empty( $this->client_secret ) ) {
112
+ add_action( 'admin_notices', array( $this, 'clientIdOrSecretMissingMessage' ) );
 
 
 
 
 
113
  }
114
 
115
  // Logging and debug.
116
+ if ( 'yes' == $this->debug ) {
117
+ if ( class_exists( 'WC_Logger' ) ) {
118
  $this->log = new WC_Logger();
119
  } else {
120
+ $this->log = WC_MercadoPago_Module::woocommerceInstance()->logger();
121
  }
122
  }
123
 
128
  public function init_form_fields() {
129
 
130
  $api_secret_locale = sprintf(
131
+ '<a href="https://www.mercadopago.com/mla/account/credentials?type=basic" target="_blank">%s</a>, ' .
132
+ '<a href="https://www.mercadopago.com/mlb/account/credentials?type=basic" target="_blank">%s</a>, ' .
133
+ '<a href="https://www.mercadopago.com/mlc/account/credentials?type=basic" target="_blank">%s</a>, ' .
134
+ '<a href="https://www.mercadopago.com/mco/account/credentials?type=basic" target="_blank">%s</a>, ' .
135
+ '<a href="https://www.mercadopago.com/mlm/account/credentials?type=basic" target="_blank">%s</a>, ' .
136
+ '<a href="https://www.mercadopago.com/mpe/account/credentials?type=basic" target="_blank">%s</a> %s ' .
137
+ '<a href="https://www.mercadopago.com/mlv/account/credentials?type=basic" target="_blank">%s</a>',
138
+ __( 'Argentine', 'woocommerce-mercadopago-module' ),
139
+ __( 'Brazil', 'woocommerce-mercadopago-module' ),
140
+ __( 'Chile', 'woocommerce-mercadopago-module' ),
141
+ __( 'Colombia', 'woocommerce-mercadopago-module' ),
142
+ __( 'Mexico', 'woocommerce-mercadopago-module' ),
143
+ __( 'Peru', 'woocommerce-mercadopago-module' ),
144
+ __( 'or', 'woocommerce-mercadopago-module' ),
145
+ __( 'Venezuela', 'woocommerce-mercadopago-module' )
146
  );
147
 
148
  // Trigger API to get payment methods and site_id, also validates Client_id/Client_secret.
149
+ if ( $this->validateCredentials() ) {
150
  try {
151
+ // checking the currency
152
+ $this->currency_message = "";
153
+ if ( !$this->isSupportedCurrency() && 'yes' == $this->settings[ 'enabled' ] ) {
154
+ if ( $this->currency_conversion == 'no' ) {
155
+ $this->currency_ratio = -1;
156
+ $this->currency_message .= '<img width="12" height="12" src="' .
157
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
158
+ ' ' . __( 'ATTENTION: The currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
159
+ ' ' . __( 'defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be', 'woocommerce-mercadopago-module' ) .
160
+ ' ' . $this->getCurrencyId( $this->site_id ) . ' (' . $this->getCountryName( $this->site_id ) . ').' .
161
+ ' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
162
+ } else if ( $this->currency_conversion == 'yes' && $this->currency_ratio != -1 ) {
163
+ $this->currency_message .= '<img width="12" height="12" src="' .
164
+ plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
165
+ ' ' . __( 'CURRENCY CONVERTED: The currency conversion ratio from', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
166
+ ' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . __( ' is: ', 'woocommerce-mercadopago-module' ) . $this->currency_ratio . ".";
167
+ } else {
168
+ $this->currency_ratio = -1;
169
+ $this->currency_message .= '<img width="12" height="12" src="' .
170
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
171
+ ' ' . __( 'ERROR: It was not possible to convert the unsupported currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
172
+ ' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . '.' .
173
+ ' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
174
+ }
175
+ } else {
176
+ $this->currency_ratio = -1;
177
  }
 
 
178
  $this->credentials_message = '<img width="12" height="12" src="' .
179
+ plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
180
+ ' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
181
+ ': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
182
+ plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
183
+ $this->payment_desc =
184
+ __( 'Select the payment methods that you <strong>don\'t</strong> want to receive with Mercado Pago.', 'woocommerce-mercadopago-module' );
185
+ } catch ( MercadoPagoException $e ) {
186
+ array_push( $this->payment_methods, "n/d" );
187
  $this->payment_desc = '<img width="12" height="12" src="' .
188
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
189
+ ' ' . __( 'Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module' );
190
  $this->credentials_message = '<img width="12" height="12" src="' .
191
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
192
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
193
  }
194
  } else {
195
+ array_push( $this->payment_methods, "n/d" );
196
  $this->payment_desc = '<img width="12" height="12" src="' .
197
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
198
+ ' ' . __( 'Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module' );
199
  $this->credentials_message = '<img width="12" height="12" src="' .
200
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
201
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
202
  }
203
 
204
  // Fills categoy selector. We do not need credentials to make this call.
205
+ $categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
206
+ foreach ( $categories[ "response" ] as $category ) {
207
+ array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
208
+ array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
209
  }
210
 
211
  // Checks validity of iFrame width/height fields.
212
+ if ( !is_numeric( $this->iframe_width ) ) {
213
  $this->iframe_width_desc = '<img width="12" height="12" src="' .
214
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
215
+ ' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
216
  } else {
217
  $this->iframe_width_desc =
218
+ __( 'If your integration method is iFrame, please inform the payment iFrame width.', 'woocommerce-mercadopago-module' );
219
  }
220
+ if ( !is_numeric( $this->iframe_height ) ) {
221
  $this->iframe_height_desc = '<img width="12" height="12" src="' .
222
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
223
+ ' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
224
  } else {
225
  $this->iframe_height_desc =
226
+ __( 'If your integration method is iFrame, please inform the payment iFrame height.', 'woocommerce-mercadopago-module' );
227
  }
228
 
229
  // Checks if max installments is a number.
230
+ if ( !is_numeric( $this->installments ) ) {
231
  $this->installments_desc = '<img width="12" height="12" src="' .
232
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
233
+ ' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
234
  } else {
235
  $this->installments_desc =
236
+ __( 'Select the max number of installments for your customers.', 'woocommerce-mercadopago-module' );
237
  }
238
 
239
  // This array draws each UI (text, selector, checkbox, label, etc).
240
  $this->form_fields = array(
241
  'enabled' => array(
242
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
243
  'type' => 'checkbox',
244
+ 'label' => __( 'Enable Basic Checkout', 'woocommerce-mercadopago-module' ),
245
+ 'default' => 'no'
246
  ),
247
  'credentials_title' => array(
248
+ 'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
249
  'type' => 'title',
250
+ 'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
251
  ),
252
  'client_id' => array(
253
  'title' => 'Client_id',
254
  'type' => 'text',
255
+ 'description' => __( 'Insert your Mercado Pago Client_id.', 'woocommerce-mercadopago-module' ),
256
  'default' => '',
257
  'required' => true
258
  ),
259
  'client_secret' => array(
260
  'title' => 'Client_secret',
261
  'type' => 'text',
262
+ 'description' => __( 'Insert your Mercado Pago Client_secret.', 'woocommerce-mercadopago-module' ),
263
  'default' => '',
264
  'required' => true
265
  ),
266
  'ipn_url' => array(
267
+ 'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
268
  'type' => 'title',
269
+ '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>.' )
270
  ),
271
  'checkout_options_title' => array(
272
+ 'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
273
  'type' => 'title',
274
  'description' => ''
275
  ),
276
  'title' => array(
277
+ 'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
278
  'type' => 'text',
279
+ 'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
280
+ 'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
281
  ),
282
  'description' => array(
283
+ 'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
284
  'type' => 'textarea',
285
+ 'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
286
+ 'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
287
  ),
288
  'category_id' => array(
289
+ 'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
290
  'type' => 'select',
291
+ 'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
292
  'options' => $this->store_categories_id
293
  ),
294
  'invoice_prefix' => array(
295
+ 'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
296
  'type' => 'text',
297
+ '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' ),
298
  'default' => 'WC-'
299
  ),
300
  'method' => array(
301
+ 'title' => __( 'Integration Method', 'woocommerce-mercadopago-module' ),
302
  'type' => 'select',
303
+ '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' ),
304
  'default' => 'iframe',
305
  'options' => array(
306
+ 'iframe' => __( 'iFrame', 'woocommerce-mercadopago-module' ),
307
+ 'modal' => __( 'Modal Window', 'woocommerce-mercadopago-module' ),
308
+ 'redirect' => __( 'Redirect', 'woocommerce-mercadopago-module' )
309
  )
310
  ),
311
  'iframe_width' => array(
312
+ 'title' => __( 'iFrame Width', 'woocommerce-mercadopago-module' ),
313
  'type' => 'text',
314
  'description' => $this->iframe_width_desc,
315
  'default' => '640'
316
  ),
317
  'iframe_height' => array(
318
+ 'title' => __( 'iFrame Height', 'woocommerce-mercadopago-module' ),
319
  'type' => 'text',
320
  'description' => $this->iframe_height_desc,
321
  'default' => '800'
322
  ),
323
  'auto_return' => array(
324
+ 'title' => __( 'Auto Return', 'woocommerce-mercadopago-module' ),
325
  'type' => 'checkbox',
326
+ 'label' => __( 'Automatic Return After Payment', 'woocommerce-mercadopago-module' ),
327
  'default' => 'yes',
328
+ 'description' => __( 'After the payment, client is automatically redirected.', 'woocommerce-mercadopago-module' ),
329
  ),
330
+ 'payment_title' => array(
331
+ 'title' => __( 'Payment Options', 'woocommerce-mercadopago-module' ),
332
  'type' => 'title',
333
  'description' => ''
334
  ),
335
+ 'currency_conversion' => array(
336
+ 'title' => __( 'Currency Conversion', 'woocommerce-mercadopago-module' ),
337
+ 'type' => 'checkbox',
338
+ 'label' => __( 'If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio', 'woocommerce-mercadopago-module' ),
339
+ 'default' => 'no',
340
+ 'description' => sprintf( '%s', $this->currency_message )
341
+ ),
342
  'installments' => array(
343
+ 'title' => __( 'Max installments', 'woocommerce-mercadopago-module' ),
344
  'type' => 'text',
345
  'description' => $this->installments_desc,
346
  'default' => '24'
347
  ),
348
  'ex_payments' => array(
349
+ 'title' => __( 'Exclude Payment Methods', 'woocommerce-mercadopago-module' ),
350
  'description' => $this->payment_desc,
351
  'type' => 'multiselect',
352
  'options' => $this->payment_methods,
353
  'default' => ''
354
  ),
355
  'testing' => array(
356
+ 'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
357
  'type' => 'title',
358
  'description' => ''
359
  ),
360
  'sandbox' => array(
361
+ 'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
362
  'type' => 'checkbox',
363
+ 'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
364
  'default' => 'no',
365
+ 'description' => __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
366
  ),
367
  'debug' => array(
368
+ 'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
369
  'type' => 'checkbox',
370
+ 'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
371
  'default' => 'no',
372
+ 'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
373
+ ' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
374
+ '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
375
  )
376
  );
377
 
378
  }
379
 
380
+ public function admin_options() {
381
+ $this->validate_settings_fields();
382
+ if ( count( $this->errors ) > 0 ) {
383
+ $this->display_errors();
384
+ return false;
385
+ } else {
386
+ echo wpautop( $this->method_description );
387
+ ?>
388
+ <p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
389
+ <?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;' ) ); ?>
390
+ </a></p>
391
+ <table class="form-table">
392
+ <?php $this->generate_settings_html(); ?>
393
+ </table>
394
+ <?php
395
+ return true;
396
+ }
397
+ }
398
+
399
  /*
400
  * ========================================================================
401
  * CHECKOUT BUSINESS RULES
402
  * ========================================================================
403
  */
404
+
405
+ public function payment_fields() {
406
+ // basic checkout
407
+ if ($description = $this->get_description() ) {
408
+ echo wpautop( wptexturize( $description ) );
409
+ }
410
+ if ( $this->supports( 'default_credit_card_form' ) ) {
411
+ $this->credit_card_form();
412
+ }
413
+ }
414
+
415
  // 1. First step occurs when the customer selects Mercado Pago and proceed to
416
  // checkout. This method verify which integration method was selected and
417
  // makes the build for the checkout URL.
418
+ public function process_payment( $order_id ) {
419
+ $order = new WC_Order( $order_id );
420
  // Check for the type of integration.
421
+ if ( 'redirect' == $this->method ) {
422
+ if ( 'yes' == $this->debug ) {
423
+ $this->log->add( $this->id, $this->id . ': @[process_payment] - customer being redirected to Mercado Pago environment.' );
424
  }
425
  return array(
426
  'result' => 'success',
427
+ 'redirect' => $this->createUrl( $order )
428
  );
429
+ } else if ( 'modal' == $this->method || 'iframe' == $this->method ) {
430
+ if ( 'yes' == $this->debug ) {
431
+ $this->log->add( $this->id, $this->id . ': @[process_payment] - preparing to render Mercado Pago checkout view.' );
432
  }
433
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
434
  return array(
435
  'result' => 'success',
436
+ 'redirect' => $order->get_checkout_payment_url( true )
437
  );
438
  } else {
439
  return array(
440
  'result' => 'success',
441
+ 'redirect' => add_query_arg( 'order', $order->id, add_query_arg( 'key', $order->order_key, get_permalink( woocommerce_get_page_id( 'pay' ) ) ) )
442
  );
443
  }
444
  }
446
 
447
  // 2. Order page and this generates the form that shows the pay button. This step
448
  // generates the form to proceed to checkout.
449
+ public function receipt_page( $order ) {
450
+ echo $this->renderOrderForm( $order );
451
  }
452
  // --------------------------------------------------
453
+ public function renderOrderForm( $order_id ) {
454
+ $order = new WC_Order( $order_id );
455
+ $url = $this->createUrl( $order );
456
+ if ( $url ) {
457
  // Display checkout.
458
  $html =
459
  $this->iframe_width_desc = '<img width="468" height="60" src="' .
460
+ plugins_url( 'images/' . $this->banners_mercadopago_standard[ $this->site_id ], plugin_dir_path( __FILE__ ) ) . '">';
461
+ if ( 'iframe' != $this->method ) {
462
+ if ( 'yes' == $this->debug ) {
463
+ $this->log->add( $this->id, $this->id . ': @[renderOrderForm] - rendering Mercado Pago lightbox (modal window).' );
464
  }
465
  $html .= '<p></p><p>' . wordwrap(
466
+ __( 'Thank you for your order. Please, proceed with your payment clicking in the bellow button.', 'woocommerce-mercadopago-module' ),
467
  60, '<br>') . '</p>';
468
  $html .=
469
  '<a id="submit-payment" href="' . $url . '" name="MP-Checkout" class="button alt" mp-mode="modal">' .
470
+ __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' ) .
471
  '</a> ';
472
  $html .=
473
+ '<a class="button cancel" href="' . esc_url( $order->get_cancel_order_url() ) . '">' .
474
+ __( 'Cancel order &amp; Clear cart', 'woocommerce-mercadopago-module' ) .
475
  '</a><style type="text/css">#MP-Checkout-dialog #MP-Checkout-IFrame { bottom: -28px !important; height: 590px !important; }</style>';
476
  // Includes javascript.
477
  $html .=
478
  '<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>';
479
  } else {
480
+ if ( 'yes' == $this->debug ) {
481
+ $this->log->add( $this->id, $this->id . ': @[renderOrderForm] - embedding Mercado Pago iFrame.' );
482
  }
483
  $html .= '<p></p><p>' . wordwrap(
484
+ __( 'Thank you for your order. Proceed with your payment completing the following information.', 'woocommerce-mercadopago-module' ),
485
+ 60, '<br>' ) . '</p>';
486
  $html .=
487
  '<iframe src="' . $url . '" name="MP-Checkout" ' .
488
+ 'width="' . ( is_numeric( (int) $this->iframe_width ) ? $this->iframe_width : 640 ) . '" ' .
489
+ 'height="' . ( is_numeric( (int) $this->iframe_height ) ? $this->iframe_height : 800 ) . '" ' .
490
  'frameborder="0" scrolling="no" id="checkout_mercadopago"></iframe>';
491
  }
492
  return $html;
493
  } else {
494
  $html =
495
+ '<p>' . __( 'An error occurred when proccessing your payment. Please try again or contact us for assistence.', 'woocommerce-mercadopago-module' ) . '</p>';
496
  $html .=
497
+ '<a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
498
+ __( 'Click to try again', 'woocommerce-mercadopago-module' ) .
499
  '</a>';
500
  return $html;
501
  }
503
 
504
  // 3. Create Mercado Pago preference and get init_point URL based in the
505
  // order options from the cart.
506
+ public function buildPaymentPreference( $order ) {
507
+
508
  // Here we build the array that contains ordered itens, from customer cart
509
  $items = array();
510
+ if ( sizeof( $order->get_items() ) > 0 ) {
511
+ foreach ( $order->get_items() as $item ) {
512
+ if ( $item['qty'] ) {
513
+ $product = new WC_product( $item[ 'product_id' ] );
514
+ array_push( $items, array(
515
+ 'id' => $item[ 'product_id' ],
516
+ 'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
517
+ 'description' => sanitize_file_name( (
518
  // This handles description width limit of Mercado Pago.
519
+ strlen( $product->post->post_content ) > 230 ?
520
+ substr( $product->post->post_content, 0, 230 ) . "..." :
521
  $product->post->post_content
522
+ ) ),
523
+ 'picture_url' => wp_get_attachment_url( $product->get_image_id() ),
524
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
525
  'quantity' => 1,
526
+ 'unit_price' => ( ( (float) $item[ 'line_total' ] + (float) $item[ 'line_tax' ] ) ) *
527
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ),
528
+ 'currency_id' => $this->getCurrencyId($this->site_id)
529
  ));
530
  }
531
  }
532
+ // shipment cost as an item (workaround to prevent API showing shipment setup again)
533
+ array_push($items, array(
534
+ 'title' => $this->workaroundAmperSandBug( $this->workaroundAmperSandBug( $order->get_shipping_to_display() ) ),
535
+ 'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
536
+ 'category_id' => $this->store_categories_id[$this->category_id],
537
+ 'quantity' => 1,
538
+ 'unit_price' => (float)$order->get_total_shipping() *
539
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ),
540
+ 'currency_id' => $this->getCurrencyId($this->site_id)
541
+ ));
542
  }
543
 
544
  // Find excluded payment methods. If 'n/d' is in array index, we should
545
  // disconsider the remaining values.
546
  $excluded_payment_methods = array();
547
+ if ( is_array( $this->ex_payments ) || is_object( $this->ex_payments ) ) {
548
+ try { // in some PHP versions, $this->ex_payments is interpreted as a not iterable object
549
+ foreach ( $this->ex_payments as $excluded ) {
550
+ if ( $excluded == 0 ) // if "n/d" is selected, we just not add any items to the array
551
+ break;
552
+ array_push( $excluded_payment_methods, array(
553
+ "id" => $this->payment_methods[ $excluded ]
554
+ ));
555
+ }
556
+ } catch ( MercadoPagoException $e ) {
557
+ if ( 'yes' == $this->debug ) {
558
+ $this->log->add(
559
+ $this->id, $this->id .
560
+ ': @[DEBUG] - excluded payments: exception caught: ' .
561
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
562
+ }
563
+ }
564
+ }
565
  $payment_methods = array(
566
+ 'installments' => ( is_numeric( (int) $this->installments) ? (int) $this->installments : 24 ),
567
  'default_installments' => 1
568
  );
569
  // Set excluded payment methods.
570
+ if ( count( $excluded_payment_methods ) > 0 ) {
571
+ $payment_methods[ 'excluded_payment_methods' ] = $excluded_payment_methods;
572
  }
573
 
574
  // Create Mercado Pago preference.
591
  )
592
  ),
593
  'back_urls' => array(
594
+ 'success' => $this->workaroundAmperSandBug( esc_url( $this->get_return_url( $order ) ) ),
595
+ 'failure' => $this->workaroundAmperSandBug( str_replace( '&amp;', '&', $order->get_cancel_order_url() ) ),
596
+ 'pending' => $this->workaroundAmperSandBug( esc_url( $this->get_return_url( $order ) ) )
597
  ),
598
+ //'marketplace' =>
599
  //'marketplace_fee' =>
600
  'shipments' => array(
601
+ //'cost' => (float) $order->get_total_shipping(),
602
+ //'mode' =>
603
  'receiver_address' => array(
604
  'zip_code' => $order->shipping_postcode,
605
  //'street_number' =>
620
  //'expiration_date_to' =>
621
  );
622
  // Set sponsor ID
623
+ if ( !$this->isTestUser ) {
624
+ $preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
625
  }
626
  // Auto return options.
627
+ if ( 'yes' == $this->auto_return ) {
628
+ $preferences[ 'auto_return' ] = "approved";
629
  }
630
+ if ( 'yes' == $this->debug ) {
631
+ $this->log->add(
632
+ $this->id, $this->id .
633
+ ': @[buildPaymentPreference] - requesting mercado pago preference creation with following structure: ' .
634
+ json_encode( $preferences, JSON_PRETTY_PRINT ) );
635
  }
636
+ $preferences = apply_filters( 'woocommerce_mercadopago_module_preferences', $preferences, $order );
637
  return $preferences;
638
  }
639
  // --------------------------------------------------
640
+ protected function createUrl( $order ) {
641
  // Creates the order parameters by checking the cart configuration.
642
+ $preferences = $this->buildPaymentPreference( $order );
643
+ $mp = new MP( $this->client_id, $this->client_secret );
644
  // Checks for sandbox mode.
645
+ if ( 'yes' == $this->sandbox ) {
646
+ $mp->sandbox_mode( true );
647
+ if ( 'yes' == $this->debug ) {
648
+ $this->log->add( $this->id, $this->id . ': @[createUrl] - sandbox mode is enabled' );
649
  }
650
  } else {
651
+ $mp->sandbox_mode( false );
652
  }
653
  // Create order preferences with Mercado Pago API request.
654
  try {
655
+ $checkout_info = $mp->create_preference( json_encode( $preferences ) );
656
+ if ( is_wp_error( $checkout_info ) || $checkout_info[ 'status' ] < 200 || $checkout_info[ 'status' ] >= 300 ) {
657
+ if ( 'yes' == $this->debug ) {
658
+ $this->log->add( $this->id, $this->id . ': @[createUrl] - payment creation failed with error: ' . $checkout_info[ 'response' ][ 'status' ] );
659
  }
660
  return false;
661
  } else {
662
+ if ( 'yes' == $this->debug ) {
663
+ $this->log->add( $this->id, $this->id .
664
+ ': @[createUrl] - payment link generated with success from mercado pago, with structure as follow: ' .
665
+ json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
666
  }
667
+ if ( 'yes' == $this->sandbox ) {
668
+ return $checkout_info[ 'response' ][ 'sandbox_init_point' ];
669
  } else {
670
+ return $checkout_info[ 'response' ][ 'init_point' ];
671
  }
672
  }
673
+ } catch ( MercadoPagoException $e ) {
674
+ if ( 'yes' == $this->debug ) {
675
+ $this->log->add(
676
+ $this->id, $this->id .
677
+ ': @[createUrl] - payment creation failed with exception: ' .
678
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
679
  }
680
  return false;
681
  }
687
  * ========================================================================
688
  */
689
 
690
+ // Fix to URL Problem : #038; replaces & and breaks the navigation
691
+ function workaroundAmperSandBug( $link ) {
692
+ return str_replace('&#038;', '&', $link);
693
+ }
694
+
695
  // Check if we have valid credentials.
696
  public function validateCredentials() {
697
+ if ( empty( $this->client_id ) ) return false;
698
+ if ( empty( $this->client_secret ) ) return false;
699
+ if ( strlen( $this->client_id ) > 0 && strlen( $this->client_secret ) > 0 ) {
700
  try {
701
+ $mp = new MP( $this->client_id, $this->client_secret );
702
+ $access_token = $mp->get_access_token();
703
+ $get_request = $mp->get( "/users/me?access_token=" . $access_token );
704
+ if ( isset( $get_request[ 'response' ][ 'site_id' ] ) ) {
705
+ $this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
706
+ $this->site_id = $get_request[ 'response' ][ 'site_id' ];
707
+ $payments = $mp->get( "/v1/payment_methods/?access_token=" . $access_token );
708
+ array_push( $this->payment_methods, "n/d" );
709
+ foreach ( $payments[ "response" ] as $payment ) {
710
+ array_push( $this->payment_methods, str_replace( "_", " ", $payment[ 'id' ] ) );
711
+ }
712
+ // check for auto converstion of currency
713
+ $this->currency_ratio = 1;
714
+ $currency_obj = MPRestClient::get_ml( array( "uri" =>
715
+ "/currency_conversions/search?from=" .
716
+ get_woocommerce_currency() .
717
+ "&to=" .
718
+ $this->getCurrencyId( $this->site_id )
719
+ ) );
720
+ if ( isset( $currency_obj[ 'response' ] ) ) {
721
+ $currency_obj = $currency_obj[ 'response' ];
722
+ if ( isset( $currency_obj['ratio'] ) ) {
723
+ $this->currency_ratio = (float) $currency_obj['ratio'];
724
+ } else {
725
+ $this->currency_ratio = -1;
726
+ }
727
+ } else {
728
+ $this->currency_ratio = -1;
729
+ }
730
+ return true;
731
+ } else return false;
732
+ } catch ( MercadoPagoException $e ) {
733
  return false;
734
  }
735
  }
736
  return false;
737
  }
738
 
739
+ // Build the string representing the path to the log file
740
+ protected function buildLogPathString() {
741
+ return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
742
+ esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
743
+ __( 'WooCommerce &gt; System Status &gt; Logs', 'woocommerce-mercadopago-module' ) . '</a>';
744
+ }
745
+
746
  // Return boolean indicating if currency is supported.
747
  protected function isSupportedCurrency() {
748
+ return get_woocommerce_currency() == $this->getCurrencyId( $this->site_id );
749
+ }
750
+
751
+ // Get currency id for a country
752
+ protected function getCurrencyId( $site_id ) {
753
+ switch ( $site_id ) {
754
+ case 'MLA': return 'ARS';
755
+ case 'MLB': return 'BRL';
756
+ case 'MCO': return 'COP';
757
+ case 'MLC': return 'CLP';
758
+ case 'MLM': return 'MXN';
759
+ case 'MLV': return 'VEF';
760
+ case 'MPE': return 'PEN';
761
+ default: return '';
762
+ }
763
  }
764
 
765
  // Called automatically by WooCommerce, verify if Module is available to use.
766
  public function is_available() {
767
  // Test if is valid for use.
768
+ $available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
769
+ ! empty( $this->client_id ) &&
770
+ ! empty( $this->client_secret );
 
771
  return $available;
772
  }
773
 
774
  // Fix css for Mercado Pago in specific cases.
775
  public function css() {
776
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
777
+ $page_id = wc_get_page_id( 'checkout' );
778
  } else {
779
+ $page_id = woocommerce_get_page_id( 'checkout' );
780
  }
781
+ if ( is_page($page_id ) ) {
782
  echo '<style type="text/css">#MP-Checkout-dialog { z-index: 9999 !important; }</style>' . PHP_EOL;
783
  }
784
  }
785
 
786
  // Get the URL to admin page.
787
  protected function admin_url() {
788
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
789
  return admin_url(
790
  'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopago_gateway'
791
  );
798
  // Notify that Client_id and/or Client_secret are not valid.
799
  public function clientIdOrSecretMissingMessage() {
800
  echo '<div class="error"><p><strong>' .
801
+ __( 'Basic Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
802
  '</strong>: ' .
803
  sprintf(
804
+ __( 'Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
805
+ '<a href="' . $this->admin_url() . '">' . __( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
 
 
 
 
 
 
 
 
 
 
 
806
  '</p></div>';
807
  }
808
 
809
+ public function getCountryName( $site_id ) {
810
+ switch ( $site_id ) {
811
+ case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
812
+ case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
813
+ case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
814
+ case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
815
+ case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
816
+ case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
817
+ case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
818
  }
819
  }
820
 
826
 
827
  // This call checks any incoming notifications from Mercado Pago server.
828
  public function check_ipn_response() {
 
 
 
829
  @ob_clean();
830
+ if ( 'yes' == $this->debug ) {
831
+ $this->log->add( $this->id, $this->id .
832
+ ': @[check_ipn_response] - Received _get content: ' .
833
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
834
+ }
835
+ $data = $this->check_ipn_request_is_valid( $_GET );
836
+ if ( $data ) {
837
+ header( 'HTTP/1.1 200 OK' );
838
+ do_action( 'valid_mercadopago_ipn_request', $data );
 
 
 
839
  }
840
  }
841
 
842
  // Get received data from IPN and checks if we have a merchant_order or
843
  // payment associated. If we have these information, we return data to be
844
  // processed by successful_request function.
845
+ public function check_ipn_request_is_valid( $data ) {
846
+
847
+ if ( !isset( $data[ 'id' ] ) || !isset( $data[ 'topic' ] ) ) {
848
+ if ( 'yes' == $this->debug ) {
849
+ $this->log->add( $this->id, $this->id .
850
+ ': @[check_ipn_request_is_valid] - data_id or type not set: ' .
851
+ json_encode( $data, JSON_PRETTY_PRINT ) );
852
+ }
853
+ // at least, check if its a v0 ipn
854
+ if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
855
+ if ( 'yes' == $this->debug ) {
856
+ $this->log->add(
857
+ $this->id, $this->id .
858
+ ': @[check_ipn_response] - Mercado Pago Request Failure: ' .
859
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
860
+ }
861
+ wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
862
+ } else {
863
+ header( 'HTTP/1.1 200 OK' );
864
  }
865
+ // No ID? No process!
866
+ return false;
867
  }
868
+
869
  // Create MP object and setup sandbox mode.
870
+ $mp = new MP( $this->client_id, $this->client_secret );
871
+ if ( 'yes' == $this->sandbox ) {
872
+ $mp->sandbox_mode( true );
873
  } else {
874
+ $mp->sandbox_mode( false );
875
  }
876
  try { // Get the merchant_order reported by the IPN. Glossary of attributes response in https://developers.mercadopago.com
877
+ $params = array( "access_token" => $mp->get_access_token() );
878
+ if ( $data[ "topic" ] == 'merchant_order' ) {
879
+ $merchant_order_info = $mp->get( "/merchant_orders/" . $_GET[ "id" ], $params, false );
880
  // If the payment's transaction amount is equal (or bigger) than the merchant order's amount you can release your items
881
+ if ( !is_wp_error( $merchant_order_info ) && ($merchant_order_info[ "status" ] == 200 ) ) {
882
+ $payments = $merchant_order_info[ "response" ][ "payments" ];
883
  // check if we have more than one payment method
884
+ if ( sizeof( $payments ) >= 1 ) { // We have payments
885
+ return $merchant_order_info[ 'response' ];
886
+ } else { // We have no payments?
887
+ if ( 'yes' == $this->debug ) {
888
+ $this->log->add( $this->id, $this->id . ': @[check_ipn_request_is_valid] - order received but has no payment' );
 
 
889
  }
890
+ return false;
891
+ }
 
892
  } else {
893
+ if ( 'yes' == $this->debug ) {
894
+ $this->log->add( $this->id, $this->id . ': @[check_ipn_request_is_valid] - got status not equal 200 or some error' );
895
  }
896
  return false;
897
  }
898
  }
899
+ } catch ( MercadoPagoException $e ) {
900
+ if ( 'yes' == $this->debug ) {
901
+ $this->log->add( $this->id, $this->id .
902
+ ': @[check_ipn_request_is_valid] - GOT EXCEPTION: ' .
903
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
904
  }
905
  return false;
906
  }
908
  }
909
 
910
  // Properly handles each case of notification, based in payment status.
911
+ public function successful_request( $data ) {
912
+ if ( 'yes' == $this->debug ) {
913
+ $this->log->add( $this->id, $this->id . ': @[successful_request] - starting to process ipn update...' );
914
  }
915
+ $order_key = $data[ 'external_reference' ];
916
+ if ( !empty( $order_key ) ) {
917
+ $order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
918
+ $order = new WC_Order( $order_id );
919
  // Checks whether the invoice number matches the order. If true processes the payment.
920
+ if ( $order->id === $order_id ) {
921
  if ( 'yes' == $this->debug ) {
922
+ $this->log->add( $this->id, $this->id . ': @[successful_request] - got order with ID ' . $order->id . ' and status ' . $data[ 'payments' ][ 0 ][ 'status' ] );
923
  }
924
  // Order details.
925
+ if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
 
 
 
 
 
 
 
926
  update_post_meta(
927
  $order_id,
928
+ __( 'Payer email', 'woocommerce-mercadopago-module' ),
929
+ $data[ 'payer' ][ 'email' ]
930
  );
931
  }
932
+ if ( !empty( $data[ 'payment_type' ] ) ) {
933
  update_post_meta(
934
  $order_id,
935
+ __( 'Payment type', 'woocommerce-mercadopago-module' ),
936
+ $data[ 'payment_type' ]
937
  );
938
  }
939
+ if ( !empty( $data[ 'payments' ] ) ) {
940
  $payment_ids = array();
941
+ foreach ( $data[ 'payments' ] as $payment ) {
942
+ $payment_ids[] = $payment[ 'id' ];
943
  }
944
+ if ( sizeof( $payment_ids ) > 0 ) {
945
  update_post_meta(
946
  $order_id,
947
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
948
+ implode( ', ', $payment_ids )
949
  );
950
  }
951
  }
952
+ // Here, we process the status...
953
+ $status = 'pending';
954
+ if ( sizeof( $data[ 'payments' ] ) == 1 ) {
955
+ // if there's only one payment, then we get its status
956
+ $status = $data[ 'payments' ][ 0 ][ 'status' ];
957
+ } else if ( sizeof( $data[ 'payments' ] ) > 1 ) {
958
+ // otherwise, we check payment sum
959
+ $total_paid = 0.00;
960
+ foreach ( $data[ 'payments' ] as $payment ) {
961
+ if ( $payment[ 'status' ] === 'approved' ) {
962
+ $total_paid = $total_paid + (float) $payment[ 'total_paid_amount' ];
963
+ }
964
+ }
965
+ $total = $data[ 'shipping_cost' ] + $data[ 'total_amount' ];
966
+ if ( $total_paid >= $total ) {
967
+ // At this point, the sum of approved payments are above or equal than the total order amount, so it is approved
968
+ $status = 'approved';
969
+ }
970
+ }
971
+ // Switch the status and update in WooCommerce
972
+ switch ( $status ) {
973
  case 'approved':
974
  $order->add_order_note(
975
+ 'Mercado Pago: ' . __( 'Payment approved.', 'woocommerce-mercadopago-module' )
976
  );
977
  $order->payment_complete();
978
  break;
979
  case 'pending':
980
  $order->add_order_note(
981
+ 'Mercado Pago: ' . __( 'Customer haven\'t paid yet.', 'woocommerce-mercadopago-module' )
982
  );
983
  break;
984
  case 'in_process':
985
+ $order->update_status(
986
+ 'on-hold',
987
+ 'Mercado Pago: ' . __( 'Payment under review.', 'woocommerce-mercadopago-module' )
988
  );
989
  break;
990
  case 'rejected':
991
+ $order->update_status(
992
+ 'failed',
993
+ 'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.', 'woocommerce-mercadopago-module' )
994
  );
995
  break;
996
  case 'refunded':
997
  $order->update_status(
998
  'refunded',
999
+ 'Mercado Pago: ' . __( 'The payment was refunded to the customer.', 'woocommerce-mercadopago-module' )
1000
  );
1001
  break;
1002
  case 'cancelled':
1003
  $order->update_status(
1004
  'cancelled',
1005
+ 'Mercado Pago: ' . __( 'The payment was cancelled.', 'woocommerce-mercadopago-module' )
1006
  );
1007
  break;
1008
  case 'in_mediation':
1009
  $order->add_order_note(
1010
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
1011
  );
1012
  break;
1013
  case 'charged-back':
1014
  $order->add_order_note(
1015
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
1016
  );
1017
+ break;
1018
  default:
1019
  break;
1020
  }
1022
  }
1023
  }
1024
 
1025
+ }
mercadopago/mercadopago-ticket-gateway.php ADDED
@@ -0,0 +1,981 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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->currency_ratio = -1;
37
+ $this->site_id = null;
38
+ $this->isTestUser = false;
39
+ $this->payment_methods = array();
40
+ $this->store_categories_id = array();
41
+ $this->store_categories_description = array();
42
+
43
+ // Within your constructor, you should define the following variables.
44
+ $this->id = 'woocommerce-mercadopago-ticket-module';
45
+ $this->method_title = __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' );
46
+ $this->method_description = '<img width="200" height="52" src="' .
47
+ plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
48
+ wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
49
+ '</strong>';
50
+
51
+ // These fields are used in our Mercado Pago Module configuration page.
52
+ $this->access_token = $this->get_option( 'access_token' );
53
+ $this->title = $this->get_option( 'title' );
54
+ $this->description = $this->get_option( 'description' );
55
+ $this->coupon_mode = $this->get_option( 'coupon_mode' );
56
+ $this->category_id = $this->get_option( 'category_id' );
57
+ $this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
58
+ $this->currency_conversion = $this->get_option('currency_conversion', false);
59
+ $this->debug = $this->get_option( 'debug' );
60
+
61
+ // Render our configuration page and init/load fields.
62
+ $this->init_form_fields();
63
+ $this->init_settings();
64
+
65
+ // Hook actions for WordPress.
66
+ add_action( // Used by IPN to receive IPN incomings.
67
+ 'woocommerce_api_wc_woomercadopagoticket_gateway',
68
+ array($this, 'process_http_request')
69
+ );
70
+ add_action( // Used by IPN to process valid incomings.
71
+ 'valid_mercadopagoticket_ipn_request',
72
+ array($this, 'successful_request')
73
+ );
74
+ add_action( // Used in settings page to hook "save settings" action.
75
+ 'woocommerce_update_options_payment_gateways_' . $this->id,
76
+ array( $this, 'process_admin_options' )
77
+ );
78
+ add_action( // Scripts for custom checkout
79
+ 'wp_enqueue_scripts',
80
+ array( $this, 'ticketCheckoutScripts' )
81
+ );
82
+ add_action( // Apply the discounts
83
+ 'woocommerce_cart_calculate_fees',
84
+ array( $this, 'add_discount_ticket' ), 10
85
+ );
86
+
87
+ // Verify if access token is empty.
88
+ if ( empty( $this->access_token ) && $this->enabled == 'yes' ) {
89
+ add_action( 'admin_notices', array( $this, 'credentialsMissingMessage' ) );
90
+ } else {
91
+ add_action( // Verify if SSL is supported.
92
+ 'admin_notices', array( $this, 'checkSSLAbsence' )
93
+ );
94
+ }
95
+
96
+ // Logging and debug.
97
+ if ( 'yes' == $this->debug ) {
98
+ if ( class_exists( 'WC_Logger' ) ) {
99
+ $this->log = new WC_Logger();
100
+ } else {
101
+ $this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
102
+ }
103
+ }
104
+
105
+ }
106
+
107
+ // Required inherited method from WC_Payment_Gateway class: init_form_fields.
108
+ // Initialise Gateway settings form fields with a customized page.
109
+ public function init_form_fields() {
110
+
111
+ $api_secret_locale = sprintf(
112
+ '<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
113
+ '<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
114
+ '<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
115
+ '<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
116
+ '<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a>, ' .
117
+ '<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a> %s ' .
118
+ '<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
119
+ __( 'Argentine', 'woocommerce-mercadopago-module' ),
120
+ __( 'Brazil', 'woocommerce-mercadopago-module' ),
121
+ __( 'Chile', 'woocommerce-mercadopago-module' ),
122
+ __( 'Colombia', 'woocommerce-mercadopago-module' ),
123
+ __( 'Mexico', 'woocommerce-mercadopago-module' ),
124
+ __( 'Peru', 'woocommerce-mercadopago-module' ),
125
+ __( 'or', 'woocommerce-mercadopago-module' ),
126
+ __( 'Venezuela', 'woocommerce-mercadopago-module' )
127
+ );
128
+
129
+ // Trigger API to get payment methods and site_id, also validates access_token.
130
+ if ( $this->validateCredentials() ) {
131
+ try {
132
+ // checking the currency
133
+ $this->currency_message = "";
134
+ if ( !$this->isSupportedCurrency() && 'yes' == $this->settings[ 'enabled' ] ) {
135
+ if ( $this->currency_conversion == 'no' ) {
136
+ $this->currency_ratio = -1;
137
+ $this->currency_message .= '<img width="12" height="12" src="' .
138
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
139
+ ' ' . __( 'ATTENTION: The currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
140
+ ' ' . __( 'defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be', 'woocommerce-mercadopago-module' ) .
141
+ ' ' . $this->getCurrencyId( $this->site_id ) . ' (' . $this->getCountryName( $this->site_id ) . ').' .
142
+ ' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
143
+ } else if ( $this->currency_conversion == 'yes' && $this->currency_ratio != -1 ) {
144
+ $this->currency_message .= '<img width="12" height="12" src="' .
145
+ plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
146
+ ' ' . __( 'CURRENCY CONVERTED: The currency conversion ratio from', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
147
+ ' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . __( ' is: ', 'woocommerce-mercadopago-module' ) . $this->currency_ratio . ".";
148
+ } else {
149
+ $this->currency_ratio = -1;
150
+ $this->currency_message .= '<img width="12" height="12" src="' .
151
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
152
+ ' ' . __( 'ERROR: It was not possible to convert the unsupported currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
153
+ ' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . '.' .
154
+ ' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
155
+ }
156
+ } else {
157
+ $this->currency_ratio = -1;
158
+ }
159
+ $this->credentials_message = '<img width="12" height="12" src="' .
160
+ plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
161
+ ' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
162
+ ': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
163
+ plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
164
+ } catch ( MercadoPagoException $e ) {
165
+ $this->credentials_message = '<img width="12" height="12" src="' .
166
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
167
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
168
+ }
169
+ } else {
170
+ $this->credentials_message = '<img width="12" height="12" src="' .
171
+ plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
172
+ ' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
173
+ }
174
+
175
+ // Fills categoy selector. We do not need credentials to make this call.
176
+ $categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
177
+ foreach ( $categories[ "response" ] as $category ) {
178
+ array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
179
+ array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
180
+ }
181
+
182
+ // This array draws each UI (text, selector, checkbox, label, etc).
183
+ $this->form_fields = array(
184
+ 'enabled' => array(
185
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
186
+ 'type' => 'checkbox',
187
+ 'label' => __( 'Enable Ticket Payment Method', 'woocommerce-mercadopago-module' ),
188
+ 'default' => 'yes'
189
+ ),
190
+ 'credentials_title' => array(
191
+ 'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
192
+ 'type' => 'title',
193
+ 'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
194
+ ),
195
+ 'access_token' => array(
196
+ 'title' => 'Access token',
197
+ 'type' => 'text',
198
+ 'description' => __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
199
+ 'default' => '',
200
+ 'required' => true
201
+ ),
202
+ 'ipn_url' => array(
203
+ 'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
204
+ 'type' => 'title',
205
+ '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_WooMercadoPagoTicket_Gateway' . '</code>.' )
206
+ ),
207
+ 'checkout_options_title' => array(
208
+ 'title' => __( 'Ticket Options', 'woocommerce-mercadopago-module' ),
209
+ 'type' => 'title',
210
+ 'description' => ''
211
+ ),
212
+ 'title' => array(
213
+ 'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
214
+ 'type' => 'text',
215
+ 'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
216
+ 'default' => __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' )
217
+ ),
218
+ 'description' => array(
219
+ 'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
220
+ 'type' => 'textarea',
221
+ 'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
222
+ 'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
223
+ ),
224
+ 'coupon_mode' => array(
225
+ 'title' => __( 'Coupons', 'woocommerce-mercadopago-module' ),
226
+ 'type' => 'checkbox',
227
+ 'label' => __( 'Enable coupons of discounts', 'woocommerce-mercadopago-module' ),
228
+ 'default' => 'no',
229
+ 'description' => __( 'If there is a Mercado Pago campaign, allow your store to give discounts to customers.', 'woocommerce-mercadopago-module' )
230
+ ),
231
+ 'category_id' => array(
232
+ 'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
233
+ 'type' => 'select',
234
+ 'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
235
+ 'options' => $this->store_categories_id
236
+ ),
237
+ 'invoice_prefix' => array(
238
+ 'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
239
+ 'type' => 'text',
240
+ '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' ),
241
+ 'default' => 'WC-'
242
+ ),
243
+ 'currency_conversion' => array(
244
+ 'title' => __( 'Currency Conversion', 'woocommerce-mercadopago-module' ),
245
+ 'type' => 'checkbox',
246
+ 'label' => __( 'If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio', 'woocommerce-mercadopago-module' ),
247
+ 'default' => 'no',
248
+ 'description' => sprintf( '%s', $this->currency_message )
249
+ ),
250
+ 'testing' => array(
251
+ 'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
252
+ 'type' => 'title',
253
+ 'description' => ''
254
+ ),
255
+ 'debug' => array(
256
+ 'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
257
+ 'type' => 'checkbox',
258
+ 'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
259
+ 'default' => 'no',
260
+ 'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
261
+ ' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
262
+ '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
263
+ )
264
+ );
265
+
266
+ }
267
+
268
+ public function admin_options() {
269
+ $this->validate_settings_fields();
270
+ if ( count( $this->errors ) > 0 ) {
271
+ $this->display_errors();
272
+ return false;
273
+ } else {
274
+ echo wpautop( $this->method_description );
275
+ ?>
276
+ <p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
277
+ <?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;' ) ); ?>
278
+ </a></p>
279
+ <table class="form-table">
280
+ <?php $this->generate_settings_html(); ?>
281
+ </table>
282
+ <?php
283
+ return true;
284
+ }
285
+ }
286
+
287
+ /*
288
+ * ========================================================================
289
+ * CHECKOUT BUSINESS RULES
290
+ * ========================================================================
291
+ */
292
+
293
+ public function ticketCheckoutScripts() {
294
+ if ( is_checkout() && $this->is_available() ) {
295
+ if ( !get_query_var( 'order-received' ) ) {
296
+ wp_enqueue_style(
297
+ 'woocommerce-mercadopago-style', plugins_url(
298
+ 'assets/css/custom_checkout_mercadopago.css',
299
+ plugin_dir_path( __FILE__ ) ) );
300
+ wp_enqueue_script(
301
+ 'woocommerce-mercadopago-v1',
302
+ 'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js' );
303
+ }
304
+ }
305
+ }
306
+
307
+ public function payment_fields() {
308
+ $amount = $this->get_order_total();
309
+
310
+ $parameters = array(
311
+ 'payment_methods' => $this->payment_methods,
312
+ 'site_id' => $this->site_id,
313
+ 'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
314
+ 'amount' => $amount * ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ),
315
+ 'coupon_mode' => $this->coupon_mode,
316
+ 'is_currency_conversion' => $this->currency_ratio,
317
+ 'woocommerce_currency' => get_woocommerce_currency(),
318
+ 'account_currency' => $this->getCurrencyId( $this->site_id ),
319
+ 'discount_action_url' => $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoTicket_Gateway',
320
+ 'form_labels' => array(
321
+ "form" => array(
322
+ "payment_converted" => __("Payment converted from", "woocommerce-mercadopago-module" ),
323
+ "to" => __("to", "woocommerce-mercadopago-module" ),
324
+ "coupon_empty" => __( "Please, inform your coupon code", "woocommerce-mercadopago-module" ),
325
+ 'apply' => __( "Apply", "woocommerce-mercadopago-module" ),
326
+ 'remove' => __( "Remove", "woocommerce-mercadopago-module" ),
327
+ 'discount_info1' => __( "You will save", "woocommerce-mercadopago-module" ),
328
+ 'discount_info2' => __( "with discount from", "woocommerce-mercadopago-module" ),
329
+ 'discount_info3' => __( "Total of your purchase:", "woocommerce-mercadopago-module" ),
330
+ 'discount_info4' => __( "Total of your purchase with discount:", "woocommerce-mercadopago-module" ),
331
+ 'discount_info5' => __( "*Uppon payment approval", "woocommerce-mercadopago-module" ),
332
+ 'discount_info6' => __( "Terms and Conditions of Use", "woocommerce-mercadopago-module" ),
333
+ 'coupon_of_discounts' => __( "Discount Coupon", "woocommerce-mercadopago-module" ),
334
+ 'label_choose' => __( "Choose", "woocommerce-mercadopago-module" ),
335
+ "issuer_selection" => __( 'Please, select the ticket issuer of your preference.', 'woocommerce-mercadopago-module' ),
336
+ "payment_instructions" => __( 'Click "Place order" button. The ticket will be generated and you will be redirected to print it.', 'woocommerce-mercadopago-module' ),
337
+ "ticket_note" => __( 'Important: The order will be confirmed only after the payment approval.', 'woocommerce-mercadopago-module' )
338
+ )
339
+ )
340
+ );
341
+
342
+ wc_get_template(
343
+ 'ticket/ticket-form.php',
344
+ $parameters,
345
+ 'woocommerce/mercadopago/',
346
+ WC_WooMercadoPago_Module::getTemplatesPath()
347
+ );
348
+ }
349
+
350
+ // This function is called after we clock on [place_order] button, and each field is passed to this
351
+ // function through $_POST variable.
352
+ public function process_payment( $order_id ) {
353
+ $order = new WC_Order( $order_id );
354
+ // we have got parameters from checkout page, now its time to charge the card
355
+ if ( 'yes' == $this->debug ) {
356
+ $this->log->add( $this->id, $this->id .
357
+ ': @[process_payment] - Received [$_POST] from customer front-end page: ' .
358
+ json_encode( $_POST, JSON_PRETTY_PRINT ) );
359
+ }
360
+
361
+ if ( isset( $_POST[ 'mercadopago_ticket' ][ 'amount' ] ) && !empty( $_POST[ 'mercadopago_ticket' ][ 'amount' ] ) &&
362
+ isset( $_POST[ 'mercadopago_ticket' ][ 'paymentMethodId' ] ) && !empty( $_POST[ 'mercadopago_ticket' ][ 'paymentMethodId' ] ) ) {
363
+ return $this->createUrl( $order, $_POST );
364
+ } else {
365
+ // process when fields are imcomplete
366
+ wc_add_notice(
367
+ '<p>' . __( 'A problem was occurred when processing your payment. Please, try again.', 'woocommerce-mercadopago-module' ) . '</p>',
368
+ 'error'
369
+ );
370
+ return array(
371
+ 'result' => 'fail',
372
+ 'redirect' => '',
373
+ );
374
+ }
375
+ }
376
+
377
+ protected function createUrl( $order, $post_from_form ) {
378
+
379
+ $mp = new MP( $this->access_token );
380
+ $mp->sandbox_mode( false );
381
+
382
+ // Creates the order parameters by checking the cart configuration
383
+ $preferences = $this->createPreferences( $order, $post_from_form );
384
+ try {
385
+ // Create order preferences with Mercado Pago API request
386
+ $ticket_info = $mp->create_payment( json_encode( $preferences ) );
387
+ if ( 'yes' == $this->debug ) {
388
+ $this->log->add( $this->id, $this->id .
389
+ ': @[createUrl] - Received [$checkout_info] from Mercado Pago API: ' .
390
+ json_encode( $ticket_info, JSON_PRETTY_PRINT ) );
391
+ }
392
+ if ( is_wp_error( $ticket_info ) ||
393
+ $ticket_info[ 'status' ] < 200 || $ticket_info[ 'status' ] >= 300 ) {
394
+ if ( 'yes' == $this->debug ) {
395
+ $this->log->add( $this->id, $this->id .
396
+ ': @[createUrl] - payment creation failed with error: ' .
397
+ $ticket_info[ 'response' ][ 'status' ] );
398
+ }
399
+ } else {
400
+ $response = $ticket_info[ 'response' ];
401
+ if ( array_key_exists( 'status', $response ) ) {
402
+ if ( $response[ 'status' ] == "pending" && $response[ 'status_detail' ] == "pending_waiting_payment" ) {
403
+ WC()->cart->empty_cart();
404
+
405
+ $html = '<p></p><p>' . wordwrap(
406
+ __( 'Thank you for your order. Please, pay the ticket to get your order approved.', 'woocommerce-mercadopago-module'),
407
+ 60, '<br>') . '</p>';
408
+ $html .=
409
+ '<a id="submit-payment" target="_blank" href="' . $response[ 'transaction_details' ][ 'external_resource_url' ] . '" class="button alt">' .
410
+ __( 'Print the Ticket', 'woocommerce-mercadopago-module' ) .
411
+ '</a> ';
412
+
413
+ wc_add_notice(
414
+ '<p>' . $html . '</p>',
415
+ 'notice'
416
+ );
417
+ $order->add_order_note(
418
+ 'Mercado Pago: ' .
419
+ __( 'Waiting for the ticket payment.', 'woocommerce-mercadopago-module' )
420
+ );
421
+ $order->add_order_note(
422
+ 'Mercado Pago: ' .
423
+ __( 'To reprint the ticket click ', 'woocommerce-mercadopago-module' ) .
424
+ '<a href="' . $response[ 'transaction_details' ][ 'external_resource_url' ] . '">' .
425
+ __( 'here', 'woocommerce-mercadopago-module' ) .
426
+ '</a>'
427
+ );
428
+
429
+ return array(
430
+ 'result' => 'success',
431
+ 'redirect' => $order->get_checkout_payment_url( true )
432
+ );
433
+ }
434
+ }
435
+ }
436
+ } catch ( MercadoPagoException $e ) {
437
+ if ( 'yes' == $this->debug ) {
438
+ $this->log->add(
439
+ $this->id, $this->id .
440
+ ': @[createUrl] - payment creation failed with exception: ' .
441
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
442
+ }
443
+ }
444
+ return false;
445
+
446
+ }
447
+
448
+ private function createPreferences( $order, $post_from_form ) {
449
+
450
+ // Here we build the array that contains ordered itens, from customer cart
451
+ $items = array();
452
+ $purchase_description = "";
453
+ if ( sizeof( $order->get_items() ) > 0 ) {
454
+ foreach ( $order->get_items() as $item ) {
455
+ if ( $item['qty'] ) {
456
+ $product = new WC_product( $item[ 'product_id' ] );
457
+ $purchase_description =
458
+ $purchase_description . ' ' .
459
+ ( $product->post->post_title . ' x ' . $item[ 'qty' ] );
460
+ array_push( $items, array(
461
+ 'id' => $item[ 'product_id' ],
462
+ 'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
463
+ 'description' => sanitize_file_name( (
464
+ // This handles description width limit of Mercado Pago
465
+ strlen( $product->post->post_content ) > 230 ?
466
+ substr( $product->post->post_content, 0, 230 ) . "..." :
467
+ $product->post->post_content
468
+ ) ),
469
+ 'picture_url' => wp_get_attachment_url( $product->get_image_id() ),
470
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
471
+ 'quantity' => 1,
472
+ 'unit_price' => floor( ( (float) $item[ 'line_total' ] + (float) $item[ 'line_tax' ] ) *
473
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ) * 100 ) / 100,
474
+ ));
475
+ }
476
+ }
477
+ }
478
+
479
+ // Creates the shipment cost structure
480
+ $shipping_cost = (float) $order->get_total_shipping();
481
+ if ( $shipping_cost > 0 ) {
482
+ $item = array(
483
+ 'title' => $this->workaroundAmperSandBug( $this->workaroundAmperSandBug( $order->get_shipping_to_display() ) ),
484
+ 'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
485
+ 'quantity' => 1,
486
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
487
+ 'unit_price' => $shipping_cost * ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 )
488
+ );
489
+ $items[] = $item;
490
+ }
491
+
492
+ // Discounts features
493
+ if ( isset( $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] ) &&
494
+ $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] != "" &&
495
+ $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] > 0 &&
496
+ isset( $post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] ) &&
497
+ $post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] != "" &&
498
+ WC()->session->chosen_payment_method == "woocommerce-mercadopago-ticket-module" ) {
499
+ $item = array(
500
+ 'title' => __( 'Discount', 'woocommerce-mercadopago-module' ),
501
+ 'description' => __( 'Discount provided by store', 'woocommerce-mercadopago-module' ),
502
+ 'quantity' => 1,
503
+ 'category_id' => $this->store_categories_id[ $this->category_id ],
504
+ 'unit_price' => - ( (float) $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] )
505
+ );
506
+ $items[] = $item;
507
+ }
508
+
509
+ // Build additional information from the customer data
510
+ $payer_additional_info = array(
511
+ 'first_name' => $order->billing_first_name,
512
+ 'last_name' => $order->billing_last_name,
513
+ //'registration_date' =>
514
+ 'phone' => array(
515
+ //'area_code' =>
516
+ 'number' => $order->billing_phone
517
+ ),
518
+ 'address' => array(
519
+ 'zip_code' => $order->billing_postcode,
520
+ //'street_number' =>
521
+ 'street_name' => $order->billing_address_1 . ' / ' .
522
+ $order->billing_city . ' ' .
523
+ $order->billing_state . ' ' .
524
+ $order->billing_country
525
+ )
526
+ );
527
+
528
+ // Create the shipment address information set
529
+ $shipments = array(
530
+ 'receiver_address' => array(
531
+ 'zip_code' => $order->shipping_postcode,
532
+ //'street_number' =>
533
+ 'street_name' => $order->shipping_address_1 . ' ' .
534
+ $order->shipping_address_2 . ' ' .
535
+ $order->shipping_city . ' ' .
536
+ $order->shipping_state . ' ' .
537
+ $order->shipping_country,
538
+ //'floor' =>
539
+ 'apartment' => $order->shipping_address_2
540
+ )
541
+ );
542
+
543
+ // The payment preference
544
+ $payment_preference = array (
545
+ 'transaction_amount' => floor( ( (float) $post_from_form[ 'mercadopago_ticket' ][ 'amount' ] ) * 100 ) / 100,
546
+ 'description' => $purchase_description,
547
+ 'payment_method_id' => $post_from_form[ 'mercadopago_ticket' ][ 'paymentMethodId' ],
548
+ 'payer' => array(
549
+ 'email' => $order->billing_email
550
+ ),
551
+ 'external_reference' => $this->invoice_prefix . $order->id,
552
+ 'additional_info' => array(
553
+ 'items' => $items,
554
+ 'payer' => $payer_additional_info,
555
+ 'shipments' => $shipments
556
+ )
557
+ );
558
+
559
+ // Do not set IPN url if it is a localhost!
560
+ $notification_url = $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoTicket_Gateway';
561
+ if ( !strrpos( $notification_url, "localhost" ) ) {
562
+ $payment_preference['notification_url'] = $this->workaroundAmperSandBug( $notification_url );
563
+ }
564
+
565
+ // Discounts features
566
+ if ( isset( $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] ) &&
567
+ $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] != "" &&
568
+ $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] > 0 &&
569
+ isset( $post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] ) &&
570
+ $post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] != "" &&
571
+ WC()->session->chosen_payment_method == "woocommerce-mercadopago-ticket-module" ) {
572
+ $payment_preference[ 'campaign_id' ] = (int) $post_from_form[ 'mercadopago_ticket' ][ 'campaign_id' ];
573
+ $payment_preference[ 'coupon_amount' ] = ( (float) $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] );
574
+ $payment_preference[ 'coupon_code' ] = strtoupper( $post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] );
575
+ }
576
+
577
+ if ( !$this->isTestUser ) {
578
+ $preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
579
+ }
580
+
581
+ if ( 'yes' == $this->debug ) {
582
+ $this->log->add( $this->id, $this->id .
583
+ ': @[createPreferences] - Returning just created [$payment_preference] structure: ' .
584
+ json_encode( $payment_preference, JSON_PRETTY_PRINT ) );
585
+ }
586
+
587
+ $payment_preference = apply_filters(
588
+ 'woocommerce_mercadopago_module_ticket_preferences',
589
+ $payment_preference, $order
590
+ );
591
+ return $payment_preference;
592
+
593
+ }
594
+
595
+ public function add_discount_ticket() {
596
+ if ( is_admin() && ! defined( 'DOING_AJAX' ) || is_cart() ) {
597
+ return;
598
+ }
599
+ if ( 'yes' == $this->debug ) {
600
+ $this->log->add( $this->id, $this->id . ': @[add_discount_ticket] - Ticket trying to apply discount...' );
601
+ }
602
+ if ( isset( $_POST[ 'mercadopago_ticket' ][ 'discount' ] ) &&
603
+ $_POST[ 'mercadopago_ticket' ][ 'discount' ] != "" &&
604
+ $_POST[ 'mercadopago_ticket' ][ 'discount' ] > 0 &&
605
+ isset( $_POST[ 'mercadopago_ticket' ][ 'coupon_code' ] ) &&
606
+ $_POST[ 'mercadopago_ticket' ][ 'coupon_code' ] != "" &&
607
+ WC()->session->chosen_payment_method == "woocommerce-mercadopago-ticket-module" ) {
608
+ $value = ( $_POST[ 'mercadopago_ticket' ][ 'discount' ] ) /
609
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 );
610
+ global $woocommerce;
611
+ if ( apply_filters( 'wc_mercadopagoticket_module_apply_discount', 0 < $value, $woocommerce->cart ) ) {
612
+ $woocommerce->cart->add_fee(
613
+ sprintf( __( 'Discount for %s coupon', 'woocommerce-mercadopago-module' ), esc_attr( $_POST[ 'mercadopago_ticket' ][ 'campaign' ] ) ),
614
+ ( $value * -1 ), true
615
+ );
616
+ }
617
+ }
618
+ }
619
+
620
+ /*
621
+ * ========================================================================
622
+ * AUXILIARY AND FEEDBACK METHODS
623
+ * ========================================================================
624
+ */
625
+
626
+ // Fix to URL Problem : #038; replaces & and breaks the navigation
627
+ function workaroundAmperSandBug( $link ) {
628
+ return str_replace('&#038;', '&', $link);
629
+ }
630
+
631
+ // Check if we have valid credentials.
632
+ public function validateCredentials() {
633
+ if ( empty( $this->access_token ) ) return false;
634
+ if ( strlen( $this->access_token ) > 0 ) {
635
+ try {
636
+ $mp = new MP( $this->access_token );
637
+ $get_request = $mp->get( "/users/me?access_token=" . $this->access_token );
638
+ if ( isset( $get_request[ 'response' ][ 'site_id' ] ) ) {
639
+ $this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
640
+ $this->site_id = $get_request[ 'response' ][ 'site_id' ];
641
+ // get ticket payments
642
+ $payments = $mp->get( "/v1/payment_methods/?access_token=" . $this->access_token );
643
+ foreach ( $payments[ "response" ] as $payment ) {
644
+ if ( $payment[ 'payment_type_id' ] != 'account_money' && $payment[ 'payment_type_id' ] != 'credit_card' &&
645
+ $payment[ 'payment_type_id' ] != 'debit_card' && $payment[ 'payment_type_id' ] != 'prepaid_card' ) {
646
+ array_push( $this->payment_methods, $payment );
647
+ }
648
+ }
649
+ // check for auto converstion of currency
650
+ $currency_obj = MPRestClient::get_ml( array( "uri" =>
651
+ "/currency_conversions/search?from=" .
652
+ get_woocommerce_currency() .
653
+ "&to=" .
654
+ $this->getCurrencyId( $this->site_id )
655
+ ) );
656
+ if ( isset( $currency_obj[ 'response' ] ) ) {
657
+ $currency_obj = $currency_obj[ 'response' ];
658
+ if ( isset( $currency_obj['ratio'] ) ) {
659
+ $this->currency_ratio = (float) $currency_obj['ratio'];
660
+ } else {
661
+ $this->currency_ratio = -1;
662
+ }
663
+ } else {
664
+ $this->currency_ratio = -1;
665
+ }
666
+ return true;
667
+ } else return false;
668
+ } catch ( MercadoPagoException $e ) {
669
+ return false;
670
+ }
671
+ }
672
+ return false;
673
+ }
674
+
675
+ // Build the string representing the path to the log file
676
+ protected function buildLogPathString() {
677
+ return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
678
+ esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
679
+ __( 'WooCommerce &gt; System Status &gt; Logs', 'woocommerce-mercadopago-module' ) . '</a>';
680
+ }
681
+
682
+ // Return boolean indicating if currency is supported.
683
+ protected function isSupportedCurrency() {
684
+ return get_woocommerce_currency() == $this->getCurrencyId( $this->site_id );
685
+ }
686
+
687
+ // Get currency id for a country
688
+ protected function getCurrencyId( $site_id ) {
689
+ switch ( $site_id ) {
690
+ case 'MLA': return 'ARS';
691
+ case 'MLB': return 'BRL';
692
+ case 'MCO': return 'COP';
693
+ case 'MLC': return 'CLP';
694
+ case 'MLM': return 'MXN';
695
+ case 'MLV': return 'VEF';
696
+ case 'MPE': return 'PEN';
697
+ default: return '';
698
+ }
699
+ }
700
+
701
+ public function checkSSLAbsence() {
702
+ if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
703
+ if ( 'yes' == $this->settings[ 'enabled' ] ) {
704
+ echo '<div class="error"><p><strong>' .
705
+ __( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
706
+ '</strong>: ' .
707
+ sprintf(
708
+ __( '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' )
709
+ ) . '</p></div>';
710
+ }
711
+ }
712
+ }
713
+
714
+ // Called automatically by WooCommerce, verify if Module is available to use.
715
+ public function is_available() {
716
+ // check SSL connection, as we can't use normal http in custom checkout
717
+ if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
718
+ return false;
719
+ }
720
+ $available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
721
+ ! empty( $this->access_token );
722
+ return $available;
723
+ }
724
+
725
+ // Get the URL to admin page.
726
+ protected function admin_url() {
727
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
728
+ return admin_url(
729
+ 'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopagoticket_gateway'
730
+ );
731
+ }
732
+ return admin_url(
733
+ 'admin.php?page=woocommerce_settings&tab=payment_gateways&section=WC_WooMercadoPagoTicket_Gateway'
734
+ );
735
+ }
736
+
737
+ // Notify that access_token are not valid.
738
+ public function credentialsMissingMessage() {
739
+ echo '<div class="error"><p><strong>' .
740
+ __( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
741
+ '</strong>: ' .
742
+ sprintf(
743
+ __( 'Your Mercado Pago credentials Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
744
+ '<a href="' . $this->admin_url() . '">' .
745
+ __( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
746
+ '</p></div>';
747
+ }
748
+
749
+ public function getCountryName( $site_id ) {
750
+ $country = $site_id;
751
+ switch ( $site_id ) {
752
+ case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
753
+ case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
754
+ case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
755
+ case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
756
+ case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
757
+ case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
758
+ case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
759
+ }
760
+ }
761
+
762
+ /*
763
+ * ========================================================================
764
+ * IPN MECHANICS
765
+ * ========================================================================
766
+ */
767
+
768
+ // [Server Side] This call checks any incoming notifications from Mercado Pago server.
769
+ public function process_http_request() {
770
+ @ob_clean();
771
+ if ( 'yes' == $this->debug ) {
772
+ $this->log->add( $this->id, $this->id .
773
+ ': @[process_http_request] - Received _get content: ' .
774
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
775
+ }
776
+ if ( isset( $_GET[ 'coupon_id' ] ) && $_GET[ 'coupon_id' ] != '' ) {
777
+ // process coupon evaluations
778
+ if ( isset( $_GET[ 'payer' ] ) && $_GET[ 'payer' ] != '' ) {
779
+ $logged_user_email = $_GET[ 'payer' ];
780
+ $coupon_id = $_GET[ 'coupon_id' ];
781
+ $mp = new MP( $this->access_token );
782
+ if ( 'yes' == $this->sandbox )
783
+ $mp->sandbox_mode( true );
784
+ else
785
+ $mp->sandbox_mode( false );
786
+ $response = $mp->check_discount_campaigns(
787
+ $_GET[ 'amount' ],
788
+ $logged_user_email,
789
+ $coupon_id
790
+ );
791
+ header( 'HTTP/1.1 200 OK' );
792
+ header( 'Content-Type: application/json' );
793
+ echo json_encode( $response );
794
+ } else {
795
+ $obj = new stdClass();
796
+ $obj->status = 404;
797
+ $obj->response = array(
798
+ 'message' => __( 'Please, inform your email in billing address to use this feature', 'woocommerce-mercadopago-module' ),
799
+ 'error' => 'payer_not_found',
800
+ 'status' => 404,
801
+ 'cause' => array()
802
+ );
803
+ header( 'HTTP/1.1 200 OK' );
804
+ header( 'Content-Type: application/json' );
805
+ echo json_encode( $obj );
806
+ }
807
+ exit(0);
808
+ } else {
809
+ // process IPN messages
810
+ $data = $this->check_ipn_request_is_valid( $_GET );
811
+ if ( $data ) {
812
+ header( 'HTTP/1.1 200 OK' );
813
+ do_action( 'valid_mercadopagoticket_ipn_request', $data );
814
+ }
815
+ }
816
+ }
817
+
818
+ // Get received data from IPN and checks if we have an associated
819
+ // payment. If we have these information, we return data to be
820
+ // processed by successful_request function.
821
+ public function check_ipn_request_is_valid( $data ) {
822
+
823
+ if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
824
+ if ( 'yes' == $this->debug ) {
825
+ $this->log->add( $this->id, $this->id .
826
+ ': @[check_ipn_request_is_valid] - data_id or type not set: ' .
827
+ json_encode( $data, JSON_PRETTY_PRINT ) );
828
+ }
829
+ // at least, check if its a v0 ipn
830
+ if ( !isset( $data[ 'id' ] ) || !isset( $data[ 'topic' ] ) ) {
831
+ if ( 'yes' == $this->debug ) {
832
+ $this->log->add(
833
+ $this->id, $this->id .
834
+ ': @[check_ipn_response] - Mercado Pago Request Failure: ' .
835
+ json_encode( $_GET, JSON_PRETTY_PRINT ) );
836
+ }
837
+ wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
838
+ } else {
839
+ header( 'HTTP/1.1 200 OK' );
840
+ }
841
+ // No ID? No process!
842
+ return false;
843
+ }
844
+
845
+ $mp = new MP( $this->access_token );
846
+ $mp->sandbox_mode( false );
847
+ try {
848
+ $access_token = array( "access_token" => $mp->get_access_token() );
849
+ if ( $data[ "type" ] == 'payment' ) {
850
+ $payment_info = $mp->get( "/v1/payments/" . $data[ "data_id" ], $access_token, false );
851
+ if ( !is_wp_error( $payment_info ) &&
852
+ ( $payment_info[ "status" ] == 200 || $payment_info[ "status" ] == 201 ) ) {
853
+ return $payment_info[ 'response' ];
854
+ } else {
855
+ if ( 'yes' == $this->debug ) {
856
+ $this->log->add( $this->id, $this->id .
857
+ ': @[check_ipn_request_is_valid] - error when processing received data: ' .
858
+ json_encode( $payment_info, JSON_PRETTY_PRINT ) );
859
+ }
860
+ return false;
861
+ }
862
+ }
863
+ } catch ( MercadoPagoException $e ) {
864
+ if ( 'yes' == $this->debug ) {
865
+ $this->log->add(
866
+ $this->id, $this->id .
867
+ ': @[check_ipn_request_is_valid] - MercadoPagoException: ' .
868
+ json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
869
+ }
870
+ return false;
871
+ }
872
+ return true;
873
+ }
874
+
875
+ // Properly handles each case of notification, based in payment status.
876
+ public function successful_request( $data ) {
877
+ if ( 'yes' == $this->debug ) {
878
+ $this->log->add( $this->id, $this->id .
879
+ ': @[successful_request] - starting to process ipn update...' );
880
+ }
881
+ $order_key = $data[ 'external_reference' ];
882
+ if ( !empty( $order_key ) ) {
883
+ $order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
884
+ $order = new WC_Order( $order_id );
885
+ // Checks whether the invoice number matches the order, if true processes the payment
886
+ if ( $order->id === $order_id ) {
887
+ if ( 'yes' == $this->debug ) {
888
+ $this->log->add( $this->id, $this->id .
889
+ ': @[successful_request] - got order with ID ' . $order->id .
890
+ ' and status ' . $data[ 'status' ] );
891
+ }
892
+ // Order details.
893
+ if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
894
+ update_post_meta(
895
+ $order_id,
896
+ __( 'Payer email',
897
+ 'woocommerce-mercadopago-module' ),
898
+ $data[ 'payer' ][ 'email' ]
899
+ );
900
+ }
901
+ if ( !empty( $data[ 'payment_type_id' ] ) ) {
902
+ update_post_meta(
903
+ $order_id,
904
+ __( 'Payment type',
905
+ 'woocommerce-mercadopago-module' ),
906
+ $data[ 'payment_type_id' ]
907
+ );
908
+ }
909
+ if ( !empty( $data ) ) {
910
+ update_post_meta(
911
+ $order_id,
912
+ __( 'Mercado Pago Payment ID',
913
+ 'woocommerce-mercadopago-module' ),
914
+ $data[ 'id' ]
915
+ );
916
+ }
917
+ // Switch the status and update in WooCommerce
918
+ switch ( $data[ 'status' ] ) {
919
+ case 'approved':
920
+ $order->add_order_note(
921
+ 'Mercado Pago: ' . __( 'Payment approved.',
922
+ 'woocommerce-mercadopago-module' )
923
+ );
924
+ $order->payment_complete();
925
+ break;
926
+ case 'pending':
927
+ $order->add_order_note(
928
+ 'Mercado Pago: ' . __( 'Customer haven\'t paid yet.',
929
+ 'woocommerce-mercadopago-module' )
930
+ );
931
+ break;
932
+ case 'in_process':
933
+ $order->update_status(
934
+ 'on-hold',
935
+ 'Mercado Pago: ' . __( 'Payment under review.',
936
+ 'woocommerce-mercadopago-module' )
937
+ );
938
+ break;
939
+ case 'rejected':
940
+ $order->update_status(
941
+ 'failed',
942
+ 'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.',
943
+ 'woocommerce-mercadopago-module' )
944
+ );
945
+ break;
946
+ case 'refunded':
947
+ $order->update_status(
948
+ 'refunded',
949
+ 'Mercado Pago: ' . __( 'The payment was refunded to the customer.',
950
+ 'woocommerce-mercadopago-module' )
951
+ );
952
+ break;
953
+ case 'cancelled':
954
+ $order->update_status(
955
+ 'cancelled',
956
+ 'Mercado Pago: ' . __( 'The payment was cancelled.',
957
+ 'woocommerce-mercadopago-module' )
958
+ );
959
+ break;
960
+ case 'in_mediation':
961
+ $order->add_order_note(
962
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
963
+ 'woocommerce-mercadopago-module' )
964
+ );
965
+ break;
966
+ case 'charged-back':
967
+ $order->add_order_note(
968
+ 'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
969
+ 'woocommerce-mercadopago-module' )
970
+ );
971
+ break;
972
+ default:
973
+ break;
974
+ }
975
+ }
976
+ }
977
+ }
978
+
979
+ }
980
+
981
+ new WC_WooMercadoPagoTicket_Gateway();
mercadopago/sdk/lib/cacert.pem CHANGED
File without changes
mercadopago/sdk/lib/mercadopago.php CHANGED
@@ -75,6 +75,97 @@ class MP {
75
  return $this->access_data['access_token'];
76
  }
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  /**
79
  * Get information for specific payment
80
  * @param int $id
@@ -203,18 +294,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 +345,26 @@ class MP {
251
  $preference_result = MPRestClient::get($request);
252
  return $preference_result;
253
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
 
255
  /**
256
  * Create a preapproval payment
@@ -416,6 +530,86 @@ class MP {
416
  */
417
  class MPRestClient {
418
  const API_BASE_URL = "https://api.mercadopago.com";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
419
 
420
  private static function build_request($request) {
421
  if (!extension_loaded ("curl")) {
@@ -496,6 +690,43 @@ class MPRestClient {
496
  return $connect;
497
  }
498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
499
  private static function exec($request) {
500
  // private static function exec($method, $uri, $data, $content_type) {
501
 
@@ -513,7 +744,7 @@ class MPRestClient {
513
  "response" => json_decode($api_result, true)
514
  );
515
 
516
- if ($response['status'] >= 400) {
517
  $message = $response['response']['message'];
518
  if (isset ($response['response']['cause'])) {
519
  if (isset ($response['response']['cause']['code']) && isset ($response['response']['cause']['description'])) {
@@ -526,7 +757,7 @@ class MPRestClient {
526
  }
527
 
528
  throw new MercadoPagoException ($message, $response['status']);
529
- }
530
 
531
  curl_close($connect);
532
 
@@ -545,6 +776,12 @@ class MPRestClient {
545
  }
546
  }
547
 
 
 
 
 
 
 
548
  public static function get($request) {
549
  $request["method"] = "GET";
550
 
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
+ public function check_discount_campaigns($transaction_amount, $payer_email, $coupon_code) {
155
+ $request = array(
156
+ "uri" => "/discount_campaigns",
157
+ "params" => array(
158
+ "access_token" => $this->get_access_token(),
159
+ "transaction_amount" => $transaction_amount,
160
+ "payer_email" => $payer_email,
161
+ "coupon_code" => $coupon_code
162
+ )
163
+ );
164
+
165
+ $discount_info = MPRestClient::get($request);
166
+ return $discount_info;
167
+ }
168
+
169
  /**
170
  * Get information for specific payment
171
  * @param int $id
294
  * @param array $preference
295
  * @return array(json)
296
  */
297
+ public function create_preference($preference) {
298
+ $request = array(
299
+ "uri" => "/checkout/preferences",
300
+ "params" => array(
301
+ "access_token" => $this->get_access_token()
302
+ ),
303
+ "headers" => array(
304
+ "user-agent" => "platform:desktop,type:woocommerce,so:2.1.0"
305
+ ),
306
+ "data" => $preference
307
+ );
308
+
309
+ $preference_result = MPRestClient::post($request);
310
+ return $preference_result;
311
+ }
312
 
313
  /**
314
  * Update a checkout preference
345
  $preference_result = MPRestClient::get($request);
346
  return $preference_result;
347
  }
348
+
349
+ /**
350
+ * Create a checkout preference
351
+ * @param array $preference
352
+ * @return array(json)
353
+ */
354
+ public function create_payment($preference) {
355
+ $request = array(
356
+ "uri" => "/v1/payments",
357
+ "params" => array(
358
+ "access_token" => $this->get_access_token()
359
+ ),
360
+ "headers" => array(
361
+ "X-Tracking-Id" => "platform:v1-whitelabel,type:woocommerce,so:2.1.0"
362
+ ),
363
+ "data" => $preference
364
+ );
365
+ $payment = MPRestClient::post($request);
366
+ return $payment;
367
+ }
368
 
369
  /**
370
  * Create a preapproval payment
530
  */
531
  class MPRestClient {
532
  const API_BASE_URL = "https://api.mercadopago.com";
533
+ const API_BASE_ML_URL = "https://api.mercadolibre.com";
534
+
535
+ private static function build_request_ml($request) {
536
+ if (!extension_loaded ("curl")) {
537
+ throw new MercadoPagoException("cURL extension not found. You need to enable cURL in your php.ini or another configuration you have.");
538
+ }
539
+
540
+ if (!isset($request["method"])) {
541
+ throw new MercadoPagoException("No HTTP METHOD specified");
542
+ }
543
+
544
+ if (!isset($request["uri"])) {
545
+ throw new MercadoPagoException("No URI specified");
546
+ }
547
+
548
+ // Set headers
549
+ $headers = array("accept: application/json");
550
+ $json_content = true;
551
+ $form_content = false;
552
+ $default_content_type = true;
553
+
554
+ if (isset($request["headers"]) && is_array($request["headers"])) {
555
+ foreach ($request["headers"] as $h => $v) {
556
+ $h = strtolower($h);
557
+ $v = strtolower($v);
558
+
559
+ if ($h == "content-type") {
560
+ $default_content_type = false;
561
+ $json_content = $v == "application/json";
562
+ $form_content = $v == "application/x-www-form-urlencoded";
563
+ }
564
+
565
+ array_push ($headers, $h.": ".$v);
566
+ }
567
+ }
568
+ if ($default_content_type) {
569
+ array_push($headers, "content-type: application/json");
570
+ }
571
+
572
+ // Build $connect
573
+ $connect = curl_init();
574
+
575
+ curl_setopt($connect, CURLOPT_USERAGENT, "MercadoPago PHP SDK v" . MP::version);
576
+ curl_setopt($connect, CURLOPT_RETURNTRANSFER, true);
577
+ curl_setopt($connect, CURLOPT_SSL_VERIFYPEER, true);
578
+ curl_setopt($connect, CURLOPT_CAINFO, $GLOBALS["LIB_LOCATION"] . "/cacert.pem");
579
+ curl_setopt($connect, CURLOPT_CUSTOMREQUEST, $request["method"]);
580
+ curl_setopt($connect, CURLOPT_HTTPHEADER, $headers);
581
+
582
+ // Set parameters and url
583
+ if (isset ($request["params"]) && is_array($request["params"]) && count($request["params"]) > 0) {
584
+ $request["uri"] .= (strpos($request["uri"], "?") === false) ? "?" : "&";
585
+ $request["uri"] .= self::build_query($request["params"]);
586
+ }
587
+ curl_setopt($connect, CURLOPT_URL, self::API_BASE_ML_URL . $request["uri"]);
588
+
589
+ // Set data
590
+ if (isset($request["data"])) {
591
+ if ($json_content) {
592
+ if (gettype($request["data"]) == "string") {
593
+ json_decode($request["data"], true);
594
+ } else {
595
+ $request["data"] = json_encode($request["data"]);
596
+ }
597
+
598
+ if(function_exists('json_last_error')) {
599
+ $json_error = json_last_error();
600
+ if ($json_error != JSON_ERROR_NONE) {
601
+ throw new MercadoPagoException("JSON Error [{$json_error}] - Data: ".$request["data"]);
602
+ }
603
+ }
604
+ } else if ($form_content) {
605
+ $request["data"] = self::build_query($request["data"]);
606
+ }
607
+
608
+ curl_setopt($connect, CURLOPT_POSTFIELDS, $request["data"]);
609
+ }
610
+
611
+ return $connect;
612
+ }
613
 
614
  private static function build_request($request) {
615
  if (!extension_loaded ("curl")) {
690
  return $connect;
691
  }
692
 
693
+ private static function exec_ml($request) {
694
+ // private static function exec($method, $uri, $data, $content_type) {
695
+
696
+ $connect = self::build_request_ml($request);
697
+
698
+ $api_result = curl_exec($connect);
699
+ $api_http_code = curl_getinfo($connect, CURLINFO_HTTP_CODE);
700
+
701
+ if ($api_result === FALSE) {
702
+ throw new MercadoPagoException (curl_error ($connect));
703
+ }
704
+
705
+ $response = array(
706
+ "status" => $api_http_code,
707
+ "response" => json_decode($api_result, true)
708
+ );
709
+
710
+ /*if ($response['status'] >= 400) {
711
+ $message = $response['response']['message'];
712
+ if (isset ($response['response']['cause'])) {
713
+ if (isset ($response['response']['cause']['code']) && isset ($response['response']['cause']['description'])) {
714
+ $message .= " - ".$response['response']['cause']['code'].': '.$response['response']['cause']['description'];
715
+ } else if (is_array ($response['response']['cause'])) {
716
+ foreach ($response['response']['cause'] as $cause) {
717
+ $message .= " - ".$cause['code'].': '.$cause['description'];
718
+ }
719
+ }
720
+ }
721
+
722
+ throw new MercadoPagoException ($message, $response['status']);
723
+ }*/
724
+
725
+ curl_close($connect);
726
+
727
+ return $response;
728
+ }
729
+
730
  private static function exec($request) {
731
  // private static function exec($method, $uri, $data, $content_type) {
732
 
744
  "response" => json_decode($api_result, true)
745
  );
746
 
747
+ /*if ($response['status'] >= 400) {
748
  $message = $response['response']['message'];
749
  if (isset ($response['response']['cause'])) {
750
  if (isset ($response['response']['cause']['code']) && isset ($response['response']['cause']['description'])) {
757
  }
758
 
759
  throw new MercadoPagoException ($message, $response['status']);
760
+ }*/
761
 
762
  curl_close($connect);
763
 
776
  }
777
  }
778
 
779
+ public static function get_ml($request) {
780
+ $request["method"] = "GET";
781
+
782
+ return self::exec_ml($request);
783
+ }
784
+
785
  public static function get($request) {
786
  $request["method"] = "GET";
787
 
templates/credit-card/payment-form.php ADDED
@@ -0,0 +1,1137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <div class="mp-box-inputs mp-line" id="mercadopago-form-coupon" style="padding:0px 36px 16px 36px;">
24
+ <label for="couponCodeLabel"><?php echo $form_labels['form']['coupon_of_discounts']; ?></label>
25
+ <div class="mp-box-inputs mp-col-65">
26
+ <input type="text" id="couponCode" name="mercadopago_custom[coupon_code]" autocomplete="off" maxlength="24" />
27
+ <span class="mp-discount" id="mpCouponApplyed" ></span>
28
+ <span class="mp-error" id="mpCouponError" ></span>
29
+ </div>
30
+ <div class="mp-box-inputs mp-col-10">
31
+ <div id="mp-separete-date"></div>
32
+ </div>
33
+ <div class="mp-box-inputs mp-col-25">
34
+ <input type="button" class="button" id="applyCoupon" value="<?php echo $form_labels['form']['apply']; ?>" >
35
+ </div>
36
+ </div>
37
+
38
+ <!-- payment method -->
39
+ <div id="mercadopago-form-customer-and-card" style="padding:0px 36px 0px 36px;">
40
+ <div class="mp-box-inputs mp-line">
41
+ <label for="paymentMethodIdSelector"><?php echo $form_labels['form']['payment_method']; ?> <em>*</em></label>
42
+ <select id="paymentMethodSelector" name="mercadopago_custom[paymentMethodSelector]" data-checkout='cardId'>
43
+ <optgroup label=<?php echo $form_labels['form']['your_card']; ?> id="payment-methods-for-customer-and-cards">
44
+ <?php foreach ( $customer_cards as $card) { ?>
45
+ <option value=<?php echo $card["id"]; ?>
46
+ first_six_digits=<?php echo $card["first_six_digits"]; ?>
47
+ last_four_digits=<?php echo $card["last_four_digits"]; ?>
48
+ security_code_length=<?php echo $card["security_code"]["length"]; ?>
49
+ type_checkout="customer_and_card"
50
+ payment_method_id=<?php echo $card["payment_method"]["id"]; ?>>
51
+ <?php echo ucfirst($card["payment_method"]["name"]); ?> <?php echo $form_labels['form']['ended_in']; ?> <?php echo $card["last_four_digits"]; ?>
52
+ </option>
53
+ <?php } ?>
54
+ </optgroup>
55
+ <optgroup label="<?php echo $form_labels['form']['other_cards']; ?>" id="payment-methods-list-other-cards">
56
+ <option value="-1"><?php echo $form_labels['form']['other_card']; ?></option>
57
+ </optgroup>
58
+ </select>
59
+ </div>
60
+ <div class="mp-box-inputs mp-line" id="mp-securityCode-customer-and-card">
61
+ <div class="mp-box-inputs mp-col-45">
62
+ <label for="customer-and-card-securityCode"><?php echo $form_labels['form']['security_code']; ?> <em>*</em></label>
63
+ <input type="text" id="customer-and-card-securityCode" data-checkout="securityCode" autocomplete="off" maxlength="4"
64
+ style="padding: 8px; background: url( <?php echo ( $images_path . 'cvv.png' ); ?> ) 98% 50% no-repeat;"/>
65
+ <span class="mp-error" id="mp-error-224" data-main="#customer-and-card-securityCode"> <?php echo $form_labels['error']['224']; ?> </span>
66
+ <span class="mp-error" id="mp-error-E302" data-main="#customer-and-card-securityCode"> <?php echo $form_labels['error']['E302']; ?> </span>
67
+ <span class="mp-error" id="mp-error-E203" data-main="#customer-and-card-securityCode"> <?php echo $form_labels['error']['E203']; ?> </span>
68
+ </div>
69
+ </div>
70
+ </div> <!-- end mercadopago-form-osc -->
71
+
72
+ <div id="mercadopago-form" style="padding:0px 36px 0px 36px;">
73
+ <!-- Card Number -->
74
+ <div class="mp-box-inputs mp-col-100">
75
+ <label for="cardNumber"><?php echo $form_labels['form']['credit_card_number']; ?> <em>*</em></label>
76
+ <input type="text" id="cardNumber" data-checkout="cardNumber" autocomplete="off" maxlength="19"/>
77
+ <span class="mp-error" id="mp-error-205" data-main="#cardNumber"> <?php echo $form_labels['error']['205']; ?> </span>
78
+ <span class="mp-error" id="mp-error-E301" data-main="#cardNumber"> <?php echo $form_labels['error']['E301']; ?> </span>
79
+ </div>
80
+ <!-- Expiry Date -->
81
+ <div class="mp-box-inputs mp-line">
82
+ <div class="mp-box-inputs mp-col-45">
83
+ <label for="cardExpirationMonth"><?php echo $form_labels['form']['expiration_month']; ?> <em>*</em></label>
84
+ <select id="cardExpirationMonth" data-checkout="cardExpirationMonth" name="mercadopago_custom[cardExpirationMonth]">
85
+ <option value="-1"> <?php echo $form_labels['form']['month']; ?> </option>
86
+ <?php for ($x=1; $x<=12; $x++): ?>
87
+ <option value="<?php echo $x; ?>"> <?php echo $x; ?></option>
88
+ <?php endfor; ?>
89
+ </select>
90
+ </div>
91
+ <div class="mp-box-inputs mp-col-10">
92
+ <div id="mp-separete-date">
93
+ /
94
+ </div>
95
+ </div>
96
+ <div class="mp-box-inputs mp-col-45">
97
+ <label for="cardExpirationYear"><?php echo $form_labels['form']['expiration_year']; ?> <em>*</em></label>
98
+ <select id="cardExpirationYear" data-checkout="cardExpirationYear" name="mercadopago_custom[cardExpirationYear]">
99
+ <option value="-1"> <?php echo $form_labels['form']['year']; ?> </option>
100
+ <?php for ($x=date("Y"); $x<= date("Y") + 10; $x++): ?>
101
+ <option value="<?php echo $x; ?>"> <?php echo $x; ?> </option>
102
+ <?php endfor; ?>
103
+ </select>
104
+ </div>
105
+ <span class="mp-error" id="mp-error-208" data-main="#cardExpirationMonth"> <?php echo $form_labels['error']['208']; ?> </span>
106
+ <span class="mp-error" id="mp-error-209" data-main="#cardExpirationYear"> </span>
107
+ <span class="mp-error" id="mp-error-325" data-main="#cardExpirationMonth"> <?php echo $form_labels['error']['325']; ?> </span>
108
+ <span class="mp-error" id="mp-error-326" data-main="#cardExpirationYear"> </span>
109
+ </div>
110
+ <!-- Card Holder Name -->
111
+ <div class="mp-box-inputs mp-col-100">
112
+ <label for="cardholderName"><?php echo $form_labels['form']['card_holder_name']; ?> <em>*</em></label>
113
+ <input type="text" id="cardholderName" name="mercadopago_custom[cardholderName]" data-checkout="cardholderName" autocomplete="off" />
114
+ <span class="mp-error" id="mp-error-221" data-main="#cardholderName"> <?php echo $form_labels['error']['221']; ?> </span>
115
+ <span class="mp-error" id="mp-error-316" data-main="#cardholderName"> <?php echo $form_labels['error']['316']; ?> </span>
116
+ </div>
117
+ <!-- CVV -->
118
+ <div class="mp-box-inputs mp-line">
119
+ <div class="mp-box-inputs mp-col-45">
120
+ <label for="securityCode"><?php echo $form_labels['form']['security_code']; ?> <em>*</em></label>
121
+ <input type="text" id="securityCode" data-checkout="securityCode" autocomplete="off" maxlength="4" style="padding: 8px; background: url( <?php echo ( $images_path . 'cvv.png' ); ?> ) 98% 50% no-repeat;" />
122
+ <span class="mp-error" id="mp-error-224" data-main="#securityCode"> <?php echo $form_labels['error']['224']; ?> </span>
123
+ <span class="mp-error" id="mp-error-E302" data-main="#securityCode"> <?php echo $form_labels['error']['E302']; ?> </span>
124
+ </div>
125
+ </div>
126
+ <!-- Document Type -->
127
+ <div class="mp-box-inputs mp-col-100 mp-doc">
128
+ <div class="mp-box-inputs mp-col-35 mp-docType">
129
+ <label for="docType"><?php echo $form_labels['form']['document_type']; ?> <em>*</em></label>
130
+ <select id="docType" data-checkout="docType" name="mercadopago_custom[docType]"></select>
131
+ <span class="mp-error" id="mp-error-212" data-main="#docType"> <?php echo $form_labels['error']['212']; ?> </span>
132
+ <span class="mp-error" id="mp-error-322" data-main="#docType"> <?php echo $form_labels['error']['322']; ?> </span>
133
+ </div>
134
+ <div class="mp-box-inputs mp-col-65 mp-docNumber">
135
+ <label for="docNumber"><?php echo $form_labels['form']['document_number']; ?> <em>*</em></label>
136
+ <input type="text" id="docNumber" data-checkout="docNumber" name="mercadopago_custom[docNumber]" autocomplete="off" />
137
+ <span class="mp-error" id="mp-error-214" data-main="#docNumber"> <?php echo $form_labels['error']['214']; ?> </span>
138
+ <span class="mp-error" id="mp-error-324" data-main="#docNumber"> <?php echo $form_labels['error']['324']; ?> </span>
139
+ </div>
140
+ </div>
141
+ <!-- Issuer -->
142
+ <div class="mp-box-inputs mp-col-100 mp-issuer">
143
+ <label for="issuer"><?php echo $form_labels['form']['issuer']; ?> <em>*</em></label>
144
+ <select id="issuer" data-checkout="issuer" name="mercadopago_custom[issuer]"></select>
145
+ <span class="mp-error" id="mp-error-220" data-main="#issuer"> <?php echo $form_labels['error']['220']; ?> </span>
146
+ </div>
147
+ </div> <!-- end #mercadopago-form -->
148
+
149
+ <div class="mp-box-inputs mp-col-100" style="padding:0px 36px 0px 36px;">
150
+ <label for="installments">
151
+ <?php echo $form_labels['form']['installments']; ?>
152
+ <?php if ($is_currency_conversion > 0) { ?>
153
+ <?php echo "(" . $form_labels['form']['payment_converted'] . " " . $woocommerce_currency . " " . $form_labels['form']['to'] . " " . $account_currency . ")"; ?>
154
+ <?php } ?>
155
+ <em>*</em>
156
+ </label>
157
+ <select id="installments" data-checkout="installments" name="mercadopago_custom[installments]"></select>
158
+ </div>
159
+ <div class="mp-box-inputs mp-line" style="padding:0px 36px 0px 36px;">
160
+ <!-- <div class="mp-box-inputs mp-col-50">
161
+ <input type="submit" id="submit" value="Pay">
162
+ </div> -->
163
+ <!-- NOT DELETE LOADING-->
164
+ <div class="mp-box-inputs mp-col-25">
165
+ <div id="mp-box-loading"></div>
166
+ </div>
167
+ </div>
168
+ <div class="mp-box-inputs mp-col-100" id="mercadopago-utilities" style="padding:0px 36px 0px 36px;">
169
+ <input type="hidden" id="site_id" name="mercadopago_custom[site_id]"/>
170
+ <input type="hidden" id="amount" value='<?php echo $amount; ?>' name="mercadopago_custom[amount]"/>
171
+ <input type="hidden" id="campaign_id" name="mercadopago_custom[campaign_id]"/>
172
+ <input type="hidden" id="campaign" name="mercadopago_custom[campaign]"/>
173
+ <input type="hidden" id="discount" name="mercadopago_custom[discount]"/>
174
+ <input type="hidden" id="paymentMethodId" name="mercadopago_custom[paymentMethodId]"/>
175
+ <input type="hidden" id="token" name="mercadopago_custom[token]"/>
176
+ <input type="hidden" id="cardTruncated" name="mercadopago_custom[cardTruncated]"/>
177
+ <input type="hidden" id="CustomerAndCard" name="mercadopago_custom[CustomerAndCard]"/>
178
+ <input type="hidden" id="CustomerId" value='<?php echo $customerId; ?>' name="mercadopago_custom[CustomerId]"/>
179
+ </div>
180
+
181
+ </fieldset>
182
+
183
+ <script type="text/javascript">
184
+
185
+ (function() {
186
+
187
+ var MPv1 = {
188
+ debug: true,
189
+ add_truncated_card: true,
190
+ site_id: '',
191
+ public_key: '',
192
+ coupon_of_discounts: {
193
+ discount_action_url: '',
194
+ default: true,
195
+ status: false
196
+ },
197
+ customer_and_card: {
198
+ default: true,
199
+ status: true
200
+ },
201
+ create_token_on: {
202
+ event: true, //if true create token on event, if false create on click and ignore others events. eg: paste or keyup
203
+ keyup: false,
204
+ paste: true
205
+ },
206
+
207
+ inputs_to_create_discount: [
208
+ "couponCode",
209
+ "applyCoupon"
210
+ ],
211
+
212
+ inputs_to_create_token: [
213
+ "cardNumber",
214
+ "cardExpirationMonth",
215
+ "cardExpirationYear",
216
+ "cardholderName",
217
+ "securityCode",
218
+ "docType",
219
+ "docNumber"
220
+ ],
221
+
222
+ inputs_to_create_token_customer_and_card: [
223
+ "paymentMethodSelector",
224
+ "securityCode"
225
+ ],
226
+
227
+ selectors: {
228
+
229
+ couponCode: "#couponCode",
230
+ applyCoupon: "#applyCoupon",
231
+ mpCouponApplyed: "#mpCouponApplyed",
232
+ mpCouponError: "#mpCouponError",
233
+
234
+ paymentMethodSelector: "#paymentMethodSelector",
235
+ pmCustomerAndCards: "#payment-methods-for-customer-and-cards",
236
+ pmListOtherCards: "#payment-methods-list-other-cards",
237
+ mpSecurityCodeCustomerAndCard: "#mp-securityCode-customer-and-card",
238
+
239
+ cardNumber: "#cardNumber",
240
+ cardExpirationMonth: "#cardExpirationMonth",
241
+ cardExpirationYear: "#cardExpirationYear",
242
+ cardholderName: "#cardholderName",
243
+ securityCode: "#securityCode",
244
+ docType: "#docType",
245
+ docNumber: "#docNumber",
246
+ issuer: "#issuer",
247
+ installments: "#installments",
248
+
249
+ mpDoc: ".mp-doc",
250
+ mpIssuer: ".mp-issuer",
251
+ mpDocType: ".mp-docType",
252
+ mpDocNumber: ".mp-docNumber",
253
+ // mpPaymentMethodSelector: ".mp-paymentMethodsSelector",
254
+
255
+ paymentMethodId: "#paymentMethodId",
256
+ amount: "#amount",
257
+ token: "#token",
258
+ campaign_id: "#campaign_id",
259
+ campaign: "#campaign",
260
+ discount: "#discount",
261
+ cardTruncated: "#cardTruncated",
262
+ site_id: "#site_id",
263
+ CustomerAndCard: '#CustomerAndCard',
264
+
265
+ box_loading: "#mp-box-loading",
266
+ submit: "#submit",
267
+ form: '#mercadopago-form',
268
+ formCoupon: '#mercadopago-form-coupon',
269
+ formCustomerAndCard: '#mercadopago-form-customer-and-card',
270
+ utilities_fields: "#mercadopago-utilities"
271
+ },
272
+ text: {
273
+ choose: "Choose",
274
+ other_bank: "Other Bank",
275
+ discount_info1: "You will save",
276
+ discount_info2: "with discount from",
277
+ discount_info3: "Total of your purchase:",
278
+ discount_info4: "Total of your purchase with discount:",
279
+ discount_info5: "*Uppon payment approval",
280
+ discount_info6: "Terms and Conditions of Use",
281
+ coupon_empty: "Please, inform your coupon code",
282
+ apply: "Apply",
283
+ remove: "Remove"
284
+ },
285
+ paths: {
286
+ loading: "images/loading.gif",
287
+ check: "images/check.png",
288
+ error: "images/error.png"
289
+ }
290
+ }
291
+
292
+ /*
293
+ * Coupon of Discounts
294
+ */
295
+
296
+ MPv1.currencyIdToCurrency = function (currency_id) {
297
+ if ( currency_id == 'ARS' ) {
298
+ return '$';
299
+ } else if ( currency_id == 'BRL' ) {
300
+ return 'R$';
301
+ } else if ( currency_id == 'COP' ) {
302
+ return '$';
303
+ } else if ( currency_id == 'CLP' ) {
304
+ return '$';
305
+ } else if ( currency_id == 'MXN' ) {
306
+ return '$';
307
+ } else if ( currency_id == 'VEF' ) {
308
+ return 'Bs';
309
+ } else if ( currency_id == 'PEN' ) {
310
+ return 'S/';
311
+ } else {
312
+ return '$';
313
+ }
314
+ }
315
+
316
+ MPv1.checkCouponEligibility = function () {
317
+ if ( document.querySelector(MPv1.selectors.couponCode).value == "" ) {
318
+ // coupon code is empty
319
+ document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
320
+ document.querySelector(MPv1.selectors.mpCouponError).style.display = 'block';
321
+ document.querySelector(MPv1.selectors.mpCouponError).innerHTML = MPv1.text.coupon_empty;
322
+ MPv1.coupon_of_discounts.status = false;
323
+ document.querySelector(MPv1.selectors.couponCode).style.background = null;
324
+ document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.apply;
325
+ document.querySelector(MPv1.selectors.discount).value = 0;
326
+ MPv1.cardsHandler();
327
+ } else if ( MPv1.coupon_of_discounts.status ) {
328
+ // we already have a coupon set, so we remove it
329
+ document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
330
+ document.querySelector(MPv1.selectors.mpCouponError).style.display = 'none';
331
+ MPv1.coupon_of_discounts.status = false;
332
+ document.querySelector(MPv1.selectors.applyCoupon).style.background = null;
333
+ document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.apply;
334
+ document.querySelector(MPv1.selectors.couponCode).value = "";
335
+ document.querySelector(MPv1.selectors.couponCode).style.background = null;
336
+ document.querySelector(MPv1.selectors.discount).value = 0;
337
+ MPv1.cardsHandler();
338
+ } else {
339
+ // set loading
340
+ document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
341
+ document.querySelector(MPv1.selectors.mpCouponError).style.display = 'none';
342
+ document.querySelector(MPv1.selectors.couponCode).style.background = "url("+MPv1.paths.loading+") 98% 50% no-repeat #fff";
343
+ document.querySelector(MPv1.selectors.applyCoupon).disabled = true;
344
+ var request = new XMLHttpRequest();
345
+ request.open(
346
+ 'GET',
347
+ MPv1.coupon_of_discounts.discount_action_url +
348
+ "&coupon_id=" + document.querySelector(MPv1.selectors.couponCode).value +
349
+ "&amount=" + document.querySelector(MPv1.selectors.amount).value +
350
+ "&payer=" + document.getElementById("billing_email").value,
351
+ true
352
+ );
353
+ request.onreadystatechange = function() {
354
+ if (request.readyState == 4) {
355
+ if (request.status == 200) {
356
+ var response = JSON.parse(request.responseText);
357
+ if (response.status == 200) {
358
+ document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'block';
359
+ document.querySelector(MPv1.selectors.discount).value = response.response.coupon_amount;
360
+ document.querySelector(MPv1.selectors.mpCouponApplyed).innerHTML =
361
+ "<div style='border-style: solid; border-width:thin; border-color: #009EE3; padding: 8px 8px 8px 8px; margin-top: 4px;'>" +
362
+ MPv1.text.discount_info1 + " <strong>" + MPv1.currencyIdToCurrency(response.response.currency_id) + " " +
363
+ Math.round(response.response.coupon_amount*100)/100 + "</strong> " + MPv1.text.discount_info2 + " " + response.response.name + ".<br>" +
364
+ MPv1.text.discount_info3 + " <strong>" + MPv1.currencyIdToCurrency(response.response.currency_id) +
365
+ " " + Math.round(MPv1.getAmountWithoutDiscount()*100)/100 + "</strong><br>" +
366
+ MPv1.text.discount_info4 + " <strong>" + MPv1.currencyIdToCurrency(response.response.currency_id) +
367
+ " " + Math.round(MPv1.getAmount()*100)/100 + "*</strong><br>" +
368
+ "<i>" + MPv1.text.discount_info5 + "</i><br>" +
369
+ "<a href='https://api.mercadolibre.com/campaigns/" + response.response.id + "/terms_and_conditions?format_type=html' target='_blank'>" +
370
+ MPv1.text.discount_info6 + "</a></div>";
371
+ document.querySelector(MPv1.selectors.mpCouponError).style.display = 'none';
372
+ MPv1.coupon_of_discounts.status = true;
373
+ document.querySelector(MPv1.selectors.couponCode).style.background = null;
374
+ document.querySelector(MPv1.selectors.couponCode).style.background = "url("+MPv1.paths.check+") 98% 50% no-repeat #fff";
375
+ document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.remove;
376
+ MPv1.cardsHandler();
377
+ document.querySelector(MPv1.selectors.campaign_id).value = response.response.id;
378
+ document.querySelector(MPv1.selectors.campaign).value = response.response.name;
379
+ } else if (response.status == 400 || response.status == 404) {
380
+ document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
381
+ document.querySelector(MPv1.selectors.mpCouponError).style.display = 'block';
382
+ document.querySelector(MPv1.selectors.mpCouponError).innerHTML = response.response.message;
383
+ MPv1.coupon_of_discounts.status = false;
384
+ document.querySelector(MPv1.selectors.couponCode).style.background = null;
385
+ document.querySelector(MPv1.selectors.couponCode).style.background = "url("+MPv1.paths.error+") 98% 50% no-repeat #fff";
386
+ document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.apply;
387
+ document.querySelector(MPv1.selectors.discount).value = 0;
388
+ MPv1.cardsHandler();
389
+ }
390
+ } else {
391
+ // request failed
392
+ document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
393
+ document.querySelector(MPv1.selectors.mpCouponError).style.display = 'none';
394
+ MPv1.coupon_of_discounts.status = false;
395
+ document.querySelector(MPv1.selectors.applyCoupon).style.background = null;
396
+ document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.apply;
397
+ document.querySelector(MPv1.selectors.couponCode).value = "";
398
+ document.querySelector(MPv1.selectors.couponCode).style.background = null;
399
+ document.querySelector(MPv1.selectors.discount).value = 0;
400
+ MPv1.cardsHandler();
401
+ }
402
+ document.querySelector(MPv1.selectors.applyCoupon).disabled = false;
403
+ }
404
+ };
405
+ request.send(null);
406
+ }
407
+ }
408
+
409
+ MPv1.getBin = function() {
410
+ var cardSelector = document.querySelector(MPv1.selectors.paymentMethodSelector);
411
+ if (cardSelector && cardSelector[cardSelector.options.selectedIndex].value != "-1") {
412
+ return cardSelector[cardSelector.options.selectedIndex].getAttribute('first_six_digits');
413
+ }
414
+
415
+ var ccNumber = document.querySelector(MPv1.selectors.cardNumber);
416
+ return ccNumber.value.replace(/[ .-]/g, '').slice(0, 6);
417
+ }
418
+
419
+ MPv1.clearOptions = function() {
420
+ var bin = MPv1.getBin();
421
+
422
+ if (bin.length == 0) {
423
+ MPv1.hideIssuer();
424
+
425
+ var selectorInstallments = document.querySelector(MPv1.selectors.installments),
426
+ fragment = document.createDocumentFragment(),
427
+ option = new Option(MPv1.text.choose + "...", '-1');
428
+
429
+ selectorInstallments.options.length = 0;
430
+ fragment.appendChild(option);
431
+ selectorInstallments.appendChild(fragment);
432
+ selectorInstallments.setAttribute('disabled', 'disabled');
433
+ }
434
+ }
435
+
436
+ MPv1.guessingPaymentMethod = function(event) {
437
+
438
+ var bin = MPv1.getBin();
439
+ var amount = MPv1.getAmount();
440
+
441
+ if (event.type == "keyup") {
442
+ if (bin != null && bin.length == 6) {
443
+ Mercadopago.getPaymentMethod({
444
+ "bin": bin
445
+ }, MPv1.setPaymentMethodInfo);
446
+ }
447
+ } else {
448
+ setTimeout(function() {
449
+ if (bin.length >= 6) {
450
+ Mercadopago.getPaymentMethod({
451
+ "bin": bin
452
+ }, MPv1.setPaymentMethodInfo);
453
+ }
454
+ }, 100);
455
+ }
456
+ };
457
+
458
+ MPv1.setPaymentMethodInfo = function(status, response) {
459
+
460
+ if (status == 200) {
461
+
462
+ if (MPv1.site_id != "MLM") {
463
+ //guessing
464
+ document.querySelector(MPv1.selectors.paymentMethodId).value = response[0].id;
465
+
466
+ if (MPv1.customer_and_card.status) {
467
+ document.querySelector(MPv1.selectors.paymentMethodSelector).style.background = "url(" + response[0].secure_thumbnail + ") 95% 50% no-repeat #fff";
468
+ } else {
469
+ document.querySelector(MPv1.selectors.cardNumber).style.background = "url(" + response[0].secure_thumbnail + ") 98% 50% no-repeat #fff";
470
+ }
471
+
472
+ }
473
+
474
+ // check if the security code (ex: Tarshop) is required
475
+ var cardConfiguration = response[0].settings;
476
+ var bin = MPv1.getBin();
477
+ var amount = MPv1.getAmount();
478
+
479
+ Mercadopago.getInstallments({
480
+ "bin": bin,
481
+ "amount": amount
482
+ }, MPv1.setInstallmentInfo);
483
+
484
+ // check if the issuer is necessary to pay
485
+ var issuerMandatory = false,
486
+ additionalInfo = response[0].additional_info_needed;
487
+
488
+ for (var i = 0; i < additionalInfo.length; i++) {
489
+ if (additionalInfo[i] == "issuer_id") {
490
+ issuerMandatory = true;
491
+ }
492
+ };
493
+ if (issuerMandatory && MPv1.site_id != "MLM") {
494
+ var payment_method_id = response[0].id;
495
+ MPv1.getIssuersPaymentMethod(payment_method_id);
496
+ } else {
497
+ MPv1.hideIssuer();
498
+ }
499
+ }
500
+ }
501
+
502
+
503
+ MPv1.changePaymetMethodSelector = function() {
504
+ var payment_method_id = document.querySelector(MPv1.selectors.paymentMethodSelector).value;
505
+ MPv1.getIssuersPaymentMethod(payment_method_id);
506
+
507
+ }
508
+
509
+
510
+ /*
511
+ *
512
+ *
513
+ * Issuers
514
+ *
515
+ */
516
+
517
+ MPv1.getIssuersPaymentMethod = function(payment_method_id) {
518
+ var amount = MPv1.getAmount();
519
+
520
+ //flow: MLM mercadopagocard
521
+ if (payment_method_id == 'mercadopagocard') {
522
+ Mercadopago.getInstallments({
523
+ "payment_method_id": payment_method_id,
524
+ "amount": amount
525
+ }, MPv1.setInstallmentInfo);
526
+ }
527
+
528
+ Mercadopago.getIssuers(payment_method_id, MPv1.showCardIssuers);
529
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.issuer), 'change', MPv1.setInstallmentsByIssuerId);
530
+ }
531
+
532
+
533
+ MPv1.showCardIssuers = function(status, issuers) {
534
+
535
+ //if the API does not return any bank
536
+ if (issuers.length > 0) {
537
+ var issuersSelector = document.querySelector(MPv1.selectors.issuer),
538
+ fragment = document.createDocumentFragment();
539
+
540
+ issuersSelector.options.length = 0;
541
+ var option = new Option(MPv1.text.choose + "...", '-1');
542
+ fragment.appendChild(option);
543
+
544
+ for (var i = 0; i < issuers.length; i++) {
545
+ if (issuers[i].name != "default") {
546
+ option = new Option(issuers[i].name, issuers[i].id);
547
+ } else {
548
+ option = new Option("Otro", issuers[i].id);
549
+ }
550
+ fragment.appendChild(option);
551
+ }
552
+ issuersSelector.appendChild(fragment);
553
+ issuersSelector.removeAttribute('disabled');
554
+ //document.querySelector(MPv1.selectors.issuer).removeAttribute('style');
555
+ } else {
556
+ MPv1.hideIssuer();
557
+ }
558
+ }
559
+
560
+ MPv1.setInstallmentsByIssuerId = function(status, response) {
561
+ var issuerId = document.querySelector(MPv1.selectors.issuer).value;
562
+ var amount = MPv1.getAmount();
563
+
564
+ if (issuerId === '-1') {
565
+ return;
566
+ }
567
+
568
+ var params_installments = {
569
+ "bin": MPv1.getBin(),
570
+ "amount": amount,
571
+ "issuer_id": issuerId
572
+ }
573
+
574
+ if (MPv1.site_id == "MLM") {
575
+ params_installments = {
576
+ "payment_method_id": document.querySelector(MPv1.selectors.paymentMethodSelector).value,
577
+ "amount": amount,
578
+ "issuer_id": issuerId
579
+ }
580
+ }
581
+
582
+ Mercadopago.getInstallments(params_installments, MPv1.setInstallmentInfo);
583
+ }
584
+
585
+ MPv1.hideIssuer = function() {
586
+ var $issuer = document.querySelector(MPv1.selectors.issuer);
587
+ var opt = document.createElement('option');
588
+ opt.value = "-1";
589
+ opt.innerHTML = MPv1.text.other_bank;
590
+
591
+ $issuer.innerHTML = "";
592
+ $issuer.appendChild(opt);
593
+ $issuer.setAttribute('disabled', 'disabled');
594
+ }
595
+
596
+ /*
597
+ *
598
+ *
599
+ * Installments
600
+ *
601
+ */
602
+
603
+ MPv1.setInstallmentInfo = function(status, response) {
604
+ var selectorInstallments = document.querySelector(MPv1.selectors.installments);
605
+
606
+ if (response.length > 0) {
607
+
608
+ var html_option = '<option value="-1">' + MPv1.text.choose + '...</option>';
609
+ payerCosts = response[0].payer_costs;
610
+
611
+ // fragment.appendChild(option);
612
+ for (var i = 0; i < payerCosts.length; i++) {
613
+ html_option += '<option value="' + payerCosts[i].installments + '">' + (payerCosts[i].recommended_message || payerCosts[i].installments) + '</option>';
614
+ }
615
+
616
+ // not take the user's selection if equal
617
+ if (selectorInstallments.innerHTML != html_option) {
618
+ selectorInstallments.innerHTML = html_option;
619
+ }
620
+
621
+ selectorInstallments.removeAttribute('disabled');
622
+ }
623
+ }
624
+
625
+
626
+ /*
627
+ *
628
+ *
629
+ * Customer & Cards
630
+ *
631
+ */
632
+
633
+ MPv1.cardsHandler = function() {
634
+
635
+ var cardSelector = document.querySelector(MPv1.selectors.paymentMethodSelector);
636
+ var type_checkout = cardSelector[cardSelector.options.selectedIndex].getAttribute("type_checkout");
637
+ var amount = MPv1.getAmount();
638
+
639
+
640
+ if (MPv1.customer_and_card.default) {
641
+
642
+ if (cardSelector &&
643
+ cardSelector[cardSelector.options.selectedIndex].value != "-1" &&
644
+ type_checkout == "customer_and_card") {
645
+
646
+ document.querySelector(MPv1.selectors.paymentMethodId).value = cardSelector[cardSelector.options.selectedIndex].getAttribute('payment_method_id');
647
+
648
+ MPv1.clearOptions();
649
+
650
+ MPv1.customer_and_card.status = true;
651
+
652
+ var _bin = cardSelector[cardSelector.options.selectedIndex].getAttribute("first_six_digits");
653
+
654
+ Mercadopago.getPaymentMethod({
655
+ "bin": _bin
656
+ }, MPv1.setPaymentMethodInfo);
657
+
658
+ } else {
659
+ document.querySelector(MPv1.selectors.paymentMethodId).value = cardSelector.value != -1 ? cardSelector.value : "";
660
+ MPv1.customer_and_card.status = false;
661
+ MPv1.resetBackgroundCard();
662
+ MPv1.guessingPaymentMethod({
663
+ type: "keyup"
664
+ });
665
+ }
666
+
667
+ MPv1.setForm();
668
+ }
669
+ }
670
+
671
+ /*
672
+ * Payment Methods
673
+ *
674
+ */
675
+
676
+ MPv1.getPaymentMethods = function() {
677
+ var fragment = document.createDocumentFragment();
678
+ var paymentMethodsSelector = document.querySelector(MPv1.selectors.paymentMethodSelector)
679
+ var mainPaymentMethodSelector = document.querySelector(MPv1.selectors.paymentMethodSelector)
680
+
681
+ //set loading
682
+ mainPaymentMethodSelector.style.background = "url(" + MPv1.paths.loading + ") 95% 50% no-repeat #fff";
683
+
684
+ //if customer and card
685
+ if (MPv1.customer_and_card.status) {
686
+ paymentMethodsSelector = document.querySelector(MPv1.selectors.pmListOtherCards)
687
+
688
+ //clean payment methods
689
+ paymentMethodsSelector.innerHTML = "";
690
+ } else {
691
+ paymentMethodsSelector.innerHTML = "";
692
+ option = new Option(MPv1.text.choose + "...", '-1');
693
+ fragment.appendChild(option);
694
+ }
695
+
696
+ Mercadopago.getAllPaymentMethods(function(code, payment_methods) {
697
+
698
+ for (var x = 0; x < payment_methods.length; x++) {
699
+ var pm = payment_methods[x];
700
+
701
+ if ((pm.payment_type_id == "credit_card" ||
702
+ pm.payment_type_id == "debit_card" ||
703
+ pm.payment_type_id == "prepaid_card") &&
704
+ pm.status == "active") {
705
+
706
+ option = new Option(pm.name, pm.id);
707
+ option.setAttribute("type_checkout", "custom");
708
+ fragment.appendChild(option);
709
+
710
+ } //end if
711
+
712
+ } //end for
713
+
714
+ paymentMethodsSelector.appendChild(fragment);
715
+ mainPaymentMethodSelector.style.background = "#fff";
716
+ });
717
+ }
718
+
719
+ /*
720
+ *
721
+ * Functions related to Create Tokens
722
+ *
723
+ */
724
+
725
+
726
+ MPv1.createTokenByEvent = function() {
727
+
728
+ var $inputs = MPv1.getForm().querySelectorAll('[data-checkout]');
729
+ var $inputs_to_create_token = MPv1.getInputsToCreateToken();
730
+
731
+ console.log("createTokenByEvent", $inputs_to_create_token);
732
+
733
+ for (var x = 0; x < $inputs.length; x++) {
734
+ var element = $inputs[x];
735
+
736
+ //add events only in the required fields
737
+ if ($inputs_to_create_token.indexOf(element.getAttribute("data-checkout")) > -1) {
738
+
739
+ var event = "focusout";
740
+
741
+ if (element.nodeName == "SELECT") {
742
+ event = "change";
743
+ }
744
+
745
+ MPv1.addListenerEvent(element, event, MPv1.validateInputsCreateToken);
746
+
747
+ //for firefox
748
+ MPv1.addListenerEvent(element, "blur", MPv1.validateInputsCreateToken);
749
+
750
+ if (MPv1.create_token_on.keyup) {
751
+ MPv1.addListenerEvent(element, "keyup", MPv1.validateInputsCreateToken);
752
+ }
753
+
754
+ if (MPv1.create_token_on.paste) {
755
+ MPv1.addListenerEvent(element, "paste", MPv1.validateInputsCreateToken);
756
+ }
757
+
758
+ }
759
+ }
760
+ }
761
+
762
+ MPv1.createTokenBySubmit = function() {
763
+ addListenerEvent(document.querySelector(MPv1.selectors.form), 'submit', MPv1.doPay);
764
+ }
765
+
766
+ var doSubmit = false;
767
+
768
+ MPv1.doPay = function(event) {
769
+ event.preventDefault();
770
+ if (!doSubmit) {
771
+ MPv1.createToken();
772
+ return false;
773
+ }
774
+ }
775
+
776
+
777
+ MPv1.validateInputsCreateToken = function() {
778
+ var valid_to_create_token = true;
779
+ var $inputs = MPv1.getForm().querySelectorAll('[data-checkout]');
780
+ var $inputs_to_create_token = MPv1.getInputsToCreateToken();
781
+
782
+ for (var x = 0; x < $inputs.length; x++) {
783
+ var element = $inputs[x];
784
+
785
+ //check is a input to create token
786
+ if ($inputs_to_create_token.indexOf(element.getAttribute("data-checkout")) > -1) {
787
+ if (element.value == -1 || element.value == "") {
788
+ valid_to_create_token = false;
789
+ } //end if check values
790
+ } //end if check data-checkout
791
+ } //end for
792
+
793
+ if (valid_to_create_token) {
794
+ MPv1.createToken();
795
+ }
796
+ }
797
+
798
+ MPv1.createToken = function() {
799
+ MPv1.hideErrors();
800
+
801
+ //show loading
802
+ document.querySelector(MPv1.selectors.box_loading).style.background = "url(" + MPv1.paths.loading + ") 0 50% no-repeat #fff";
803
+
804
+ //form
805
+ var $form = MPv1.getForm();
806
+
807
+ Mercadopago.createToken($form, MPv1.sdkResponseHandler);
808
+
809
+ return false;
810
+ }
811
+
812
+ MPv1.sdkResponseHandler = function(status, response) {
813
+ //hide loading
814
+ document.querySelector(MPv1.selectors.box_loading).style.background = "";
815
+
816
+ if (status != 200 && status != 201) {
817
+ MPv1.showErrors(response);
818
+ } else {
819
+ var token = document.querySelector(MPv1.selectors.token);
820
+ token.value = response.id;
821
+
822
+ if (MPv1.add_truncated_card) {
823
+ var card = MPv1.truncateCard(response);
824
+ document.querySelector(MPv1.selectors.cardTruncated).value = card;
825
+ }
826
+
827
+ if (!MPv1.create_token_on.event) {
828
+ doSubmit = true;
829
+ btn = document.querySelector(MPv1.selectors.form);
830
+ btn.submit();
831
+ }
832
+ }
833
+ }
834
+
835
+ /*
836
+ *
837
+ *
838
+ * useful functions
839
+ *
840
+ */
841
+
842
+
843
+ MPv1.resetBackgroundCard = function() {
844
+ document.querySelector(MPv1.selectors.paymentMethodSelector).style.background = "no-repeat #fff";
845
+ document.querySelector(MPv1.selectors.cardNumber).style.background = "no-repeat #fff";
846
+ }
847
+
848
+
849
+ MPv1.setForm = function() {
850
+ if (MPv1.customer_and_card.status) {
851
+ document.querySelector(MPv1.selectors.form).style.display = 'none';
852
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).removeAttribute('style');
853
+ } else {
854
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).style.display = 'none';
855
+ document.querySelector(MPv1.selectors.form).removeAttribute('style');
856
+ }
857
+
858
+ Mercadopago.clearSession();
859
+
860
+ if (MPv1.create_token_on.event) {
861
+ MPv1.createTokenByEvent();
862
+ MPv1.validateInputsCreateToken();
863
+ }
864
+
865
+ document.querySelector(MPv1.selectors.CustomerAndCard).value = MPv1.customer_and_card.status;
866
+ }
867
+
868
+ MPv1.getForm = function() {
869
+ if (MPv1.customer_and_card.status) {
870
+ return document.querySelector(MPv1.selectors.formCustomerAndCard);
871
+ } else {
872
+ return document.querySelector(MPv1.selectors.form);
873
+ }
874
+ }
875
+
876
+ MPv1.getInputsToCreateToken = function() {
877
+ if (MPv1.customer_and_card.status) {
878
+ return MPv1.inputs_to_create_token_customer_and_card;
879
+ } else {
880
+ return MPv1.inputs_to_create_token;
881
+ }
882
+ }
883
+
884
+ MPv1.truncateCard = function(response_card_token) {
885
+ var first_six_digits;
886
+ var last_four_digits;
887
+
888
+ if (MPv1.customer_and_card.status) {
889
+ var cardSelector = document.querySelector(MPv1.selectors.paymentMethodSelector);
890
+ first_six_digits = cardSelector[cardSelector.options.selectedIndex].getAttribute("first_six_digits").match(/.{1,4}/g)
891
+ last_four_digits = cardSelector[cardSelector.options.selectedIndex].getAttribute("last_four_digits")
892
+ } else {
893
+ first_six_digits = response_card_token.first_six_digits.match(/.{1,4}/g)
894
+ last_four_digits = response_card_token.last_four_digits
895
+ }
896
+
897
+ var card = first_six_digits[0] + " " + first_six_digits[1] + "** **** " + last_four_digits;
898
+ return card;
899
+
900
+ }
901
+
902
+ MPv1.getAmount = function() {
903
+ return document.querySelector(MPv1.selectors.amount).value;
904
+ }
905
+
906
+ /*
907
+ *
908
+ *
909
+ * Show errors
910
+ *
911
+ */
912
+
913
+ MPv1.showErrors = function(response) {
914
+ var $form = MPv1.getForm();
915
+
916
+ for (var x = 0; x < response.cause.length; x++) {
917
+ var error = response.cause[x];
918
+ var $span = $form.querySelector('#mp-error-' + error.code);
919
+ var $input = $form.querySelector($span.getAttribute("data-main"));
920
+
921
+ $span.style.display = 'inline-block';
922
+ $input.classList.add("mp-error-input");
923
+
924
+ }
925
+
926
+ return;
927
+ }
928
+
929
+ MPv1.hideErrors = function() {
930
+
931
+ for (var x = 0; x < document.querySelectorAll('[data-checkout]').length; x++) {
932
+ var $field = document.querySelectorAll('[data-checkout]')[x];
933
+ $field.classList.remove("mp-error-input");
934
+
935
+ } //end for
936
+
937
+ for (var x = 0; x < document.querySelectorAll('.mp-error').length; x++) {
938
+ var $span = document.querySelectorAll('.mp-error')[x];
939
+ $span.style.display = 'none';
940
+
941
+ }
942
+
943
+ return;
944
+ }
945
+
946
+ /*
947
+ *
948
+ * Add events to guessing
949
+ *
950
+ */
951
+
952
+
953
+ MPv1.addListenerEvent = function(el, eventName, handler) {
954
+ if (el.addEventListener) {
955
+ el.addEventListener(eventName, handler);
956
+ } else {
957
+ el.attachEvent('on' + eventName, function() {
958
+ handler.call(el);
959
+ });
960
+ }
961
+ };
962
+
963
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.cardNumber), 'keyup', MPv1.guessingPaymentMethod);
964
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.cardNumber), 'keyup', MPv1.clearOptions);
965
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.cardNumber), 'change', MPv1.guessingPaymentMethod);
966
+
967
+
968
+ // MPv1.cardsHandler();
969
+
970
+
971
+
972
+
973
+ /*
974
+ *
975
+ *
976
+ * Initialization function
977
+ *
978
+ */
979
+
980
+ MPv1.Initialize = function(site_id, public_key, coupon_mode, discount_action_url) {
981
+
982
+ //sets
983
+ MPv1.site_id = site_id
984
+ MPv1.public_key = public_key
985
+ MPv1.coupon_of_discounts.default = coupon_mode
986
+ MPv1.coupon_of_discounts.discount_action_url = discount_action_url
987
+
988
+ Mercadopago.setPublishableKey(MPv1.public_key);
989
+
990
+ // flow coupon of discounts
991
+ if (MPv1.coupon_of_discounts.default) {
992
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.applyCoupon), 'click', MPv1.checkCouponEligibility);
993
+ } else {
994
+ document.querySelector(MPv1.selectors.formCoupon).style.display = 'none';
995
+ }
996
+
997
+ //flow: customer & cards
998
+ var selectorPmCustomerAndCards = document.querySelector(MPv1.selectors.pmCustomerAndCards);
999
+ if (MPv1.customer_and_card.default && selectorPmCustomerAndCards.childElementCount > 0) {
1000
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.paymentMethodSelector), 'change', MPv1.cardsHandler);
1001
+ MPv1.cardsHandler();
1002
+ } else {
1003
+ //if customer & cards is disabled
1004
+ //or customer does not have cards
1005
+ MPv1.customer_and_card.status = false;
1006
+ document.querySelector(MPv1.selectors.formCustomerAndCard).style.display = 'none';
1007
+ }
1008
+
1009
+ if (MPv1.create_token_on.event) {
1010
+ MPv1.createTokenByEvent();
1011
+ } else {
1012
+ MPv1.createTokenBySubmit()
1013
+ }
1014
+
1015
+ //flow: MLM
1016
+ if (MPv1.site_id != "MLM") {
1017
+ Mercadopago.getIdentificationTypes();
1018
+ }
1019
+
1020
+ if (MPv1.site_id == "MLM") {
1021
+
1022
+ //hide documento for mex
1023
+ document.querySelector(MPv1.selectors.mpDoc).style.display = 'none';
1024
+ // document.querySelector(MPv1.selectors.mpPaymentMethodSelector).removeAttribute('style');
1025
+
1026
+ // I've added this trying to fix paymentMethodSelector that not appear... by mhama
1027
+ document.querySelector(MPv1.selectors.formCustomerAndCard).removeAttribute('style');
1028
+ document.querySelector(MPv1.selectors.formCustomerAndCard).style.padding = "36px 36px 16px 36px";
1029
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).style.display = 'none';
1030
+
1031
+ //removing not used fields for this country
1032
+ MPv1.inputs_to_create_token.splice(MPv1.inputs_to_create_token.indexOf("docType"), 1);
1033
+ MPv1.inputs_to_create_token.splice(MPv1.inputs_to_create_token.indexOf("docNumber"), 1);
1034
+
1035
+ MPv1.addListenerEvent(document.querySelector(MPv1.selectors.paymentMethodSelector), 'change', MPv1.changePaymetMethodSelector);
1036
+
1037
+ //get payment methods and populate selector
1038
+ MPv1.getPaymentMethods();
1039
+ }
1040
+
1041
+ //flow: MLB AND MCO
1042
+ if (MPv1.site_id == "MLB") {
1043
+
1044
+ document.querySelector(MPv1.selectors.mpDocType).style.display = 'none';
1045
+ document.querySelector(MPv1.selectors.mpIssuer).style.display = 'none';
1046
+ //ajust css
1047
+ document.querySelector(MPv1.selectors.docNumber).classList.remove("mp-col-75");
1048
+ document.querySelector(MPv1.selectors.docNumber).classList.add("mp-col-100");
1049
+
1050
+ } else if (MPv1.site_id == "MCO") {
1051
+ document.querySelector(MPv1.selectors.mpIssuer).style.display = 'none';
1052
+ }
1053
+
1054
+ if (MPv1.debug) {
1055
+ document.querySelector(MPv1.selectors.utilities_fields).style.display = 'inline-block';
1056
+ console.log(MPv1);
1057
+ }
1058
+
1059
+ document.querySelector(MPv1.selectors.site_id).value = MPv1.site_id;
1060
+
1061
+ //set form for basic ou customer & cards
1062
+ // MPv1.setForm();
1063
+
1064
+ return;
1065
+ }
1066
+
1067
+
1068
+ this.MPv1 = MPv1;
1069
+
1070
+ }).call();
1071
+
1072
+ // === Instantiation
1073
+
1074
+ var mercadopago_site_id = '<?php echo $site_id; ?>';
1075
+ var mercadopago_public_key = '<?php echo $public_key; ?>';
1076
+ var mercadopago_coupon_mode = '<?php echo $coupon_mode; ?>';
1077
+ var mercadopago_discount_action_url = '<?php echo $discount_action_url; ?>';
1078
+
1079
+ MPv1.text.choose = '<?php echo $form_labels["form"]["label_choose"]; ?>';
1080
+ MPv1.text.other_bank = '<?php echo $form_labels["form"]["label_other_bank"]; ?>';
1081
+ MPv1.text.discount_info1 = '<?php echo $form_labels["form"]["discount_info1"]; ?>';
1082
+ MPv1.text.discount_info2 = '<?php echo $form_labels["form"]["discount_info2"]; ?>';
1083
+ MPv1.text.discount_info3 = '<?php echo $form_labels["form"]["discount_info3"]; ?>';
1084
+ MPv1.text.discount_info4 = '<?php echo $form_labels["form"]["discount_info4"]; ?>';
1085
+ MPv1.text.discount_info5 = '<?php echo $form_labels["form"]["discount_info5"]; ?>';
1086
+ MPv1.text.discount_info6 = '<?php echo $form_labels["form"]["discount_info6"]; ?>';
1087
+ MPv1.text.apply = '<?php echo $form_labels["form"]["apply"]; ?>';
1088
+ MPv1.text.remove = '<?php echo $form_labels["form"]["remove"]; ?>';
1089
+ MPv1.text.coupon_empty = '<?php echo $form_labels["form"]["coupon_empty"]; ?>';
1090
+ MPv1.paths.loading = '<?php echo ( $images_path . "loading.gif" ); ?>';
1091
+ MPv1.paths.check = '<?php echo ( $images_path . "check.png" ); ?>';
1092
+ MPv1.paths.error = '<?php echo ( $images_path . "error.png" ); ?>';
1093
+
1094
+ // overriding this function to give form padding attribute
1095
+ MPv1.setForm = function() {
1096
+ if (MPv1.customer_and_card.status) {
1097
+ document.querySelector(MPv1.selectors.form).style.display = 'none';
1098
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).removeAttribute('style');
1099
+ } else {
1100
+ document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).style.display = 'none';
1101
+ document.querySelector(MPv1.selectors.form).removeAttribute('style');
1102
+ document.querySelector(MPv1.selectors.form).style.padding = '0px 36px 0px 36px';
1103
+ }
1104
+ Mercadopago.clearSession();
1105
+ if (MPv1.create_token_on.event) {
1106
+ MPv1.createTokenByEvent();
1107
+ MPv1.validateInputsCreateToken();
1108
+ }
1109
+ document.querySelector(MPv1.selectors.CustomerAndCard).value = MPv1.customer_and_card.status;
1110
+ }
1111
+
1112
+ MPv1.getAmount = function() {
1113
+ return document.querySelector(MPv1.selectors.amount).value - document.querySelector(MPv1.selectors.discount).value;
1114
+ }
1115
+
1116
+ MPv1.getAmountWithoutDiscount = function() {
1117
+ return document.querySelector(MPv1.selectors.amount).value;
1118
+ }
1119
+
1120
+ MPv1.showErrors = function(response) {
1121
+ var $form = MPv1.getForm();
1122
+ for (var x = 0; x < response.cause.length; x++) {
1123
+ var error = response.cause[x];
1124
+ var $span = $form.querySelector('#mp-error-' + error.code);
1125
+ var $input = $form.querySelector($span.getAttribute("data-main"));
1126
+ $span.style.display = 'inline-block';
1127
+ $input.classList.add("mp-error-input");
1128
+ }
1129
+ return;
1130
+ }
1131
+ MPv1.Initialize(
1132
+ mercadopago_site_id,
1133
+ mercadopago_public_key,
1134
+ mercadopago_coupon_mode == 'yes',
1135
+ mercadopago_discount_action_url);
1136
+
1137
+ </script>
templates/ticket/ticket-form.php ADDED
@@ -0,0 +1,348 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ( count( $payment_methods ) > 1 ) { ?>
18
+ <img class="logo" src="<?php echo ( $images_path . 'boleto.png' ); ?>" width="90" height="40" style="float:right;"/>
19
+ <?php } else { ?>
20
+ <?php foreach ( $payment_methods as $payment ) { ?>
21
+ <img class="logo" src="<?php echo $payment[ 'thumbnail' ]; ?>" width="90" height="40" style="float:right;"/>
22
+ <?php } ?>
23
+ <?php } ?>
24
+ </div>
25
+ <fieldset id="mercadopago-form" style="background:white; ">
26
+
27
+ <div class="mp-box-inputs mp-line" id="mercadopago-form-coupon-ticket" style="padding:0px 36px 16px 36px;">
28
+ <label for="couponCodeLabel"><?php echo $form_labels['form']['coupon_of_discounts']; ?></label>
29
+ <div class="mp-box-inputs mp-col-65">
30
+ <input type="text" id="couponCodeTicket" name="mercadopago_ticket[coupon_code]" autocomplete="off" maxlength="24" />
31
+ <span class="mp-discount" id="mpCouponApplyedTicket" ></span>
32
+ <span class="mp-error" id="mpCouponErrorTicket" ></span>
33
+ </div>
34
+ <div class="mp-box-inputs mp-col-10">
35
+ <div id="mp-separete-date"></div>
36
+ </div>
37
+ <div class="mp-box-inputs mp-col-25">
38
+ <input type="button" class="button" id="applyCouponTicket" value="<?php echo $form_labels['form']['apply']; ?>" >
39
+ </div>
40
+ </div>
41
+
42
+ <div style="padding:0px 36px 0px 36px;">
43
+ <p>
44
+ <?php if ( count( $payment_methods ) > 1 ) { ?>
45
+ <?php echo $form_labels[ 'form' ][ 'issuer_selection' ] ?>
46
+ <?php } ?>
47
+ <?php echo $form_labels[ 'form' ][ 'payment_instructions' ] ?>
48
+ <br />
49
+ <?php echo $form_labels[ 'form' ][ 'ticket_note' ] ?>
50
+ <?php if ($is_currency_conversion > 0) { ?>
51
+ <?php echo " (" . $form_labels['form']['payment_converted'] . " " . $woocommerce_currency . " " . $form_labels['form']['to'] . " " . $account_currency . ")"; ?>
52
+ <?php } ?>
53
+ </p>
54
+ <?php if ( count( $payment_methods ) > 1 ) { ?>
55
+ <div class="mp-box-inputs mp-col-100">
56
+ <!--<select id="paymentMethodId" name="mercadopago_ticket[paymentMethodId]">
57
+ <option value="-1"> <?php /*echo $form_labels[ 'form' ][ 'label_choose' ] . " ...";*/ ?> </option>-->
58
+ <?php $atFirst = true; ?>
59
+ <?php foreach ( $payment_methods as $payment ) { ?>
60
+ <!--<option value="<?php /*echo $payment[ 'id' ];*/ ?>"> <?php /*echo $payment[ 'name' ];*/ ?></option>-->
61
+ <div class="mp-box-inputs mp-line">
62
+ <div id="paymentMethodId" class="mp-box-inputs mp-col-5">
63
+ <input type="radio" class="input-radio" name="mercadopago_ticket[paymentMethodId]"
64
+ style="height:16px; width:16px;" value="<?php echo $payment[ 'id' ]; ?>"
65
+ <?php if ( $atFirst ) { ?> checked="checked" } <?php } ?> />
66
+ </div>
67
+ <div class="mp-box-inputs mp-col-45">
68
+ <label>
69
+ <img src="<?php echo $payment[ 'thumbnail' ]; ?>" alt="<?php echo $payment[ 'name' ]; ?>" />
70
+ &nbsp;(<?php echo $payment[ 'name' ]; ?>)
71
+ </label>
72
+ </div>
73
+ </div>
74
+ <?php $atFirst = false; ?>
75
+ <?php } ?>
76
+ <!--</select>-->
77
+ </div>
78
+ <?php } else { ?>
79
+ <div class="mp-box-inputs mp-col-100" style="display:none;">
80
+ <select id="paymentMethodId" name="mercadopago_ticket[paymentMethodId]">
81
+ <?php foreach ( $payment_methods as $payment ) { ?>
82
+ <option value="<?php echo $payment[ 'id' ]; ?>"
83
+ 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>
84
+ <?php } ?>
85
+ </select>
86
+ </div>
87
+ <?php } ?>
88
+
89
+ <div class="mp-box-inputs mp-line">
90
+ <!-- <div class="mp-box-inputs mp-col-50">
91
+ <input type="submit" value="Pay" id="submit"/>
92
+ </div> -->
93
+ <div class="mp-box-inputs mp-col-25">
94
+ <div id="mp-box-loading">
95
+ </div>
96
+ </div>
97
+ </div>
98
+
99
+ <!-- utilities -->
100
+ <div class="mp-box-inputs mp-col-100" id="mercadopago-utilities">
101
+ <input type="hidden" id="public_key" value="<?php echo $public_key; ?>" name="mercadopago_ticket[amount]"/>
102
+ <input type="hidden" id="site_id" value="<?php echo $site_id; ?>" name="mercadopago_ticket[site_id]"/>
103
+ <input type="hidden" id="amountTicket" value="<?php echo $amount; ?>" name="mercadopago_ticket[amount]"/>
104
+ <input type="hidden" id="campaign_idTicket" name="mercadopago_ticket[campaign_id]"/>
105
+ <input type="hidden" id="campaignTicket" name="mercadopago_ticket[campaign]"/>
106
+ <input type="hidden" id="discountTicket" name="mercadopago_ticket[discount]"/>
107
+ </div>
108
+
109
+ </div>
110
+ </fieldset>
111
+
112
+ <script type="text/javascript">
113
+
114
+ (function() {
115
+
116
+ var MPv1Ticket = {
117
+ site_id: '',
118
+ coupon_of_discounts: {
119
+ discount_action_url: '',
120
+ default: true,
121
+ status: false
122
+ },
123
+
124
+ inputs_to_create_discount: [
125
+ "couponCodeTicket",
126
+ "applyCouponTicket"
127
+ ],
128
+
129
+ selectors: {
130
+ couponCode: "#couponCodeTicket",
131
+ applyCoupon: "#applyCouponTicket",
132
+ mpCouponApplyed: "#mpCouponApplyedTicket",
133
+ mpCouponError: "#mpCouponErrorTicket",
134
+
135
+ paymentMethodId: "#paymentMethodId",
136
+ amount: "#amountTicket",
137
+ campaign_id: "#campaign_idTicket",
138
+ campaign: "#campaignTicket",
139
+ discount: "#discountTicket",
140
+
141
+ formCoupon: '#mercadopago-form-coupon-ticket'
142
+ },
143
+ text: {
144
+ discount_info1: "You will save",
145
+ discount_info2: "with discount from",
146
+ discount_info3: "Total of your purchase:",
147
+ discount_info4: "Total of your purchase with discount:",
148
+ discount_info5: "*Uppon payment approval",
149
+ discount_info6: "Terms and Conditions of Use",
150
+ coupon_empty: "Please, inform your coupon code",
151
+ apply: "Apply",
152
+ remove: "Remove"
153
+ },
154
+ paths: {
155
+ loading: "images/loading.gif",
156
+ check: "images/check.png",
157
+ error: "images/error.png"
158
+ }
159
+ }
160
+
161
+ /*
162
+ * Coupon of Discounts
163
+ */
164
+
165
+ MPv1Ticket.currencyIdToCurrency = function (currency_id) {
166
+ if ( currency_id == 'ARS' ) {
167
+ return '$';
168
+ } else if ( currency_id == 'BRL' ) {
169
+ return 'R$';
170
+ } else if ( currency_id == 'COP' ) {
171
+ return '$';
172
+ } else if ( currency_id == 'CLP' ) {
173
+ return '$';
174
+ } else if ( currency_id == 'MXN' ) {
175
+ return '$';
176
+ } else if ( currency_id == 'VEF' ) {
177
+ return 'Bs';
178
+ } else if ( currency_id == 'PEN' ) {
179
+ return 'S/';
180
+ } else {
181
+ return '$';
182
+ }
183
+ }
184
+
185
+ MPv1Ticket.checkCouponEligibility = function () {
186
+ if ( document.querySelector(MPv1Ticket.selectors.couponCode).value == "" ) {
187
+ // coupon code is empty
188
+ document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
189
+ document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'block';
190
+ document.querySelector(MPv1Ticket.selectors.mpCouponError).innerHTML = MPv1Ticket.text.coupon_empty;
191
+ MPv1Ticket.coupon_of_discounts.status = false;
192
+ document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
193
+ document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.apply;
194
+ document.querySelector(MPv1.selectors.discount).value = 0;
195
+ //MPv1.cardsHandler();
196
+ } else if ( MPv1Ticket.coupon_of_discounts.status ) {
197
+ // we already have a coupon set, so we remove it
198
+ document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
199
+ document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'none';
200
+ MPv1Ticket.coupon_of_discounts.status = false;
201
+ document.querySelector(MPv1Ticket.selectors.applyCoupon).style.background = null;
202
+ document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.apply;
203
+ document.querySelector(MPv1Ticket.selectors.couponCode).value = "";
204
+ document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
205
+ document.querySelector(MPv1.selectors.discount).value = 0;
206
+ //MPv1.cardsHandler();
207
+ } else {
208
+ // set loading
209
+ document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
210
+ document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'none';
211
+ document.querySelector(MPv1Ticket.selectors.couponCode).style.background = "url("+MPv1Ticket.paths.loading+") 98% 50% no-repeat #fff";
212
+ document.querySelector(MPv1Ticket.selectors.applyCoupon).disabled = true;
213
+ var request = new XMLHttpRequest();
214
+ request.open(
215
+ 'GET',
216
+ MPv1Ticket.coupon_of_discounts.discount_action_url +
217
+ "&coupon_id=" + document.querySelector(MPv1Ticket.selectors.couponCode).value +
218
+ "&amount=" + document.querySelector(MPv1Ticket.selectors.amount).value +
219
+ "&payer=" + document.getElementById("billing_email").value,
220
+ true
221
+ );
222
+ request.onreadystatechange = function() {
223
+ if (request.readyState == 4) {
224
+ if (request.status == 200) {
225
+ var response = JSON.parse(request.responseText);
226
+ if (response.status == 200) {
227
+ document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'block';
228
+ document.querySelector(MPv1Ticket.selectors.discount).value = response.response.coupon_amount;
229
+ document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).innerHTML =
230
+ "<div style='border-style: solid; border-width:thin; border-color: #009EE3; padding: 8px 8px 8px 8px; margin-top: 4px;'>" +
231
+ MPv1Ticket.text.discount_info1 + " <strong>" + MPv1Ticket.currencyIdToCurrency(response.response.currency_id) + " " +
232
+ Math.round(response.response.coupon_amount*100)/100 + "</strong> " + MPv1Ticket.text.discount_info2 + " " + response.response.name + ".<br>" +
233
+ MPv1Ticket.text.discount_info3 + " <strong>" + MPv1Ticket.currencyIdToCurrency(response.response.currency_id) +
234
+ " " + Math.round(MPv1Ticket.getAmountWithoutDiscount()*100)/100 + "</strong><br>" +
235
+ MPv1Ticket.text.discount_info4 + " <strong>" + MPv1Ticket.currencyIdToCurrency(response.response.currency_id) +
236
+ " " + Math.round(MPv1Ticket.getAmount()*100)/100 + "*</strong><br>" +
237
+ "<i>" + MPv1Ticket.text.discount_info5 + "</i><br>" +
238
+ "<a href='https://api.mercadolibre.com/campaigns/" + response.response.id + "/terms_and_conditions?format_type=html' target='_blank'>" +
239
+ MPv1Ticket.text.discount_info6 + "</a></div>";
240
+ document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'none';
241
+ MPv1Ticket.coupon_of_discounts.status = true;
242
+ document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
243
+ document.querySelector(MPv1Ticket.selectors.couponCode).style.background = "url("+MPv1Ticket.paths.check+") 98% 50% no-repeat #fff";
244
+ document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.remove;
245
+ //MPv1.cardsHandler();
246
+ document.querySelector(MPv1Ticket.selectors.campaign_id).value = response.response.id;
247
+ document.querySelector(MPv1Ticket.selectors.campaign).value = response.response.name;
248
+ } else if (response.status == 400 || response.status == 404) {
249
+ document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
250
+ document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'block';
251
+ document.querySelector(MPv1Ticket.selectors.mpCouponError).innerHTML = response.response.message;
252
+ MPv1Ticket.coupon_of_discounts.status = false;
253
+ document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
254
+ document.querySelector(MPv1Ticket.selectors.couponCode).style.background = "url("+MPv1Ticket.paths.error+") 98% 50% no-repeat #fff";
255
+ document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.apply;
256
+ document.querySelector(MPv1.selectors.discount).value = 0;
257
+ //MPv1.cardsHandler();
258
+ }
259
+ } else {
260
+ // request failed
261
+ document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
262
+ document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'none';
263
+ MPv1Ticket.coupon_of_discounts.status = false;
264
+ document.querySelector(MPv1Ticket.selectors.applyCoupon).style.background = null;
265
+ document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.apply;
266
+ document.querySelector(MPv1Ticket.selectors.couponCode).value = "";
267
+ document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
268
+ document.querySelector(MPv1.selectors.discount).value = 0;
269
+ //MPv1.cardsHandler();
270
+ }
271
+ document.querySelector(MPv1Ticket.selectors.applyCoupon).disabled = false;
272
+ }
273
+ };
274
+ request.send(null);
275
+ }
276
+ }
277
+
278
+ /*
279
+ *
280
+ *
281
+ * Initialization function
282
+ *
283
+ */
284
+
285
+ MPv1Ticket.addListenerEvent = function(el, eventName, handler) {
286
+ if (el.addEventListener) {
287
+ el.addEventListener(eventName, handler);
288
+ } else {
289
+ el.attachEvent('on' + eventName, function() {
290
+ handler.call(el);
291
+ });
292
+ }
293
+ };
294
+
295
+ MPv1Ticket.Initialize = function(site_id, coupon_mode, discount_action_url) {
296
+
297
+ //sets
298
+ MPv1Ticket.site_id = site_id
299
+ MPv1Ticket.coupon_of_discounts.default = coupon_mode
300
+ MPv1Ticket.coupon_of_discounts.discount_action_url = discount_action_url
301
+
302
+ // flow coupon of discounts
303
+ if (MPv1Ticket.coupon_of_discounts.default) {
304
+ MPv1Ticket.addListenerEvent(document.querySelector(MPv1Ticket.selectors.applyCoupon), 'click', MPv1Ticket.checkCouponEligibility);
305
+ } else {
306
+ document.querySelector(MPv1Ticket.selectors.formCoupon).style.display = 'none';
307
+ }
308
+
309
+ return;
310
+ }
311
+
312
+ this.MPv1Ticket = MPv1Ticket;
313
+
314
+ }).call();
315
+
316
+ // === Instantiation
317
+
318
+ var mercadopago_site_id = '<?php echo $site_id; ?>';
319
+ var mercadopago_coupon_mode = '<?php echo $coupon_mode; ?>';
320
+ var mercadopago_discount_action_url = '<?php echo $discount_action_url; ?>';
321
+
322
+ MPv1Ticket.text.discount_info1 = '<?php echo $form_labels["form"]["discount_info1"]; ?>';
323
+ MPv1Ticket.text.discount_info2 = '<?php echo $form_labels["form"]["discount_info2"]; ?>';
324
+ MPv1Ticket.text.discount_info3 = '<?php echo $form_labels["form"]["discount_info3"]; ?>';
325
+ MPv1Ticket.text.discount_info4 = '<?php echo $form_labels["form"]["discount_info4"]; ?>';
326
+ MPv1Ticket.text.discount_info5 = '<?php echo $form_labels["form"]["discount_info5"]; ?>';
327
+ MPv1Ticket.text.discount_info6 = '<?php echo $form_labels["form"]["discount_info6"]; ?>';
328
+ MPv1Ticket.text.apply = '<?php echo $form_labels["form"]["apply"]; ?>';
329
+ MPv1Ticket.text.remove = '<?php echo $form_labels["form"]["remove"]; ?>';
330
+ MPv1Ticket.text.coupon_empty = '<?php echo $form_labels["form"]["coupon_empty"]; ?>';
331
+ MPv1Ticket.paths.loading = '<?php echo ( $images_path . "loading.gif" ); ?>';
332
+ MPv1Ticket.paths.check = '<?php echo ( $images_path . "check.png" ); ?>';
333
+ MPv1Ticket.paths.error = '<?php echo ( $images_path . "error.png" ); ?>';
334
+
335
+ MPv1Ticket.getAmount = function() {
336
+ return document.querySelector(MPv1Ticket.selectors.amount).value - document.querySelector(MPv1Ticket.selectors.discount).value;
337
+ }
338
+
339
+ MPv1Ticket.getAmountWithoutDiscount = function() {
340
+ return document.querySelector(MPv1Ticket.selectors.amount).value;
341
+ }
342
+
343
+ MPv1Ticket.Initialize(
344
+ mercadopago_site_id,
345
+ mercadopago_coupon_mode == 'yes',
346
+ mercadopago_discount_action_url);
347
+
348
+ </script>