WooCommerce MercadoPago - Version old.2.1.7

Version Description

Download this release

Release Info

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

Code changes from version old.1.0.3 to old.2.1.7

Files changed (88) hide show
  1. README.txt +211 -64
  2. assets/css/custom_checkout_mercadopago.css +184 -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/cart.png +0 -0
  55. images/check.png +0 -0
  56. images/credit_card.png +0 -0
  57. images/cvv.png +0 -0
  58. images/error.png +0 -0
  59. images/loading.gif +0 -0
  60. images/mercadopago.png +0 -0
  61. images/mplogo.png +0 -0
  62. images/warning.png +0 -0
  63. languages/woocommerce-mercadopago-module-es_AR.mo +0 -0
  64. languages/woocommerce-mercadopago-module-es_AR.po +661 -180
  65. languages/woocommerce-mercadopago-module-es_CL.mo +0 -0
  66. languages/woocommerce-mercadopago-module-es_CL.po +662 -181
  67. languages/woocommerce-mercadopago-module-es_CO.mo +0 -0
  68. languages/woocommerce-mercadopago-module-es_CO.po +662 -188
  69. languages/woocommerce-mercadopago-module-es_ES.mo +0 -0
  70. languages/woocommerce-mercadopago-module-es_ES.po +829 -0
  71. languages/woocommerce-mercadopago-module-es_MX.mo +0 -0
  72. languages/woocommerce-mercadopago-module-es_MX.po +662 -181
  73. languages/woocommerce-mercadopago-module-es_PE.mo +0 -0
  74. languages/woocommerce-mercadopago-module-es_PE.po +829 -0
  75. languages/woocommerce-mercadopago-module-es_VE.mo +0 -0
  76. languages/woocommerce-mercadopago-module-es_VE.po +662 -181
  77. languages/woocommerce-mercadopago-module-pt_BR.mo +0 -0
  78. languages/woocommerce-mercadopago-module-pt_BR.po +729 -247
  79. languages/woocommerce-mercadopago-module.pot +629 -337
  80. mercadopago-module.php +416 -84
  81. mercadopago/css/woo-mercadopago-module.css +0 -14
  82. mercadopago/mercadopago-custom-gateway.php +1555 -0
  83. mercadopago/mercadopago-gateway.php +1054 -540
  84. mercadopago/mercadopago-ticket-gateway.php +1348 -0
  85. mercadopago/sdk/lib/cacert.pem +0 -0
  86. mercadopago/sdk/lib/mercadopago.php +890 -561
  87. templates/credit-card/payment-form.php +1257 -0
  88. templates/ticket/ticket-form.php +398 -0
README.txt CHANGED
@@ -1,12 +1,12 @@
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
 
11
  This is the oficial module of Mercado Pago for WooCommerce plugin.
12
 
@@ -14,79 +14,226 @@ 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.6.x
6
+ Tested up to: WooCommerce 2.6.6
7
+ Stable tag: 2.1.7
8
  License: GPLv2 or later
9
+ License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  This is the oficial module of Mercado Pago for WooCommerce plugin.
12
 
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 ways 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.7.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 Basic and Custom);
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.7 (12/12/2016) =
112
+ * Bug fixes
113
+ - When ticket payment method was enabled, the button for print ticket was appearing for other methods.
114
+
115
+ = v2.1.6 (09/12/2016) =
116
+ * Features
117
+ - Cancel/Refund API integration. Now, merchants can cancel and refund orders through store back-office. Options available in order details, order actions;
118
+ - Back url (checkout callback) configurable in back-office for basic checkout solution.
119
+ * Improvements
120
+ - Added option to select when (payment approval or order generation) to reduce stocks for tickets solution;
121
+ - Payment with ticket with order description at finish.
122
+
123
+ = v2.1.5 (16/11/2016) =
124
+ * Improvements
125
+ - Analytics of module settings.
126
+ * Bug fixes
127
+ - Fixed issue in ticket solution that was printing [null] in ticket description.
128
+
129
+ = v2.1.4 (20/10/2016) =
130
+ * Features
131
+ - Two Card Payment Configuration. Merchants can configure this feature in back-office through settings page.
132
+ * Improvements
133
+ - Removed some redundant notice messages;
134
+ - Improved algorithm to process settings page flow and checkout;
135
+ - Refactored code to meet WordPress coding standards.
136
+ * Bug fixes
137
+ - Fixed a SSL issue related to ticket solution (the open locker) in gateway selection.
138
+
139
+ = v2.1.3 (15/09/2016) =
140
+ * Improvements
141
+ - A few improvements in performance;
142
+ - Improved translations;
143
+ - Improved security with URL access via SSL in all module flow.
144
+
145
+ = v2.1.2 (18/08/2016) =
146
+ * Improvements
147
+ - Improved performance for both client and server sides.
148
+ * Bug fixes
149
+ - Fixed the product list for multiple items in Basic Checkout form.
150
+
151
+ = v2.1.1 (02/08/2016) =
152
+ * Improvements
153
+ - Improved log messages when applying discounts;
154
+ - Added a link to reprint ticket in customer account order page.
155
+ * Bug fixes
156
+ - Fixed tax fee for shipments.
157
+
158
+ = v2.1.0 (25/07/2016) =
159
+ * Features
160
+ - Mercado Pago Discount Coupon. This feature lets Mercado Pago and merchants to use campaigns of discount created in their Mercado Pago accounts. Want to see how it works on-the-fly? Please check this video: <a href="https://www.youtube.com/watch?v=eQ2YYoWvzKQ">Discount Coupons</a>;
161
+ - Currency Conversion. Added an option to try to use Mercado Pago currency ratio, to automatically convert any currencies to supported/used currency.
162
+ * Improvements
163
+ - Improved credentials validation algorithm;
164
+ - Improved checkout data, with more clean and sanitized info for product image and description.
165
+
166
+ = v2.0.5 (07/07/2016) =
167
+ * Improvements
168
+ - Improved IPN behavior to handle consistent messages with absent IDs.
169
+ * Bug fixes
170
+ - Fixed the informative URL of ticket IPN in admin page.
171
+
172
+ = v2.0.4 (29/06/2016) =
173
+ * Improvements
174
+ - Added a message in admin view when currency is different from used locally (used in credential's country).
175
+ * Bug fixes
176
+ - We have wrote a snippet to handle the absent shipment cost problem;
177
+ - Fixed some URLs of the credentials link for Basic Checkout.
178
+
179
+ = v2.0.3 (21/06/2016) =
180
+ * Bug fixes
181
+ - Basic Checkout for WooCommerce v2.6.x. 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.
182
+
183
+ = v2.0.2 (13/06/2016) =
184
+ * Features
185
+ - Rollout to Peru. This plugin is now supporting Peru, which includes Basic Checkout, Custom Checkout, Tickets, and local language translations.
186
+ * Bug fixes
187
+ - Fix a PHP version issue. 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;
188
+ - Fix a tax issue. It wasn't been correctly added to the total value in Mercado Pago gateway.
189
+
190
+ = v2.0.1 (09/06/2016) =
191
+ * Features
192
+ - Customer Cards (One Click Payment). 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. Want to see how it works on-the-fly? Please check this video: <a href="https://www.youtube.com/watch?v=_KB8CtDei_4">Custom Checkout + Customer Cards</a>.
193
+ * Improvements
194
+ - SSL verifications for custom checkout and ticket. 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;
195
+ - Enabling any type of currency without disabling module (now, error message from API). 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.
196
+
197
+ = v2.0.0 (01/06/2016) =
198
+ * Features
199
+ - Custom Checkout for LatAm. Offer a checkout fully customized to your brand experience with our simple-to-use payments API. Want to see how it works on-the-fly? Please check this video: <a href="https://www.youtube.com/watch?v=_KB8CtDei_4">Custom Checkout + Customer Cards</a>;
200
+ - Ticket for LatAm. Now, customer can pay orders with bank tickets. Want to see how it works on-the-fly? Please check this video: <a href="https://www.youtube.com/watch?v=97VSVx5Uaj0">Tickets</a>.
201
+ * Improvements
202
+ - Removed possibility to setting supportable but invalid currency. 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).
203
+
204
+ = v1.0.5 (29/04/2016) =
205
+ * Improvements
206
+ - Removal of extra shipment setup in checkout view. We have made a workaround to prevent an extra shipment screen to appear;
207
+ - Translation to es_ES. Users can select Spain as module country, and translation should be ok.
208
+ * Bug fixes
209
+ - Some bug fixes to stabilize the module.
210
+
211
+ = v1.0.4 (15/04/2016) =
212
+ * Improvements
213
+ - Added a link to module settings page in plugin page. 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!
214
+ - Fixed status change when processing with two cards. 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.
215
 
216
+ = v1.0.3 (23/03/2016) =
217
+ * Improving algorithm when processing IPN
218
+ Async calls and processment were refined.
 
 
219
 
220
  = v1.0.2 (23/03/2016) =
221
+ * Bug fixes
222
+ - IPN URL wasn’t triggered when topic=payment. Fixed a bug for some specific IPN messages of Mercado Pago.
223
 
224
+ = v1.0.1 (23/03/2016) =
225
+ * Improvements
226
+ - Added payment ID in order custom fields information. Added some good informations about the payment in the order view;
227
+ - Removed some unused files/code. We've made some code cleaning;
228
+ - Redesign of the logic of preferences when creating cart, separating items. Itens are now separated in cart description. This increases the readability and consistency of informations in API level;
229
+ - Proper information of shipment cost. Previously, the shipment cost was passed together with the cart total order amount.
230
+
231
+ = v1.0.0 (16/03/2016) =
232
+ * Features
233
+ - LatAm Basic Checkout support. Great for merchants who want to get going quickly and easily. This is the basic payment integration with Mercado Pago. Want to see how it works on-the-fly? Please check this video: <a href="https://www.youtube.com/watch?v=DgOsX1eXjBU">Basic Checkout</a>;
234
+ - Set of configurable fields and customizations. Title, description, category, and external reference customizations, integrations via iframe, modal, and redirection, with configurable auto-returning, max installments and payment method exclusion setup;
235
+ - Sandbox and debug options. Basicer can test orders by enabling debug mode or using sandbox environment.
236
+
237
+ == Upgrade Notice ==
238
+
239
+ 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,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }
91
+
92
+ .mp-box-inputs input:focus, .mp-box-inputs select:focus{
93
+ border: 1px solid #999;
94
+ outline: 0;
95
+ }
96
+
97
+
98
+ .mp-box-inputs input.mp-error-input, .mp-box-inputs select.mp-error-input{
99
+ border: 1px solid red;
100
+ }
101
+
102
+ #mp-box-loading{
103
+ width: 30px;
104
+ height: 30px;
105
+ display: inline-block;
106
+ margin: -10px 0px;
107
+ }
108
+
109
+ #mp-separete-date{
110
+ vertical-align: middle;
111
+ line-height: 65px;
112
+ text-align: center;
113
+ height: 48px;
114
+ font-size: 24px;
115
+ font-weight: 100;
116
+ }
117
+
118
+ #mercadopago-utilities{
119
+ display: none;
120
+ }
121
+
122
+ .mp-btn, .ch-btn {
123
+ background-color: #009ee3;
124
+ border: 1px solid #009ee3;
125
+ border-radius: 4px;
126
+ color: #fff;
127
+ display: inline-block;
128
+ font-family: Arial,sans-serif;
129
+ font-size: 18px;
130
+ font-weight: normal;
131
+ margin: 0;
132
+ padding: 10px;
133
+ text-align: center;
134
+ width: 100%;
135
+ }
136
+
137
+ #submit{
138
+ color: #fff;
139
+ background-color: #337ab7;
140
+ border-color: #2e6da4;
141
+ padding: 6px 12px;
142
+ border: 1px solid transparent;
143
+ border-radius: 4px;
144
+ text-align: center;
145
+ font-size: 14px;
146
+ font-weight: 400;
147
+ }
148
+
149
+ #submit:hover {
150
+ color: #fff;
151
+ background-color: #286090;
152
+ border-color: #204d74;
153
+ }
154
+
155
+ .mp-discount{
156
+ text-transform: uppercase;
157
+ font-size: 12px;
158
+ /*color: #009EE3;*/
159
+ color: #333333;
160
+ display: none;
161
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
162
+ clear: both;
163
+ float: left;
164
+ }
165
+
166
+ /*
167
+ *
168
+ *
169
+ * Error
170
+ *
171
+ *
172
+ */
173
+
174
+ .mp-error{
175
+ text-transform: uppercase;
176
+ font-size: 10px;
177
+ color: red;
178
+ font-weight: bold;
179
+ display: none;
180
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
181
+ clear: both;
182
+ float: left;
183
+ }
184
+
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/cart.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,806 @@ 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"
776
+
777
+ msgid "Rate Us"
778
+ msgstr "Calificar"
779
+
780
+ msgid "Report Issue"
781
+ msgstr "Informar Problema"
782
+
783
+ msgid "Two Cards Mode"
784
+ msgstr "Modo de Dos Tarjetas"
785
+
786
+ msgid "Payments with Two Cards"
787
+ msgstr "Pagos con Dos Tarjetas"
788
+
789
+ msgid "Your customer will be able to use two different cards to pay the order."
790
+ msgstr "Su cliente será capaz de utilizar dos tarjetas diferentes para pagar el pedido."
791
+
792
+ msgid "Your Mercado Pago credentials Access Token appears to be misconfigured."
793
+ msgstr "La credencial Mercado Pago Access Token parece estar mal configurada."
794
+
795
+ msgid "Cancel Order"
796
+ msgstr "Cancelar la Compra"
797
+
798
+ msgid "Refund Order"
799
+ msgstr "Reembolso de Compra"
800
+
801
+ msgid "Back URL Options"
802
+ msgstr "Opciones de URL de Callback"
803
+
804
+ msgid "Sucess URL"
805
+ msgstr "URL de Éxito"
806
+
807
+ msgid "Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page."
808
+ msgstr "Donde los clientes serán redirigidos después de una compra exitosa. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
809
+
810
+ msgid "Failure URL"
811
+ msgstr "URL de Pago Rechazado"
812
+
813
+ msgid "Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page."
814
+ msgstr "Donde los clientes serán redirigidos después de una compra rechazada. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
815
+
816
+ msgid "Pending URL"
817
+ msgstr "URL de Pago Pendiente"
818
+
819
+ msgid "Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page."
820
+ msgstr "Donde los clientes ​serán redirigidos después de una compra pendiente. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
821
+
822
+ msgid "Stock Reduce"
823
+ msgstr "Reducir Inventario"
824
+
825
+ msgid "Reduce Stock in Order Generation"
826
+ msgstr "Reducir Inventario en la Orden"
827
+
828
+ msgid "Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval."
829
+ msgstr "Activar esta opción para reducir el inventario mediante la creación de un pedido. Desactivar para reducir sólo <strong>después</strong> de la aprobación del pago."
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,816 @@ 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"
776
+
777
+ msgid "Rate Us"
778
+ msgstr "Calificar"
779
+
780
+ msgid "Report Issue"
781
+ msgstr "Informar Problema"
782
+
783
+ msgid "Two Cards Mode"
784
+ msgstr "Modo de Dos Tarjetas"
785
+
786
+ msgid "Payments with Two Cards"
787
+ msgstr "Pagos con Dos Tarjetas"
788
+
789
+ msgid "Your customer will be able to use two different cards to pay the order."
790
+ msgstr "Su cliente será capaz de utilizar dos tarjetas diferentes para pagar el pedido."
791
+
792
+ msgid "Your Mercado Pago credentials Access Token appears to be misconfigured."
793
+ msgstr "La credencial Mercado Pago Access Token parece estar mal configurada."
794
+
795
+ msgid "Cancel Order"
796
+ msgstr "Cancelar la Compra"
797
+
798
+ msgid "Refund Order"
799
+ msgstr "Reembolso de Compra"
800
+
801
+ msgid "Back URL Options"
802
+ msgstr "Opciones de URL de Callback"
803
+
804
+ msgid "Sucess URL"
805
+ msgstr "URL de Éxito"
806
+
807
+ msgid "Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page."
808
+ msgstr "Donde los clientes serán redirigidos después de una compra exitosa. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
809
+
810
+ msgid "Failure URL"
811
+ msgstr "URL de Pago Rechazado"
812
+
813
+ msgid "Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page."
814
+ msgstr "Donde los clientes serán redirigidos después de una compra rechazada. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
815
+
816
+ msgid "Pending URL"
817
+ msgstr "URL de Pago Pendiente"
818
+
819
+ msgid "Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page."
820
+ msgstr "Donde los clientes ​serán redirigidos después de una compra pendiente. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
821
+
822
+ msgid "Stock Reduce"
823
+ msgstr "Reducir Inventario"
824
+
825
+ msgid "Reduce Stock in Order Generation"
826
+ msgstr "Reducir Inventario en la Orden"
827
+
828
+ msgid "Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval."
829
+ msgstr "Activar esta opción para reducir el inventario mediante la creación de un pedido. Desactivar para reducir sólo <strong>después</strong> de la aprobación del pago."
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,816 @@ 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"
776
+
777
+ msgid "Rate Us"
778
+ msgstr "Calificar"
779
+
780
+ msgid "Report Issue"
781
+ msgstr "Informar Problema"
782
+
783
+ msgid "Two Cards Mode"
784
+ msgstr "Modo de Dos Tarjetas"
785
+
786
+ msgid "Payments with Two Cards"
787
+ msgstr "Pagos con Dos Tarjetas"
788
+
789
+ msgid "Your customer will be able to use two different cards to pay the order."
790
+ msgstr "Su cliente será capaz de utilizar dos tarjetas diferentes para pagar el pedido."
791
+
792
+ msgid "Your Mercado Pago credentials Access Token appears to be misconfigured."
793
+ msgstr "La credencial Mercado Pago Access Token parece estar mal configurada."
794
+
795
+ msgid "Cancel Order"
796
+ msgstr "Cancelar la Compra"
797
+
798
+ msgid "Refund Order"
799
+ msgstr "Reembolso de Compra"
800
+
801
+ msgid "Back URL Options"
802
+ msgstr "Opciones de URL de Callback"
803
+
804
+ msgid "Sucess URL"
805
+ msgstr "URL de Éxito"
806
+
807
+ msgid "Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page."
808
+ msgstr "Donde los clientes serán redirigidos después de una compra exitosa. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
809
+
810
+ msgid "Failure URL"
811
+ msgstr "URL de Pago Rechazado"
812
+
813
+ msgid "Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page."
814
+ msgstr "Donde los clientes serán redirigidos después de una compra rechazada. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
815
+
816
+ msgid "Pending URL"
817
+ msgstr "URL de Pago Pendiente"
818
+
819
+ msgid "Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page."
820
+ msgstr "Donde los clientes ​serán redirigidos después de una compra pendiente. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
821
+
822
+ msgid "Stock Reduce"
823
+ msgstr "Reducir Inventario"
824
+
825
+ msgid "Reduce Stock in Order Generation"
826
+ msgstr "Reducir Inventario en la Orden"
827
+
828
+ msgid "Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval."
829
+ msgstr "Activar esta opción para reducir el inventario mediante la creación de un pedido. Desactivar para reducir sólo <strong>después</strong> de la aprobación del pago."
languages/woocommerce-mercadopago-module-es_ES.mo ADDED
Binary file
languages/woocommerce-mercadopago-module-es_ES.po ADDED
@@ -0,0 +1,829 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"
776
+
777
+ msgid "Rate Us"
778
+ msgstr "Calificar"
779
+
780
+ msgid "Report Issue"
781
+ msgstr "Informar Problema"
782
+
783
+ msgid "Two Cards Mode"
784
+ msgstr "Modo de Dos Tarjetas"
785
+
786
+ msgid "Payments with Two Cards"
787
+ msgstr "Pagos con Dos Tarjetas"
788
+
789
+ msgid "Your customer will be able to use two different cards to pay the order."
790
+ msgstr "Su cliente será capaz de utilizar dos tarjetas diferentes para pagar el pedido."
791
+
792
+ msgid "Your Mercado Pago credentials Access Token appears to be misconfigured."
793
+ msgstr "La credencial Mercado Pago Access Token parece estar mal configurada."
794
+
795
+ msgid "Cancel Order"
796
+ msgstr "Cancelar la Compra"
797
+
798
+ msgid "Refund Order"
799
+ msgstr "Reembolso de Compra"
800
+
801
+ msgid "Back URL Options"
802
+ msgstr "Opciones de URL de Callback"
803
+
804
+ msgid "Sucess URL"
805
+ msgstr "URL de Éxito"
806
+
807
+ msgid "Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page."
808
+ msgstr "Donde los clientes serán redirigidos después de una compra exitosa. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
809
+
810
+ msgid "Failure URL"
811
+ msgstr "URL de Pago Rechazado"
812
+
813
+ msgid "Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page."
814
+ msgstr "Donde los clientes serán redirigidos después de una compra rechazada. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
815
+
816
+ msgid "Pending URL"
817
+ msgstr "URL de Pago Pendiente"
818
+
819
+ msgid "Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page."
820
+ msgstr "Donde los clientes ​serán redirigidos después de una compra pendiente. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
821
+
822
+ msgid "Stock Reduce"
823
+ msgstr "Reducir Inventario"
824
+
825
+ msgid "Reduce Stock in Order Generation"
826
+ msgstr "Reducir Inventario en la Orden"
827
+
828
+ msgid "Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval."
829
+ msgstr "Activar esta opción para reducir el inventario mediante la creación de un pedido. Desactivar para reducir sólo <strong>después</strong> de la aprobación del pago."
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,816 @@ 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"
776
+
777
+ msgid "Rate Us"
778
+ msgstr "Calificar"
779
+
780
+ msgid "Report Issue"
781
+ msgstr "Informar Problema"
782
+
783
+ msgid "Two Cards Mode"
784
+ msgstr "Modo de Dos Tarjetas"
785
+
786
+ msgid "Payments with Two Cards"
787
+ msgstr "Pagos con Dos Tarjetas"
788
+
789
+ msgid "Your customer will be able to use two different cards to pay the order."
790
+ msgstr "Su cliente será capaz de utilizar dos tarjetas diferentes para pagar el pedido."
791
+
792
+ msgid "Your Mercado Pago credentials Access Token appears to be misconfigured."
793
+ msgstr "La credencial Mercado Pago Access Token parece estar mal configurada."
794
+
795
+ msgid "Cancel Order"
796
+ msgstr "Cancelar la Compra"
797
+
798
+ msgid "Refund Order"
799
+ msgstr "Reembolso de Compra"
800
+
801
+ msgid "Back URL Options"
802
+ msgstr "Opciones de URL de Callback"
803
+
804
+ msgid "Sucess URL"
805
+ msgstr "URL de Éxito"
806
+
807
+ msgid "Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page."
808
+ msgstr "Donde los clientes serán redirigidos después de una compra exitosa. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
809
+
810
+ msgid "Failure URL"
811
+ msgstr "URL de Pago Rechazado"
812
+
813
+ msgid "Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page."
814
+ msgstr "Donde los clientes serán redirigidos después de una compra rechazada. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
815
+
816
+ msgid "Pending URL"
817
+ msgstr "URL de Pago Pendiente"
818
+
819
+ msgid "Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page."
820
+ msgstr "Donde los clientes ​serán redirigidos después de una compra pendiente. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
821
+
822
+ msgid "Stock Reduce"
823
+ msgstr "Reducir Inventario"
824
+
825
+ msgid "Reduce Stock in Order Generation"
826
+ msgstr "Reducir Inventario en la Orden"
827
+
828
+ msgid "Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval."
829
+ msgstr "Activar esta opción para reducir el inventario mediante la creación de un pedido. Desactivar para reducir sólo <strong>después</strong> de la aprobación del pago."
languages/woocommerce-mercadopago-module-es_PE.mo ADDED
Binary file
languages/woocommerce-mercadopago-module-es_PE.po ADDED
@@ -0,0 +1,829 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"
776
+
777
+ msgid "Rate Us"
778
+ msgstr "Calificar"
779
+
780
+ msgid "Report Issue"
781
+ msgstr "Informar Problema"
782
+
783
+ msgid "Two Cards Mode"
784
+ msgstr "Modo de Dos Tarjetas"
785
+
786
+ msgid "Payments with Two Cards"
787
+ msgstr "Pagos con Dos Tarjetas"
788
+
789
+ msgid "Your customer will be able to use two different cards to pay the order."
790
+ msgstr "Su cliente será capaz de utilizar dos tarjetas diferentes para pagar el pedido."
791
+
792
+ msgid "Your Mercado Pago credentials Access Token appears to be misconfigured."
793
+ msgstr "La credencial Mercado Pago Access Token parece estar mal configurada."
794
+
795
+ msgid "Cancel Order"
796
+ msgstr "Cancelar la Compra"
797
+
798
+ msgid "Refund Order"
799
+ msgstr "Reembolso de Compra"
800
+
801
+ msgid "Back URL Options"
802
+ msgstr "Opciones de URL de Callback"
803
+
804
+ msgid "Sucess URL"
805
+ msgstr "URL de Éxito"
806
+
807
+ msgid "Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page."
808
+ msgstr "Donde los clientes serán redirigidos después de una compra exitosa. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
809
+
810
+ msgid "Failure URL"
811
+ msgstr "URL de Pago Rechazado"
812
+
813
+ msgid "Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page."
814
+ msgstr "Donde los clientes serán redirigidos después de una compra rechazada. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
815
+
816
+ msgid "Pending URL"
817
+ msgstr "URL de Pago Pendiente"
818
+
819
+ msgid "Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page."
820
+ msgstr "Donde los clientes ​serán redirigidos después de una compra pendiente. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
821
+
822
+ msgid "Stock Reduce"
823
+ msgstr "Reducir Inventario"
824
+
825
+ msgid "Reduce Stock in Order Generation"
826
+ msgstr "Reducir Inventario en la Orden"
827
+
828
+ msgid "Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval."
829
+ msgstr "Activar esta opción para reducir el inventario mediante la creación de un pedido. Desactivar para reducir sólo <strong>después</strong> de la aprobación del pago."
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,816 @@ 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"
776
+
777
+ msgid "Rate Us"
778
+ msgstr "Calificar"
779
+
780
+ msgid "Report Issue"
781
+ msgstr "Informar Problema"
782
+
783
+ msgid "Two Cards Mode"
784
+ msgstr "Modo de Dos Tarjetas"
785
+
786
+ msgid "Payments with Two Cards"
787
+ msgstr "Pagos con Dos Tarjetas"
788
+
789
+ msgid "Your customer will be able to use two different cards to pay the order."
790
+ msgstr "Su cliente será capaz de utilizar dos tarjetas diferentes para pagar el pedido."
791
+
792
+ msgid "Your Mercado Pago credentials Access Token appears to be misconfigured."
793
+ msgstr "La credencial Mercado Pago Access Token parece estar mal configurada."
794
+
795
+ msgid "Cancel Order"
796
+ msgstr "Cancelar la Compra"
797
+
798
+ msgid "Refund Order"
799
+ msgstr "Reembolso de Compra"
800
+
801
+ msgid "Back URL Options"
802
+ msgstr "Opciones de URL de Callback"
803
+
804
+ msgid "Sucess URL"
805
+ msgstr "URL de Éxito"
806
+
807
+ msgid "Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page."
808
+ msgstr "Donde los clientes serán redirigidos después de una compra exitosa. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
809
+
810
+ msgid "Failure URL"
811
+ msgstr "URL de Pago Rechazado"
812
+
813
+ msgid "Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page."
814
+ msgstr "Donde los clientes serán redirigidos después de una compra rechazada. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
815
+
816
+ msgid "Pending URL"
817
+ msgstr "URL de Pago Pendiente"
818
+
819
+ msgid "Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page."
820
+ msgstr "Donde los clientes ​serán redirigidos después de una compra pendiente. Dejar en blanco para redirigir a la página estándar de resumen de compra en la tienda."
821
+
822
+ msgid "Stock Reduce"
823
+ msgstr "Reducir Inventario"
824
+
825
+ msgid "Reduce Stock in Order Generation"
826
+ msgstr "Reducir Inventario en la Orden"
827
+
828
+ msgid "Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval."
829
+ msgstr "Activar esta opción para reducir el inventario mediante la creación de un pedido. Desactivar para reducir sólo <strong>después</strong> de la aprobación del pago."
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,870 @@ 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 depende da última versão do %s para executar!"
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
46
+ #: 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 o WooCommerce a usar o Mercado Pago como meio de pagamento para compras realizadas em sua loja virtual."
49
+
50
+ #: mercadopago/mercadopago-custom-gateway.php:126
51
+ #: mercadopago/mercadopago-custom-gateway.php:791
52
+ #: mercadopago/mercadopago-gateway.php:125
53
+ #: mercadopago/mercadopago-gateway.php:716
54
  msgid "Argentine"
55
  msgstr "Argentina"
56
 
57
+ #: mercadopago/mercadopago-custom-gateway.php:127
58
+ #: mercadopago/mercadopago-custom-gateway.php:792
59
+ #: mercadopago/mercadopago-gateway.php:126
60
+ #: mercadopago/mercadopago-gateway.php:717
61
  msgid "Brazil"
62
  msgstr "Brasil"
63
 
64
+ #: mercadopago/mercadopago-custom-gateway.php:128
65
+ #: mercadopago/mercadopago-custom-gateway.php:794
66
+ #: mercadopago/mercadopago-gateway.php:127
67
+ #: mercadopago/mercadopago-gateway.php:719
68
  msgid "Chile"
69
  msgstr "Chile"
70
 
71
+ #: mercadopago/mercadopago-custom-gateway.php:129
72
+ #: mercadopago/mercadopago-custom-gateway.php:793
73
+ #: mercadopago/mercadopago-gateway.php:128
74
+ #: mercadopago/mercadopago-gateway.php:718
75
  msgid "Colombia"
76
  msgstr "Colômbia"
77
 
78
+ #: mercadopago/mercadopago-custom-gateway.php:130
79
+ #: mercadopago/mercadopago-custom-gateway.php:795
80
+ #: mercadopago/mercadopago-gateway.php:129
81
+ #: mercadopago/mercadopago-gateway.php:720
82
  msgid "Mexico"
83
  msgstr "México"
84
 
85
+ #: mercadopago/mercadopago-custom-gateway.php:132
86
+ #: mercadopago/mercadopago-gateway.php:130
87
  msgid "or"
88
  msgstr "ou"
89
 
90
+ #: mercadopago/mercadopago-custom-gateway.php:133
91
+ #: mercadopago/mercadopago-custom-gateway.php:796
92
+ #: mercadopago/mercadopago-gateway.php:131
93
+ #: mercadopago/mercadopago-gateway.php:721
94
  msgid "Venezuela"
95
  msgstr "Venezuela"
96
 
97
+ #: mercadopago/mercadopago-custom-gateway.php:145
98
+ #: mercadopago/mercadopago-gateway.php:151
 
 
 
 
 
 
 
99
  msgid "Your credentials are <strong>valid</strong> for"
100
  msgstr "Suas credenciais <strong>são válidas</strong> para"
101
 
102
+ #: mercadopago/mercadopago-custom-gateway.php:151
103
+ #: mercadopago/mercadopago-custom-gateway.php:156
104
+ #: mercadopago/mercadopago-gateway.php:161
105
+ #: mercadopago/mercadopago-gateway.php:170
 
 
 
 
106
  msgid "Your credentials are <strong>not valid</strong>!"
107
  msgstr "Suas credenciais <strong>não são válidas</strong>!"
108
 
109
+ #: mercadopago/mercadopago-custom-gateway.php:169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  #: mercadopago/mercadopago-gateway.php:211
 
 
 
 
 
111
  msgid "Enable/Disable"
112
  msgstr "Habilitar/Desabilitar"
113
 
114
+ #: mercadopago/mercadopago-custom-gateway.php:171
115
+ msgid "Enable Custom Checkout"
116
+ msgstr "Habilitar o Checkout Transparente"
117
 
118
+ #: mercadopago/mercadopago-custom-gateway.php:175
119
+ #: mercadopago/mercadopago-gateway.php:217
120
  msgid "Mercado Pago Credentials"
121
  msgstr "Credenciais do Mercado Pago"
122
 
123
+ #: mercadopago/mercadopago-custom-gateway.php:177
124
+ #: mercadopago/mercadopago-gateway.php:219
125
  msgid "You can obtain your credentials for"
126
  msgstr "Você pode obter suas credenciais para"
127
 
128
+ #: mercadopago/mercadopago-custom-gateway.php:182
129
+ msgid "Insert your Mercado Pago Public key."
130
+ msgstr "Insira sua Public Key do Mercado Pago."
131
 
132
+ #: mercadopago/mercadopago-custom-gateway.php:189
133
+ msgid "Insert your Mercado Pago Access token."
134
+ msgstr "Insira seu Access Token do Mercado Pago."
135
 
136
+ #: mercadopago/mercadopago-custom-gateway.php:194
137
+ #: mercadopago/mercadopago-gateway.php:236
 
 
 
 
 
 
 
138
  msgid "Instant Payment Notification (IPN) URL"
139
  msgstr "URL de Notificações Instantâneas de Pagamento (IPN)"
140
 
141
+ #: mercadopago/mercadopago-custom-gateway.php:196
142
+ #: mercadopago/mercadopago-gateway.php:238
143
  msgid "Your IPN URL to receive instant payment notifications is"
144
  msgstr "Sua URL de IPN para receber notificações instantâneas de pagamentos é"
145
 
146
+ #: mercadopago/mercadopago-custom-gateway.php:199
147
+ #: mercadopago/mercadopago-gateway.php:241
148
  msgid "Checkout Options"
149
  msgstr "Opções de Checkout"
150
 
151
+ #: mercadopago/mercadopago-custom-gateway.php:204
152
+ #: mercadopago/mercadopago-gateway.php:246
153
  msgid "Title"
154
  msgstr "Título"
155
 
156
+ #: mercadopago/mercadopago-custom-gateway.php:206
157
+ #: mercadopago/mercadopago-gateway.php:248
158
  msgid "Title shown to the client in the checkout."
159
  msgstr "Título mostrado ao cliente durante o checkout."
160
 
161
+ #: mercadopago/mercadopago-custom-gateway.php:207
162
+ #: mercadopago/mercadopago-custom-gateway.php:219
163
+ #: mercadopago/mercadopago-gateway.php:249
164
+ msgid "Mercado Pago"
165
+ msgstr "Mercado Pago"
166
+
167
+ #: mercadopago/mercadopago-custom-gateway.php:210
168
+ #: mercadopago/mercadopago-gateway.php:252
169
  msgid "Description"
170
  msgstr "Descrição"
171
 
172
+ #: mercadopago/mercadopago-custom-gateway.php:212
173
+ #: mercadopago/mercadopago-gateway.php:254
174
  msgid "Description shown to the client in the checkout."
175
  msgstr "Descrição mostrada ao cliente durante o checkout."
176
 
177
+ #: mercadopago/mercadopago-custom-gateway.php:213
178
+ #: mercadopago/mercadopago-gateway.php:255
179
+ #: mercadopago/mercadopago-gateway.php:432
180
  msgid "Pay with Mercado Pago"
181
  msgstr "Pagar com Mercado Pago"
182
 
183
+ #: mercadopago/mercadopago-custom-gateway.php:216
184
+ msgid "Statement Descriptor"
185
+ msgstr "Descritor da Nota Fiscal"
186
+
187
+ #: mercadopago/mercadopago-custom-gateway.php:218
188
+ msgid "The description that will be shown in your customer's invoice."
189
+ msgstr "A descrição que será mostrada na nota fiscal de seu cliente."
190
+
191
+ #: mercadopago/mercadopago-custom-gateway.php:222
192
+ msgid "Binary Mode"
193
+ msgstr "Modo Binário"
194
+
195
+ #: mercadopago/mercadopago-custom-gateway.php:224
196
+ msgid "Enable binary mode for checkout status"
197
+ msgstr "Habilita o modo binário para o status do checkout"
198
+
199
+ #: mercadopago/mercadopago-custom-gateway.php:226
200
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
201
+ msgstr "Ao realizar a cobrança no cartão, apenas os status [aprovado] ou [rejeitado] serão considerados."
202
+
203
+ #: mercadopago/mercadopago-custom-gateway.php:229
204
+ msgid "Ticket"
205
+ msgstr "Boleto"
206
+
207
+ #: mercadopago/mercadopago-custom-gateway.php:231
208
+ msgid "Enable Ticket for Custom Checkout"
209
+ msgstr "Habilitar Boleto para o Checkout Transparente"
210
+
211
+ #: mercadopago/mercadopago-custom-gateway.php:233
212
+ msgid "Let your customer pay you with tickets"
213
+ msgstr "Permitir que seus clientes façam pagamentos por boletos"
214
+
215
+ #: mercadopago/mercadopago-custom-gateway.php:236
216
+ #: mercadopago/mercadopago-gateway.php:258
217
  msgid "Store Category"
218
  msgstr "Categoria da loja"
219
 
220
+ #: mercadopago/mercadopago-custom-gateway.php:238
221
+ #: mercadopago/mercadopago-gateway.php:260
222
  msgid "Define which type of products your store sells."
223
  msgstr "Defina qual o tipo dos produtos que sua loja vende."
224
 
225
+ #: mercadopago/mercadopago-custom-gateway.php:242
226
+ #: mercadopago/mercadopago-gateway.php:264
227
  msgid "Store Identificator"
228
  msgstr "Identificador da Loja"
229
 
230
+ #: mercadopago/mercadopago-custom-gateway.php:244
231
+ #: mercadopago/mercadopago-gateway.php:266
232
  msgid "Please, inform a prefix to your store."
233
  msgstr "Por favor, informe um prefixo para sua loja."
234
 
235
+ #: mercadopago/mercadopago-custom-gateway.php:244
236
+ #: mercadopago/mercadopago-gateway.php:266
237
+ 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."
238
+ 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."
 
 
 
 
 
239
 
240
+ #: mercadopago/mercadopago-custom-gateway.php:248
241
+ #: mercadopago/mercadopago-gateway.php:318
242
+ msgid "Test and Debug Options"
243
+ msgstr "Opções de Teste e Debug"
244
+
245
+ #: mercadopago/mercadopago-custom-gateway.php:253
246
+ #: mercadopago/mercadopago-gateway.php:323
247
+ msgid "Mercado Pago Sandbox"
248
+ msgstr "Sandbox Mercado Pago"
249
+
250
+ #: mercadopago/mercadopago-custom-gateway.php:255
251
+ #: mercadopago/mercadopago-gateway.php:325
252
+ msgid "Enable Mercado Pago Sandbox"
253
+ msgstr "Habilitar o sandbox do Mercado Pago"
254
+
255
+ #: mercadopago/mercadopago-custom-gateway.php:257
256
+ #: mercadopago/mercadopago-gateway.php:327
257
+ msgid "This option allows you to test payments inside a sandbox environment."
258
+ msgstr "Esta opção permite a você testar pagamentos em um ambiente sandbox."
259
+
260
+ #: mercadopago/mercadopago-custom-gateway.php:260
261
+ #: mercadopago/mercadopago-gateway.php:330
262
+ msgid "Debug and Log"
263
+ msgstr "Debug e Log"
264
+
265
+ #: mercadopago/mercadopago-custom-gateway.php:262
266
+ #: mercadopago/mercadopago-gateway.php:332
267
+ msgid "Enable log"
268
+ msgstr "Habilitar Log"
269
+
270
+ #: mercadopago/mercadopago-custom-gateway.php:264
271
+ #: mercadopago/mercadopago-gateway.php:334
272
+ msgid "Register event logs of Mercado Pago, such as API requests, in the file"
273
+ msgstr "Registrar logs de eventos do Mercado Pago, como requisições à API, dentro do arquivo"
274
+
275
+ #: mercadopago/mercadopago-custom-gateway.php:265
276
+ #: mercadopago/mercadopago-gateway.php:335
277
+ msgid "File location: "
278
+ msgstr "Local do arquivo: "
279
+
280
+ #: mercadopago/mercadopago-custom-gateway.php:281
281
+ #: mercadopago/mercadopago-gateway.php:351
282
+ #, php-format
283
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
284
+ msgstr "Por favor, avalie-nos com %s na WordPress.org e dê seu feedback para ajudar a melhorar este módulo!"
285
+
286
+ #: mercadopago/mercadopago-custom-gateway.php:332
287
+ msgid "Payment Method"
288
+ msgstr "Método de Pagamento"
289
+
290
+ #: mercadopago/mercadopago-custom-gateway.php:333
291
+ msgid "Credit card number"
292
+ msgstr "Número do cartão de crédito"
293
+
294
+ #: mercadopago/mercadopago-custom-gateway.php:334
295
+ msgid "Expiration month"
296
+ msgstr "Mês de expiração"
297
+
298
+ #: mercadopago/mercadopago-custom-gateway.php:335
299
+ msgid "Expiration year"
300
+ msgstr "Ano de expiração"
301
+
302
+ #: mercadopago/mercadopago-custom-gateway.php:336
303
+ msgid "Year"
304
+ msgstr "Ano"
305
+
306
+ #: mercadopago/mercadopago-custom-gateway.php:337
307
+ msgid "Month"
308
+ msgstr "Mês"
309
+
310
+ #: mercadopago/mercadopago-custom-gateway.php:338
311
+ msgid "Card holder name"
312
+ msgstr "Nome do dono do cartão"
313
+
314
+ #: mercadopago/mercadopago-custom-gateway.php:339
315
+ msgid "Security code"
316
+ msgstr "Código de segurança"
317
+
318
+ #: mercadopago/mercadopago-custom-gateway.php:340
319
+ msgid "Document Type"
320
+ msgstr "Tipo de documento"
321
+
322
+ #: mercadopago/mercadopago-custom-gateway.php:341
323
+ msgid "Document number"
324
+ msgstr "Número do CPF"
325
+
326
+ #: mercadopago/mercadopago-custom-gateway.php:342
327
+ msgid "Issuer"
328
+ msgstr "Emitente"
329
+
330
+ #: mercadopago/mercadopago-custom-gateway.php:343
331
+ msgid "Installments"
332
+ msgstr "Parcelas"
333
+
334
+ #: mercadopago/mercadopago-custom-gateway.php:347
335
+ msgid "Parameter cardNumber can not be null/empty"
336
+ msgstr "O campo [Número do cartão] não pode ser nulo/vazio"
337
+
338
+ #: mercadopago/mercadopago-custom-gateway.php:348
339
+ msgid "Invalid Card Number"
340
+ msgstr "Número do cartão inválido"
341
+
342
+ #: mercadopago/mercadopago-custom-gateway.php:350
343
+ #: mercadopago/mercadopago-custom-gateway.php:351
344
+ #: mercadopago/mercadopago-custom-gateway.php:352
345
+ #: mercadopago/mercadopago-custom-gateway.php:353
346
+ msgid "Invalid Expiration Date"
347
+ msgstr "Data de expiração inválida"
348
+
349
+ #: mercadopago/mercadopago-custom-gateway.php:355
350
+ msgid "Parameter cardholderName can not be null/empty"
351
+ msgstr "O campo [Nome do dono do cartão] não pode ser nulo/vazio"
352
+
353
+ #: mercadopago/mercadopago-custom-gateway.php:356
354
+ msgid "Invalid Card Holder Name"
355
+ msgstr "Nome do dono do cartão inválido"
356
+
357
+ #: mercadopago/mercadopago-custom-gateway.php:358
358
+ msgid "Parameter securityCode can not be null/empty"
359
+ msgstr "O campo [Código de segurança] não pode ser nulo/vazio"
360
+
361
+ #: mercadopago/mercadopago-custom-gateway.php:359
362
+ msgid "Invalid Security Code"
363
+ msgstr "Código de segurança inválido"
364
+
365
+ #: mercadopago/mercadopago-custom-gateway.php:361
366
+ msgid "Parameter docType can not be null/empty"
367
+ msgstr "O campo [Tipo do documento] não pode ser nulo/vazio"
368
+
369
+ #: mercadopago/mercadopago-custom-gateway.php:362
370
+ msgid "Invalid Document Type"
371
+ msgstr "Tipo do documento inválido"
372
+
373
+ #: mercadopago/mercadopago-custom-gateway.php:364
374
+ msgid "Parameter docNumber can not be null/empty"
375
+ msgstr "O campo [Número do documento] não pode ser nulo/vazio"
376
+
377
+ #: mercadopago/mercadopago-custom-gateway.php:365
378
+ msgid "Invalid Document Number"
379
+ msgstr "Número do documento inválido"
380
+
381
+ #: mercadopago/mercadopago-custom-gateway.php:367
382
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
383
+ msgstr "O campo [Subtipo do documento] não pode ser nulo/vazio"
384
+
385
+ #: mercadopago/mercadopago-custom-gateway.php:368
386
+ msgid "Invalid Document Sub Type"
387
+ msgstr "Subtipo do documento inválido"
388
+
389
+ #: mercadopago/mercadopago-custom-gateway.php:370
390
+ msgid "Parameter cardIssuerId can not be null/empty"
391
+ msgstr "O campo [Emitente do cartão] não pode ser nulo/vazio"
392
+
393
+ #: mercadopago/mercadopago-custom-gateway.php:402
394
+ #: mercadopago/mercadopago-custom-gateway.php:943
395
+ #: mercadopago/mercadopago-gateway.php:869
396
+ msgid "Payment approved."
397
+ msgstr "Pagamento aprovado."
398
+
399
+ #: mercadopago/mercadopago-custom-gateway.php:416
400
+ #: mercadopago/mercadopago-custom-gateway.php:805
401
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
402
+ msgstr "Seu pagamento está sob análise. Em menos de 1h, você deverá ser notificado por email."
403
+
404
+ #: mercadopago/mercadopago-custom-gateway.php:418
405
+ msgid "Check your order resume"
406
+ msgstr "Ver o resumo do pedido"
407
+
408
+ #: mercadopago/mercadopago-custom-gateway.php:431
409
+ msgid "Your payment was refused. You can try again."
410
+ msgstr "Seu pagamento foi rejeitado. Você pode tentar novamente."
411
+
412
+ #: mercadopago/mercadopago-custom-gateway.php:435
413
+ #: mercadopago/mercadopago-custom-gateway.php:819
414
+ #: mercadopago/mercadopago-gateway.php:460
415
+ msgid "Click to try again"
416
+ msgstr "Clique para tentar novamente"
417
+
418
+ #: mercadopago/mercadopago-custom-gateway.php:455
419
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
420
+ msgstr "Um problema ocorreu ao processar seu pagamento. Você tem certeza que preencheu corretamente todos os campos do formulário do checkout?"
421
+
422
+ #: mercadopago/mercadopago-custom-gateway.php:544
423
+ msgid "Shipping"
424
+ msgstr "Método de envio"
425
+
426
+ #: mercadopago/mercadopago-custom-gateway.php:545
427
+ msgid "Shipping service used by store"
428
+ msgstr "Serviço de envio usado pela loja"
429
+
430
+ #: mercadopago/mercadopago-custom-gateway.php:721
431
+ #: mercadopago/mercadopago-gateway.php:649
432
+ msgid "WooCommerce &gt; System Status &gt; Logs"
433
+ msgstr "WooCommerce &gt; Status de Sistema &gt; Logs"
434
+
435
+ #: mercadopago/mercadopago-custom-gateway.php:766
436
+ #: mercadopago/mercadopago-custom-gateway.php:779
437
+ #: mercadopago/mercadopago-gateway.php:694
438
+ #: mercadopago/mercadopago-gateway.php:705
439
+ msgid "Mercado Pago is Inactive"
440
+ msgstr "O Mercado Pago está inativo"
441
+
442
+ #: mercadopago/mercadopago-custom-gateway.php:769
443
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
444
+ msgstr "Suas credenciais Public Key/Access Token do Mercado Pago parecem estar desconfiguradas."
445
+
446
+ #: mercadopago/mercadopago-custom-gateway.php:771
447
+ #: mercadopago/mercadopago-gateway.php:698
448
+ msgid "Click here and configure!"
449
+ msgstr "Clique aqui e configure!"
450
+
451
+ #: mercadopago/mercadopago-custom-gateway.php:782
452
+ #: mercadopago/mercadopago-gateway.php:708
453
+ msgid "The currency"
454
+ msgstr "As moedas"
455
+
456
+ #: mercadopago/mercadopago-custom-gateway.php:783
457
+ #: mercadopago/mercadopago-gateway.php:708
458
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
459
+ msgstr "não são suportadas. As moedas suportadas são: ARS, BRL, CLP, COP, MXN, VEF."
460
+
461
+ #: mercadopago/mercadopago-custom-gateway.php:797
462
+ msgid "Peru"
463
+ msgstr "Peru"
464
+
465
+ #: mercadopago/mercadopago-custom-gateway.php:809
466
+ msgid "Click to check your order"
467
+ msgstr "Clique para ver o resumo do seu pedido"
468
+
469
+ #: mercadopago/mercadopago-custom-gateway.php:814
470
+ #: mercadopago/mercadopago-gateway.php:457
471
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
472
+ msgstr "Um erro ocorreu ao processar seu pagamento. Por favor tente novamente ou nos contacte para assistência."
473
+
474
+ #: mercadopago/mercadopago-custom-gateway.php:816
475
+ msgid "Reason is: "
476
+ msgstr "Causa: "
477
+
478
+ #: mercadopago/mercadopago-custom-gateway.php:849
479
+ #: mercadopago/mercadopago-gateway.php:748
480
+ msgid "Mercado Pago Request Failure"
481
+ msgstr "Falha na Requisição do Mercado Pago"
482
+
483
+ #: mercadopago/mercadopago-custom-gateway.php:918
484
+ #: mercadopago/mercadopago-gateway.php:822
485
+ msgid "Payer email"
486
+ msgstr "Email do pagador"
487
+
488
+ #: mercadopago/mercadopago-custom-gateway.php:926
489
+ #: mercadopago/mercadopago-gateway.php:829
490
+ msgid "Payment type"
491
+ msgstr "Tipo de pagamento"
492
+
493
+ #: mercadopago/mercadopago-custom-gateway.php:934
494
+ #: mercadopago/mercadopago-gateway.php:841
495
+ msgid "Mercado Pago Payment ID"
496
+ msgstr "ID de Pagamento do Mercado Pago"
497
+
498
+ #: mercadopago/mercadopago-custom-gateway.php:950
499
+ #: mercadopago/mercadopago-gateway.php:875
500
+ msgid "Customer haven't paid yet."
501
+ msgstr "O cliente ainda não realizou o pagamento."
502
+
503
+ #: mercadopago/mercadopago-custom-gateway.php:957
504
+ #: mercadopago/mercadopago-gateway.php:881
505
+ msgid "Payment under review."
506
+ msgstr "O pagamento está em revisão."
507
+
508
+ #: mercadopago/mercadopago-custom-gateway.php:964
509
+ #: mercadopago/mercadopago-gateway.php:887
510
+ msgid "The payment was refused. The customer can try again."
511
+ msgstr "O pagamento foi recusado. O cliente pode tentar novamente."
512
+
513
+ #: mercadopago/mercadopago-custom-gateway.php:971
514
+ #: mercadopago/mercadopago-gateway.php:893
515
+ msgid "The payment was refunded to the customer."
516
+ msgstr "O pagamento foi estornado ao cliente."
517
+
518
+ #: mercadopago/mercadopago-custom-gateway.php:978
519
+ #: mercadopago/mercadopago-gateway.php:899
520
+ msgid "The payment was cancelled."
521
+ msgstr "O pagamento foi cancelado."
522
+
523
+ #: mercadopago/mercadopago-custom-gateway.php:984
524
+ #: mercadopago/mercadopago-custom-gateway.php:990
525
+ #: mercadopago/mercadopago-gateway.php:904
526
+ #: mercadopago/mercadopago-gateway.php:909
527
+ msgid "The payment is under mediation or it was charged-back."
528
+ msgstr "O pagamento está em mediação ou a compra não foi reconhecida pelo cliente."
529
+
530
+ #: mercadopago/mercadopago-gateway.php:51
531
+ msgid "Mercado Pago - Basic Checkout"
532
+ msgstr "Mercado Pago - Checkout Básico"
533
+
534
+ #: mercadopago/mercadopago-gateway.php:148
535
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
536
+ msgstr "Selecione os meios de pagamento que <strong>não</strong> gostaria de receber com o Mercado Pago."
537
+
538
+ #: mercadopago/mercadopago-gateway.php:158
539
+ #: mercadopago/mercadopago-gateway.php:167
540
+ msgid "Configure your Client_id and Client_secret to have access to more options."
541
+ msgstr "Configure seu Client_id e Client_secret para ter acesso a mais opções."
542
+
543
+ #: mercadopago/mercadopago-gateway.php:184
544
+ #: mercadopago/mercadopago-gateway.php:192
545
+ #: mercadopago/mercadopago-gateway.php:202
546
+ msgid "This field should be an integer."
547
+ msgstr "Este campo deve ser um número inteiro."
548
+
549
+ #: mercadopago/mercadopago-gateway.php:187
550
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
551
+ msgstr "Se o seu método de integração é por iFrame, por favor informe a largura do layout."
552
+
553
+ #: mercadopago/mercadopago-gateway.php:195
554
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
555
+ msgstr "Se o seu método de integração é por iFrame, por favor informe a altura do layout."
556
+
557
+ #: mercadopago/mercadopago-gateway.php:205
558
+ msgid "Select the max number of installments for your customers."
559
+ msgstr "Selecione o número máximo de parcelas que sua loja oferece a seus clientes."
560
+
561
+ #: mercadopago/mercadopago-gateway.php:213
562
+ msgid "Enable Basic Checkout"
563
+ msgstr "Habilitar o Checkout Básico"
564
+
565
+ #: mercadopago/mercadopago-gateway.php:224
566
+ msgid "Insert your Mercado Pago Client_id."
567
+ msgstr "Insira seu Client_id do Mercado Pago."
568
+
569
+ #: mercadopago/mercadopago-gateway.php:231
570
+ msgid "Insert your Mercado Pago Client_secret."
571
+ msgstr "Insira seu Client_secret do Mercado Pago."
572
+
573
+ #: mercadopago/mercadopago-gateway.php:270
574
  msgid "Integration Method"
575
+ msgstr "Método de Integração"
576
 
577
+ #: mercadopago/mercadopago-gateway.php:272
578
+ 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)."
579
+ 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)."
 
 
 
 
 
 
580
 
581
+ #: mercadopago/mercadopago-gateway.php:275
582
  msgid "iFrame"
583
  msgstr "iFrame"
584
 
585
+ #: mercadopago/mercadopago-gateway.php:276
586
  msgid "Modal Window"
587
  msgstr "Janela Modal"
588
 
589
+ #: mercadopago/mercadopago-gateway.php:277
590
  msgid "Redirect"
591
  msgstr "Redirecionamento"
592
 
593
+ #: mercadopago/mercadopago-gateway.php:281
594
  msgid "iFrame Width"
595
  msgstr "Largura do iFrame"
596
 
597
+ #: mercadopago/mercadopago-gateway.php:287
598
  msgid "iFrame Height"
599
  msgstr "Altura do iFrame"
600
 
601
+ #: mercadopago/mercadopago-gateway.php:293
602
  msgid "Auto Return"
603
  msgstr "Auto Retorno"
604
 
605
+ #: mercadopago/mercadopago-gateway.php:295
606
  msgid "Automatic Return After Payment"
607
  msgstr "Retorno com Redirecionamento Automático"
608
 
609
+ #: mercadopago/mercadopago-gateway.php:297
610
  msgid "After the payment, client is automatically redirected."
611
  msgstr "Após a compra, o cliente é redirecionado automaticamente."
612
 
613
+ #: mercadopago/mercadopago-gateway.php:300
614
  msgid "Payment Options"
615
  msgstr "Opções de Pagamento"
616
 
617
+ #: mercadopago/mercadopago-gateway.php:305
618
  msgid "Max installments"
619
  msgstr "Número Máximo de Parcelamentos"
620
 
621
+ #: mercadopago/mercadopago-gateway.php:311
622
  msgid "Exclude Payment Methods"
623
  msgstr "Excluir Métodos de Pagamento"
624
 
625
+ #: mercadopago/mercadopago-gateway.php:428
626
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
627
+ msgstr "Obrigado pela sua compra. Por favor, prossiga para a página de pagamento clicando no botão abaixo."
628
 
629
+ #: mercadopago/mercadopago-gateway.php:436
630
+ msgid "Cancel order &amp; Clear cart"
631
+ msgstr "Cancelar &amp; Limpar carrinho"
632
 
633
+ #: mercadopago/mercadopago-gateway.php:446
634
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
635
+ msgstr "Obrigado pela sua compra. Prossiga com seu pagamento completando as informações abaixo."
636
 
637
+ #: mercadopago/mercadopago-gateway.php:697
638
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
639
+ msgstr "Suas credenciais Client_id/Client_secret do Mercado Pago parecem estar desconfiguradas."
640
 
641
+ msgid " as it appears in your card ..."
642
+ msgstr " como aparece no seu cartão ..."
 
643
 
644
+ msgid "Done, your payment was accredited!"
645
+ msgstr "Pronto, seu pagamento foi aprovado!"
 
646
 
647
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
648
+ msgstr "Estamos processando seu pagamento. Em menos de uma hora você será notificado por email."
 
 
 
 
649
 
650
+ 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."
651
+ 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."
 
 
 
 
 
652
 
653
+ msgid "Check the card number."
654
+ msgstr "Verifique o número do cartão."
 
655
 
656
+ msgid "Check the expiration date."
657
+ msgstr "Verifique a data de expiração."
 
 
 
 
 
658
 
659
+ msgid "Check the information."
660
+ msgstr "Verifique as informações preenchidas."
 
 
 
 
 
661
 
662
+ msgid "Check the security code."
663
+ msgstr "Verifique o código de segurança informado."
 
664
 
665
+ msgid "We could not process your payment."
666
+ msgstr "Não foi possível processar seu pagamento."
 
 
667
 
668
+ msgid "You must authorize the payment of your orders."
669
+ msgstr "Você precisa autorizar o pagamento de seus pedidos."
 
 
 
 
 
670
 
671
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
672
+ msgstr "Contacte o emissor de seu cartão para ativá-lo. O telefone está no verso do seu cartão."
 
673
 
674
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
675
+ msgstr "Você já realizou o pagamento para esse valor. Se precisa pagar novamente, use outro cartão ou outro método de pagamento."
 
676
 
677
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
678
+ msgstr "Seu pagamento foi rejeitado. Escolha outro método de pagamento. Recomenda-se dinheiro."
 
 
 
 
679
 
680
+ msgid "Your payment do not have sufficient funds."
681
+ msgstr "Seu pagamento não possui fundos suficientes."
 
682
 
683
+ msgid "Your payment does not process payments with selected installments."
684
+ msgstr "Seu pagamento não pode processar o parcelamento selecionado."
 
685
 
686
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
687
+ msgstr "Você atingiu o limite de tentativas permitidas. Escolha outro cartão ou outro método de pagamento."
 
688
 
689
+ msgid "This payment method did not process the payment."
690
+ msgstr "Este método de pagamento não pôde processar o seu pagamento."
 
691
 
692
+ msgid "Mercado Pago - Ticket"
693
+ msgstr "Mercado Pago - Boleto"
 
694
 
695
+ msgid "Mercado Pago - Credit Card"
696
+ msgstr "Mercado Pago - Cartão de Crédito"
 
697
 
698
+ msgid "Ticket Options"
699
+ msgstr "Opções do Boleto"
 
700
 
701
+ msgid "Enable Ticket Payment Method"
702
+ msgstr "Habilitar o Método de Pagamento por Boleto"
 
703
 
704
+ msgid "Other Bank"
705
+ msgstr "Outro Banco"
 
706
 
707
+ msgid "Choose"
708
+ msgstr "Escolha"
 
709
 
710
+ msgid "A problem was occurred when processing your payment. Please, try again."
711
+ msgstr "Um problema ocorreu ao processar seu pagamento. Por favor, tente novamente."
 
712
 
713
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
714
+ msgstr "Obrigado pelo seu pedido. Por favor, pague o boleto para ter seu pedido aprovado."
715
+
716
+ msgid "Waiting for the ticket payment."
717
+ msgstr "Aguardando o pagamento do boleto."
718
+
719
+ msgid "Print the Ticket"
720
+ msgstr "Imprimir o boleto"
721
+
722
+ msgid "To reprint the ticket click "
723
+ msgstr "Para reimprimir o boleto clique "
724
+
725
+ msgid "here"
726
+ msgstr "aqui"
727
+
728
+ msgid "Custom Checkout is Inactive"
729
+ msgstr "O Checkout Transparente está Inativo"
730
+
731
+ msgid "Basic Checkout is Inactive"
732
+ msgstr "O Checkout Básico está Inativo"
733
+
734
+ msgid "Ticket is Inactive"
735
+ msgstr "O Boleto está Inativo"
736
+
737
+ msgid "Please, select the ticket issuer of your preference."
738
+ msgstr "Por favor, selecione o emissor de sua preferência."
739
+
740
+ msgid "Click \"Place order\" button. The ticket will be generated and you will be redirected to print it."
741
+ msgstr "Clique no botão \"FINALIZAR COMPRA\". O boleto será gerado e você será redirecionado para imprimí-lo."
742
+
743
+ msgid "Important: The order will be confirmed only after the payment approval."
744
+ msgstr "Importante: O pedido só será confirmado após a aprovação do pagamento."
745
+
746
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
747
+ msgstr "Sua credencial Access Token do Mercado Pago parece estar desconfigurada."
748
+
749
+ msgid "Your Card"
750
+ msgstr "Seus Cartões"
751
+
752
+ msgid "Other Cards"
753
+ msgstr "Outros Cartões"
754
+
755
+ msgid "Other Card"
756
+ msgstr "Outro Cartão"
757
+
758
+ msgid "ended in"
759
+ msgstr "terminado em"
760
+
761
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
762
+ msgstr "Seu site parece não possuir certificação SSL. SSL é um pré-requisito pois o processamento dos pagamentos é feito em seu servidor."
763
+
764
+ msgid "ATTENTION: The currency"
765
+ msgstr "ATENÇÃO: A moeda"
766
+
767
+ 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"
768
+ 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á"
769
+
770
+ msgid "Currency conversions should be made outside this module."
771
+ msgstr "Conversões devem ser feitas fora deste módulo."
772
+
773
+ msgid "Coupons"
774
+ msgstr "Cupons"
775
+
776
+ msgid "Enable coupons of discounts"
777
+ msgstr "Habilitar cupons de desconto"
778
+
779
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
780
+ msgstr "Caso haja uma campanha do Mercado Pago, permite que sua loja disponibilize descontos aos clientes."
781
+
782
+ msgid "You will save"
783
+ msgstr "Você economizará"
784
+
785
+ msgid "Apply"
786
+ msgstr "Aplicar"
787
+
788
+ msgid "Remove"
789
+ msgstr "Remover"
790
+
791
+ msgid "Please, inform your coupon code"
792
+ msgstr "Por favor, informe o código do seu cupom"
793
+
794
+ msgid "Please, inform your email in billing address to use this feature"
795
+ msgstr "Por favor, informe seu email no endereço de cobrança para fazer uso desta funcionalidade"
796
+
797
+ msgid "Discount for %s coupon"
798
+ msgstr "Desconto para o cupom %s"
799
+
800
+ msgid "Discount provided by store"
801
+ msgstr "Desconto dado pela loja"
802
+
803
+ msgid "Discount Coupon"
804
+ msgstr "Cupom de Desconto"
805
+
806
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
807
+ msgstr "MOEDA CONVERTIDA: A taxa de conversão de moeda de"
808
+
809
+ msgid "ERROR: It was not possible to convert the unsupported currency"
810
+ msgstr "ERRO: Não foi possível converter a moeda não suportada"
811
+
812
+ msgid "to"
813
+ msgstr "para"
814
+
815
+ 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."
816
+ 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."
817
+
818
+ msgid " is: "
819
+ msgstr " é: "
820
+
821
+ msgid "Currency Conversion"
822
+ msgstr "Conversão de Moeda"
823
+
824
+ msgid "with discount from"
825
+ msgstr "com o desconto de"
826
+
827
+ msgid "Total of your purchase:"
828
+ msgstr "Total da sua compra:"
829
+
830
+ msgid "Total of your purchase with discount:"
831
+ msgstr "Total da sua compra com desconto:"
832
+
833
+ msgid "*Uppon payment approval"
834
+ msgstr "*Mediante aprovação de pagamento"
835
+
836
+ msgid "Terms and Conditions of Use"
837
+ msgstr "Termos e condições"
838
+
839
+ msgid "Payment converted from"
840
+ msgstr "Pagamento convertido de"
841
+
842
+ msgid "Rate Us"
843
+ msgstr "Avalie"
844
+
845
+ msgid "Report Issue"
846
+ msgstr "Informar Problema"
847
+
848
+ msgid "Two Cards Mode"
849
+ msgstr "Modo Dois Cartões"
850
+
851
+ msgid "Payments with Two Cards"
852
+ msgstr "Pagamento com Dois Cartões"
853
+
854
+ msgid "Your customer will be able to use two different cards to pay the order."
855
+ msgstr "Seus clientes poderão utilizar dois diferentes cartões para pagar pedidos."
856
+
857
+ msgid "Your Mercado Pago credentials Access Token appears to be misconfigured."
858
+ msgstr "Sua credencial Access Token do Mercado Pago parece estar desconfigurada."
859
+
860
+ msgid "Cancel Order"
861
+ msgstr "Cancelar Pedido"
862
+
863
+ msgid "Refund Order"
864
+ msgstr "Extornar Pedido"
865
+
866
+ msgid "Back URL Options"
867
+ msgstr "Opções de URL de Retorno"
868
+
869
+ msgid "Sucess URL"
870
+ msgstr "URL de Sucesso"
871
+
872
+ msgid "Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page."
873
+ msgstr "Onde os clientes deverão ser redirecionados após uma compra bem-sucedida. Deixe em branco para redirecionar para a página padrão de resumo de pedido da loja."
874
+
875
+ msgid "Failure URL"
876
+ msgstr "URL de Falha"
877
+
878
+ msgid "Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page."
879
+ msgstr "Onde os clientes deverão ser redirecionados após uma compra ter falhado. Deixe em branco para redirecionar para a página padrão de resumo de pedido da loja."
880
+
881
+ msgid "Pending URL"
882
+ msgstr "URL de Pendência"
883
+
884
+ msgid "Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page."
885
+ msgstr "Onde os clientes deverão ser redirecionados após uma compra entrar em análise. Deixe em branco para redirecionar para a página padrão de resumo de pedido da loja."
886
+
887
+ msgid "Stock Reduce"
888
+ msgstr "Redução de Estoque"
889
+
890
+ msgid "Reduce Stock in Order Generation"
891
+ msgstr "Reduzir Estoque ao Gerar Pedido"
892
+
893
+ msgid "Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval."
894
+ msgstr "Habilite esta opção para reduzir o estoque ao se criar um pedido. Desabilite para reduzir somente <strong>depois</strong> da aprovação do pagamento."
languages/woocommerce-mercadopago-module.pot CHANGED
@@ -1,527 +1,819 @@
1
  # WordPress Blank Pot
2
  # Copyright (C) 2014 ...
3
  # This file is distributed under the GNU General Public License v2 or later.
4
- #, fuzzy
5
  msgid ""
6
  msgstr ""
7
- "Project-Id-Version: "
8
- "WordPress Blank Pot "
9
- "v1.0.0\n"
10
- "POT-Creation-Date: "
11
- "2016-03-04 17:44-0300\n"
12
  "PO-Revision-Date: \n"
13
- "Last-Translator: Your "
14
- "Name <you@example.com>\n"
15
- "Language-Team: Your Team "
16
- "<translations@example."
17
- "com>\n"
18
- "Report-Msgid-Bugs-To: "
19
- "Translator Name "
20
- "<translations@example."
21
- "com>\n"
22
  "MIME-Version: 1.0\n"
23
- "Content-Type: text/"
24
- "plain; charset=UTF-8\n"
25
- "Content-Transfer-"
26
- "Encoding: 8bit\n"
27
- "Plural-Forms: "
28
- "nplurals=2; plural=n != "
29
- "1;\n"
30
- "X-Textdomain-Support: "
31
- "yesX-Generator: Poedit "
32
- "1.6.4\n"
33
- "X-Poedit-SourceCharset: "
34
- "UTF-8\n"
35
- "X-Poedit-KeywordsList: "
36
- "__;_e;esc_html_e;"
37
- "esc_html_x:1,2c;"
38
- "esc_html__;esc_attr_e;"
39
- "esc_attr_x:1,2c;"
40
- "esc_attr__;_ex:1,2c;"
41
- "_nx:4c,1,2;"
42
- "_nx_noop:4c,1,2;_x:1,2c;"
43
- "_n:1,2;_n_noop:1,2;"
44
- "__ngettext:1,2;"
45
- "__ngettext_noop:1,2;_c,"
46
- "_nc:4c,1,2\n"
47
- "X-Poedit-Basepath: ..\n"
48
  "Language: en_US\n"
49
- "X-Generator: Poedit "
50
- "1.8.7\n"
51
- "X-Poedit-"
52
- "SearchPath-0: .\n"
53
 
54
  #. Description of the plugin/theme
55
  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."
56
  msgstr ""
57
 
58
- #: mercadopago-module.php:66
59
- #, php-format
60
- msgid ""
61
- "Woo Mercado Pago Module "
62
- "depends on the "
63
- "last version of %s to "
64
- "execute!"
65
  msgstr ""
66
 
67
- #: mercadopago/mercadopago-gateway.php:63
68
- msgid ""
69
- "This module enables "
70
- "WooCommerce to use "
71
- "Mercado Pago as payment "
72
- "method for purchases "
73
- "made in your virtual "
74
- "store."
 
 
75
  msgstr ""
76
 
77
- #: mercadopago/mercadopago-gateway.php:133
 
 
 
 
 
78
  msgid "Argentine"
79
  msgstr ""
80
 
81
- #: mercadopago/mercadopago-gateway.php:134
 
82
  msgid "Brazil"
83
  msgstr ""
84
 
85
- #: mercadopago/mercadopago-gateway.php:135
 
86
  msgid "Chile"
87
  msgstr ""
88
 
89
- #: mercadopago/mercadopago-gateway.php:136
 
90
  msgid "Colombia"
91
  msgstr ""
92
 
93
- #: mercadopago/mercadopago-gateway.php:137
 
94
  msgid "Mexico"
95
  msgstr ""
96
 
97
- #: mercadopago/mercadopago-gateway.php:138
98
  msgid "or"
99
  msgstr ""
100
 
101
- #: mercadopago/mercadopago-gateway.php:139
 
102
  msgid "Venezuela"
103
  msgstr ""
104
 
105
- #: mercadopago/mercadopago-gateway.php:154
106
- msgid ""
107
- "Select the payment "
108
- "methods that you "
109
- "<strong>don't</strong> "
110
- "want to receive with "
111
- "Mercado Pago."
112
  msgstr ""
113
 
114
- #: mercadopago/mercadopago-gateway.php:157
115
- msgid ""
116
- "Your credentials are "
117
- "<strong>valid</strong> "
118
- "for"
119
  msgstr ""
120
 
121
- #: mercadopago/mercadopago-gateway.php:164
122
- #: mercadopago/mercadopago-gateway.php:173
123
- msgid ""
124
- "Configure your Client_id "
125
- "and Client_secret to "
126
- "have access to more "
127
- "options."
128
  msgstr ""
129
 
130
- #: mercadopago/mercadopago-gateway.php:167
131
- #: mercadopago/mercadopago-gateway.php:176
132
- msgid ""
133
- "Your credentials are "
134
- "<strong>not valid</"
135
- "strong>!"
136
  msgstr ""
137
 
138
- #: mercadopago/mercadopago-gateway.php:190
139
- #: mercadopago/mercadopago-gateway.php:198
140
- #: mercadopago/mercadopago-gateway.php:208
141
- msgid ""
142
- "This field should be an "
143
- "integer."
144
  msgstr ""
145
 
146
- #: mercadopago/mercadopago-gateway.php:193
147
- msgid ""
148
- "If your integration "
149
- "method is iFrame, please "
150
- "inform the payment "
151
- "iFrame width."
152
  msgstr ""
153
 
154
- #: mercadopago/mercadopago-gateway.php:201
155
- msgid ""
156
- "If your integration "
157
- "method is iFrame, please "
158
- "inform the payment "
159
- "iFrame height."
160
  msgstr ""
161
 
162
- #: mercadopago/mercadopago-gateway.php:211
163
- msgid ""
164
- "Select the max number of "
165
- "installments for your "
166
- "customers."
167
  msgstr ""
168
 
169
- #: mercadopago/mercadopago-gateway.php:217
170
- msgid "Enable/Disable"
171
  msgstr ""
172
 
173
- #: mercadopago/mercadopago-gateway.php:219
174
- msgid ""
175
- "Enable Mercado Pago "
176
- "Module"
177
  msgstr ""
178
 
179
- #: mercadopago/mercadopago-gateway.php:223
180
- msgid ""
181
- "Mercado Pago Credentials"
182
  msgstr ""
183
 
184
- #: mercadopago/mercadopago-gateway.php:225
185
- msgid ""
186
- "You can obtain your "
187
- "credentials for"
188
  msgstr ""
189
 
190
- #: mercadopago/mercadopago-gateway.php:228
191
- msgid ""
192
- "Mercado Pago Client_id"
193
  msgstr ""
194
 
195
- #: mercadopago/mercadopago-gateway.php:230
196
- msgid ""
197
- "Insert your Mercado Pago "
198
- "Client_id."
199
  msgstr ""
200
 
201
- #: mercadopago/mercadopago-gateway.php:235
202
- msgid ""
203
- "Mercado Pago "
204
- "Client_secret"
205
  msgstr ""
206
 
207
- #: mercadopago/mercadopago-gateway.php:237
208
- msgid ""
209
- "Insert your Mercado Pago "
210
- "Client_secret."
211
  msgstr ""
212
 
213
- #: mercadopago/mercadopago-gateway.php:242
214
- msgid ""
215
- "Instant Payment "
216
- "Notification (IPN) URL"
217
  msgstr ""
218
 
219
- #: mercadopago/mercadopago-gateway.php:244
220
- msgid ""
221
- "Your IPN URL to receive "
222
- "instant payment "
223
- "notifications is"
224
  msgstr ""
225
 
226
- #: mercadopago/mercadopago-gateway.php:247
227
- msgid "Checkout Options"
228
  msgstr ""
229
 
230
- #: mercadopago/mercadopago-gateway.php:252
231
- msgid "Title"
232
  msgstr ""
233
 
234
- #: mercadopago/mercadopago-gateway.php:254
235
- msgid ""
236
- "Title shown to the "
237
- "client in the checkout."
238
  msgstr ""
239
 
240
- #: mercadopago/mercadopago-gateway.php:258
241
- msgid "Description"
242
  msgstr ""
243
 
244
- #: mercadopago/mercadopago-gateway.php:260
245
- msgid ""
246
- "Description shown to the "
247
- "client in the checkout."
248
  msgstr ""
249
 
250
- #: mercadopago/mercadopago-gateway.php:261
251
- #: mercadopago/mercadopago-gateway.php:406
252
- msgid ""
253
- "Pay with Mercado Pago"
 
 
254
  msgstr ""
255
 
256
- #: mercadopago/mercadopago-gateway.php:264
257
  msgid "Store Category"
258
  msgstr ""
259
 
260
- #: mercadopago/mercadopago-gateway.php:266
261
- msgid ""
262
- "Define which type of "
263
- "products your store "
264
- "sells."
265
  msgstr ""
266
 
267
- #: mercadopago/mercadopago-gateway.php:270
268
  msgid "Store Identificator"
269
  msgstr ""
270
 
271
- #: mercadopago/mercadopago-gateway.php:272
272
- msgid ""
273
- "Please, inform a prefix "
274
- "to your store."
275
  msgstr ""
276
 
277
- #: mercadopago/mercadopago-gateway.php:272
278
- msgid ""
279
- "If you use your Mercado "
280
- "Pago account on multiple "
281
- "stores you should make "
282
- "sure that this prefix is "
283
- "unique as Mercado Pago "
284
- "will not allow orders "
285
- "with same identificators."
286
  msgstr ""
287
 
288
- #: mercadopago/mercadopago-gateway.php:276
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  msgid "Integration Method"
290
  msgstr ""
291
 
292
- #: mercadopago/mercadopago-gateway.php:278
293
- msgid ""
294
- "Select how your clients "
295
- "should interact with "
296
- "Mercado Pago. Modal "
297
- "Window (inside your "
298
- "store), Redirect (Client "
299
- "is redirected to Mercado "
300
- "Pago), or iFrame (an "
301
- "internal window is "
302
- "embedded to the page "
303
- "layout)."
304
  msgstr ""
305
 
306
- #: mercadopago/mercadopago-gateway.php:281
307
  msgid "iFrame"
308
  msgstr ""
309
 
310
- #: mercadopago/mercadopago-gateway.php:282
311
  msgid "Modal Window"
312
  msgstr ""
313
 
314
- #: mercadopago/mercadopago-gateway.php:283
315
  msgid "Redirect"
316
  msgstr ""
317
 
318
- #: mercadopago/mercadopago-gateway.php:287
319
  msgid "iFrame Width"
320
  msgstr ""
321
 
322
- #: mercadopago/mercadopago-gateway.php:293
323
  msgid "iFrame Height"
324
  msgstr ""
325
 
326
- #: mercadopago/mercadopago-gateway.php:299
327
  msgid "Auto Return"
328
  msgstr ""
329
 
330
- #: mercadopago/mercadopago-gateway.php:301
331
- msgid ""
332
- "Automatic Return After "
333
- "Payment"
334
  msgstr ""
335
 
336
- #: mercadopago/mercadopago-gateway.php:303
337
- msgid ""
338
- "After the payment, "
339
- "client is automatically "
340
- "redirected."
341
  msgstr ""
342
 
343
- #: mercadopago/mercadopago-gateway.php:306
344
  msgid "Payment Options"
345
  msgstr ""
346
 
347
- #: mercadopago/mercadopago-gateway.php:311
348
  msgid "Max installments"
349
  msgstr ""
350
 
351
- #: mercadopago/mercadopago-gateway.php:317
352
- msgid ""
353
- "Exclude Payment Methods"
354
  msgstr ""
355
 
356
- #: mercadopago/mercadopago-gateway.php:324
357
- msgid ""
358
- "Test and Debug Options"
359
  msgstr ""
360
 
361
- #: mercadopago/mercadopago-gateway.php:329
362
- msgid ""
363
- "Mercado Pago Sandbox"
364
  msgstr ""
365
 
366
- #: mercadopago/mercadopago-gateway.php:331
367
- msgid ""
368
- "Enable Mercado Pago "
369
- "Sandbox"
370
  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 ""
378
 
379
- #: mercadopago/mercadopago-gateway.php:336
380
- msgid "Debug and Log"
381
  msgstr ""
382
 
383
- #: mercadopago/mercadopago-gateway.php:338
384
- msgid "Enable log"
385
  msgstr ""
386
 
387
- #: mercadopago/mercadopago-gateway.php:340
388
- #, php-format
389
- msgid ""
390
- "Register event logs of "
391
- "Mercado Pago, such as "
392
- "API requests, in the "
393
- "file"
394
  msgstr ""
395
 
396
- #: mercadopago/mercadopago-gateway.php:402
397
- msgid ""
398
- "Thank you for your "
399
- "order. Please, proceed "
400
- "with your payment "
401
- "clicking in the bellow "
402
- "button."
403
  msgstr ""
404
 
405
- #: mercadopago/mercadopago-gateway.php:410
406
- msgid ""
407
- "Cancel order &amp; Clear "
408
- "cart"
409
  msgstr ""
410
 
411
- #: mercadopago/mercadopago-gateway.php:420
412
- msgid ""
413
- "Thank you for your "
414
- "order. Proceed with your "
415
- "payment completing the "
416
- "following information."
417
  msgstr ""
418
 
419
- #: mercadopago/mercadopago-gateway.php:431
420
- msgid ""
421
- "An error occurred when "
422
- "proccessing your "
423
- "payment. Please try "
424
- "again or contact us for "
425
- "assistence."
426
  msgstr ""
427
 
428
- #: mercadopago/mercadopago-gateway.php:434
429
- msgid "Click to try again"
430
  msgstr ""
431
 
432
- #: mercadopago/mercadopago-gateway.php:675
433
- #: mercadopago/mercadopago-gateway.php:686
434
- msgid ""
435
- "Mercado Pago is Inactive"
436
  msgstr ""
437
 
438
- #: mercadopago/mercadopago-gateway.php:678
439
- msgid ""
440
- "Your Mercado Pago "
441
- "credentials Client_id/"
442
- "Client_secret appears to "
443
- "be misconfigured."
444
  msgstr ""
445
 
446
- #: mercadopago/mercadopago-gateway.php:679
447
- msgid ""
448
- "Click here and configure!"
449
  msgstr ""
450
 
451
- #: mercadopago/mercadopago-gateway.php:689
452
- msgid "The currency"
453
  msgstr ""
454
 
455
- #: mercadopago/mercadopago-gateway.php:689
456
- 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
464
- msgid ""
465
- "Mercado Pago Request "
466
- "Failure"
467
  msgstr ""
468
 
469
- #: mercadopago/mercadopago-gateway.php:791
470
- msgid ""
471
- "Mercado Pago Transaction "
472
- "ID"
473
  msgstr ""
474
 
475
- #: mercadopago/mercadopago-gateway.php:798
476
- msgid "Payer email"
477
  msgstr ""
478
 
479
- #: mercadopago/mercadopago-gateway.php:805
480
- msgid "Payment type"
481
  msgstr ""
482
 
483
- #: mercadopago/mercadopago-gateway.php:810
484
- msgid "Payment approved."
485
  msgstr ""
486
 
487
- #: mercadopago/mercadopago-gateway.php:816
488
- msgid ""
489
- "Customer haven't paid "
490
- "yet."
491
  msgstr ""
492
 
493
- #: mercadopago/mercadopago-gateway.php:821
494
- msgid ""
495
- "Payment under review."
496
  msgstr ""
497
 
498
- #: mercadopago/mercadopago-gateway.php:826
499
- msgid ""
500
- "The payment was refused. "
501
- "The customer can try "
502
- "again."
503
  msgstr ""
504
 
505
- #: mercadopago/mercadopago-gateway.php:832
506
- msgid ""
507
- "The payment was refunded "
508
- "to the customer."
509
  msgstr ""
510
 
511
- #: mercadopago/mercadopago-gateway.php:838
512
- msgid ""
513
- "The payment was "
514
- "cancelled."
515
  msgstr ""
516
 
517
- #: mercadopago/mercadopago-gateway.php:843
518
- msgid "Mercado Pago Payment ID"
519
  msgstr ""
520
 
521
- #: mercadopago/mercadopago-gateway.php:843
522
- #: mercadopago/mercadopago-gateway.php:848
523
- msgid ""
524
- "The payment is under "
525
- "mediation or it was "
526
- "charged-back."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
527
  msgstr ""
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:12-0300\n"
 
 
 
8
  "PO-Revision-Date: \n"
9
+ "Language-Team: Product Development <modulos@mercadopago.com>\n"
10
+ "Report-Msgid-Bugs-To: Marcelo Tomio Hama <marcelo.hama@mercadolivre.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;_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: en_US\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 ""
27
 
28
+ #: mercadopago-module.php:69
29
+ msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
 
 
 
 
 
30
  msgstr ""
31
 
32
+ #: mercadopago-module.php:109
33
+ msgid "Basic Checkout"
34
+ msgstr ""
35
+
36
+ #: mercadopago-module.php:113
37
+ msgid "Custom Checkout"
38
+ msgstr ""
39
+
40
+ #: mercadopago/mercadopago-custom-gateway.php:48
41
+ msgid "Mercado Pago - Custom Checkout"
42
  msgstr ""
43
 
44
+ #: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
45
+ msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
46
+ msgstr ""
47
+
48
+ #: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
49
+ #: mercadopago/mercadopago-gateway.php:716
50
  msgid "Argentine"
51
  msgstr ""
52
 
53
+ #: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
54
+ #: mercadopago/mercadopago-gateway.php:717
55
  msgid "Brazil"
56
  msgstr ""
57
 
58
+ #: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
59
+ #: mercadopago/mercadopago-gateway.php:719
60
  msgid "Chile"
61
  msgstr ""
62
 
63
+ #: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
64
+ #: mercadopago/mercadopago-gateway.php:718
65
  msgid "Colombia"
66
  msgstr ""
67
 
68
+ #: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
69
+ #: mercadopago/mercadopago-gateway.php:720
70
  msgid "Mexico"
71
  msgstr ""
72
 
73
+ #: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
74
  msgid "or"
75
  msgstr ""
76
 
77
+ #: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
78
+ #: mercadopago/mercadopago-gateway.php:721
79
  msgid "Venezuela"
80
  msgstr ""
81
 
82
+ #: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
83
+ msgid "Your credentials are <strong>valid</strong> for"
 
 
 
 
 
84
  msgstr ""
85
 
86
+ #: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
87
+ #: mercadopago/mercadopago-gateway.php:170
88
+ msgid "Your credentials are <strong>not valid</strong>!"
 
 
89
  msgstr ""
90
 
91
+ #: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
92
+ msgid "Enable/Disable"
 
 
 
 
 
93
  msgstr ""
94
 
95
+ #: mercadopago/mercadopago-custom-gateway.php:171
96
+ msgid "Enable Custom Checkout"
 
 
 
 
97
  msgstr ""
98
 
99
+ #: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
100
+ msgid "Mercado Pago Credentials"
 
 
 
 
101
  msgstr ""
102
 
103
+ #: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
104
+ msgid "You can obtain your credentials for"
 
 
 
 
105
  msgstr ""
106
 
107
+ #: mercadopago/mercadopago-custom-gateway.php:182
108
+ msgid "Insert your Mercado Pago Public key."
 
 
 
 
109
  msgstr ""
110
 
111
+ #: mercadopago/mercadopago-custom-gateway.php:189
112
+ msgid "Insert your Mercado Pago Access token."
 
 
 
113
  msgstr ""
114
 
115
+ #: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
116
+ msgid "Instant Payment Notification (IPN) URL"
117
  msgstr ""
118
 
119
+ #: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
120
+ msgid "Your IPN URL to receive instant payment notifications is"
 
 
121
  msgstr ""
122
 
123
+ #: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
124
+ msgid "Checkout Options"
 
125
  msgstr ""
126
 
127
+ #: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
128
+ msgid "Title"
 
 
129
  msgstr ""
130
 
131
+ #: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
132
+ msgid "Title shown to the client in the checkout."
 
133
  msgstr ""
134
 
135
+ #: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
136
+ msgid "Mercado Pago"
 
 
137
  msgstr ""
138
 
139
+ #: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
140
+ msgid "Description"
 
 
141
  msgstr ""
142
 
143
+ #: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
144
+ msgid "Description shown to the client in the checkout."
 
 
145
  msgstr ""
146
 
147
+ #: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
148
+ msgid "Pay with Mercado Pago"
 
 
149
  msgstr ""
150
 
151
+ #: mercadopago/mercadopago-custom-gateway.php:216
152
+ msgid "Statement Descriptor"
 
 
 
153
  msgstr ""
154
 
155
+ #: mercadopago/mercadopago-custom-gateway.php:218
156
+ msgid "The description that will be shown in your customer's invoice."
157
  msgstr ""
158
 
159
+ #: mercadopago/mercadopago-custom-gateway.php:222
160
+ msgid "Binary Mode"
161
  msgstr ""
162
 
163
+ #: mercadopago/mercadopago-custom-gateway.php:224
164
+ msgid "Enable binary mode for checkout status"
 
 
165
  msgstr ""
166
 
167
+ #: mercadopago/mercadopago-custom-gateway.php:226
168
+ msgid "When charging a credit card, only [approved] or [reject] status will be taken."
169
  msgstr ""
170
 
171
+ #: mercadopago/mercadopago-custom-gateway.php:229
172
+ msgid "Ticket"
 
 
173
  msgstr ""
174
 
175
+ #: mercadopago/mercadopago-custom-gateway.php:231
176
+ msgid "Enable Ticket for Custom Checkout"
177
+ msgstr ""
178
+
179
+ #: mercadopago/mercadopago-custom-gateway.php:233
180
+ msgid "Let your customer pay you with tickets"
181
  msgstr ""
182
 
183
+ #: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
184
  msgid "Store Category"
185
  msgstr ""
186
 
187
+ #: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
188
+ msgid "Define which type of products your store sells."
 
 
 
189
  msgstr ""
190
 
191
+ #: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
192
  msgid "Store Identificator"
193
  msgstr ""
194
 
195
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
196
+ msgid "Please, inform a prefix to your store."
 
 
197
  msgstr ""
198
 
199
+ #: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
200
+ 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."
 
 
 
 
 
 
 
201
  msgstr ""
202
 
203
+ #: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
204
+ msgid "Test and Debug Options"
205
+ msgstr ""
206
+
207
+ #: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
208
+ msgid "Mercado Pago Sandbox"
209
+ msgstr ""
210
+
211
+ #: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
212
+ msgid "Enable Mercado Pago Sandbox"
213
+ msgstr ""
214
+
215
+ #: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
216
+ msgid "This option allows you to test payments inside a sandbox environment."
217
+ msgstr ""
218
+
219
+ #: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
220
+ msgid "Debug and Log"
221
+ msgstr ""
222
+
223
+ #: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
224
+ msgid "Enable log"
225
+ msgstr ""
226
+
227
+ #: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
228
+ msgid "Register event logs of Mercado Pago, such as API requests, in the file"
229
+ msgstr ""
230
+
231
+ #: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
232
+ msgid "File location: "
233
+ msgstr ""
234
+
235
+ #: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
236
+ msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
237
+ msgstr ""
238
+
239
+ #: mercadopago/mercadopago-custom-gateway.php:332
240
+ msgid "Payment Method"
241
+ msgstr ""
242
+
243
+ #: mercadopago/mercadopago-custom-gateway.php:333
244
+ msgid "Credit card number"
245
+ msgstr ""
246
+
247
+ #: mercadopago/mercadopago-custom-gateway.php:334
248
+ msgid "Expiration month"
249
+ msgstr ""
250
+
251
+ #: mercadopago/mercadopago-custom-gateway.php:335
252
+ msgid "Expiration year"
253
+ msgstr ""
254
+
255
+ #: mercadopago/mercadopago-custom-gateway.php:336
256
+ msgid "Year"
257
+ msgstr ""
258
+
259
+ #: mercadopago/mercadopago-custom-gateway.php:337
260
+ msgid "Month"
261
+ msgstr ""
262
+
263
+ #: mercadopago/mercadopago-custom-gateway.php:338
264
+ msgid "Card holder name"
265
+ msgstr ""
266
+
267
+ #: mercadopago/mercadopago-custom-gateway.php:339
268
+ msgid "Security code"
269
+ msgstr ""
270
+
271
+ #: mercadopago/mercadopago-custom-gateway.php:340
272
+ msgid "Document Type"
273
+ msgstr ""
274
+
275
+ #: mercadopago/mercadopago-custom-gateway.php:341
276
+ msgid "Document number"
277
+ msgstr ""
278
+
279
+ #: mercadopago/mercadopago-custom-gateway.php:342
280
+ msgid "Issuer"
281
+ msgstr ""
282
+
283
+ #: mercadopago/mercadopago-custom-gateway.php:343
284
+ msgid "Installments"
285
+ msgstr ""
286
+
287
+ #: mercadopago/mercadopago-custom-gateway.php:347
288
+ msgid "Parameter cardNumber can not be null/empty"
289
+ msgstr ""
290
+
291
+ #: mercadopago/mercadopago-custom-gateway.php:348
292
+ msgid "Invalid Card Number"
293
+ msgstr ""
294
+
295
+ #: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
296
+ #: mercadopago/mercadopago-custom-gateway.php:353
297
+ msgid "Invalid Expiration Date"
298
+ msgstr ""
299
+
300
+ #: mercadopago/mercadopago-custom-gateway.php:355
301
+ msgid "Parameter cardholderName can not be null/empty"
302
+ msgstr ""
303
+
304
+ #: mercadopago/mercadopago-custom-gateway.php:356
305
+ msgid "Invalid Card Holder Name"
306
+ msgstr ""
307
+
308
+ #: mercadopago/mercadopago-custom-gateway.php:358
309
+ msgid "Parameter securityCode can not be null/empty"
310
+ msgstr ""
311
+
312
+ #: mercadopago/mercadopago-custom-gateway.php:359
313
+ msgid "Invalid Security Code"
314
+ msgstr ""
315
+
316
+ #: mercadopago/mercadopago-custom-gateway.php:361
317
+ msgid "Parameter docType can not be null/empty"
318
+ msgstr ""
319
+
320
+ #: mercadopago/mercadopago-custom-gateway.php:362
321
+ msgid "Invalid Document Type"
322
+ msgstr ""
323
+
324
+ #: mercadopago/mercadopago-custom-gateway.php:364
325
+ msgid "Parameter docNumber can not be null/empty"
326
+ msgstr ""
327
+
328
+ #: mercadopago/mercadopago-custom-gateway.php:365
329
+ msgid "Invalid Document Number"
330
+ msgstr ""
331
+
332
+ #: mercadopago/mercadopago-custom-gateway.php:367
333
+ msgid "The parameter cardholder.document.subtype can not be null or empty"
334
+ msgstr ""
335
+
336
+ #: mercadopago/mercadopago-custom-gateway.php:368
337
+ msgid "Invalid Document Sub Type"
338
+ msgstr ""
339
+
340
+ #: mercadopago/mercadopago-custom-gateway.php:370
341
+ msgid "Parameter cardIssuerId can not be null/empty"
342
+ msgstr ""
343
+
344
+ #: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
345
+ msgid "Payment approved."
346
+ msgstr ""
347
+
348
+ #: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
349
+ msgid "Your payment is under review. In less than 1h, you should be notified by email."
350
+ msgstr ""
351
+
352
+ #: mercadopago/mercadopago-custom-gateway.php:418
353
+ msgid "Check your order resume"
354
+ msgstr ""
355
+
356
+ #: mercadopago/mercadopago-custom-gateway.php:431
357
+ msgid "Your payment was refused. You can try again."
358
+ msgstr ""
359
+
360
+ #: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
361
+ msgid "Click to try again"
362
+ msgstr ""
363
+
364
+ #: mercadopago/mercadopago-custom-gateway.php:455
365
+ msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
366
+ msgstr ""
367
+
368
+ #: mercadopago/mercadopago-custom-gateway.php:544
369
+ msgid "Shipping"
370
+ msgstr ""
371
+
372
+ #: mercadopago/mercadopago-custom-gateway.php:545
373
+ msgid "Shipping service used by store"
374
+ msgstr ""
375
+
376
+ #: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
377
+ msgid "WooCommerce &gt; System Status &gt; Logs"
378
+ msgstr ""
379
+
380
+ #: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
381
+ #: mercadopago/mercadopago-gateway.php:705
382
+ msgid "Mercado Pago is Inactive"
383
+ msgstr ""
384
+
385
+ #: mercadopago/mercadopago-custom-gateway.php:769
386
+ msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
387
+ msgstr ""
388
+
389
+ #: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
390
+ msgid "Click here and configure!"
391
+ msgstr ""
392
+
393
+ #: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
394
+ msgid "The currency"
395
+ msgstr ""
396
+
397
+ #: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
398
+ msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
399
+ msgstr ""
400
+
401
+ #: mercadopago/mercadopago-custom-gateway.php:797
402
+ msgid "Peru"
403
+ msgstr ""
404
+
405
+ #: mercadopago/mercadopago-custom-gateway.php:809
406
+ msgid "Click to check your order"
407
+ msgstr ""
408
+
409
+ #: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
410
+ msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
411
+ msgstr ""
412
+
413
+ #: mercadopago/mercadopago-custom-gateway.php:816
414
+ msgid "Reason is: "
415
+ msgstr ""
416
+
417
+ #: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
418
+ msgid "Mercado Pago Request Failure"
419
+ msgstr ""
420
+
421
+ #: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
422
+ msgid "Payer email"
423
+ msgstr ""
424
+
425
+ #: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
426
+ msgid "Payment type"
427
+ msgstr ""
428
+
429
+ #: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
430
+ msgid "Mercado Pago Payment ID"
431
+ msgstr ""
432
+
433
+ #: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
434
+ msgid "Customer haven't paid yet."
435
+ msgstr ""
436
+
437
+ #: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
438
+ msgid "Payment under review."
439
+ msgstr ""
440
+
441
+ #: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
442
+ msgid "The payment was refused. The customer can try again."
443
+ msgstr ""
444
+
445
+ #: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
446
+ msgid "The payment was refunded to the customer."
447
+ msgstr ""
448
+
449
+ #: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
450
+ msgid "The payment was cancelled."
451
+ msgstr ""
452
+
453
+ #: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
454
+ #: mercadopago/mercadopago-gateway.php:909
455
+ msgid "The payment is under mediation or it was charged-back."
456
+ msgstr ""
457
+
458
+ #: mercadopago/mercadopago-gateway.php:51
459
+ msgid "Mercado Pago - Basic Checkout"
460
+ msgstr ""
461
+
462
+ #: mercadopago/mercadopago-gateway.php:148
463
+ msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
464
+ msgstr ""
465
+
466
+ #: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
467
+ msgid "Configure your Client_id and Client_secret to have access to more options."
468
+ msgstr ""
469
+
470
+ #: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
471
+ msgid "This field should be an integer."
472
+ msgstr ""
473
+
474
+ #: mercadopago/mercadopago-gateway.php:187
475
+ msgid "If your integration method is iFrame, please inform the payment iFrame width."
476
+ msgstr ""
477
+
478
+ #: mercadopago/mercadopago-gateway.php:195
479
+ msgid "If your integration method is iFrame, please inform the payment iFrame height."
480
+ msgstr ""
481
+
482
+ #: mercadopago/mercadopago-gateway.php:205
483
+ msgid "Select the max number of installments for your customers."
484
+ msgstr ""
485
+
486
+ #: mercadopago/mercadopago-gateway.php:213
487
+ msgid "Enable Basic Checkout"
488
+ msgstr ""
489
+
490
+ #: mercadopago/mercadopago-gateway.php:224
491
+ msgid "Insert your Mercado Pago Client_id."
492
+ msgstr ""
493
+
494
+ #: mercadopago/mercadopago-gateway.php:231
495
+ msgid "Insert your Mercado Pago Client_secret."
496
+ msgstr ""
497
+
498
+ #: mercadopago/mercadopago-gateway.php:270
499
  msgid "Integration Method"
500
  msgstr ""
501
 
502
+ #: mercadopago/mercadopago-gateway.php:272
503
+ 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)."
 
 
 
 
 
 
 
 
 
 
504
  msgstr ""
505
 
506
+ #: mercadopago/mercadopago-gateway.php:275
507
  msgid "iFrame"
508
  msgstr ""
509
 
510
+ #: mercadopago/mercadopago-gateway.php:276
511
  msgid "Modal Window"
512
  msgstr ""
513
 
514
+ #: mercadopago/mercadopago-gateway.php:277
515
  msgid "Redirect"
516
  msgstr ""
517
 
518
+ #: mercadopago/mercadopago-gateway.php:281
519
  msgid "iFrame Width"
520
  msgstr ""
521
 
522
+ #: mercadopago/mercadopago-gateway.php:287
523
  msgid "iFrame Height"
524
  msgstr ""
525
 
526
+ #: mercadopago/mercadopago-gateway.php:293
527
  msgid "Auto Return"
528
  msgstr ""
529
 
530
+ #: mercadopago/mercadopago-gateway.php:295
531
+ msgid "Automatic Return After Payment"
 
 
532
  msgstr ""
533
 
534
+ #: mercadopago/mercadopago-gateway.php:297
535
+ msgid "After the payment, client is automatically redirected."
 
 
 
536
  msgstr ""
537
 
538
+ #: mercadopago/mercadopago-gateway.php:300
539
  msgid "Payment Options"
540
  msgstr ""
541
 
542
+ #: mercadopago/mercadopago-gateway.php:305
543
  msgid "Max installments"
544
  msgstr ""
545
 
546
+ #: mercadopago/mercadopago-gateway.php:311
547
+ msgid "Exclude Payment Methods"
 
548
  msgstr ""
549
 
550
+ #: mercadopago/mercadopago-gateway.php:428
551
+ msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
 
552
  msgstr ""
553
 
554
+ #: mercadopago/mercadopago-gateway.php:436
555
+ msgid "Cancel order &amp; Clear cart"
 
556
  msgstr ""
557
 
558
+ #: mercadopago/mercadopago-gateway.php:446
559
+ msgid "Thank you for your order. Proceed with your payment completing the following information."
 
 
560
  msgstr ""
561
 
562
+ #: mercadopago/mercadopago-gateway.php:697
563
+ msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
 
 
 
564
  msgstr ""
565
 
566
+ msgid " as it appears in your card ..."
 
567
  msgstr ""
568
 
569
+ msgid "Done, your payment was accredited!"
 
570
  msgstr ""
571
 
572
+ msgid "We are processing the payment. In less than an hour we will e-mail you the results."
 
 
 
 
 
 
573
  msgstr ""
574
 
575
+ 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."
 
 
 
 
 
 
576
  msgstr ""
577
 
578
+ msgid "Check the card number."
 
 
 
579
  msgstr ""
580
 
581
+ msgid "Check the expiration date."
 
 
 
 
 
582
  msgstr ""
583
 
584
+ msgid "Check the information."
 
 
 
 
 
 
585
  msgstr ""
586
 
587
+ msgid "Check the security code."
 
588
  msgstr ""
589
 
590
+ msgid "We could not process your payment."
 
 
 
591
  msgstr ""
592
 
593
+ msgid "You must authorize the payment of your orders."
 
 
 
 
 
594
  msgstr ""
595
 
596
+ msgid "Call your card issuer to activate your card. The phone is on the back of your card."
 
 
597
  msgstr ""
598
 
599
+ msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
 
600
  msgstr ""
601
 
602
+ msgid "Your payment was rejected. Choose another payment method. We recommend cash."
 
 
 
 
 
603
  msgstr ""
604
 
605
+ msgid "Your payment do not have sufficient funds."
 
 
 
606
  msgstr ""
607
 
608
+ msgid "Your payment does not process payments with selected installments."
 
 
 
609
  msgstr ""
610
 
611
+ msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
 
612
  msgstr ""
613
 
614
+ msgid "This payment method did not process the payment."
 
615
  msgstr ""
616
 
617
+ msgid "Mercado Pago - Ticket"
 
618
  msgstr ""
619
 
620
+ msgid "Mercado Pago - Credit Card"
 
 
 
621
  msgstr ""
622
 
623
+ msgid "Ticket Options"
 
 
624
  msgstr ""
625
 
626
+ msgid "Enable Ticket Payment Method"
 
 
 
 
627
  msgstr ""
628
 
629
+ msgid "Other Bank"
 
 
 
630
  msgstr ""
631
 
632
+ msgid "Choose"
 
 
 
633
  msgstr ""
634
 
635
+ msgid "A problem was occurred when processing your payment. Please, try again."
 
636
  msgstr ""
637
 
638
+ msgid "Thank you for your order. Please, pay the ticket to get your order approved."
639
+ msgstr ""
640
+
641
+ msgid "Waiting for the ticket payment."
642
+ msgstr ""
643
+
644
+ msgid "Print the Ticket"
645
+ msgstr ""
646
+
647
+ msgid "To reprint the ticket click "
648
+ msgstr ""
649
+
650
+ msgid "here"
651
+ msgstr ""
652
+
653
+ msgid "Custom Checkout is Inactive"
654
+ msgstr ""
655
+
656
+ msgid "Basic Checkout is Inactive"
657
+ msgstr ""
658
+
659
+ msgid "Ticket is Inactive"
660
+ msgstr ""
661
+
662
+ msgid "Please, select the ticket issuer of your preference."
663
+ msgstr ""
664
+
665
+ msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
666
+ msgstr ""
667
+
668
+ msgid "Important: The order will be confirmed only after the payment approval."
669
+ msgstr ""
670
+
671
+ msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
672
+ msgstr ""
673
+
674
+ msgid "Your Card"
675
+ msgstr ""
676
+
677
+ msgid "Other Cards"
678
+ msgstr ""
679
+
680
+ msgid "Other Card"
681
+ msgstr ""
682
+
683
+ msgid "ended in"
684
+ msgstr ""
685
+
686
+ msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
687
+ msgstr ""
688
+
689
+ msgid "ATTENTION: The currency"
690
+ msgstr ""
691
+
692
+ 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"
693
+ msgstr ""
694
+
695
+ msgid "Currency conversions should be made outside this module."
696
+ msgstr ""
697
+
698
+ msgid "Coupons"
699
+ msgstr ""
700
+
701
+ msgid "Enable coupons of discounts"
702
+ msgstr ""
703
+
704
+ msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
705
+ msgstr ""
706
+
707
+ msgid "You will save"
708
+ msgstr ""
709
+
710
+ msgid "Apply"
711
+ msgstr ""
712
+
713
+ msgid "Remove"
714
+ msgstr ""
715
+
716
+ msgid "Please, inform your coupon code"
717
+ msgstr ""
718
+
719
+ msgid "Please, inform your email in billing address to use this feature"
720
+ msgstr ""
721
+
722
+ msgid "Discount for %s coupon"
723
+ msgstr ""
724
+
725
+ msgid "Discount provided by store"
726
+ msgstr ""
727
+
728
+ msgid "Discount Coupon"
729
+ msgstr ""
730
+
731
+ msgid "CURRENCY CONVERTED: The currency conversion ratio from"
732
+ msgstr ""
733
+
734
+ msgid "ERROR: It was not possible to convert the unsupported currency"
735
+ msgstr ""
736
+
737
+ msgid "to"
738
+ msgstr ""
739
+
740
+ 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."
741
+ msgstr ""
742
+
743
+ msgid " is: "
744
+ msgstr ""
745
+
746
+ msgid "Currency Conversion"
747
+ msgstr ""
748
+
749
+ msgid "with discount from"
750
+ msgstr ""
751
+
752
+ msgid "Total of your purchase:"
753
+ msgstr ""
754
+
755
+ msgid "Total of your purchase with discount:"
756
+ msgstr ""
757
+
758
+ msgid "*Uppon payment approval"
759
+ msgstr ""
760
+
761
+ msgid "Terms and Conditions of Use"
762
+ msgstr ""
763
+
764
+ msgid "Payment converted from"
765
+ msgstr ""
766
+
767
+ msgid "Rate Us"
768
+ msgstr ""
769
+
770
+ msgid "Report Issue"
771
+ msgstr ""
772
+
773
+ msgid "Two Cards Mode"
774
+ msgstr ""
775
+
776
+ msgid "Payments with Two Cards"
777
+ msgstr ""
778
+
779
+ msgid "Your customer will be able to use two different cards to pay the order."
780
+ msgstr ""
781
+
782
+ msgid "Your Mercado Pago credentials Access Token appears to be misconfigured."
783
+ msgstr ""
784
+
785
+ msgid "Cancel Order"
786
+ msgstr ""
787
+
788
+ msgid "Refund Order"
789
+ msgstr ""
790
+
791
+ msgid "Back URL Options"
792
+ msgstr ""
793
+
794
+ msgid "Sucess URL"
795
+ msgstr ""
796
+
797
+ msgid "Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page."
798
+ msgstr ""
799
+
800
+ msgid "Failure URL"
801
+ msgstr ""
802
+
803
+ msgid "Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page."
804
+ msgstr ""
805
+
806
+ msgid "Pending URL"
807
+ msgstr ""
808
+
809
+ msgid "Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page."
810
+ msgstr ""
811
+
812
+ msgid "Stock Reduce"
813
+ msgstr ""
814
+
815
+ msgid "Reduce Stock in Order Generation"
816
+ msgstr ""
817
+
818
+ msgid "Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval."
819
  msgstr ""
mercadopago-module.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Plugin Name: Woo Mercado Pago Module
4
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
@@ -6,105 +7,436 @@
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
- // 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;
42
- }
43
 
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;
81
- return $woocommerce;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
-
110
- ?>
1
  <?php
2
+
3
  /**
4
  * Plugin Name: Woo Mercado Pago Module
5
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
7
  * Author: Mercado Pago
8
  * Author URI: https://www.mercadopago.com.br/developers/
9
  * Developer: Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
10
+ * Copyright: Copyright(c) MercadoPago [https://www.mercadopago.com]
11
+ * Version: 2.1.7
12
+ * License: https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
13
  * Text Domain: woocommerce-mercadopago-module
14
  * Domain Path: /languages/
15
  */
16
 
17
+ // Exit if accessed directly.
18
+ if ( ! defined( 'ABSPATH' ) ) {
 
 
 
 
 
 
19
  exit;
20
  }
21
 
22
+ require_once 'mercadopago/sdk/lib/mercadopago.php';
 
23
 
24
+ // Load module class if it wasn't loaded yet.
25
+ if ( ! class_exists( 'WC_WooMercadoPago_Module' ) ) :
 
 
26
 
27
+ /**
28
+ * Summary: WooCommerce MercadoPago Module main class.
29
+ * Description: Used as a kind of manager to enable/disable each Mercado Pago gateway.
30
+ * @since 1.0.0
31
+ */
32
+ class WC_WooMercadoPago_Module {
33
+
34
+ const VERSION = '2.1.7';
35
+
36
+ // Singleton design pattern
37
+ protected static $instance = null;
38
+ public static function init_mercado_pago_gateway_class() {
39
+ if ( null == self::$instance ) {
40
+ self::$instance = new self;
41
+ }
42
+ return self::$instance;
43
  }
 
 
44
 
45
+ // Class constructor.
46
+ private function __construct() {
47
+
48
+ add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
49
+
50
+ // Verify if WooCommerce is already installed.
51
+ if ( class_exists( 'WC_Payment_Gateway' ) ) {
52
+
53
+ include_once 'mercadopago/mercadopago-gateway.php';
54
+ include_once 'mercadopago/mercadopago-custom-gateway.php';
55
+ include_once 'mercadopago/mercadopago-ticket-gateway.php';
56
+ add_filter( 'woocommerce_payment_gateways', array( $this, 'add_gateway' ) );
57
+ add_filter(
58
+ 'woomercadopago_settings_link_' . plugin_basename( __FILE__ ),
59
+ array( $this, 'woomercadopago_settings_link' ) );
60
+
61
+ } else {
62
+ add_action( 'admin_notices', array( $this, 'notify_woocommerce_miss' ) );
63
+ }
64
+
65
  }
66
+
67
+ // As well as defining your class, you need to also tell WooCommerce (WC) that
68
+ // it exists. Do this by filtering woocommerce_payment_gateways.
69
+ public function add_gateway( $methods ) {
70
+ $methods[] = 'WC_WooMercadoPago_Gateway';
71
+ $methods[] = 'WC_WooMercadoPagoCustom_Gateway';
72
+ $methods[] = 'WC_WooMercadoPagoTicket_Gateway';
73
+ return $methods;
74
+ }
75
+
76
+ /**
77
+ * Summary: Places a warning error to notify user that WooCommerce is missing.
78
+ * Description: Places a warning error to notify user that WooCommerce is missing.
79
+ */
80
+ public function notify_woocommerce_miss() {
81
+ echo
82
+ '<div class="error"><p>' .
83
+ sprintf(
84
+ __( 'Woo Mercado Pago Module depends on the last version of %s to execute!', 'woocommerce-mercadopago-module' ),
85
+ '<a href="https://wordpress.org/extend/plugins/woocommerce/">WooCommerce</a>'
86
+ ) .
87
+ '</p></div>';
88
+ }
89
+
90
+ // Multi-language plugin.
91
+ public function load_plugin_textdomain() {
92
+ $locale = apply_filters( 'plugin_locale', get_locale(), 'woocommerce-mercadopago-module' );
93
+ $module_root = 'woocommerce-mercadopago-module/woocommerce-mercadopago-module-';
94
+ load_textdomain(
95
+ 'woocommerce-mercadopago-module',
96
+ trailingslashit( WP_LANG_DIR ) . $module_root . $locale . '.mo'
97
+ );
98
+ load_plugin_textdomain(
99
+ 'woocommerce-mercadopago-module',
100
+ false,
101
+ dirname( plugin_basename( __FILE__ ) ) . '/languages/'
102
+ );
103
+ }
104
+
105
+ /**
106
+ * Summary: Get store categories from Mercado Pago.
107
+ * Description: Trigger API to get available categories and proper description.
108
+ * @return an array with found categories and a description for its selector title.
109
+ */
110
+ public static function get_categories() {
111
+
112
+ $store_categories_id = array();
113
+ $store_categories_description = array();
114
+
115
+ // Get Mercado Pago store categories.
116
+ $categories = MPRestClient::get(
117
+ array( 'uri' => '/item_categories' ),
118
+ WC_WooMercadoPago_Module::get_module_version()
119
+ );
120
+ foreach ( $categories['response'] as $category ) {
121
+ array_push(
122
+ $store_categories_id, str_replace( '_', ' ', $category['id'] )
123
+ );
124
+ array_push(
125
+ $store_categories_description, str_replace( '_', ' ', $category['description'] )
126
+ );
127
+ }
128
+
129
+ return array(
130
+ 'store_categories_id' => $store_categories_id,
131
+ 'store_categories_description' => $store_categories_description
132
+ );
133
+
134
+ }
135
+
136
+ /**
137
+ * Summary: Get the rate of conversion between two currencies.
138
+ * Description: The currencies are the one used in WooCommerce and the one used in $site_id.
139
+ * @return a float that is the rate of conversion.
140
+ */
141
+ public static function get_conversion_rate( $used_currency ) {
142
+ $currency_obj = MPRestClient::get(
143
+ array( 'uri' => '/currency_conversions/search?' .
144
+ 'from=' . get_woocommerce_currency() .
145
+ '&to=' . $used_currency
146
+ ),
147
+ WC_WooMercadoPago_Module::get_module_version()
148
+ );
149
+ if ( isset( $currency_obj['response'] ) ) {
150
+ $currency_obj = $currency_obj['response'];
151
+ if ( isset( $currency_obj['ratio'] ) ) {
152
+ return ( (float) $currency_obj['ratio'] );
153
+ }
154
+ }
155
+ return -1;
156
+ }
157
+
158
+ // Get WooCommerce instance
159
+ public static function woocommerce_instance() {
160
+ if ( function_exists( 'WC' ) ) {
161
+ return WC();
162
+ } else {
163
+ global $woocommerce;
164
+ return $woocommerce;
165
+ }
166
+ }
167
+
168
+ /**
169
+ * Summary: Find template's folder.
170
+ * Description: Find template's folder.
171
+ * @return a string that identifies the path.
172
+ */
173
+ public static function get_templates_path() {
174
+ return plugin_dir_path( __FILE__ ) . 'templates/';
175
  }
176
+
177
+ /**
178
+ * Summary: Get module's version.
179
+ * Description: Get module's version.
180
+ * @return a string with the given version.
181
+ */
182
+ public static function get_module_version() {
183
+ return WC_WooMercadoPago_Module::VERSION;
184
+ }
185
+
186
+ /**
187
+ * Summary: Get client id from access token.
188
+ * Description: Get client id from access token.
189
+ * @return the client id.
190
+ */
191
+ public static function get_client_id( $at ){
192
+ $t = explode ( '-', $at );
193
+ if ( count( $t ) > 0 ) {
194
+ return $t[1];
195
+ }
196
+ return '';
197
+ }
198
+
199
+ /**
200
+ * Summary: Builds up the array for the mp_install table, with info related with checkout.
201
+ * Description: Builds up the array for the mp_install table, with info related with checkout.
202
+ * @return an array with the module informations.
203
+ */
204
+ public static function get_common_settings() {
205
+
206
+ $w = WC_WooMercadoPago_Module::woocommerce_instance();
207
+
208
+ $infra_data = array(
209
+ 'module_version' => WC_WooMercadoPago_Module::VERSION,
210
+ 'platform' => 'WooCommerce',
211
+ 'platform_version' => $w->version,
212
+ 'code_version' => phpversion(),
213
+ 'so_server' => PHP_OS
214
+ );
215
+
216
+ return $infra_data;
217
+
218
+ }
219
+
220
+ /**
221
+ * Summary: Get preference data for a specific country.
222
+ * Description: Get preference data for a specific country.
223
+ * @return an array with sponsor id, country name, banner image for checkout, and currency.
224
+ */
225
+ public static function get_country_config( $site_id ) {
226
+ switch ( $site_id ) {
227
+ case 'MLA':
228
+ return array(
229
+ 'sponsor_id' => 208682286,
230
+ 'country_name' => __( 'Argentine', 'woocommerce-mercadopago-module' ),
231
+ 'checkout_banner' => plugins_url(
232
+ 'woo-mercado-pago-module/images/MLA/standard_mla.jpg',
233
+ plugin_dir_path( __FILE__ )
234
+ ),
235
+ 'checkout_banner_custom' => plugins_url(
236
+ 'woo-mercado-pago-module/images/MLA/credit_card.png',
237
+ plugin_dir_path( __FILE__ )
238
+ ),
239
+ 'currency' => 'ARS'
240
+ );
241
+ case 'MLB':
242
+ return array(
243
+ 'sponsor_id' => 208686191,
244
+ 'country_name' => __( 'Brazil', 'woocommerce-mercadopago-module' ),
245
+ 'checkout_banner' => plugins_url(
246
+ 'woo-mercado-pago-module/images/MLB/standard_mlb.jpg',
247
+ plugin_dir_path( __FILE__ )
248
+ ),
249
+ 'checkout_banner_custom' => plugins_url(
250
+ 'woo-mercado-pago-module/images/MLB/credit_card.png',
251
+ plugin_dir_path( __FILE__ )
252
+ ),
253
+ 'currency' => 'BRL'
254
+ );
255
+ case 'MCO':
256
+ return array(
257
+ 'sponsor_id' => 208687643,
258
+ 'country_name' => __( 'Colombia', 'woocommerce-mercadopago-module' ),
259
+ 'checkout_banner' => plugins_url(
260
+ 'woo-mercado-pago-module/images/MCO/standard_mco.jpg',
261
+ plugin_dir_path( __FILE__ )
262
+ ),
263
+ 'checkout_banner_custom' => plugins_url(
264
+ 'woo-mercado-pago-module/images/MCO/credit_card.png',
265
+ plugin_dir_path( __FILE__ )
266
+ ),
267
+ 'currency' => 'COP'
268
+ );
269
+ case 'MLC':
270
+ return array(
271
+ 'sponsor_id' => 208690789,
272
+ 'country_name' => __( 'Chile', 'woocommerce-mercadopago-module' ),
273
+ 'checkout_banner' => plugins_url(
274
+ 'woo-mercado-pago-module/images/MLC/standard_mlc.gif',
275
+ plugin_dir_path( __FILE__ )
276
+ ),
277
+ 'checkout_banner_custom' => plugins_url(
278
+ 'woo-mercado-pago-module/images/MLC/credit_card.png',
279
+ plugin_dir_path( __FILE__ )
280
+ ),
281
+ 'currency' => 'CLP'
282
+ );
283
+ case 'MLM':
284
+ return array(
285
+ 'sponsor_id' => 208692380,
286
+ 'country_name' => __( 'Mexico', 'woocommerce-mercadopago-module' ),
287
+ 'checkout_banner' => plugins_url(
288
+ 'woo-mercado-pago-module/images/MLM/standard_mlm.jpg',
289
+ plugin_dir_path( __FILE__ )
290
+ ),
291
+ 'checkout_banner_custom' => plugins_url(
292
+ 'woo-mercado-pago-module/images/MLM/credit_card.png',
293
+ plugin_dir_path( __FILE__ )
294
+ ),
295
+ 'currency' => 'MXN'
296
+ );
297
+ case 'MLV':
298
+ return array(
299
+ 'sponsor_id' => 208692735,
300
+ 'country_name' => __( 'Venezuela', 'woocommerce-mercadopago-module' ),
301
+ 'checkout_banner' => plugins_url(
302
+ 'woo-mercado-pago-module/images/MLV/standard_mlv.jpg',
303
+ plugin_dir_path( __FILE__ )
304
+ ),
305
+ 'checkout_banner_custom' => plugins_url(
306
+ 'woo-mercado-pago-module/images/MLV/credit_card.png',
307
+ plugin_dir_path( __FILE__ )
308
+ ),
309
+ 'currency' => 'VEF'
310
+ );
311
+ case 'MPE':
312
+ return array(
313
+ 'sponsor_id' => 216998692,
314
+ 'country_name' => __( 'Peru', 'woocommerce-mercadopago-module' ),
315
+ 'checkout_banner' => plugins_url(
316
+ 'woo-mercado-pago-module/images/MPE/standard_mpe.png',
317
+ plugin_dir_path( __FILE__ )
318
+ ),
319
+ 'checkout_banner_custom' => plugins_url(
320
+ 'woo-mercado-pago-module/images/MPE/credit_card.png',
321
+ plugin_dir_path( __FILE__ )
322
+ ),
323
+ 'currency' => 'PEN'
324
+ );
325
+ default: // set Argentina as default country
326
+ return array(
327
+ 'sponsor_id' => 208682286,
328
+ 'country_name' => __( 'Argentine', 'woocommerce-mercadopago-module' ),
329
+ 'checkout_banner' => plugins_url(
330
+ 'woo-mercado-pago-module/images/MLA/standard_mla.jpg',
331
+ plugin_dir_path( __FILE__ )
332
+ ),
333
+ 'checkout_banner_custom' => plugins_url(
334
+ 'woo-mercado-pago-module/images/MLA/credit_card.png',
335
+ plugin_dir_path( __FILE__ )
336
+ ),
337
+ 'currency' => 'ARS'
338
+ );
339
+ }
340
+ }
341
+
342
+ public static function build_currency_conversion_err_msg( $currency ) {
343
+ return '<img width="12" height="12" src="' .
344
+ plugins_url( 'woo-mercado-pago-module/images/error.png', plugin_dir_path( __FILE__ ) ) .
345
+ '"> ' .
346
+ __( 'ERROR: It was not possible to convert the unsupported currency', 'woocommerce-mercadopago-module' ) .
347
+ ' ' . get_woocommerce_currency() . ' ' .
348
+ __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $currency . '. ' .
349
+ __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
350
+ }
351
+
352
+ public static function build_currency_not_converted_msg( $currency, $country_name ) {
353
+ return '<img width="12" height="12" src="' .
354
+ plugins_url( 'woo-mercado-pago-module/images/warning.png', plugin_dir_path( __FILE__ ) ) .
355
+ '"> ' .
356
+ __( 'ATTENTION: The currency', 'woocommerce-mercadopago-module' ) .
357
+ ' ' . get_woocommerce_currency() . ' ' .
358
+ __( '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' ) .
359
+ ' ' . $currency . ' ( ' . $country_name . ' ). ' .
360
+ __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
361
+ }
362
+
363
+ public static function build_currency_converted_msg( $currency, $currency_ratio ) {
364
+ return '<img width="12" height="12" src="' .
365
+ plugins_url( 'woo-mercado-pago-module/images/check.png', plugin_dir_path( __FILE__ ) ) .
366
+ '"> ' .
367
+ __( 'CURRENCY CONVERTED: The currency conversion ratio from', 'woocommerce-mercadopago-module' ) .
368
+ ' ' . get_woocommerce_currency() . ' ' .
369
+ __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $currency .
370
+ __( ' is: ', 'woocommerce-mercadopago-module' ) . $currency_ratio . ".";
371
+ }
372
+
373
+ public static function build_valid_credentials_msg( $country_name, $site_id ) {
374
+ return '<img width="12" height="12" src="' .
375
+ plugins_url( 'woo-mercado-pago-module/images/check.png', plugin_dir_path( __FILE__ ) ) .
376
+ '"> ' .
377
+ __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
378
+ ': ' . $country_name . ' <img width="18.6" height="12" src="' . plugins_url(
379
+ 'woo-mercado-pago-module/images/' . $site_id . '/' . $site_id . '.png',
380
+ plugin_dir_path( __FILE__ )
381
+ ) . '"> ';
382
+ }
383
+
384
+ public static function build_invalid_credentials_msg() {
385
+ return '<img width="12" height="12" src="' .
386
+ plugins_url( 'woo-mercado-pago-module/images/error.png', plugin_dir_path( __FILE__ ) ) .
387
+ '"> ' .
388
+ __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
389
+ }
390
+
391
+ // Fix to URL Problem : #038; replaces & and breaks the navigation.
392
+ public static function workaround_ampersand_bug( $link ) {
393
+ return str_replace( '\/', '/', str_replace( '&#038;', '&', $link) );
394
+ }
395
+
396
  }
397
+
398
+ // ==========================================================================================
399
+
400
+ // add our own item to the order actions meta box
401
+ add_action( 'woocommerce_order_actions', 'add_mp_order_meta_box_actions' );
402
+ // define the item in the meta box by adding an item to the $actions array
403
+ function add_mp_order_meta_box_actions( $actions ) {
404
+ $actions['cancel_order'] = __( 'Cancel Order', 'woocommerce-mercadopago-module' );
405
+ $actions['refund_order'] = __( 'Refund Order', 'woocommerce-mercadopago-module' );
406
+ return $actions;
407
  }
408
+
409
+ // Payment gateways should be created as additional plugins that hook into WooCommerce.
410
+ // Inside the plugin, you need to create a class after plugins are loaded.
411
+ add_action(
412
+ 'plugins_loaded',
413
+ array( 'WC_WooMercadoPago_Module', 'init_mercado_pago_gateway_class' ), 0
414
+ );
415
+
416
+ // Add settings link on plugin page
417
+ function woomercadopago_settings_link( $links ) {
418
+ $plugin_links = array();
419
+ $plugin_links[] = '<a href="' . esc_url( admin_url(
420
+ 'admin.php?page=wc-settings&tab=checkout&section=WC_WooMercadoPago_Gateway' ) ) .
421
+ '">' . __( 'Basic Checkout', 'woocommerce-mercadopago-module' ) . '</a>';
422
+ $plugin_links[] = '<a href="' . esc_url( admin_url(
423
+ 'admin.php?page=wc-settings&tab=checkout&section=WC_WooMercadoPagoCustom_Gateway' ) ) .
424
+ '">' . __( 'Custom Checkout', 'woocommerce-mercadopago-module' ) . '</a>';
425
+ $plugin_links[] = '<a href="' . esc_url( admin_url(
426
+ 'admin.php?page=wc-settings&tab=checkout&section=WC_WooMercadoPagoTicket_Gateway' ) ) .
427
+ '">' . __( 'Ticket', 'woocommerce-mercadopago-module' ) . '</a>';
428
+ $plugin_links[] = '<br><a target="_blank" href="' .
429
+ 'https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform' .
430
+ '">' . sprintf(
431
+ __( 'Rate Us', 'woocommerce-mercadopago-module' ) . ' %s',
432
+ '&#9733;&#9733;&#9733;&#9733;&#9733;'
433
+ ) . '</a>';
434
+ $plugin_links[] = '<a target="_blank" href="' .
435
+ 'https://wordpress.org/support/plugin/woo-mercado-pago-module#postform' .
436
+ '">' . __( 'Report Issue', 'woocommerce-mercadopago-module' ) . '</a>';
437
+ return array_merge($plugin_links, $links);
438
  }
439
+ $plugin = plugin_basename( __FILE__ );
440
+ add_filter("plugin_action_links_$plugin", 'woomercadopago_settings_link' );
441
 
442
  endif;
 
 
mercadopago/css/woo-mercadopago-module.css DELETED
@@ -1,14 +0,0 @@
1
- .mp-btn, .ch-btn {
2
- background-color: #009ee3;
3
- border: 1px solid #009ee3;
4
- border-radius: 4px;
5
- color: #fff;
6
- display: inline-block;
7
- font-family: Arial,sans-serif;
8
- font-size: 18px;
9
- font-weight: normal;
10
- margin: 0;
11
- padding: 10px;
12
- text-align: center;
13
- width: 100%;
14
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mercadopago/mercadopago-custom-gateway.php ADDED
@@ -0,0 +1,1555 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Part of Woo Mercado Pago Module
5
+ * Author - Mercado Pago
6
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
7
+ * Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
8
+ * License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
9
+ */
10
+
11
+ // This include Mercado Pago library SDK
12
+ require_once 'sdk/lib/mercadopago.php';
13
+
14
+ /**
15
+ * Summary: Extending from WooCommerce Payment Gateway class.
16
+ * Description: This class implements Mercado Pago custom checkout.
17
+ * @since 2.0.0
18
+ */
19
+ class WC_WooMercadoPagoCustom_Gateway extends WC_Payment_Gateway {
20
+
21
+ public function __construct( $is_instance = false ) {
22
+
23
+ // Mercado Pago fields.
24
+ $this->mp = null;
25
+ $this->site_id = null;
26
+ $this->collector_id = null;
27
+ $this->currency_ratio = -1;
28
+ $this->is_test_user = false;
29
+
30
+ // Auxiliary fields.
31
+ $this->currency_message = '';
32
+ $this->country_configs = array();
33
+ $this->store_categories_id = array();
34
+ $this->store_categories_description = array();
35
+
36
+ // WooCommerce fields.
37
+ $this->id = 'woocommerce-mercadopago-custom-module';
38
+ $this->domain = get_site_url() . '/index.php';
39
+ $this->method_title = __( 'Mercado Pago - Credit Card', 'woocommerce-mercadopago-module' );
40
+ $this->method_description = '<img width="200" height="52" src="' .
41
+ plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
42
+ wordwrap(
43
+ __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ),
44
+ 80, '\n'
45
+ ) . '</strong>';
46
+
47
+ // Fields used in Mercado Pago Module configuration page.
48
+ $this->public_key = $this->get_option( 'public_key' );
49
+ $this->access_token = $this->get_option( 'access_token' );
50
+ $this->title = $this->get_option( 'title' );
51
+ $this->description = $this->get_option( 'description' );
52
+ $this->statement_descriptor = $this->get_option( 'statement_descriptor' );
53
+ $this->coupon_mode = $this->get_option( 'coupon_mode' );
54
+ $this->binary_mode = $this->get_option( 'binary_mode' );
55
+ $this->category_id = $this->get_option( 'category_id' );
56
+ $this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
57
+ $this->currency_conversion = $this->get_option( 'currency_conversion', false );
58
+ $this->sandbox = $this->get_option( 'sandbox', false );
59
+ $this->debug = $this->get_option( 'debug', false );
60
+
61
+ // Logging and debug.
62
+ if ( 'yes' == $this->debug) {
63
+ if (class_exists( 'WC_Logger' ) ) {
64
+ $this->log = new WC_Logger();
65
+ } else {
66
+ $this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
67
+ }
68
+ }
69
+
70
+ // Render our configuration page and init/load fields.
71
+ $this->init_form_fields();
72
+ $this->init_settings();
73
+
74
+ // Used by IPN to receive IPN incomings.
75
+ add_action(
76
+ 'woocommerce_api_wc_woomercadopagocustom_gateway',
77
+ array( $this, 'process_http_request' )
78
+ );
79
+ // Used by IPN to process valid incomings.
80
+ add_action(
81
+ 'valid_mercadopagocustom_ipn_request',
82
+ array( $this, 'successful_request' )
83
+ );
84
+ // process the cancel order meta box order action
85
+ add_action(
86
+ 'woocommerce_order_action_cancel_order',
87
+ array( $this, 'process_cancel_order_meta_box_actions' )
88
+ );
89
+ // process the refund order meta box order action
90
+ add_action(
91
+ 'woocommerce_order_action_refund_order',
92
+ array( $this, 'process_refund_order_meta_box_actions' )
93
+ );
94
+ // Used in settings page to hook "save settings" action.
95
+ add_action(
96
+ 'woocommerce_update_options_payment_gateways_' . $this->id,
97
+ array( $this, 'process_admin_options' )
98
+ );
99
+ // Scripts for custom checkout.
100
+ add_action(
101
+ 'wp_enqueue_scripts',
102
+ array( $this, 'custom_checkout_scripts' )
103
+ );
104
+ // Apply the discounts.
105
+ add_action(
106
+ 'woocommerce_cart_calculate_fees',
107
+ array( $this, 'add_discount_custom' ), 10
108
+ );
109
+ // Used in settings page to hook "save settings" action.
110
+ add_action(
111
+ 'woocommerce_update_options_payment_gateways_' . $this->id,
112
+ array( $this, 'custom_process_admin_options' )
113
+ );
114
+
115
+ if ( ! empty( $this->settings['enabled'] ) && $this->settings['enabled'] == 'yes' ) {
116
+ if ( $is_instance ) {
117
+ if ( empty( $this->public_key) || empty( $this->access_token ) ) {
118
+ // Verify if public_key or access_token is empty.
119
+ add_action( 'admin_notices', array( $this, 'credentials_missing_message' ) );
120
+ } else {
121
+ if ( empty( $this->sandbox) && $this->sandbox == 'no' ) {
122
+ // Verify if SSL is supported.
123
+ add_action( 'admin_notices', array( $this, 'check_ssl_absence' ) );
124
+ }
125
+ }
126
+ } else {
127
+ // Scripts for order configuration.
128
+ add_action(
129
+ 'woocommerce_after_checkout_form',
130
+ array( $this, 'add_checkout_script' )
131
+ );
132
+ // Checkout updates.
133
+ add_action(
134
+ 'woocommerce_thankyou',
135
+ array( $this, 'update_checkout_status' )
136
+ );
137
+ }
138
+ }
139
+
140
+ }
141
+
142
+ /**
143
+ * Summary: Initialise Gateway Settings Form Fields.
144
+ * Description: Initialise Gateway settings form fields with a customized page.
145
+ */
146
+ public function init_form_fields() {
147
+
148
+ // If module is disabled, we do not need to load and process the settings page.
149
+ if ( empty( $this->settings['enabled'] ) || 'no' == $this->settings['enabled'] ) {
150
+ $this->form_fields = array(
151
+ 'enabled' => array(
152
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
153
+ 'type' => 'checkbox',
154
+ 'label' => __( 'Enable Custom Checkout', 'woocommerce-mercadopago-module' ),
155
+ 'default' => 'no'
156
+ )
157
+ );
158
+ return;
159
+ }
160
+
161
+ $api_secret_locale = sprintf(
162
+ '<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
163
+ '<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
164
+ '<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
165
+ '<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
166
+ '<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a>, ' .
167
+ '<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a> %s ' .
168
+ '<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
169
+ __( 'Argentine', 'woocommerce-mercadopago-module' ),
170
+ __( 'Brazil', 'woocommerce-mercadopago-module' ),
171
+ __( 'Chile', 'woocommerce-mercadopago-module' ),
172
+ __( 'Colombia', 'woocommerce-mercadopago-module' ),
173
+ __( 'Mexico', 'woocommerce-mercadopago-module' ),
174
+ __( 'Peru', 'woocommerce-mercadopago-module' ),
175
+ __( 'or', 'woocommerce-mercadopago-module' ),
176
+ __( 'Venezuela', 'woocommerce-mercadopago-module' )
177
+ );
178
+
179
+ // Trigger API to get payment methods and site_id, also validates public_key/access_token.
180
+ if ( $this->validate_credentials() ) {
181
+ // checking the currency.
182
+ $this->currency_message = '';
183
+ if ( ! $this->is_supported_currency() && 'yes' == $this->settings['enabled'] ) {
184
+ if ( $this->currency_conversion == 'no' ) {
185
+ $this->currency_ratio = -1;
186
+ $this->currency_message .= WC_WooMercadoPago_Module::build_currency_not_converted_msg(
187
+ $this->country_configs['currency'],
188
+ $this->country_configs['country_name']
189
+ );
190
+ } elseif ( $this->currency_conversion == 'yes' && $this->currency_ratio != -1 ) {
191
+ $this->currency_message .= WC_WooMercadoPago_Module::build_currency_converted_msg(
192
+ $this->country_configs['currency'],
193
+ $this->currency_ratio
194
+ );
195
+ } else {
196
+ $this->currency_ratio = -1;
197
+ $this->currency_message .=
198
+ WC_WooMercadoPago_Module::build_currency_conversion_err_msg(
199
+ $this->country_configs['currency']
200
+ );
201
+ }
202
+ } else {
203
+ $this->currency_ratio = -1;
204
+ }
205
+ $this->credentials_message = WC_WooMercadoPago_Module::build_valid_credentials_msg(
206
+ $this->country_configs['country_name'],
207
+ $this->site_id
208
+ );
209
+ } else {
210
+ $this->credentials_message = WC_WooMercadoPago_Module::build_invalid_credentials_msg();
211
+ }
212
+
213
+ // fill categories (can be handled without credentials).
214
+ $categories = WC_WooMercadoPago_Module::get_categories();
215
+ $this->store_categories_id = $categories['store_categories_id'];
216
+ $this->store_categories_description = $categories['store_categories_description'];
217
+
218
+ // This array draws each UI (text, selector, checkbox, label, etc).
219
+ $this->form_fields = array(
220
+ 'enabled' => array(
221
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
222
+ 'type' => 'checkbox',
223
+ 'label' => __( 'Enable Custom Checkout', 'woocommerce-mercadopago-module' ),
224
+ 'default' => 'no'
225
+ ),
226
+ 'credentials_title' => array(
227
+ 'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
228
+ 'type' => 'title',
229
+ 'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf(
230
+ __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) .
231
+ ' %s.', $api_secret_locale
232
+ )
233
+ ),
234
+ 'public_key' => array(
235
+ 'title' => 'Public key',
236
+ 'type' => 'text',
237
+ 'description' =>
238
+ __( 'Insert your Mercado Pago Public key.', 'woocommerce-mercadopago-module' ),
239
+ 'default' => '',
240
+ 'required' => true
241
+ ),
242
+ 'access_token' => array(
243
+ 'title' => 'Access token',
244
+ 'type' => 'text',
245
+ 'description' =>
246
+ __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
247
+ 'default' => '',
248
+ 'required' => true
249
+ ),
250
+ 'ipn_url' => array(
251
+ 'title' =>
252
+ __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
253
+ 'type' => 'title',
254
+ 'description' => sprintf(
255
+ __( 'Your IPN URL to receive instant payment notifications is', 'woocommerce-mercadopago-module' ) .
256
+ '<br>%s', '<code>' . WC()->api_request_url( 'WC_WooMercadoPagoCustom_Gateway' ) . '</code>.'
257
+ )
258
+ ),
259
+ 'checkout_options_title' => array(
260
+ 'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
261
+ 'type' => 'title',
262
+ 'description' => ''
263
+ ),
264
+ 'title' => array(
265
+ 'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
266
+ 'type' => 'text',
267
+ 'description' =>
268
+ __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
269
+ 'default' => __( 'Mercado Pago - Credit Card', 'woocommerce-mercadopago-module' )
270
+ ),
271
+ 'description' => array(
272
+ 'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
273
+ 'type' => 'textarea',
274
+ 'description' =>
275
+ __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
276
+ 'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
277
+ ),
278
+ 'statement_descriptor' => array(
279
+ 'title' => __( 'Statement Descriptor', 'woocommerce-mercadopago-module' ),
280
+ 'type' => 'text',
281
+ 'description' => __( 'The description that will be shown in your customer\'s invoice.', 'woocommerce-mercadopago-module' ),
282
+ 'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
283
+ ),
284
+ 'coupon_mode' => array(
285
+ 'title' => __( 'Coupons', 'woocommerce-mercadopago-module' ),
286
+ 'type' => 'checkbox',
287
+ 'label' => __( 'Enable coupons of discounts', 'woocommerce-mercadopago-module' ),
288
+ 'default' => 'no',
289
+ 'description' =>
290
+ __( 'If there is a Mercado Pago campaign, allow your store to give discounts to customers.', 'woocommerce-mercadopago-module' )
291
+ ),
292
+ 'binary_mode' => array(
293
+ 'title' => __( 'Binary Mode', 'woocommerce-mercadopago-module' ),
294
+ 'type' => 'checkbox',
295
+ 'label' => __( 'Enable binary mode for checkout status', 'woocommerce-mercadopago-module' ),
296
+ 'default' => 'no',
297
+ 'description' =>
298
+ __( 'When charging a credit card, only [approved] or [reject] status will be taken.', 'woocommerce-mercadopago-module' )
299
+ ),
300
+ 'category_id' => array(
301
+ 'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
302
+ 'type' => 'select',
303
+ 'description' =>
304
+ __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
305
+ 'options' => $this->store_categories_id
306
+ ),
307
+ 'invoice_prefix' => array(
308
+ 'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
309
+ 'type' => 'text',
310
+ 'description' =>
311
+ __( 'Please, inform a prefix to your store.', 'woocommerce-mercadopago-module' )
312
+ . ' ' .
313
+ __( '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' ),
314
+ 'default' => 'WC-'
315
+ ),
316
+ 'currency_conversion' => array(
317
+ 'title' => __( 'Currency Conversion', 'woocommerce-mercadopago-module' ),
318
+ 'type' => 'checkbox',
319
+ 'label' =>
320
+ __( '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' ),
321
+ 'default' => 'no',
322
+ 'description' => sprintf( '%s', $this->currency_message )
323
+ ),
324
+ 'testing' => array(
325
+ 'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
326
+ 'type' => 'title',
327
+ 'description' => ''
328
+ ),
329
+ 'sandbox' => array(
330
+ 'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
331
+ 'type' => 'checkbox',
332
+ 'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
333
+ 'default' => 'no',
334
+ 'description' =>
335
+ __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
336
+ ),
337
+ 'debug' => array(
338
+ 'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
339
+ 'type' => 'checkbox',
340
+ 'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
341
+ 'default' => 'no',
342
+ 'description' => sprintf(
343
+ __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
344
+ ' %s.', $this->build_log_path_string() . '.<br>' .
345
+ __( 'File location: ', 'woocommerce-mercadopago-module' ) .
346
+ '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' .
347
+ sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>' )
348
+ )
349
+ );
350
+
351
+ }
352
+
353
+ /**
354
+ * Processes and saves options.
355
+ * If there is an error thrown, will continue to save and validate fields, but will leave the
356
+ * erroring field out.
357
+ * @return bool was anything saved?
358
+ */
359
+ public function custom_process_admin_options() {
360
+ $this->init_settings();
361
+
362
+ $post_data = $this->get_post_data();
363
+
364
+ foreach ( $this->get_form_fields() as $key => $field ) {
365
+ if ( 'title' !== $this->get_field_type( $field ) ) {
366
+ try {
367
+ $this->settings[$key] = $this->get_field_value( $key, $field, $post_data );
368
+ } catch ( Exception $e ) {
369
+ $this->add_error( $e->getMessage() );
370
+ }
371
+ }
372
+ }
373
+
374
+ if ( ! empty( $this->settings['public_key'] ) && ! empty( $this->settings['access_token'] ) ) {
375
+ $this->mp = new MP(
376
+ WC_WooMercadoPago_Module::get_module_version(),
377
+ $this->settings['access_token']
378
+ );
379
+ } else {
380
+ $this->mp = null;
381
+ }
382
+
383
+ // analytics
384
+ $infra_data = WC_WooMercadoPago_Module::get_common_settings();
385
+ $infra_data['checkout_custom_credit_card'] = ( $this->settings['enabled'] == 'yes' ? 'true' : 'false' );
386
+ $infra_data['checkout_custom_credit_card_coupon'] = ( $this->settings['coupon_mode'] == 'yes' ? 'true' : 'false' );
387
+ if ( $this->mp != null ) {
388
+ $response = $this->mp->analytics_save_settings( $infra_data );
389
+ if ( 'yes' == $this->debug) {
390
+ $this->log->add(
391
+ $this->id,
392
+ '[custom_process_admin_options] - analytics info response: ' .
393
+ json_encode( $response, JSON_PRETTY_PRINT )
394
+ );
395
+ }
396
+ }
397
+
398
+ return update_option(
399
+ $this->get_option_key(),
400
+ apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings )
401
+ );
402
+ }
403
+
404
+ /**
405
+ * Handles the manual order refunding in server-side.
406
+ */
407
+ public function process_refund_order_meta_box_actions( $order ) {
408
+
409
+ if ( get_post_meta( $order->id, '_used_gateway', true ) != 'WC_WooMercadoPagoCustom_Gateway' )
410
+ return;
411
+
412
+ $payments = get_post_meta(
413
+ $order->id,
414
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
415
+ true
416
+ );
417
+
418
+ if ( 'yes' == $this->debug ) {
419
+ $this->log->add(
420
+ $this->id,
421
+ '[process_refund_order_meta_box_actions] - refunding payments for ' . $payments
422
+ );
423
+ }
424
+
425
+ if ( $this->mp != null && ! empty( $payments ) ) {
426
+ $payment_ids = explode( ', ', $payments );
427
+ foreach ( $payment_ids as $p_id ) {
428
+ $response = $this->mp->refund_payment( $p_id );
429
+ $message = $response['response']['message'];
430
+ $status = $response['status'];
431
+ if ( 'yes' == $this->debug ) {
432
+ $this->log->add(
433
+ $this->id,
434
+ '[process_refund_order_meta_box_actions] - refund payment of id ' . $p_id .
435
+ ' => ' . ( $status >= 200 && $status < 300 ? 'SUCCESS' : 'FAIL - ' . $message )
436
+ );
437
+ }
438
+ }
439
+ } else {
440
+ if ( 'yes' == $this->debug ) {
441
+ $this->log->add(
442
+ $this->id,
443
+ '[process_refund_order_meta_box_actions] - no payments or credentials invalid'
444
+ );
445
+ }
446
+ }
447
+
448
+ }
449
+
450
+ /**
451
+ * Handles the manual order cancellation in server-side.
452
+ */
453
+ public function process_cancel_order_meta_box_actions( $order ) {
454
+
455
+ if ( get_post_meta( $order->id, '_used_gateway', true ) != 'WC_WooMercadoPagoCustom_Gateway' )
456
+ return;
457
+
458
+ $payments = get_post_meta(
459
+ $order->id,
460
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
461
+ true
462
+ );
463
+
464
+ if ( 'yes' == $this->debug ) {
465
+ $this->log->add(
466
+ $this->id,
467
+ '[process_cancel_order_meta_box_actions] - cancelling payments for ' . $payments
468
+ );
469
+ }
470
+
471
+ if ( $this->mp != null && ! empty( $payments ) ) {
472
+ $payment_ids = explode( ', ', $payments );
473
+ foreach ( $payment_ids as $p_id ) {
474
+ $response = $this->mp->cancel_payment( $p_id );
475
+ $message = $response['response']['message'];
476
+ $status = $response['status'];
477
+ if ( 'yes' == $this->debug ) {
478
+ $this->log->add(
479
+ $this->id,
480
+ '[process_cancel_order_meta_box_actions] - cancel payment of id ' . $p_id .
481
+ ' => ' . ( $status >= 200 && $status < 300 ? 'SUCCESS' : 'FAIL - ' . $message )
482
+ );
483
+ }
484
+ }
485
+ } else {
486
+ if ( 'yes' == $this->debug ) {
487
+ $this->log->add(
488
+ $this->id,
489
+ '[process_cancel_order_meta_box_actions] - no payments or credentials invalid'
490
+ );
491
+ }
492
+ }
493
+
494
+ }
495
+
496
+ /*
497
+ * ========================================================================
498
+ * CHECKOUT BUSINESS RULES (CLIENT SIDE)
499
+ * ========================================================================
500
+ */
501
+
502
+ public function add_checkout_script() {
503
+
504
+ $w = WC_WooMercadoPago_Module::woocommerce_instance();
505
+ $logged_user_email = null;
506
+ $payments = array();
507
+ $gateways = WC()->payment_gateways->get_available_payment_gateways();
508
+ foreach ( $gateways as $g ) {
509
+ $payments[] = $g->id;
510
+ }
511
+ $payments = str_replace( '-', '_', implode( ', ', $payments ) );
512
+
513
+ if ( wp_get_current_user()->ID != 0 ) {
514
+ $logged_user_email = wp_get_current_user()->user_email;
515
+ }
516
+
517
+ ?>
518
+ <script src="https://secure.mlstatic.com/modules/javascript/analytics.js"></script>
519
+ <script type="text/javascript">
520
+ var MA = ModuleAnalytics;
521
+ MA.setPublicKey( '<?php echo $this->get_option( 'public_key' ); ?>' );
522
+ MA.setPlatform( 'WooCommerce' );
523
+ MA.setPlatformVersion( '<?php echo $w->version; ?>' );
524
+ MA.setModuleVersion( '<?php echo WC_WooMercadoPago_Module::VERSION; ?>' );
525
+ MA.setPayerEmail( '<?php echo ( $logged_user_email != null ? $logged_user_email : "" ); ?>' );
526
+ MA.setUserLogged( <?php echo ( empty( $logged_user_email ) ? 0 : 1 ); ?> );
527
+ MA.setInstalledModules( '<?php echo $payments; ?>' );
528
+ MA.post();
529
+ </script>
530
+ <?php
531
+
532
+ }
533
+
534
+ public function update_checkout_status( $order_id ) {
535
+
536
+ if ( get_post_meta( $order_id, '_used_gateway', true ) != 'WC_WooMercadoPagoCustom_Gateway' )
537
+ return;
538
+
539
+ if ( 'yes' == $this->debug ) {
540
+ $this->log->add(
541
+ $this->id,
542
+ '[update_checkout_status] - updating checkout statuses ' . $order_id
543
+ );
544
+ }
545
+
546
+ echo '<script src="https://secure.mlstatic.com/modules/javascript/analytics.js"></script>
547
+ <script type="text/javascript">
548
+ var MA = ModuleAnalytics;
549
+ MA.setPublicKey( "' . $this->get_option( 'public_key' ) . '" );
550
+ MA.setPaymentType("credit_card");
551
+ MA.setCheckoutType("custom");
552
+ MA.put();
553
+ </script>';
554
+
555
+ }
556
+
557
+ public function custom_checkout_scripts() {
558
+ if ( is_checkout() && $this->is_available() ) {
559
+ if ( ! get_query_var( 'order-received' ) ) {
560
+ wp_enqueue_style(
561
+ 'woocommerce-mercadopago-style', plugins_url(
562
+ 'assets/css/custom_checkout_mercadopago.css',
563
+ plugin_dir_path( __FILE__ ) ) );
564
+ wp_enqueue_script(
565
+ 'woocommerce-mercadopago-v1',
566
+ 'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js' );
567
+ }
568
+ }
569
+ }
570
+
571
+ public function payment_fields() {
572
+ $amount = $this->get_order_total();
573
+
574
+ $parameters = array(
575
+ 'public_key' => $this->public_key,
576
+ 'site_id' => $this->site_id,
577
+ 'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
578
+ 'banner_path' => $this->country_configs['checkout_banner_custom'],
579
+ 'amount' => $amount *
580
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ),
581
+ 'coupon_mode' => $this->coupon_mode,
582
+ 'is_currency_conversion' => $this->currency_ratio,
583
+ 'woocommerce_currency' => get_woocommerce_currency(),
584
+ 'account_currency' => $this->country_configs['currency'],
585
+ 'discount_action_url' => $this->domain .
586
+ '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway',
587
+ 'form_labels' => array(
588
+ 'form' => array(
589
+ 'payment_converted' =>
590
+ __( 'Payment converted from', 'woocommerce-mercadopago-module' ),
591
+ 'to' => __( 'to', 'woocommerce-mercadopago-module' ),
592
+ 'coupon_empty' =>
593
+ __( 'Please, inform your coupon code', 'woocommerce-mercadopago-module' ),
594
+ 'apply' => __( 'Apply', 'woocommerce-mercadopago-module' ),
595
+ 'remove' => __( 'Remove', 'woocommerce-mercadopago-module' ),
596
+ 'discount_info1' => __( 'You will save', 'woocommerce-mercadopago-module' ),
597
+ 'discount_info2' => __( 'with discount from', 'woocommerce-mercadopago-module' ),
598
+ 'discount_info3' => __( 'Total of your purchase:', 'woocommerce-mercadopago-module' ),
599
+ 'discount_info4' =>
600
+ __( 'Total of your purchase with discount:', 'woocommerce-mercadopago-module' ),
601
+ 'discount_info5' => __( '*Uppon payment approval', 'woocommerce-mercadopago-module' ),
602
+ 'discount_info6' =>
603
+ __( 'Terms and Conditions of Use', 'woocommerce-mercadopago-module' ),
604
+ 'coupon_of_discounts' => __( 'Discount Coupon', 'woocommerce-mercadopago-module' ),
605
+ 'label_other_bank' => __( 'Other Bank', 'woocommerce-mercadopago-module' ),
606
+ 'label_choose' => __( 'Choose', 'woocommerce-mercadopago-module' ),
607
+ 'your_card' => __( 'Your Card', 'woocommerce-mercadopago-module' ),
608
+ 'other_cards' => __( 'Other Cards', 'woocommerce-mercadopago-module' ),
609
+ 'other_card' => __( 'Other Card', 'woocommerce-mercadopago-module' ),
610
+ 'ended_in' => __( 'ended in', 'woocommerce-mercadopago-module' ),
611
+ 'card_holder_placeholder' =>
612
+ __( ' as it appears in your card ...', 'woocommerce-mercadopago-module' ),
613
+ 'payment_method' => __( 'Payment Method', 'woocommerce-mercadopago-module' ),
614
+ 'credit_card_number' => __( 'Credit card number', 'woocommerce-mercadopago-module' ),
615
+ 'expiration_month' => __( 'Expiration month', 'woocommerce-mercadopago-module' ),
616
+ 'expiration_year' => __( 'Expiration year', 'woocommerce-mercadopago-module' ),
617
+ 'year' => __( 'Year', 'woocommerce-mercadopago-module' ),
618
+ 'month' => __( 'Month', 'woocommerce-mercadopago-module' ),
619
+ 'card_holder_name' => __( 'Card holder name', 'woocommerce-mercadopago-module' ),
620
+ 'security_code' => __( 'Security code', 'woocommerce-mercadopago-module' ),
621
+ 'document_type' => __( 'Document Type', 'woocommerce-mercadopago-module' ),
622
+ 'document_number' => __( 'Document number', 'woocommerce-mercadopago-module' ),
623
+ 'issuer' => __( 'Issuer', 'woocommerce-mercadopago-module' ),
624
+ 'installments' => __( 'Installments', 'woocommerce-mercadopago-module' )
625
+ ),
626
+ 'error' => array(
627
+ // Card number.
628
+ '205' =>
629
+ __( 'Parameter cardNumber can not be null/empty', 'woocommerce-mercadopago-module' ),
630
+ 'E301' => __( 'Invalid Card Number', 'woocommerce-mercadopago-module' ),
631
+ // Expiration date.
632
+ '208' => __( 'Invalid Expiration Date', 'woocommerce-mercadopago-module' ),
633
+ '209' => __( 'Invalid Expiration Date', 'woocommerce-mercadopago-module' ),
634
+ '325' => __( 'Invalid Expiration Date', 'woocommerce-mercadopago-module' ),
635
+ '326' => __( 'Invalid Expiration Date', 'woocommerce-mercadopago-module' ),
636
+ // Card holder name.
637
+ '221' =>
638
+ __( 'Parameter cardholderName can not be null/empty', 'woocommerce-mercadopago-module' ),
639
+ '316' => __( 'Invalid Card Holder Name', 'woocommerce-mercadopago-module' ),
640
+ // Security code.
641
+ '224' =>
642
+ __( 'Parameter securityCode can not be null/empty', 'woocommerce-mercadopago-module' ),
643
+ 'E302' => __( 'Invalid Security Code', 'woocommerce-mercadopago-module' ),
644
+ // Doc type.
645
+ '212' =>
646
+ __( 'Parameter docType can not be null/empty', 'woocommerce-mercadopago-module' ),
647
+ '322' => __( 'Invalid Document Type', 'woocommerce-mercadopago-module' ),
648
+ // Doc number.
649
+ '214' =>
650
+ __( 'Parameter docNumber can not be null/empty', 'woocommerce-mercadopago-module' ),
651
+ '324' => __( 'Invalid Document Number', 'woocommerce-mercadopago-module' ),
652
+ // Doc sub type.
653
+ '213' => __( 'The parameter cardholder.document.subtype can not be null or empty', 'woocommerce-mercadopago-module' ),
654
+ '323' => __( 'Invalid Document Sub Type', 'woocommerce-mercadopago-module' ),
655
+ // Issuer.
656
+ '220' =>
657
+ __( 'Parameter cardIssuerId can not be null/empty', 'woocommerce-mercadopago-module' )
658
+ )
659
+ )
660
+ );
661
+
662
+ // Find logged user.
663
+ try {
664
+ if ( wp_get_current_user()->ID != 0 ) {
665
+ $logged_user_email = wp_get_current_user()->user_email;
666
+ $customer = $this->mp->get_or_create_customer( $logged_user_email);
667
+ $customer_cards = $customer['cards'];
668
+ $parameters['customerId'] = $customer['id'];
669
+ $parameters['customer_cards'] = $customer_cards;
670
+ }
671
+ } catch ( Exception $e ) {
672
+ if ( 'yes' == $this->debug ) {
673
+ $this->log->add(
674
+ $this->id,
675
+ '[process_fields] - there is a problem when retrieving information for cards: ' .
676
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
677
+ );
678
+ }
679
+ }
680
+
681
+ wc_get_template(
682
+ 'credit-card/payment-form.php',
683
+ $parameters,
684
+ 'woocommerce/mercadopago/',
685
+ WC_WooMercadoPago_Module::get_templates_path()
686
+ );
687
+ }
688
+
689
+ /**
690
+ * Summary: Handle the payment and processing the order.
691
+ * Description: This function is called after we click on [place_order] button, and each field is
692
+ * passed to this function through $_POST variable.
693
+ * @return an array containing the result of the processment and the URL to redirect.
694
+ */
695
+ public function process_payment( $order_id ) {
696
+
697
+ if ( ! isset( $_POST['mercadopago_custom'] ) )
698
+ return;
699
+
700
+ update_post_meta( $order_id, '_used_gateway', 'WC_WooMercadoPagoCustom_Gateway' );
701
+
702
+ $order = new WC_Order( $order_id );
703
+ $custom_checkout = $_POST['mercadopago_custom'];
704
+
705
+ // We have got parameters from checkout page, now its time to charge the card.
706
+ if ( 'yes' == $this->debug ) {
707
+ $this->log->add(
708
+ $this->id,
709
+ '[process_payment] - Received [$_POST] from customer front-end page: ' .
710
+ json_encode( $_POST, JSON_PRETTY_PRINT )
711
+ );
712
+ }
713
+
714
+ // Mexico country case.
715
+ if ( $custom_checkout['paymentMethodId'] == '' || empty( $custom_checkout['paymentMethodId'] ) ) {
716
+ $custom_checkout['paymentMethodId'] = $custom_checkout['paymentMethodSelector'];
717
+ }
718
+
719
+ if ( isset( $custom_checkout['amount'] ) && ! empty( $custom_checkout['amount'] ) &&
720
+ isset( $custom_checkout['token'] ) && ! empty( $custom_checkout['token'] ) &&
721
+ isset( $custom_checkout['paymentMethodId'] ) && ! empty( $custom_checkout['paymentMethodId'] ) &&
722
+ isset( $custom_checkout['installments'] ) && ! empty( $custom_checkout['installments'] ) &&
723
+ $custom_checkout['installments'] != -1 ) {
724
+
725
+ $response = self::create_url( $order, $custom_checkout );
726
+
727
+ if (array_key_exists( 'status', $response ) ) {
728
+ switch ( $response['status'] ) {
729
+ case 'approved':
730
+ WC()->cart->empty_cart();
731
+ wc_add_notice(
732
+ '<p>' .
733
+ __( $this->get_order_status( 'accredited' ), 'woocommerce-mercadopago-module' ) .
734
+ '</p>',
735
+ 'notice'
736
+ );
737
+ $order->add_order_note(
738
+ 'Mercado Pago: ' .
739
+ __( 'Payment approved.', 'woocommerce-mercadopago-module' )
740
+ );
741
+ return array(
742
+ 'result' => 'success',
743
+ 'redirect' => $order->get_checkout_order_received_url()
744
+ );
745
+ break;
746
+ case 'pending':
747
+ // Order approved/pending, we just redirect to the thankyou page.
748
+ return array(
749
+ 'result' => 'success',
750
+ 'redirect' => $order->get_checkout_order_received_url()
751
+ );
752
+ break;
753
+ case 'in_process':
754
+ // For pending, we don't know if the purchase will be made, so we must inform this status.
755
+ WC()->cart->empty_cart();
756
+ wc_add_notice(
757
+ '<p>' .
758
+ __( $this->get_order_status( $response['status_detail'] ), 'woocommerce-mercadopago-module' ) .
759
+ '</p>' .
760
+ '<p><a class="button" href="' .
761
+ esc_url( $order->get_checkout_order_received_url() ) .
762
+ '">' .
763
+ __( 'Check your order resume', 'woocommerce-mercadopago-module' ) .
764
+ '</a></p>',
765
+ 'notice'
766
+ );
767
+ return array(
768
+ 'result' => 'success',
769
+ 'redirect' => $order->get_checkout_payment_url( true )
770
+ );
771
+ break;
772
+ case 'rejected':
773
+ // If rejected is received, the order will not proceed until another payment try,
774
+ // so we must inform this status.
775
+ wc_add_notice(
776
+ '<p>' .
777
+ __( 'Your payment was refused. You can try again.', 'woocommerce-mercadopago-module' ) .
778
+ '<br>' .
779
+ __( $this->get_order_status( $response['status_detail'] ), 'woocommerce-mercadopago-module' ) .
780
+ '</p>' .
781
+ '<p><a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
782
+ __( 'Click to try again', 'woocommerce-mercadopago-module' ) .
783
+ '</a></p>',
784
+ 'error'
785
+ );
786
+ return array(
787
+ 'result' => 'success',
788
+ 'redirect' => $order->get_checkout_payment_url( true )
789
+ );
790
+ break;
791
+ case 'cancelled':
792
+ case 'in_mediation':
793
+ case 'charged-back':
794
+ break;
795
+ default:
796
+ break;
797
+ }
798
+ }
799
+ } else {
800
+ // Process when fields are imcomplete.
801
+ wc_add_notice(
802
+ '<p>' .
803
+ __( 'A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?', 'woocommerce-mercadopago-module' ) .
804
+ '</p>',
805
+ 'error'
806
+ );
807
+ return array(
808
+ 'result' => 'fail',
809
+ 'redirect' => '',
810
+ );
811
+ }
812
+ }
813
+
814
+ /**
815
+ * Summary: Build Mercado Pago preference.
816
+ * Description: Create Mercado Pago preference and get init_point URL based in the order options
817
+ * from the cart.
818
+ * @return the preference object.
819
+ */
820
+ private function build_payment_preference( $order, $custom_checkout ) {
821
+
822
+ // A string to register items (workaround to deal with API problem that shows only first item).
823
+ $list_of_items = array();
824
+
825
+ // Here we build the array that contains ordered itens, from customer cart.
826
+ $items = array();
827
+ if ( sizeof( $order->get_items() ) > 0) {
828
+ foreach ( $order->get_items() as $item ) {
829
+ if ( $item['qty'] ) {
830
+ $product = new WC_product( $item['product_id'] );
831
+ array_push( $list_of_items, $product->post->post_title . ' x ' . $item['qty'] );
832
+ array_push( $items, array(
833
+ 'id' => $item['product_id'],
834
+ 'title' => ( $product->post->post_title . ' x ' . $item['qty'] ),
835
+ 'description' => sanitize_file_name(
836
+ // This handles description width limit of Mercado Pago.
837
+ ( strlen( $product->post->post_content ) > 230 ?
838
+ substr( $product->post->post_content, 0, 230 ) . '...' :
839
+ $product->post->post_content )
840
+ ),
841
+ 'picture_url' => wp_get_attachment_url( $product->get_image_id() ),
842
+ 'category_id' => $this->store_categories_id[$this->category_id],
843
+ 'quantity' => 1,
844
+ 'unit_price' => floor( ( (float) $item['line_total'] + (float) $item['line_tax'] ) *
845
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ) * 100 ) / 100
846
+ ) );
847
+ }
848
+ }
849
+ }
850
+
851
+ // Creates the shipment cost structure.
852
+ $ship_cost = ( (float) $order->get_total_shipping() + (float) $order->get_shipping_tax() ) *
853
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 );
854
+ if ( $ship_cost > 0 ) {
855
+ $item = array(
856
+ 'title' => sanitize_file_name( $order->get_shipping_to_display() ),
857
+ 'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
858
+ 'quantity' => 1,
859
+ 'category_id' => $this->store_categories_id[$this->category_id],
860
+ 'unit_price' => floor( $ship_cost * 100 ) / 100
861
+ );
862
+ $items[] = $item;
863
+ }
864
+
865
+ // Discounts features.
866
+ if ( isset( $custom_checkout['discount'] ) && $custom_checkout['discount'] != '' &&
867
+ $custom_checkout['discount'] > 0 && isset( $custom_checkout['coupon_code'] ) &&
868
+ $custom_checkout['coupon_code'] != '' &&
869
+ WC()->session->chosen_payment_method == 'woocommerce-mercadopago-custom-module' ) {
870
+
871
+ $item = array(
872
+ 'title' => __( 'Discount', 'woocommerce-mercadopago-module' ),
873
+ 'description' => __( 'Discount provided by store', 'woocommerce-mercadopago-module' ),
874
+ 'quantity' => 1,
875
+ 'category_id' => $this->store_categories_id[$this->category_id],
876
+ 'unit_price' => -( (float) $custom_checkout['discount'] )
877
+ );
878
+ $items[] = $item;
879
+ }
880
+
881
+ // Build additional information from the customer data.
882
+ $payer_additional_info = array(
883
+ 'first_name' => $order->billing_first_name,
884
+ 'last_name' => $order->billing_last_name,
885
+ //'registration_date' =>
886
+ 'phone' => array(
887
+ //'area_code' =>
888
+ 'number' => $order->billing_phone
889
+ ),
890
+ 'address' => array(
891
+ 'zip_code' => $order->billing_postcode,
892
+ //'street_number' =>
893
+ 'street_name' => $order->billing_address_1 . ' / ' .
894
+ $order->billing_city . ' ' .
895
+ $order->billing_state . ' ' .
896
+ $order->billing_country
897
+ )
898
+ );
899
+
900
+ // Create the shipment address information set.
901
+ $shipments = array(
902
+ 'receiver_address' => array(
903
+ 'zip_code' => $order->shipping_postcode,
904
+ //'street_number' =>
905
+ 'street_name' => $order->shipping_address_1 . ' ' .
906
+ $order->shipping_address_2 . ' ' .
907
+ $order->shipping_city . ' ' .
908
+ $order->shipping_state . ' ' .
909
+ $order->shipping_country,
910
+ //'floor' =>
911
+ 'apartment' => $order->shipping_address_2
912
+ )
913
+ );
914
+
915
+ // The payment preference.
916
+ $preferences = array(
917
+ 'transaction_amount' => floor( ( (float) $custom_checkout['amount'] ) * 100 ) / 100,
918
+ 'token' => $custom_checkout['token'],
919
+ 'description' => implode( ', ', $list_of_items ),
920
+ 'installments' => (int) $custom_checkout['installments'],
921
+ 'payment_method_id' => $custom_checkout['paymentMethodId'],
922
+ 'payer' => array(
923
+ 'email' => $order->billing_email
924
+ ),
925
+ 'external_reference' => $this->invoice_prefix . $order->id,
926
+ 'statement_descriptor' => $this->statement_descriptor,
927
+ 'binary_mode' => ( $this->binary_mode == 'yes' ),
928
+ 'additional_info' => array(
929
+ 'items' => $items,
930
+ 'payer' => $payer_additional_info,
931
+ 'shipments' => $shipments
932
+ )
933
+ );
934
+
935
+ // Customer's Card Feature, add only if it has issuer id.
936
+ if ( array_key_exists( 'token', $custom_checkout ) ) {
937
+ $preferences['metadata']['token'] = $custom_checkout['token'];
938
+ if ( array_key_exists( 'issuer', $custom_checkout ) ) {
939
+ if ( ! empty( $custom_checkout['issuer'] ) ) {
940
+ $preferences['issuer_id'] = (integer) $custom_checkout['issuer'];
941
+ }
942
+ }
943
+ if ( ! empty( $custom_checkout['CustomerId'] ) ) {
944
+ $preferences['payer']['id'] = $custom_checkout['CustomerId'];
945
+ }
946
+ }
947
+
948
+ // Do not set IPN url if it is a localhost.
949
+ if ( ! strrpos( $this->domain, 'localhost' ) ) {
950
+ $preferences['notification_url'] = WC_WooMercadoPago_Module::workaround_ampersand_bug(
951
+ WC()->api_request_url( 'WC_WooMercadoPagoCustom_Gateway' )
952
+ );
953
+ }
954
+
955
+ // Discounts features.
956
+ if ( isset( $custom_checkout['discount'] ) && $custom_checkout['discount'] != '' &&
957
+ $custom_checkout['discount'] > 0 && isset( $custom_checkout['coupon_code'] ) &&
958
+ $custom_checkout['coupon_code'] != '' &&
959
+ WC()->session->chosen_payment_method == 'woocommerce-mercadopago-custom-module' ) {
960
+
961
+ $preferences['campaign_id'] = (int) $custom_checkout['campaign_id'];
962
+ $preferences['coupon_amount'] = ( (float) $custom_checkout['discount'] );
963
+ $preferences['coupon_code'] = strtoupper( $custom_checkout['coupon_code'] );
964
+ }
965
+
966
+ // Set sponsor ID.
967
+ if ( ! $this->is_test_user ) {
968
+ $preferences['sponsor_id'] = $this->country_configs['sponsor_id'];
969
+ }
970
+
971
+ if ( 'yes' == $this->debug ) {
972
+ $this->log->add(
973
+ $this->id,
974
+ '[build_payment_preference] - returning just created [$preferences] structure: ' .
975
+ json_encode( $preferences, JSON_PRETTY_PRINT )
976
+ );
977
+ }
978
+
979
+ $preferences = apply_filters(
980
+ 'woocommerce_mercadopago_module_custom_preferences',
981
+ $preferences, $order
982
+ );
983
+ return $preferences;
984
+ }
985
+
986
+ // --------------------------------------------------
987
+
988
+ protected function create_url( $order, $custom_checkout ) {
989
+
990
+ // Creates the order parameters by checking the cart configuration.
991
+ $preferences = $this->build_payment_preference( $order, $custom_checkout );
992
+
993
+ // Checks for sandbox mode.
994
+ if ( 'yes' == $this->sandbox ) {
995
+ $this->mp->sandbox_mode( true );
996
+ if ( 'yes' == $this->debug) {
997
+ $this->log->add(
998
+ $this->id,
999
+ '[create_url] - sandbox mode is enabled'
1000
+ );
1001
+ }
1002
+ } else {
1003
+ $this->mp->sandbox_mode( false );
1004
+ }
1005
+
1006
+ // Create order preferences with Mercado Pago API request.
1007
+ try {
1008
+ $checkout_info = $this->mp->post( '/v1/payments', json_encode( $preferences) );
1009
+ if ( $checkout_info['status'] < 200 || $checkout_info['status'] >= 300 ) {
1010
+ // Mercado Pago trowed an error.
1011
+ if ( 'yes' == $this->debug ) {
1012
+ $this->log->add(
1013
+ $this->id,
1014
+ '[create_url] - mercado pago gave error, payment creation failed with error: ' .
1015
+ $checkout_info['response']['status'] );
1016
+ }
1017
+ return false;
1018
+ } elseif ( is_wp_error( $checkout_info ) ) {
1019
+ // WordPress throwed an error.
1020
+ if ( 'yes' == $this->debug ) {
1021
+ $this->log->add(
1022
+ $this->id,
1023
+ '[create_url] - wordpress gave error, payment creation failed with error: ' .
1024
+ $checkout_info['response']['status'] );
1025
+ }
1026
+ return false;
1027
+ } else {
1028
+ // Obtain the URL.
1029
+ if ( 'yes' == $this->debug ) {
1030
+ $this->log->add(
1031
+ $this->id,
1032
+ '[create_url] - payment link generated with success from mercado pago, with structure as follow: ' .
1033
+ json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
1034
+ }
1035
+ return $checkout_info['response'];
1036
+ }
1037
+ } catch ( MercadoPagoException $e ) {
1038
+ // Something went wrong with the payment creation.
1039
+ if ( 'yes' == $this->debug ) {
1040
+ $this->log->add(
1041
+ $this->id,
1042
+ '[create_url] - payment creation failed with exception: ' .
1043
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
1044
+ );
1045
+ }
1046
+ return false;
1047
+ }
1048
+ }
1049
+
1050
+ /**
1051
+ * Summary: Check if we have existing customer card, if not we create and save it.
1052
+ * Description: Check if we have existing customer card, if not we create and save it.
1053
+ * @return boolean true/false depending on the validation result.
1054
+ */
1055
+ public function check_and_save_customer_card( $checkout_info ) {
1056
+
1057
+ if ( 'yes' == $this->debug ) {
1058
+ $this->log->add(
1059
+ $this->id,
1060
+ ': @[check_and_save_customer_card] - checking info to create card: ' .
1061
+ json_encode( $checkout_info, JSON_PRETTY_PRINT )
1062
+ );
1063
+ }
1064
+
1065
+ $custId = null;
1066
+ $token = null;
1067
+ $issuer_id = null;
1068
+ $payment_method_id = null;
1069
+
1070
+ if ( isset( $checkout_info['payer']['id'] ) && ! empty( $checkout_info['payer']['id'] ) ) {
1071
+ $custId = $checkout_info['payer']['id'];
1072
+ } else {
1073
+ return;
1074
+ }
1075
+
1076
+ if ( isset( $checkout_info['metadata']['token'] ) && ! empty( $checkout_info['metadata']['token'] ) ) {
1077
+ $token = $checkout_info['metadata']['token'];
1078
+ } else {
1079
+ return;
1080
+ }
1081
+
1082
+ if ( isset( $checkout_info['issuer_id'] ) && ! empty( $checkout_info['issuer_id'] ) ) {
1083
+ $issuer_id = (integer) ( $checkout_info['issuer_id'] );
1084
+ }
1085
+ if ( isset( $checkout_info['payment_method_id'] ) && ! empty( $checkout_info['payment_method_id'] ) ) {
1086
+ $payment_method_id = $checkout_info['payment_method_id'];
1087
+ }
1088
+
1089
+ try {
1090
+ $this->mp->create_card_in_customer( $custId, $token, $payment_method_id, $issuer_id );
1091
+ } catch ( MercadoPagoException $e ) {
1092
+ if ( 'yes' == $this->debug ) {
1093
+ $this->log->add(
1094
+ $this->id,
1095
+ '[check_and_save_customer_card] - card creation failed: ' .
1096
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
1097
+ );
1098
+ }
1099
+ }
1100
+
1101
+ }
1102
+
1103
+ /**
1104
+ * Summary: Receive post data and applies a discount based in the received values.
1105
+ * Description: Receive post data and applies a discount based in the received values.
1106
+ */
1107
+ public function add_discount_custom() {
1108
+
1109
+ if ( ! isset( $_POST['mercadopago_custom'] ) )
1110
+ return;
1111
+
1112
+ if ( is_admin() && ! defined( 'DOING_AJAX' ) || is_cart() ) {
1113
+ return;
1114
+ }
1115
+
1116
+ $mercadopago_custom = $_POST['mercadopago_custom'];
1117
+ if ( isset( $mercadopago_custom['discount'] ) && $mercadopago_custom['discount'] != '' &&
1118
+ $mercadopago_custom['discount'] > 0 && isset( $mercadopago_custom['coupon_code'] ) &&
1119
+ $mercadopago_custom['coupon_code'] != '' &&
1120
+ WC()->session->chosen_payment_method == 'woocommerce-mercadopago-custom-module' ) {
1121
+
1122
+ if ( 'yes' == $this->debug ) {
1123
+ $this->log->add(
1124
+ $this->id,
1125
+ '[add_discount_custom] - custom checkout trying to apply discount...'
1126
+ );
1127
+ }
1128
+
1129
+ $value = ( $mercadopago_custom['discount'] ) /
1130
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 );
1131
+ global $woocommerce;
1132
+ if ( apply_filters(
1133
+ 'wc_mercadopagocustom_module_apply_discount',
1134
+ 0 < $value, $woocommerce->cart )
1135
+ ) {
1136
+ $woocommerce->cart->add_fee( sprintf(
1137
+ __( 'Discount for %s coupon', 'woocommerce-mercadopago-module' ),
1138
+ esc_attr( $mercadopago_custom['campaign']
1139
+ ) ), ( $value * -1 ), true
1140
+ );
1141
+ }
1142
+ }
1143
+
1144
+ }
1145
+
1146
+ /*
1147
+ * ========================================================================
1148
+ * AUXILIARY AND FEEDBACK METHODS (SERVER SIDE)
1149
+ * ========================================================================
1150
+ */
1151
+
1152
+ /**
1153
+ * Summary: Check if we have valid credentials.
1154
+ * Description: Check if we have valid credentials.
1155
+ * @return boolean true/false depending on the validation result.
1156
+ */
1157
+ public function validate_credentials() {
1158
+
1159
+ if ( empty( $this->public_key ) || empty( $this->access_token ) )
1160
+ return false;
1161
+
1162
+ try {
1163
+
1164
+ $this->mp = new MP(
1165
+ WC_WooMercadoPago_Module::get_module_version(),
1166
+ $this->access_token
1167
+ );
1168
+ $get_request = $this->mp->get(
1169
+ '/users/me?access_token=' . $this->access_token
1170
+ );
1171
+
1172
+ if ( isset( $get_request['response']['site_id'] ) ) {
1173
+
1174
+ $this->is_test_user = in_array( 'test_user', $get_request['response']['tags'] );
1175
+ $this->site_id = $get_request['response']['site_id'];
1176
+ $this->collector_id = $get_request['response']['id'];
1177
+ $this->country_configs = WC_WooMercadoPago_Module::get_country_config( $this->site_id );
1178
+
1179
+ // Check for auto converstion of currency (only if it is enabled).
1180
+ $this->currency_ratio = -1;
1181
+ if ( $this->currency_conversion == 'yes' ) {
1182
+ $this->currency_ratio = WC_WooMercadoPago_Module::get_conversion_rate(
1183
+ $this->country_configs['currency']
1184
+ );
1185
+ }
1186
+
1187
+ return true;
1188
+
1189
+ } else {
1190
+ $this->mp = null;
1191
+ return false;
1192
+ }
1193
+
1194
+ } catch ( MercadoPagoException $e ) {
1195
+ if ( 'yes' == $this->debug ) {
1196
+ $this->log->add(
1197
+ $this->id,
1198
+ '[validate_credentials] - while validating credentials, got exception: ' .
1199
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
1200
+ );
1201
+ }
1202
+ $this->mp = null;
1203
+ return false;
1204
+ }
1205
+
1206
+ return false;
1207
+
1208
+ }
1209
+
1210
+ // Build the string representing the path to the log file.
1211
+ protected function build_log_path_string() {
1212
+ return '<a href="' . esc_url(admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
1213
+ esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
1214
+ __( 'WooCommerce &gt; System Status &gt; Logs', 'woocommerce-mercadopago-module' ) . '</a>';
1215
+ }
1216
+
1217
+ // Return boolean indicating if currency is supported.
1218
+ protected function is_supported_currency() {
1219
+ return get_woocommerce_currency() == $this->country_configs['currency'];
1220
+ }
1221
+
1222
+ // Called automatically by WooCommerce, verify if Module is available to use.
1223
+ public function is_available() {
1224
+ if ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
1225
+ if ( empty( $this->sandbox ) && $this->sandbox == 'no' ) {
1226
+ return false;
1227
+ }
1228
+ }
1229
+ $available = ( 'yes' == $this->settings['enabled'] ) &&
1230
+ ! empty( $this->public_key ) &&
1231
+ ! empty( $this->access_token) ;
1232
+ return $available;
1233
+ }
1234
+
1235
+ public function check_ssl_absence() {
1236
+ if ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
1237
+ if ( 'yes' == $this->settings['enabled'] ) {
1238
+ echo '<div class="error"><p><strong>' .
1239
+ __( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
1240
+ '</strong>: ' .
1241
+ sprintf(
1242
+ __( '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' )
1243
+ ) . '</p></div>';
1244
+ }
1245
+ }
1246
+ }
1247
+
1248
+ // Get the URL to admin page.
1249
+ protected function admin_url() {
1250
+ if (defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
1251
+ return admin_url(
1252
+ 'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopagocustom_gateway'
1253
+ );
1254
+ }
1255
+ return admin_url(
1256
+ 'admin.php?page=woocommerce_settings&tab=payment_gateways&section=WC_WooMercadoPagoCustom_Gateway'
1257
+ );
1258
+ }
1259
+
1260
+ // Notify that public_key and/or access_token are not valid.
1261
+ public function credentials_missing_message() {
1262
+ echo '<div class="error"><p><strong>' .
1263
+ __( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
1264
+ '</strong>: ' .
1265
+ __( 'Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) .
1266
+ '</p></div>';
1267
+ }
1268
+
1269
+ public function get_order_status( $status_detail ) {
1270
+ switch ( $status_detail ) {
1271
+ case 'accredited':
1272
+ return __( 'Done, your payment was accredited!', 'woocommerce-mercadopago-module' );
1273
+ case 'pending_contingency':
1274
+ return __( 'We are processing the payment. In less than an hour we will e-mail you the results.', 'woocommerce-mercadopago-module' );
1275
+ case 'pending_review_manual':
1276
+ 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' );
1277
+ case 'cc_rejected_bad_filled_card_number':
1278
+ return __( 'Check the card number.', 'woocommerce-mercadopago-module' );
1279
+ case 'cc_rejected_bad_filled_date':
1280
+ return __( 'Check the expiration date.', 'woocommerce-mercadopago-module' );
1281
+ case 'cc_rejected_bad_filled_other':
1282
+ return __( 'Check the information.', 'woocommerce-mercadopago-module' );
1283
+ case 'cc_rejected_bad_filled_security_code':
1284
+ return __( 'Check the security code.', 'woocommerce-mercadopago-module' );
1285
+ case 'cc_rejected_blacklist':
1286
+ return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
1287
+ case 'cc_rejected_call_for_authorize':
1288
+ return __( 'You must authorize the payment of your orders.', 'woocommerce-mercadopago-module' );
1289
+ case 'cc_rejected_card_disabled':
1290
+ return __( 'Call your card issuer to activate your card. The phone is on the back of your card.', 'woocommerce-mercadopago-module' );
1291
+ case 'cc_rejected_card_error':
1292
+ return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
1293
+ case 'cc_rejected_duplicated_payment':
1294
+ return __( 'You already made a payment for that amount. If you need to repay, use another card or other payment method.', 'woocommerce-mercadopago-module' );
1295
+ case 'cc_rejected_high_risk':
1296
+ return __( 'Your payment was rejected. Choose another payment method. We recommend cash.', 'woocommerce-mercadopago-module' );
1297
+ case 'cc_rejected_insufficient_amount':
1298
+ return __( 'Your payment do not have sufficient funds.', 'woocommerce-mercadopago-module' );
1299
+ case 'cc_rejected_invalid_installments':
1300
+ return __( 'Your payment does not process payments with selected installments.', 'woocommerce-mercadopago-module' );
1301
+ case 'cc_rejected_max_attempts':
1302
+ return __( 'You have reached the limit of allowed attempts. Choose another card or another payment method.', 'woocommerce-mercadopago-module' );
1303
+ case 'cc_rejected_other_reason':
1304
+ return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
1305
+ default:
1306
+ return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
1307
+ }
1308
+ }
1309
+
1310
+ /*
1311
+ * ========================================================================
1312
+ * IPN MECHANICS (SERVER SIDE)
1313
+ * ========================================================================
1314
+ */
1315
+
1316
+ /**
1317
+ * Summary: This call checks any incoming notifications from Mercado Pago server.
1318
+ * Description: This call checks any incoming notifications from Mercado Pago server.
1319
+ */
1320
+ public function process_http_request() {
1321
+ @ob_clean();
1322
+ if ( 'yes' == $this->debug ) {
1323
+ $this->log->add(
1324
+ $this->id,
1325
+ '[process_http_request] - Received _get content: ' .
1326
+ json_encode( $_GET, JSON_PRETTY_PRINT )
1327
+ );
1328
+ }
1329
+ if ( isset( $_GET['coupon_id'] ) && $_GET['coupon_id'] != '' ) {
1330
+ // Process coupon evaluations.
1331
+ if ( isset( $_GET['payer'] ) && $_GET['payer'] != '' ) {
1332
+ $logged_user_email = $_GET['payer'];
1333
+ $coupon_id = $_GET['coupon_id'];
1334
+ if ( 'yes' == $this->sandbox )
1335
+ $this->mp->sandbox_mode( true );
1336
+ else
1337
+ $this->mp->sandbox_mode( false );
1338
+ $response = $this->mp->check_discount_campaigns(
1339
+ $_GET['amount'],
1340
+ $logged_user_email,
1341
+ $coupon_id
1342
+ );
1343
+ header( 'HTTP/1.1 200 OK' );
1344
+ header( 'Content-Type: application/json' );
1345
+ echo json_encode( $response );
1346
+ } else {
1347
+ $obj = new stdClass();
1348
+ $obj->status = 404;
1349
+ $obj->response = array(
1350
+ 'message' =>
1351
+ __( 'Please, inform your email in billing address to use this feature', 'woocommerce-mercadopago-module' ),
1352
+ 'error' => 'payer_not_found',
1353
+ 'status' => 404,
1354
+ 'cause' => array()
1355
+ );
1356
+ header( 'HTTP/1.1 200 OK' );
1357
+ header( 'Content-Type: application/json' );
1358
+ echo json_encode( $obj );
1359
+ }
1360
+ exit( 0 );
1361
+ } else {
1362
+ // Process IPN messages.
1363
+ $data = $this->check_ipn_request_is_valid( $_GET );
1364
+ if ( $data ) {
1365
+ header( 'HTTP/1.1 200 OK' );
1366
+ do_action( 'valid_mercadopagocustom_ipn_request', $data );
1367
+ }
1368
+ }
1369
+ }
1370
+
1371
+ /**
1372
+ * Summary: Get received data from IPN and checks if its a merchant_order or a payment.
1373
+ * Description: If we have these information, we return data to be processed by
1374
+ * successful_request function.
1375
+ * @return boolean indicating if it was successfuly processed.
1376
+ */
1377
+ public function check_ipn_request_is_valid( $data ) {
1378
+
1379
+ if ( ! isset( $data['data_id'] ) || !isset( $data['type'] ) ) {
1380
+ if ( 'yes' == $this->debug ) {
1381
+ $this->log->add(
1382
+ $this->id,
1383
+ '[check_ipn_request_is_valid] - data_id or type not set: ' .
1384
+ json_encode( $data, JSON_PRETTY_PRINT )
1385
+ );
1386
+ }
1387
+ // At least, check if its a v0 ipn.
1388
+ if ( ! isset( $data['id'] ) || ! isset( $data['topic'] ) ) {
1389
+ if ( 'yes' == $this->debug ) {
1390
+ $this->log->add(
1391
+ $this->id,
1392
+ '[check_ipn_request_is_valid] - Mercado Pago Request failure: ' .
1393
+ json_encode( $_GET, JSON_PRETTY_PRINT )
1394
+ );
1395
+ }
1396
+ wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
1397
+ } else {
1398
+ header( 'HTTP/1.1 200 OK' );
1399
+ }
1400
+ // No ID? No process!
1401
+ return false;
1402
+ }
1403
+
1404
+ if ( 'yes' == $this->sandbox ) {
1405
+ $this->mp->sandbox_mode( true );
1406
+ } else {
1407
+ $this->mp->sandbox_mode( false );
1408
+ }
1409
+
1410
+ try {
1411
+ // Get the payment reported by the IPN.
1412
+ if ( $data['type'] == 'payment' ) {
1413
+ $access_token = array( 'access_token' => $this->mp->get_access_token() );
1414
+ $payment_info = $this->mp->get(
1415
+ '/v1/payments/' . $data['data_id'], $access_token, false
1416
+ );
1417
+ if ( ! is_wp_error( $payment_info ) &&
1418
+ ( $payment_info['status'] == 200 || $payment_info['status'] == 201 ) ) {
1419
+ return $payment_info['response'];
1420
+ } else {
1421
+ if ( 'yes' == $this->debug) {
1422
+ $this->log->add(
1423
+ $this->id,
1424
+ '[check_ipn_request_is_valid] - error when processing received data: ' .
1425
+ json_encode( $payment_info, JSON_PRETTY_PRINT )
1426
+ );
1427
+ }
1428
+ return false;
1429
+ }
1430
+ }
1431
+ } catch ( MercadoPagoException $e ) {
1432
+ if ( 'yes' == $this->debug ) {
1433
+ $this->log->add(
1434
+ $this->id,
1435
+ '[check_ipn_request_is_valid] - MercadoPagoException: ' .
1436
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
1437
+ );
1438
+ }
1439
+ return false;
1440
+ }
1441
+ return true;
1442
+ }
1443
+
1444
+ /**
1445
+ * Summary: Properly handles each case of notification, based in payment status.
1446
+ * Description: Properly handles each case of notification, based in payment status.
1447
+ */
1448
+ public function successful_request( $data ) {
1449
+
1450
+ if ( 'yes' == $this->debug ) {
1451
+ $this->log->add(
1452
+ $this->id,
1453
+ '[successful_request] - starting to process ipn update...'
1454
+ );
1455
+ }
1456
+
1457
+ $order_key = $data['external_reference'];
1458
+ if ( ! empty( $order_key ) ) {
1459
+ $order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
1460
+ $order = new WC_Order( $order_id );
1461
+ // Checks whether the invoice number matches the order, if true processes the payment.
1462
+ if ( $order->id === $order_id ) {
1463
+ if ( 'yes' == $this->debug) {
1464
+ $this->log->add(
1465
+ $this->id,
1466
+ '[successful_request] - got order with ID ' . $order->id . ' and data: ' .
1467
+ json_encode( $data, JSON_PRETTY_PRINT )
1468
+ );
1469
+ }
1470
+ update_post_meta( $order->id, '_used_gateway', 'WC_WooMercadoPagoCustom_Gateway' );
1471
+ // Order details.
1472
+ if ( ! empty( $data['payer']['email'] ) ) {
1473
+ update_post_meta(
1474
+ $order_id,
1475
+ __( 'Payer email', 'woocommerce-mercadopago-module' ),
1476
+ $data['payer']['email']
1477
+ );
1478
+ }
1479
+ if ( ! empty( $data['payment_type_id'] ) ) {
1480
+ update_post_meta(
1481
+ $order_id,
1482
+ __( 'Payment type', 'woocommerce-mercadopago-module' ),
1483
+ $data['payment_type_id']
1484
+ );
1485
+ }
1486
+ if ( ! empty( $data ) ) {
1487
+ update_post_meta(
1488
+ $order_id,
1489
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
1490
+ $data['id']
1491
+ );
1492
+ }
1493
+ // Switch the status and update in WooCommerce
1494
+ switch ( $data['status'] ) {
1495
+ case 'approved':
1496
+ $order->add_order_note(
1497
+ 'Mercado Pago: ' . __( 'Payment approved.', 'woocommerce-mercadopago-module' )
1498
+ );
1499
+ $this->check_and_save_customer_card( $data );
1500
+ $order->payment_complete();
1501
+ break;
1502
+ case 'pending':
1503
+ $order->add_order_note(
1504
+ 'Mercado Pago: ' . __( 'Customer haven\'t paid yet.', 'woocommerce-mercadopago-module' )
1505
+ );
1506
+ break;
1507
+ case 'in_process':
1508
+ $order->update_status(
1509
+ 'on-hold',
1510
+ 'Mercado Pago: ' . __( 'Payment under review.', 'woocommerce-mercadopago-module' )
1511
+ );
1512
+ break;
1513
+ case 'rejected':
1514
+ $order->update_status(
1515
+ 'failed',
1516
+ 'Mercado Pago: ' .
1517
+ __( 'The payment was refused. The customer can try again.', 'woocommerce-mercadopago-module' )
1518
+ );
1519
+ break;
1520
+ case 'refunded':
1521
+ $order->update_status(
1522
+ 'refunded',
1523
+ 'Mercado Pago: ' .
1524
+ __( 'The payment was refunded to the customer.', 'woocommerce-mercadopago-module' )
1525
+ );
1526
+ break;
1527
+ case 'cancelled':
1528
+ $order->update_status(
1529
+ 'cancelled',
1530
+ 'Mercado Pago: ' .
1531
+ __( 'The payment was cancelled.', 'woocommerce-mercadopago-module' )
1532
+ );
1533
+ break;
1534
+ case 'in_mediation':
1535
+ $order->add_order_note(
1536
+ 'Mercado Pago: ' .
1537
+ __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
1538
+ );
1539
+ break;
1540
+ case 'charged-back':
1541
+ $order->add_order_note(
1542
+ 'Mercado Pago: ' .
1543
+ __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
1544
+ );
1545
+ break;
1546
+ default:
1547
+ break;
1548
+ }
1549
+ }
1550
+ }
1551
+ }
1552
+
1553
+ }
1554
+
1555
+ new WC_WooMercadoPagoCustom_Gateway( true );
mercadopago/mercadopago-gateway.php CHANGED
@@ -1,531 +1,889 @@
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
47
- private $sponsor_id = array(
48
- "MLA" => '208682286',
49
- "MLB" => '208686191',
50
- "MCO" => '208687643',
51
- "MLC" => '208690789',
52
- "MLV" => '208692735',
53
- "MLM" => '208692380'
54
- );
55
-
56
- // Required inherited method from WC_Payment_Gateway class: __construct.
57
- // Please check:
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();
 
69
  $this->store_categories_id = array();
70
- $this->store_categories_description = array();
71
-
72
- // Within your constructor, you should define the following variables.
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
-
144
  }
145
-
146
- // Required inherited method from WC_Payment_Gateway class: init_form_fields.
147
- // Initialise Gateway settings form fields with a customized page.
 
 
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
  }
403
  }
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
  }
460
  }
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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
526
  $preferences = array(
527
  'items' => $items,
528
- // Payer should be filled with billing info because orders can be made with non-logged customers.
529
  'payer' => array(
530
  'name' => $order->billing_first_name,
531
  'surname' => $order->billing_last_name,
@@ -542,139 +900,253 @@ 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' =>
557
- 'street_name' => $order->shipping_address_1 . ' ' .
558
- $order->shipping_city . ' ' .
559
- $order->shipping_state . ' ' .
560
- $order->shipping_country,
561
- //'floor' =>
562
- 'apartment' => $order->shipping_address_2
563
- )
564
- ),
565
  'payment_methods' => $payment_methods,
566
- 'notification_url' => $this->domain . '/' . $this->id . '/?wc-api=WC_WooMercadoPago_Gateway',
567
  'external_reference' => $this->invoice_prefix . $order->id
568
- //'additional_info' => $order->customer_message
569
- //'expires' =>
570
- //'expiration_date_from' =>
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
  }
625
  }
626
-
627
  /*
628
  * ========================================================================
629
- * AUXILIARY AND FEEDBACK METHODS
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
  );
@@ -685,218 +1157,260 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
685
  }
686
 
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
-
721
  /*
722
  * ========================================================================
723
- * IPN MECHANICS
724
  * ========================================================================
725
  */
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
  }
800
  return true;
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
  }
898
  }
899
  }
900
  }
901
-
902
  }
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  /**
4
+ * Part of Woo Mercado Pago Module
5
+ * Author - Mercado Pago
6
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
7
+ * Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
8
+ * License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
9
  */
10
 
11
  // This include Mercado Pago library SDK
12
+ require_once 'sdk/lib/mercadopago.php';
13
 
14
  /**
15
+ * Summary: Extending from WooCommerce Payment Gateway class.
16
+ * Description: This class implements Mercado Pago Basic checkout.
17
+ * @since 1.0.0
18
  */
19
  class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
20
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  public function __construct() {
 
 
 
22
 
23
+ // Mercado Pago fields.
24
+ $this->mp = null;
25
  $this->site_id = null;
26
+ $this->collector_id = null;
27
+ $this->currency_ratio = -1;
28
+ $this->is_test_user = false;
29
+
30
+ // Auxiliary fields.
31
+ $this->currency_message = '';
32
  $this->payment_methods = array();
33
+ $this->country_configs = array();
34
  $this->store_categories_id = array();
35
+ $this->store_categories_description = array();
36
+
37
+ // WooCommerce fields.
38
  $this->id = 'woocommerce-mercadopago-module';
39
+ $this->domain = get_site_url() . '/index.php';
40
  $this->icon = apply_filters(
41
  'woocommerce_mercadopago_icon',
42
+ plugins_url( 'images/mercadopago.png', plugin_dir_path( __FILE__ ) )
43
  );
44
+ $this->method_title = __( 'Mercado Pago - Basic Checkout', 'woocommerce-mercadopago-module' );
45
  $this->method_description = '<img width="200" height="52" src="' .
46
+ plugins_url(
47
+ 'images/mplogo.png',
48
+ plugin_dir_path( __FILE__ )
49
+ ) . '"><br><br>' . '<strong>' .
50
+ wordwrap(
51
+ __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ),
52
+ 80, '\n'
53
+ ) . '</strong>';
54
+
55
+ // Fields used in Mercado Pago Module configuration page.
56
+ $this->client_id = $this->get_option( 'client_id' );
57
+ $this->client_secret = $this->get_option( 'client_secret' );
58
+ $this->title = $this->get_option( 'title' );
59
+ $this->description = $this->get_option( 'description' );
60
+ $this->category_id = $this->get_option( 'category_id' );
61
+ $this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
62
+ $this->method = $this->get_option( 'method', 'iframe' );
63
+ $this->iframe_width = $this->get_option( 'iframe_width', 640 );
64
+ $this->iframe_height = $this->get_option( 'iframe_height', 800 );
65
+ $this->auto_return = $this->get_option( 'auto_return', true );
66
+ $this->success_url = $this->get_option( 'success_url', '' );
67
+ $this->failure_url = $this->get_option( 'failure_url', '' );
68
+ $this->pending_url = $this->get_option( 'pending_url', '' );
69
+ $this->currency_conversion = $this->get_option( 'currency_conversion', false );
70
+ $this->installments = $this->get_option( 'installments', '24' );
71
+ $this->ex_payments = $this->get_option( 'ex_payments', 'n/d' );
72
+ $this->payment_split_mode = 'inactive';
73
+ $this->sandbox = $this->get_option( 'sandbox', false );
74
+ $this->debug = $this->get_option( 'debug' );
75
+
76
+ // Logging and debug.
77
+ if ( 'yes' == $this->debug ) {
78
+ if ( class_exists( 'WC_Logger' ) ) {
79
+ $this->log = new WC_Logger();
80
+ } else {
81
+ $this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
82
+ }
83
+ }
84
+
85
  // Render our configuration page and init/load fields.
86
  $this->init_form_fields();
87
  $this->init_settings();
88
+
89
+ // Used by IPN to receive IPN incomings.
90
+ add_action(
91
  'woocommerce_api_wc_woomercadopago_gateway',
92
+ array( $this, 'check_ipn_response' )
 
 
 
 
93
  );
94
+ // Used by IPN to process valid incomings.
95
+ add_action( 'valid_mercadopago_ipn_request', array( $this, 'successful_request' ) );
96
+ // process the cancel order meta box order action
97
+ add_action(
98
+ 'woocommerce_order_action_cancel_order',
99
+ array( $this, 'process_cancel_order_meta_box_actions' )
100
  );
101
+ // process the refund order meta box order action
102
+ add_action(
103
+ 'woocommerce_order_action_refund_order',
104
+ array( $this, 'process_refund_order_meta_box_actions' )
105
  );
106
+ // Used by WordPress to render the custom checkout page.
107
+ add_action( 'woocommerce_receipt_' . $this->id, array( $this, 'receipt_page' ) );
108
+ // Used to fix CSS in some older WordPress/WooCommerce versions.
109
+ add_action( 'wp_head', array( $this, 'css' ) );
110
+ // Used in settings page to hook "save settings" action.
111
+ add_action(
112
  'woocommerce_update_options_payment_gateways_' . $this->id,
113
+ array( $this, 'custom_process_admin_options' )
114
+ );
115
+ // Scripts for order configuration.
116
+ add_action(
117
+ 'woocommerce_after_checkout_form',
118
+ array( $this, 'add_checkout_script' )
119
+ );
120
+ // Checkout updates.
121
+ add_action(
122
+ 'woocommerce_thankyou',
123
+ array( $this, 'update_checkout_status' )
124
  );
 
 
 
 
 
 
 
 
 
 
125
 
126
+ // Verify if client_id or client_secret is empty.
127
+ if ( empty( $this->client_id ) || empty( $this->client_secret ) ) {
128
+ if ( ! empty( $this->settings['enabled'] ) && 'yes' == $this->settings['enabled'] ) {
129
+ add_action( 'admin_notices', array( $this, 'client_id_or_secret_missing_message' ) );
 
 
130
  }
131
  }
132
+
133
  }
134
+
135
+ /**
136
+ * Summary: Initialise Gateway Settings Form Fields.
137
+ * Description: Initialise Gateway settings form fields with a customized page.
138
+ */
139
  public function init_form_fields() {
140
+
141
+ // If module is disabled, we do not need to load and process the settings page.
142
+ if ( empty( $this->settings['enabled'] ) || 'no' == $this->settings['enabled'] ) {
143
+ $this->form_fields = array(
144
+ 'enabled' => array(
145
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
146
+ 'type' => 'checkbox',
147
+ 'label' => __( 'Enable Basic Checkout', 'woocommerce-mercadopago-module' ),
148
+ 'default' => 'no'
149
+ )
150
+ );
151
+ return;
152
+ }
153
+
154
  $api_secret_locale = sprintf(
155
+ '<a href="https://www.mercadopago.com/mla/account/credentials?type=basic" target="_blank">%s</a>, ' .
156
+ '<a href="https://www.mercadopago.com/mlb/account/credentials?type=basic" target="_blank">%s</a>, ' .
157
+ '<a href="https://www.mercadopago.com/mlc/account/credentials?type=basic" target="_blank">%s</a>, ' .
158
+ '<a href="https://www.mercadopago.com/mco/account/credentials?type=basic" target="_blank">%s</a>, ' .
159
+ '<a href="https://www.mercadopago.com/mlm/account/credentials?type=basic" target="_blank">%s</a>, ' .
160
+ '<a href="https://www.mercadopago.com/mpe/account/credentials?type=basic" target="_blank">%s</a> %s ' .
161
+ '<a href="https://www.mercadopago.com/mlv/account/credentials?type=basic" target="_blank">%s</a>',
162
+ __( 'Argentine', 'woocommerce-mercadopago-module' ),
163
+ __( 'Brazil', 'woocommerce-mercadopago-module' ),
164
+ __( 'Chile', 'woocommerce-mercadopago-module' ),
165
+ __( 'Colombia', 'woocommerce-mercadopago-module' ),
166
+ __( 'Mexico', 'woocommerce-mercadopago-module' ),
167
+ __( 'Peru', 'woocommerce-mercadopago-module' ),
168
+ __( 'or', 'woocommerce-mercadopago-module' ),
169
+ __( 'Venezuela', 'woocommerce-mercadopago-module' )
170
  );
171
+
172
  // Trigger API to get payment methods and site_id, also validates Client_id/Client_secret.
173
+ if ( $this->validate_credentials() ) {
174
+ // Checking the currency.
175
+ $this->currency_message = '';
176
+ if ( ! $this->is_supported_currency() && 'yes' == $this->settings['enabled'] ) {
177
+ if ( $this->currency_conversion == 'no' ) {
178
+ $this->currency_ratio = -1;
179
+ $this->currency_message .= WC_WooMercadoPago_Module::build_currency_not_converted_msg(
180
+ $this->country_configs['currency'],
181
+ $this->country_configs['country_name']
182
+ );
183
+ } elseif ( $this->currency_conversion == 'yes' && $this->currency_ratio != -1) {
184
+ $this->currency_message .= WC_WooMercadoPago_Module::build_currency_converted_msg(
185
+ $this->country_configs['currency'],
186
+ $this->currency_ratio
187
+ );
188
+ } else {
189
+ $this->currency_ratio = -1;
190
+ $this->currency_message .= WC_WooMercadoPago_Module::build_currency_conversion_err_msg(
191
+ $this->country_configs['currency']
192
+ );
193
  }
194
+ } else {
195
+ $this->currency_ratio = -1;
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  }
197
+ $this->credentials_message = WC_WooMercadoPago_Module::build_valid_credentials_msg(
198
+ $this->country_configs['country_name'],
199
+ $this->site_id
200
+ );
201
+ $this->payment_desc =
202
+ __( 'Select the payment methods that you <strong>don\'t</strong> want to receive with Mercado Pago.', 'woocommerce-mercadopago-module' );
203
  } else {
204
+ array_push( $this->payment_methods, 'n/d' );
205
+ $this->credentials_message = WC_WooMercadoPago_Module::build_invalid_credentials_msg();
206
  $this->payment_desc = '<img width="12" height="12" src="' .
207
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' . ' ' .
208
+ __( 'Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module' );
209
+ }
210
+
211
+ // fill categories (can be handled without credentials).
212
+ $categories = WC_WooMercadoPago_Module::get_categories();
213
+ $this->store_categories_id = $categories['store_categories_id'];
214
+ $this->store_categories_description = $categories['store_categories_description'];
215
+
 
 
 
 
 
216
  // Checks validity of iFrame width/height fields.
217
+ if ( ! is_numeric( $this->iframe_width) ) {
218
  $this->iframe_width_desc = '<img width="12" height="12" src="' .
219
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' . ' ' .
220
+ __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
221
  } else {
222
  $this->iframe_width_desc =
223
+ __( 'If your integration method is iFrame, please inform the payment iFrame width.', 'woocommerce-mercadopago-module' );
224
  }
225
+ if ( ! is_numeric( $this->iframe_height) ) {
226
  $this->iframe_height_desc = '<img width="12" height="12" src="' .
227
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' . ' ' .
228
+ __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
229
  } else {
230
  $this->iframe_height_desc =
231
+ __( 'If your integration method is iFrame, please inform the payment iFrame height.', 'woocommerce-mercadopago-module' );
232
  }
233
+
234
  // Checks if max installments is a number.
235
+ if ( ! is_numeric( $this->installments ) ) {
236
  $this->installments_desc = '<img width="12" height="12" src="' .
237
+ plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' . ' ' .
238
+ __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
239
  } else {
240
  $this->installments_desc =
241
+ __( 'Select the max number of installments for your customers.', 'woocommerce-mercadopago-module' );
242
  }
243
+
244
  // This array draws each UI (text, selector, checkbox, label, etc).
245
  $this->form_fields = array(
246
  'enabled' => array(
247
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
248
  'type' => 'checkbox',
249
+ 'label' => __( 'Enable Basic Checkout', 'woocommerce-mercadopago-module' ),
250
+ 'default' => 'no'
251
  ),
252
  'credentials_title' => array(
253
+ 'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
254
  'type' => 'title',
255
+ 'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf(
256
+ __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) .
257
+ ' %s.', $api_secret_locale
258
+ )
259
  ),
260
  'client_id' => array(
261
  'title' => 'Client_id',
262
  'type' => 'text',
263
+ 'description' =>
264
+ __( 'Insert your Mercado Pago Client_id.', 'woocommerce-mercadopago-module' ),
265
  'default' => '',
266
  'required' => true
267
  ),
268
  'client_secret' => array(
269
  'title' => 'Client_secret',
270
  'type' => 'text',
271
+ 'description' =>
272
+ __( 'Insert your Mercado Pago Client_secret.', 'woocommerce-mercadopago-module' ),
273
  'default' => '',
274
  'required' => true
275
  ),
276
  'ipn_url' => array(
277
+ 'title' =>
278
+ __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
279
  'type' => 'title',
280
+ 'description' => sprintf(
281
+ __( 'Your IPN URL to receive instant payment notifications is', 'woocommerce-mercadopago-module' ) .
282
+ '<br>%s', '<code>' . WC()->api_request_url( 'WC_WooMercadoPago_Gateway' ) . '</code>.'
283
+ )
284
  ),
285
  'checkout_options_title' => array(
286
+ 'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
287
  'type' => 'title',
288
  'description' => ''
289
  ),
290
  'title' => array(
291
+ 'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
292
  'type' => 'text',
293
+ 'description' =>
294
+ __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
295
+ 'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
296
  ),
297
  'description' => array(
298
+ 'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
299
  'type' => 'textarea',
300
+ 'description' =>
301
+ __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
302
+ 'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
303
  ),
304
  'category_id' => array(
305
+ 'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
306
  'type' => 'select',
307
+ 'description' =>
308
+ __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
309
  'options' => $this->store_categories_id
310
  ),
311
  'invoice_prefix' => array(
312
+ 'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
313
  'type' => 'text',
314
+ 'description' =>
315
+ __( 'Please, inform a prefix to your store.', 'woocommerce-mercadopago-module' )
316
+ . ' ' .
317
+ __( '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' ),
318
  'default' => 'WC-'
319
  ),
320
  'method' => array(
321
+ 'title' => __( 'Integration Method', 'woocommerce-mercadopago-module' ),
322
  'type' => 'select',
323
+ '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' ),
324
  'default' => 'iframe',
325
  'options' => array(
326
+ 'iframe' => __( 'iFrame', 'woocommerce-mercadopago-module' ),
327
+ 'modal' => __( 'Modal Window', 'woocommerce-mercadopago-module' ),
328
+ 'redirect' => __( 'Redirect', 'woocommerce-mercadopago-module' )
329
  )
330
  ),
331
  'iframe_width' => array(
332
+ 'title' => __( 'iFrame Width', 'woocommerce-mercadopago-module' ),
333
  'type' => 'text',
334
  'description' => $this->iframe_width_desc,
335
  'default' => '640'
336
  ),
337
  'iframe_height' => array(
338
+ 'title' => __( 'iFrame Height', 'woocommerce-mercadopago-module' ),
339
  'type' => 'text',
340
  'description' => $this->iframe_height_desc,
341
  'default' => '800'
342
  ),
343
  'auto_return' => array(
344
+ 'title' => __( 'Auto Return', 'woocommerce-mercadopago-module' ),
345
  'type' => 'checkbox',
346
+ 'label' => __( 'Automatic Return After Payment', 'woocommerce-mercadopago-module' ),
347
  'default' => 'yes',
348
+ 'description' =>
349
+ __( 'After the payment, client is automatically redirected.', 'woocommerce-mercadopago-module' ),
350
+ ),
351
+ 'back_url_title' => array(
352
+ 'title' => __( 'Back URL Options', 'woocommerce-mercadopago-module' ),
353
+ 'type' => 'title',
354
+ 'description' => ''
355
  ),
356
+ 'success_url' => array(
357
+ 'title' => __( 'Sucess URL', 'woocommerce-mercadopago-module' ),
358
+ 'type' => 'text',
359
+ 'description' => __( 'Where customers should be redirected after a successful purchase. Let blank to redirect to the default store order resume page.', 'woocommerce-mercadopago-module' ),
360
+ 'default' => ''
361
+ ),
362
+ 'failure_url' => array(
363
+ 'title' => __( 'Failure URL', 'woocommerce-mercadopago-module' ),
364
+ 'type' => 'text',
365
+ 'description' => __( 'Where customers should be redirected after a failed purchase. Let blank to redirect to the default store order resume page.', 'woocommerce-mercadopago-module' ),
366
+ 'default' => ''
367
+ ),
368
+ 'pending_url' => array(
369
+ 'title' => __( 'Pending URL', 'woocommerce-mercadopago-module' ),
370
+ 'type' => 'text',
371
+ 'description' => __( 'Where customers should be redirected after a pending purchase. Let blank to redirect to the default store order resume page.', 'woocommerce-mercadopago-module' ),
372
+ 'default' => ''
373
+ ),
374
+ 'payment_title' => array(
375
+ 'title' => __( 'Payment Options', 'woocommerce-mercadopago-module' ),
376
  'type' => 'title',
377
  'description' => ''
378
  ),
379
+ 'currency_conversion' => array(
380
+ 'title' => __( 'Currency Conversion', 'woocommerce-mercadopago-module' ),
381
+ 'type' => 'checkbox',
382
+ 'label' =>
383
+ __( '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' ),
384
+ 'default' => 'no',
385
+ 'description' => sprintf( '%s', $this->currency_message )
386
+ ),
387
  'installments' => array(
388
+ 'title' => __( 'Max installments', 'woocommerce-mercadopago-module' ),
389
  'type' => 'text',
390
  'description' => $this->installments_desc,
391
  'default' => '24'
392
  ),
393
  'ex_payments' => array(
394
+ 'title' => __( 'Exclude Payment Methods', 'woocommerce-mercadopago-module' ),
395
+ 'description' => $this->payment_desc,
396
+ 'type' => 'multiselect',
397
+ 'options' => $this->payment_methods,
398
+ 'default' => ''
399
+ ),
400
+ 'payment_split_mode' => array(
401
+ 'title' => __( 'Two Cards Mode', 'woocommerce-mercadopago-module' ),
402
+ 'type' => 'checkbox',
403
+ 'label' => __( 'Payments with Two Cards', 'woocommerce-mercadopago-module' ),
404
+ 'default' => ( $this->payment_split_mode == 'active' ? 'yes' : 'no' ),
405
+ 'description' =>
406
+ __( 'Your customer will be able to use two different cards to pay the order.', 'woocommerce-mercadopago-module' ),
407
+ ),
408
  'testing' => array(
409
+ 'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
410
  'type' => 'title',
411
  'description' => ''
412
  ),
413
  'sandbox' => array(
414
+ 'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
415
  'type' => 'checkbox',
416
+ 'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
417
  'default' => 'no',
418
+ 'description' =>
419
+ __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
420
  ),
421
  'debug' => array(
422
+ 'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
423
  'type' => 'checkbox',
424
+ 'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
425
  'default' => 'no',
426
+ 'description' => sprintf(
427
+ __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
428
+ ' %s.', $this->build_log_path_string() . '.<br>' .
429
+ __( 'File location: ', 'woocommerce-mercadopago-module' ) .
430
+ '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' .
431
+ sanitize_file_name( wp_hash( $this->id) ) . '.log</code>' )
432
  )
433
  );
434
+
435
+ }
436
+
437
+ /**
438
+ * Processes and saves options.
439
+ * If there is an error thrown, will continue to save and validate fields, but will leave the
440
+ * erroring field out.
441
+ * @return bool was anything saved?
442
+ */
443
+ public function custom_process_admin_options() {
444
+ $this->init_settings();
445
+
446
+ $post_data = $this->get_post_data();
447
+
448
+ foreach ( $this->get_form_fields() as $key => $field ) {
449
+ if ( 'title' !== $this->get_field_type( $field ) ) {
450
+ try {
451
+ if ( $key == 'payment_split_mode' ) {
452
+ // We dont save split mode as it should come from api.
453
+ $value = $this->get_field_value( $key, $field, $post_data );
454
+ $this->payment_split_mode = ( $value == 'yes' ? 'active' : 'inactive' );
455
+ } else {
456
+ $this->settings[$key] = $this->get_field_value( $key, $field, $post_data );
457
+ }
458
+ } catch ( Exception $e ) {
459
+ $this->add_error( $e->getMessage() );
460
+ }
461
+ }
462
+ }
463
+
464
+ if ( ! empty( $this->settings['client_id'] ) && ! empty( $this->settings['client_secret'] ) ) {
465
+ $this->mp = new MP(
466
+ WC_WooMercadoPago_Module::get_module_version(),
467
+ $this->settings['client_id'],
468
+ $this->settings['client_secret']
469
+ );
470
+ } else {
471
+ $this->mp = null;
472
+ }
473
+
474
+ // analytics
475
+ if ( $this->mp != null ) {
476
+ $infra_data = WC_WooMercadoPago_Module::get_common_settings();
477
+ $infra_data['checkout_basic'] = ( $this->settings['enabled'] == 'yes' ? 'true' : 'false' );
478
+ $infra_data['mercado_envios'] = 'false';
479
+ $infra_data['two_cards'] = ( $this->payment_split_mode == 'active' ? 'true' : 'false' );
480
+ $response = $this->mp->analytics_save_settings( $infra_data );
481
+ if ( 'yes' == $this->debug) {
482
+ $this->log->add(
483
+ $this->id,
484
+ '[custom_process_admin_options] - analytics response: ' .
485
+ json_encode( $response, JSON_PRETTY_PRINT )
486
+ );
487
+ }
488
+ }
489
+
490
+ // two cards mode
491
+ if ( $this->mp != null ) {
492
+ $response = $this->mp->set_two_cards_mode( $this->payment_split_mode );
493
+ }
494
+
495
+ return update_option(
496
+ $this->get_option_key(),
497
+ apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings )
498
+ );
499
+ }
500
+
501
+ /**
502
+ * Handles the manual order refunding in server-side.
503
+ */
504
+ public function process_refund_order_meta_box_actions( $order ) {
505
+
506
+ if ( get_post_meta( $order->id, '_used_gateway', true ) != 'WC_WooMercadoPago_Gateway' )
507
+ return;
508
+
509
+ $payments = get_post_meta(
510
+ $order->id,
511
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
512
+ true
513
+ );
514
+
515
+ if ( 'yes' == $this->debug ) {
516
+ $this->log->add(
517
+ $this->id,
518
+ '[process_refund_order_meta_box_actions] - refunding payments for ' . $payments
519
+ );
520
+ }
521
+
522
+ if ( $this->mp != null && ! empty( $payments ) ) {
523
+ $payment_ids = explode( ', ', $payments );
524
+ foreach ( $payment_ids as $p_id ) {
525
+ $response = $this->mp->refund_payment( $p_id );
526
+ $message = $response['response']['message'];
527
+ $status = $response['status'];
528
+ if ( 'yes' == $this->debug ) {
529
+ $this->log->add(
530
+ $this->id,
531
+ '[process_refund_order_meta_box_actions] - refund payment of id ' . $p_id .
532
+ ' => ' . ( $status >= 200 && $status < 300 ? 'SUCCESS' : 'FAIL - ' . $message )
533
+ );
534
+ }
535
+ }
536
+ } else {
537
+ if ( 'yes' == $this->debug ) {
538
+ $this->log->add(
539
+ $this->id,
540
+ '[process_refund_order_meta_box_actions] - no payments or credentials invalid'
541
+ );
542
+ }
543
+ }
544
+
545
+ }
546
+
547
+ /**
548
+ * Handles the manual order cancellation in server-side.
549
+ */
550
+ public function process_cancel_order_meta_box_actions( $order ) {
551
+
552
+ if ( get_post_meta( $order->id, '_used_gateway', true ) != 'WC_WooMercadoPago_Gateway' )
553
+ return;
554
+
555
+ $payments = get_post_meta(
556
+ $order->id,
557
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
558
+ true
559
+ );
560
+
561
+ if ( 'yes' == $this->debug ) {
562
+ $this->log->add(
563
+ $this->id,
564
+ '[process_cancel_order_meta_box_actions] - cancelling payments for ' . $payments
565
+ );
566
+ }
567
+
568
+ if ( $this->mp != null && ! empty( $payments ) ) {
569
+ $payment_ids = explode( ', ', $payments );
570
+ foreach ( $payment_ids as $p_id ) {
571
+ $response = $this->mp->cancel_payment( $p_id );
572
+ $message = $response['response']['message'];
573
+ $status = $response['status'];
574
+ if ( 'yes' == $this->debug ) {
575
+ $this->log->add(
576
+ $this->id,
577
+ '[process_cancel_order_meta_box_actions] - cancel payment of id ' . $p_id .
578
+ ' => ' . ( $status >= 200 && $status < 300 ? 'SUCCESS' : 'FAIL - ' . $message )
579
+ );
580
+ }
581
+ }
582
+ } else {
583
+ if ( 'yes' == $this->debug ) {
584
+ $this->log->add(
585
+ $this->id,
586
+ '[process_cancel_order_meta_box_actions] - no payments or credentials invalid'
587
+ );
588
+ }
589
+ }
590
+
591
  }
592
+
593
  /*
594
  * ========================================================================
595
+ * CHECKOUT BUSINESS RULES (CLIENT SIDE)
596
  * ========================================================================
597
  */
598
+
599
+ public function payment_fields() {
600
+ // basic checkout
601
+ if ( $description = $this->get_description() ) {
602
+ echo wpautop(wptexturize( $description ) );
603
+ }
604
+ if ( $this->supports( 'default_credit_card_form' ) ) {
605
+ $this->credit_card_form();
606
+ }
607
+ }
608
+
609
+ public function add_checkout_script() {
610
+
611
+ $w = WC_WooMercadoPago_Module::woocommerce_instance();
612
+ $logged_user_email = null;
613
+ $payments = array();
614
+ $gateways = WC()->payment_gateways->get_available_payment_gateways();
615
+ foreach ( $gateways as $g ) {
616
+ $payments[] = $g->id;
617
+ }
618
+ $payments = str_replace( '-', '_', implode( ', ', $payments ) );
619
+
620
+ if ( wp_get_current_user()->ID != 0 ) {
621
+ $logged_user_email = wp_get_current_user()->user_email;
622
+ }
623
+
624
+ ?>
625
+ <script src="https://secure.mlstatic.com/modules/javascript/analytics.js"></script>
626
+ <script type="text/javascript">
627
+ var MA = ModuleAnalytics;
628
+ MA.setToken( '<?php echo $this->get_option( 'client_id' ); ?>' );
629
+ MA.setPlatform( 'WooCommerce' );
630
+ MA.setPlatformVersion( '<?php echo $w->version; ?>' );
631
+ MA.setModuleVersion( '<?php echo WC_WooMercadoPago_Module::VERSION; ?>' );
632
+ MA.setPayerEmail( '<?php echo ( $logged_user_email != null ? $logged_user_email : "" ); ?>' );
633
+ MA.setUserLogged( <?php echo ( empty( $logged_user_email ) ? 0 : 1 ); ?> );
634
+ MA.setInstalledModules( '<?php echo $payments; ?>' );
635
+ MA.post();
636
+ </script>
637
+ <?php
638
+
639
+ }
640
+
641
+ public function update_checkout_status( $order_id ) {
642
+
643
+ if ( get_post_meta( $order_id, '_used_gateway', true ) != 'WC_WooMercadoPago_Gateway' )
644
+ return;
645
+
646
+ if ( 'yes' == $this->debug ) {
647
+ $this->log->add(
648
+ $this->id,
649
+ '[update_checkout_status] - updating checkout statuses ' . $order_id
650
+ );
651
+ }
652
+
653
+ echo '<script src="https://secure.mlstatic.com/modules/javascript/analytics.js"></script>
654
+ <script type="text/javascript">
655
+ var MA = ModuleAnalytics;
656
+ MA.setToken( ' . $this->get_option( 'client_id' ) . ' );
657
+ MA.setPaymentType("basic");
658
+ MA.setCheckoutType("basic");
659
+ MA.put();
660
+ </script>';
661
+
662
+ }
663
+
664
+ /**
665
+ * Summary: Handle the payment and processing the order.
666
+ * Description: First step occurs when the customer selects Mercado Pago and proceed to checkout.
667
+ * This method verify which integration method was selected and makes the build for the checkout
668
+ * URL.
669
+ * @return an array containing the result of the processment and the URL to redirect.
670
+ */
671
+ public function process_payment( $order_id ) {
672
+
673
+ update_post_meta( $order_id, '_used_gateway', 'WC_WooMercadoPago_Gateway' );
674
+
675
+ $order = new WC_Order( $order_id );
676
+
677
+ if ( 'redirect' == $this->method ) {
678
+ // The checkout is made by redirecting customer to Mercado Pago.
679
+ if ( 'yes' == $this->debug) {
680
+ $this->log->add(
681
+ $this->id,
682
+ '[process_payment] - customer being redirected to Mercado Pago.'
683
+ );
684
  }
685
  return array(
686
  'result' => 'success',
687
+ 'redirect' => $this->create_url( $order )
688
  );
689
+ } elseif ( 'modal' == $this->method || 'iframe' == $this->method ) {
690
+ // The checkout is made by customizing the view, either by iframe or showing a modal.
691
+ if ( 'yes' == $this->debug ) {
692
+ $this->log->add(
693
+ $this->id,
694
+ '[process_payment] - preparing to render Mercado Pago checkout view.'
695
+ );
696
  }
697
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
698
  return array(
699
  'result' => 'success',
700
+ 'redirect' => $order->get_checkout_payment_url( true )
701
  );
702
  } else {
703
  return array(
704
  'result' => 'success',
705
+ 'redirect' => add_query_arg(
706
+ 'order',
707
+ $order->id,
708
+ add_query_arg(
709
+ 'key',
710
+ $order->order_key,
711
+ get_permalink( woocommerce_get_page_id( 'pay' ) )
712
+ )
713
+ )
714
  );
715
  }
716
  }
717
  }
718
 
719
+ /**
720
+ * Summary: Show the custom renderization for the checkout.
721
+ * Description: Order page and this generates the form that shows the pay button. This step
722
+ * generates the form to proceed to checkout.
723
+ * @return the html to be rendered.
724
+ */
725
+ public function receipt_page( $order ) {
726
+ echo $this->render_order_form( $order );
727
  }
728
+
729
  // --------------------------------------------------
730
+
731
+ public function render_order_form( $order_id ) {
732
+
733
+ $order = new WC_Order( $order_id );
734
+ $url = $this->create_url( $order );
735
+
736
+ if ( $url ) {
737
  $html =
738
+ '<img width="468" height="60" src="' . $this->country_configs['checkout_banner'] . '">';
739
+ if ( 'modal' == $this->method ) {
740
+ // The checkout is made by displaying a modal to the customer.
741
+ if ( 'yes' == $this->debug ) {
742
+ $this->log->add(
743
+ $this->id,
744
+ '[render_order_form] - rendering Mercado Pago lightbox (modal window).'
745
+ );
746
  }
747
  $html .= '<p></p><p>' . wordwrap(
748
+ __( 'Thank you for your order. Please, proceed with your payment clicking in the bellow button.', 'woocommerce-mercadopago-module' ),
749
+ 60, '<br>'
750
+ ) . '</p>';
751
  $html .=
752
+ '<a id="submit-payment" href="' . $url .
753
+ '" name="MP-Checkout" class="button alt" mp-mode="modal">' .
754
+ __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' ) .
755
  '</a> ';
756
  $html .=
757
+ '<a class="button cancel" href="' . esc_url( $order->get_cancel_order_url() ) . '">' .
758
+ __( 'Cancel order &amp; Clear cart', 'woocommerce-mercadopago-module' ) .
759
  '</a><style type="text/css">#MP-Checkout-dialog #MP-Checkout-IFrame { bottom: -28px !important; height: 590px !important; }</style>';
760
+ // Includes the javascript of lightbox.
761
  $html .=
762
+ '<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/":"https://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>';
763
  } else {
764
+ // The checkout is made by rendering Mercado Pago form within a iframe.
765
+ if ( 'yes' == $this->debug ) {
766
+ $this->log->add(
767
+ $this->id,
768
+ '[render_order_form] - embedding Mercado Pago iframe.'
769
+ );
770
  }
771
  $html .= '<p></p><p>' . wordwrap(
772
+ __( 'Thank you for your order. Proceed with your payment completing the following information.', 'woocommerce-mercadopago-module' ),
773
+ 60, '<br>'
774
+ ) . '</p>';
775
+ $html .= '<iframe src="' . $url . '" name="MP-Checkout" ' .
776
+ 'width="' . ( is_numeric( (int) $this->iframe_width ) ? $this->iframe_width : 640 ) .
777
+ '" ' .
778
+ 'height="' . ( is_numeric( (int) $this->iframe_height ) ? $this->iframe_height : 800 ) .
779
+ '" ' .
780
  'frameborder="0" scrolling="no" id="checkout_mercadopago"></iframe>';
781
  }
782
  return $html;
783
  } else {
784
+ // Reaching at this point means that the URL could not be build by some reason.
785
+ if ( 'yes' == $this->debug ) {
786
+ $this->log->add(
787
+ $this->id,
788
+ '[render_order_form] - unable to build Mercado Pago checkout URL.'
789
+ );
790
+ }
791
+ $html = '<p>' .
792
+ __( 'An error occurred when proccessing your payment. Please try again or contact us for assistence.', 'woocommerce-mercadopago-module' ) .
793
+ '</p>';
794
+ $html .= '<a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
795
+ __( 'Click to try again', 'woocommerce-mercadopago-module' ) .
796
  '</a>';
797
  return $html;
798
  }
799
  }
800
+
801
+ /**
802
+ * Summary: Build Mercado Pago preference.
803
+ * Description: Create Mercado Pago preference and get init_point URL based in the order options
804
+ * from the cart.
805
+ * @return the preference object.
806
+ */
807
+ public function build_payment_preference( $order ) {
808
+
809
+ // A string to register items (workaround to deal with API problem that shows only first item)
810
+ $list_of_items = array();
811
+
812
+ // Here we build the array that contains ordered items from customer cart
813
  $items = array();
814
+ if ( sizeof( $order->get_items() ) > 0 ) {
815
+ foreach ( $order->get_items() as $item ) {
816
+ if ( $item['qty'] ) {
817
+ $product = new WC_product( $item['product_id'] );
818
+ array_push( $list_of_items, $product->post->post_title . ' x ' . $item['qty'] );
819
+ array_push( $items, array(
820
  'id' => $item['product_id'],
821
+ 'title' => ( $product->post->post_title . ' x ' . $item['qty'] ),
822
+ 'description' => sanitize_file_name(
823
  // This handles description width limit of Mercado Pago.
824
+ ( strlen( $product->post->post_content ) > 230 ?
825
+ substr( $product->post->post_content, 0, 230 ) . '...' :
826
+ $product->post->post_content )
827
+ ),
828
+ 'picture_url' => ( sizeof( $order->get_items() ) > 1 ?
829
+ plugins_url( 'images/cart.png', plugin_dir_path( __FILE__ ) ) :
830
+ wp_get_attachment_url( $product->get_image_id() )
831
  ),
 
832
  'category_id' => $this->store_categories_id[$this->category_id],
833
  'quantity' => 1,
834
+ 'unit_price' => ( ( (float) $item['line_total'] + (float) $item['line_tax'] ) ) *
835
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ),
836
+ 'currency_id' => $this->country_configs['currency']
837
+ ) );
838
  }
839
  }
840
+ // shipment cost as an item (workaround to prevent API showing shipment setup again).
841
+ $ship_cost = ( (float) $order->get_total_shipping() + (float) $order->get_shipping_tax() ) *
842
+ ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 );
843
+ if ( $ship_cost > 0 ) {
844
+ array_push(
845
+ $list_of_items,
846
+ __( 'Shipping service used by store', 'woocommerce-mercadopago-module' )
847
+ );
848
+ array_push( $items, array(
849
+ 'id' => 2147483647,
850
+ 'title' => implode( ', ', $list_of_items ),
851
+ 'description' => implode( ', ', $list_of_items ),
852
+ 'category_id' => $this->store_categories_id[$this->category_id],
853
+ 'quantity' => 1,
854
+ 'unit_price' => $ship_cost,
855
+ 'currency_id' => $this->country_configs['currency']
856
+ ) );
 
 
 
 
 
 
 
 
857
  }
858
+ // String of item names (workaround to deal with API problem that shows only first item).
859
+ $items[0]['title'] = implode( ', ', $list_of_items );
860
+ }
861
+
862
+ // Find excluded methods. If 'n/d' is in array, we should disconsider the remaining values.
863
+ $excluded_payment_methods = array();
864
+ if ( is_array( $this->ex_payments ) || is_object( $this->ex_payments ) ) {
865
+ foreach ( $this->ex_payments as $excluded ) {
866
+ // if 'n/d' is selected, we just not add any items to the array.
867
+ if ( $excluded == 0 )
868
+ break;
869
+ array_push( $excluded_payment_methods, array(
870
+ 'id' => $this->payment_methods[$excluded]
871
+ ) );
872
+ }
873
+ }
874
+ $payment_methods = array(
875
+ 'installments' => ( is_numeric( (int) $this->installments) ? (int) $this->installments : 24 ),
876
+ 'default_installments' => 1
877
+ );
878
+ // Set excluded payment methods.
879
+ if ( count( $excluded_payment_methods ) > 0 ) {
880
+ $payment_methods['excluded_payment_methods'] = $excluded_payment_methods;
881
+ }
882
+
883
+ // Create Mercado Pago preference.
884
  $preferences = array(
885
  'items' => $items,
886
+ // Payer should be filled with billing info as orders can be made with non-logged users.
887
  'payer' => array(
888
  'name' => $order->billing_first_name,
889
  'surname' => $order->billing_last_name,
900
  )
901
  ),
902
  'back_urls' => array(
903
+ 'success' => ( empty( $this->success_url ) ?
904
+ WC_WooMercadoPago_Module::workaround_ampersand_bug(
905
+ esc_url( $this->get_return_url( $order) )
906
+ ) : $this->success_url
907
+ ),
908
+ 'failure' => ( empty( $this->failure_url ) ?
909
+ WC_WooMercadoPago_Module::workaround_ampersand_bug(
910
+ str_replace( '&amp;', '&', $order->get_cancel_order_url() )
911
+ ) : $this->failure_url
912
+ ),
913
+ 'pending' => ( empty( $this->pending_url ) ?
914
+ WC_WooMercadoPago_Module::workaround_ampersand_bug(
915
+ esc_url( $this->get_return_url( $order) )
916
+ ) : $this->pending_url
917
+ )
918
+ ),
919
+ //'marketplace' =>
920
+ //'marketplace_fee' =>
921
+ 'shipments' => array(
922
+ //'cost' =>
923
+ //'mode' =>
924
+ 'receiver_address' => array(
925
+ 'zip_code' => $order->shipping_postcode,
926
+ //'street_number' =>
927
+ 'street_name' => $order->shipping_address_1 . ' ' .
928
+ $order->shipping_city . ' ' .
929
+ $order->shipping_state . ' ' .
930
+ $order->shipping_country,
931
+ //'floor' =>
932
+ 'apartment' => $order->shipping_address_2
933
+ )
934
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
935
  'payment_methods' => $payment_methods,
936
+ //'notification_url' =>
937
  'external_reference' => $this->invoice_prefix . $order->id
938
+ //'additional_info' =>
939
+ //'expires' =>
940
+ //'expiration_date_from' =>
941
+ //'expiration_date_to' =>
942
  );
943
+
944
+ // Do not set IPN url if it is a localhost.
945
+ if ( ! strrpos( $this->domain, 'localhost' ) ) {
946
+ $preferences['notification_url'] = WC_WooMercadoPago_Module::workaround_ampersand_bug(
947
+ WC()->api_request_url( 'WC_WooMercadoPago_Gateway' )
948
+ );
949
+ }
950
+
951
+ // Set sponsor ID.
952
+ if ( ! $this->is_test_user ) {
953
+ $preferences['sponsor_id'] = $this->country_configs['sponsor_id'];
954
  }
955
+
956
  // Auto return options.
957
+ if ( 'yes' == $this->auto_return ) {
958
+ $preferences['auto_return'] = 'approved';
959
  }
960
+
961
+ if ( 'yes' == $this->debug ) {
962
+ $this->log->add(
963
+ $this->id,
964
+ '[build_payment_preference] - preference created with following structure: ' .
965
+ json_encode( $preferences, JSON_PRETTY_PRINT) );
966
  }
967
+
968
+ $preferences = apply_filters(
969
+ 'woocommerce_mercadopago_module_preferences', $preferences, $order
970
+ );
971
+
972
  return $preferences;
973
  }
974
+
975
  // --------------------------------------------------
976
+
977
+ protected function create_url( $order ) {
978
+
979
  // Creates the order parameters by checking the cart configuration.
980
+ $preferences = $this->build_payment_preference( $order );
981
+
982
  // Checks for sandbox mode.
983
+ if ( 'yes' == $this->sandbox ) {
984
+ $this->mp->sandbox_mode( true);
985
+ if ( 'yes' == $this->debug ) {
986
+ $this->log->add(
987
+ $this->id,
988
+ '[create_url] - sandbox mode is enabled'
989
+ );
990
  }
991
  } else {
992
+ $this->mp->sandbox_mode( false );
993
  }
994
+
995
  // Create order preferences with Mercado Pago API request.
996
  try {
997
+ $checkout_info = $this->mp->create_preference(json_encode( $preferences ) );
998
+ if ( $checkout_info['status'] < 200 || $checkout_info['status'] >= 300 ) {
999
+ // Mercado Pago trowed an error.
1000
+ if ( 'yes' == $this->debug ) {
1001
+ $this->log->add(
1002
+ $this->id,
1003
+ '[create_url] - mercado pago gave error, payment creation failed with error: ' .
1004
+ $checkout_info['response']['status'] );
1005
+ }
1006
+ return false;
1007
+ } elseif ( is_wp_error( $checkout_info ) ) {
1008
+ // WordPress throwed an error.
1009
+ if ( 'yes' == $this->debug ) {
1010
+ $this->log->add(
1011
+ $this->id,
1012
+ '[create_url] - wordpress gave error, payment creation failed with error: ' .
1013
+ $checkout_info['response']['status'] );
1014
  }
1015
  return false;
1016
  } else {
1017
+ // Obtain the URL.
1018
+ if ( 'yes' == $this->debug ) {
1019
+ $this->log->add(
1020
+ $this->id,
1021
+ '[create_url] - payment link generated with success from mercado pago, with structure as follow: ' .
1022
+ json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
1023
  }
1024
+ if ( 'yes' == $this->sandbox) {
1025
  return $checkout_info['response']['sandbox_init_point'];
1026
  } else {
1027
  return $checkout_info['response']['init_point'];
1028
  }
1029
  }
1030
+ } catch ( MercadoPagoException $e ) {
1031
+ // Something went wrong with the payment creation.
1032
+ if ( 'yes' == $this->debug ) {
1033
+ $this->log->add(
1034
+ $this->id,
1035
+ '[create_url] - payment creation failed with exception: ' .
1036
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
1037
+ );
1038
  }
1039
  return false;
1040
  }
1041
  }
1042
+
1043
  /*
1044
  * ========================================================================
1045
+ * AUXILIARY AND FEEDBACK METHODS (SERVER SIDE)
1046
  * ========================================================================
1047
  */
1048
 
1049
+ /**
1050
+ * Summary: Check if we have valid credentials.
1051
+ * Description: Check if we have valid credentials.
1052
+ * @return boolean true/false depending on the validation result.
1053
+ */
1054
+ public function validate_credentials() {
1055
+
1056
+ if ( empty( $this->client_id ) || empty( $this->client_secret ) )
1057
+ return false;
1058
+
1059
+ try {
1060
+
1061
+ $this->mp = new MP(
1062
+ WC_WooMercadoPago_Module::get_module_version(),
1063
+ $this->client_id,
1064
+ $this->client_secret
1065
+ );
1066
+ $access_token = $this->mp->get_access_token();
1067
+ $get_request = $this->mp->get( '/users/me?access_token=' . $access_token );
1068
+
1069
+ if ( isset( $get_request['response']['site_id'] ) ) {
1070
+
1071
+ $this->is_test_user = in_array( 'test_user', $get_request['response']['tags'] );
1072
+ $this->site_id = $get_request['response']['site_id'];
1073
+ $this->collector_id = $get_request['response']['id'];
1074
+ $this->country_configs = WC_WooMercadoPago_Module::get_country_config( $this->site_id );
1075
+ $this->payment_split_mode = $this->mp->check_two_cards();
1076
+
1077
+ $payments = $this->mp->get( '/v1/payment_methods/?access_token=' . $access_token );
1078
+ array_push( $this->payment_methods, 'n/d' );
1079
+ foreach ( $payments['response'] as $payment ) {
1080
+ array_push( $this->payment_methods, str_replace( '_', ' ', $payment['id'] ) );
1081
+ }
1082
+
1083
+ // Check for auto converstion of currency (only if it is enabled).
1084
+ $this->currency_ratio = -1;
1085
+ if ( $this->currency_conversion == 'yes' ) {
1086
+ $this->currency_ratio = WC_WooMercadoPago_Module::get_conversion_rate(
1087
+ $this->country_configs['currency']
1088
+ );
1089
+ }
1090
+
1091
  return true;
1092
+
1093
+ } else {
1094
+ $this->mp = null;
1095
  return false;
1096
  }
1097
+
1098
+ } catch ( MercadoPagoException $e ) {
1099
+ if ( 'yes' == $this->debug) {
1100
+ $this->log->add(
1101
+ $this->id,
1102
+ '[validate_credentials] - while validating credentials, got exception: ' .
1103
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
1104
+ );
1105
+ }
1106
+ $this->mp = null;
1107
+ return false;
1108
  }
1109
+
1110
  return false;
1111
+
1112
+ }
1113
+
1114
+ // Build the string representing the path to the log file.
1115
+ protected function build_log_path_string() {
1116
+ return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
1117
+ esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
1118
+ __( 'WooCommerce &gt; System Status &gt; Logs', 'woocommerce-mercadopago-module' ) . '</a>';
1119
  }
1120
+
1121
  // Return boolean indicating if currency is supported.
1122
+ protected function is_supported_currency() {
1123
+ return get_woocommerce_currency() == $this->country_configs['currency'];
1124
  }
1125
 
1126
  // Called automatically by WooCommerce, verify if Module is available to use.
1127
  public function is_available() {
1128
+ $available = ( 'yes' == $this->settings['enabled'] ) &&
1129
+ ! empty( $this->client_id ) &&
1130
+ ! empty( $this->client_secret );
 
 
1131
  return $available;
1132
  }
1133
+
1134
  // Fix css for Mercado Pago in specific cases.
1135
  public function css() {
1136
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
1137
+ $page_id = wc_get_page_id( 'checkout' );
1138
  } else {
1139
+ $page_id = woocommerce_get_page_id( 'checkout' );
1140
  }
1141
+ if ( is_page( $page_id ) ) {
1142
+ echo '<style type="text/css">#MP-Checkout-dialog { z-index: 9999 !important; }</style>' .
1143
+ PHP_EOL;
1144
  }
1145
  }
1146
+
1147
  // Get the URL to admin page.
1148
  protected function admin_url() {
1149
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
1150
  return admin_url(
1151
  'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopago_gateway'
1152
  );
1157
  }
1158
 
1159
  // Notify that Client_id and/or Client_secret are not valid.
1160
+ public function client_id_or_secret_missing_message() {
 
 
 
 
 
 
 
 
 
 
 
1161
  echo '<div class="error"><p><strong>' .
1162
+ __( 'Basic Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
1163
  '</strong>: ' .
1164
+ __( 'Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured.', 'woocommerce-mercadopago-module' ) .
 
 
1165
  '</p></div>';
1166
  }
1167
+
 
 
 
 
 
 
 
 
 
 
 
 
1168
  /*
1169
  * ========================================================================
1170
+ * IPN MECHANICS (SERVER SIDE)
1171
  * ========================================================================
1172
  */
1173
+
1174
+ /**
1175
+ * Summary: This call checks any incoming notifications from Mercado Pago server.
1176
+ * Description: This call checks any incoming notifications from Mercado Pago server.
1177
+ */
1178
  public function check_ipn_response() {
 
 
 
1179
  @ob_clean();
1180
+ if ( 'yes' == $this->debug ) {
1181
+ $this->log->add(
1182
+ $this->id,
1183
+ '[check_ipn_response] - received _get content: ' .
1184
+ json_encode( $_GET, JSON_PRETTY_PRINT )
1185
+ );
1186
+ }
1187
+ $data = $this->check_ipn_request_is_valid( $_GET );
1188
+ if ( $data ) {
1189
+ header( 'HTTP/1.1 200 OK' );
1190
+ do_action( 'valid_mercadopago_ipn_request', $data );
 
1191
  }
1192
  }
1193
+
1194
+ /**
1195
+ * Summary: Get received data from IPN and checks if its a merchant_order or a payment.
1196
+ * Description: If we have these information, we return data to be processed by
1197
+ * successful_request function.
1198
+ * @return boolean indicating if it was successfuly processed.
1199
+ */
1200
+ public function check_ipn_request_is_valid( $data ) {
1201
+
1202
+ if ( ! isset( $data['id'] ) || ! isset( $data['topic'] ) ) {
1203
+ if ( 'yes' == $this->debug ) {
1204
+ $this->log->add(
1205
+ $this->id,
1206
+ '[check_ipn_request_is_valid] - data_id or type not set: ' .
1207
+ json_encode( $data, JSON_PRETTY_PRINT )
1208
+ );
1209
+ }
1210
+ // at least, check if its a v0 ipn.
1211
+ if ( ! isset( $data['data_id'] ) || ! isset( $data['type'] ) ) {
1212
+ if ( 'yes' == $this->debug ) {
1213
+ $this->log->add(
1214
+ $this->id,
1215
+ '[check_ipn_request_is_valid] - mercado pago request failure: ' .
1216
+ json_encode( $_GET, JSON_PRETTY_PRINT )
1217
+ );
1218
+ }
1219
+ wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
1220
+ } else {
1221
+ header( 'HTTP/1.1 200 OK' );
1222
  }
1223
+ // No ID? No process!
1224
+ return false;
1225
  }
1226
+
1227
+ if ( 'yes' == $this->sandbox ) {
1228
+ $this->mp->sandbox_mode( true );
 
1229
  } else {
1230
+ $this->mp->sandbox_mode( false );
1231
+ }
1232
+
1233
+ try {
1234
+ // Get the merchant_order reported by the IPN.
1235
+ $params = array( 'access_token' => $this->mp->get_access_token() );
1236
+ if ( $data['topic'] == 'merchant_order' ) {
1237
+ $merchant_order_info = $this->mp->get( '/merchant_orders/' . $_GET['id'], $params, false );
1238
+ // If the payment's transaction amount is equal (or bigger) than the merchant order's
1239
+ // amount you can release your items.
1240
+ if ( ! is_wp_error( $merchant_order_info ) && ( $merchant_order_info['status'] == 200 ) ) {
1241
+ $payments = $merchant_order_info['response']['payments'];
1242
+ // check if we have more than one payment method.
1243
+ if ( sizeof( $payments ) >= 1 ) {
1244
+ // We have payments...
1245
+ return $merchant_order_info['response'];
1246
+ } else {
1247
+ // We have no payments?
1248
+ if ( 'yes' == $this->debug ) {
1249
+ $this->log->add(
1250
+ $this->id,
1251
+ '[check_ipn_request_is_valid] - order received but has no payment'
1252
+ );
1253
  }
1254
+ return false;
1255
+ }
 
1256
  } else {
1257
+ if ( 'yes' == $this->debug ) {
1258
+ $this->log->add(
1259
+ $this->id,
1260
+ '[check_ipn_request_is_valid] - got status not equal 200 or some error'
1261
+ );
1262
  }
1263
  return false;
1264
  }
1265
  }
1266
+ } catch ( MercadoPagoException $e ) {
1267
+ if ( 'yes' == $this->debug ) {
1268
+ $this->log->add(
1269
+ $this->id,
1270
+ '[check_ipn_request_is_valid] - while processing ipn, got exception: ' .
1271
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
1272
+ );
1273
  }
1274
  return false;
1275
  }
1276
  return true;
1277
  }
1278
+
1279
+ /**
1280
+ * Summary: Properly handles each case of notification, based in payment status.
1281
+ * Description: Properly handles each case of notification, based in payment status.
1282
+ */
1283
+ public function successful_request( $data ) {
1284
+
1285
+ if ( 'yes' == $this->debug ) {
1286
+ $this->log->add(
1287
+ $this->id,
1288
+ '[successful_request] - starting to process ipn update...'
1289
+ );
1290
  }
1291
+
1292
  $order_key = $data['external_reference'];
1293
+ if ( ! empty( $order_key ) ) {
1294
+ $order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
1295
+ $order = new WC_Order( $order_id );
1296
+ // Checks whether the invoice number matches the order, if true processes the payment.
1297
+ if ( $order->id === $order_id ) {
1298
  if ( 'yes' == $this->debug ) {
1299
+ $this->log->add(
1300
+ $this->id,
1301
+ '[successful_request] - got order with ID ' . $order->id . ' and status ' .
1302
+ $data['payments'][0]['status']
 
 
 
 
1303
  );
1304
  }
1305
+ update_post_meta( $order->id, '_used_gateway', 'WC_WooMercadoPago_Gateway' );
1306
+ // Order details.
1307
+ if ( ! empty( $data['payer']['email'] ) ) {
1308
  update_post_meta(
1309
  $order_id,
1310
+ __( 'Payer email', 'woocommerce-mercadopago-module' ),
1311
  $data['payer']['email']
1312
  );
1313
  }
1314
+ if ( ! empty( $data['payment_type'] ) ) {
1315
  update_post_meta(
1316
  $order_id,
1317
+ __( 'Payment type', 'woocommerce-mercadopago-module' ),
1318
  $data['payment_type']
1319
  );
1320
  }
1321
+ if ( ! empty( $data['payments'] ) ) {
1322
  $payment_ids = array();
1323
+ foreach ( $data['payments'] as $payment ) {
1324
  $payment_ids[] = $payment['id'];
1325
  }
1326
+ if ( sizeof( $payment_ids ) > 0 ) {
1327
  update_post_meta(
1328
  $order_id,
1329
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
1330
+ implode( ', ', $payment_ids )
1331
  );
1332
  }
1333
  }
1334
+ // Here, we process the status...
1335
+ $status = 'pending';
1336
+ if ( sizeof( $data['payments'] ) == 1 ) {
1337
+ // if there's only one payment, then we get its status.
1338
+ $status = $data['payments'][0]['status'];
1339
+ } elseif ( sizeof( $data['payments'] ) > 1 ) {
1340
+ // otherwise, we check payment sum.
1341
+ $total_paid = 0.00;
1342
+ foreach ( $data['payments'] as $payment ) {
1343
+ if ( $payment['status'] === 'approved' ) {
1344
+ $total_paid = $total_paid + (float) $payment['total_paid_amount'];
1345
+ }
1346
+ }
1347
+ $total = $data['shipping_cost'] + $data['total_amount'];
1348
+ if ( $total_paid >= $total ) {
1349
+ // At this point, the sum of approved payments are above or equal than the total
1350
+ // order amount, so it is approved.
1351
+ $status = 'approved';
1352
+ }
1353
+ }
1354
+ // Switch the status and update in WooCommerce.
1355
+ switch ( $status ) {
1356
  case 'approved':
1357
  $order->add_order_note(
1358
+ 'Mercado Pago: ' .
1359
+ __( 'Payment approved.', 'woocommerce-mercadopago-module' )
1360
  );
1361
  $order->payment_complete();
1362
  break;
1363
  case 'pending':
1364
  $order->add_order_note(
1365
+ 'Mercado Pago: ' .
1366
+ __( 'Customer haven\'t paid yet.', 'woocommerce-mercadopago-module' )
1367
  );
1368
  break;
1369
  case 'in_process':
1370
+ $order->update_status(
1371
+ 'on-hold',
1372
+ 'Mercado Pago: ' .
1373
+ __( 'Payment under review.', 'woocommerce-mercadopago-module' )
1374
  );
1375
  break;
1376
  case 'rejected':
1377
+ $order->update_status(
1378
+ 'failed',
1379
+ 'Mercado Pago: ' .
1380
+ __( 'The payment was refused. The customer can try again.', 'woocommerce-mercadopago-module' )
1381
  );
1382
  break;
1383
  case 'refunded':
1384
  $order->update_status(
1385
  'refunded',
1386
+ 'Mercado Pago: ' .
1387
+ __( 'The payment was refunded to the customer.', 'woocommerce-mercadopago-module' )
1388
  );
1389
  break;
1390
  case 'cancelled':
1391
  $order->update_status(
1392
  'cancelled',
1393
+ 'Mercado Pago: ' .
1394
+ __( 'The payment was cancelled.', 'woocommerce-mercadopago-module' )
1395
  );
1396
  break;
1397
  case 'in_mediation':
1398
  $order->add_order_note(
1399
+ 'Mercado Pago: ' .
1400
+ __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
1401
  );
1402
  break;
1403
  case 'charged-back':
1404
  $order->add_order_note(
1405
+ 'Mercado Pago: ' .
1406
+ __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
1407
  );
1408
+ break;
1409
  default:
1410
  break;
1411
  }
1412
  }
1413
  }
1414
  }
1415
+
1416
  }
mercadopago/mercadopago-ticket-gateway.php ADDED
@@ -0,0 +1,1348 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Part of Woo Mercado Pago Module
5
+ * Author - Mercado Pago
6
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
7
+ * Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
8
+ * License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
9
+ */
10
+
11
+ // This include Mercado Pago library SDK
12
+ require_once 'sdk/lib/mercadopago.php';
13
+
14
+ /**
15
+ * Summary: Extending from WooCommerce Payment Gateway class.
16
+ * Description: This class implements Mercado Pago ticket payment method.
17
+ * @since 2.0.0
18
+ */
19
+ class WC_WooMercadoPagoTicket_Gateway extends WC_Payment_Gateway {
20
+
21
+ public function __construct( $is_instance = false ) {
22
+
23
+ // Mercado Pago fields.
24
+ $this->mp = null;
25
+ $this->site_id = null;
26
+ $this->collector_id = null;
27
+ $this->currency_ratio = -1;
28
+ $this->is_test_user = false;
29
+
30
+ // Auxiliary fields.
31
+ $this->currency_message = '';
32
+ $this->payment_methods = array();
33
+ $this->country_configs = array();
34
+ $this->store_categories_id = array();
35
+ $this->store_categories_description = array();
36
+
37
+ // WooCommerce fields.
38
+ $this->id = 'woocommerce-mercadopago-ticket-module';
39
+ $this->domain = get_site_url() . '/index.php';
40
+ $this->method_title = __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' );
41
+ $this->method_description = '<img width="200" height="52" src="' .
42
+ plugins_url(
43
+ 'images/mplogo.png',
44
+ plugin_dir_path( __FILE__ )
45
+ ) . '"><br><br>' . '<strong>' .
46
+ wordwrap(
47
+ __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ),
48
+ 80, '\n'
49
+ ) . '</strong>';
50
+
51
+ // Fields used in 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->reduce_stock_on_order_gen = $this->get_option( 'reduce_stock_on_order_gen', false );
60
+ $this->debug = $this->get_option( 'debug' );
61
+
62
+ // Logging and debug.
63
+ if ( 'yes' == $this->debug ) {
64
+ if ( class_exists( 'WC_Logger' ) ) {
65
+ $this->log = new WC_Logger();
66
+ } else {
67
+ $this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
68
+ }
69
+ }
70
+
71
+ // Render our configuration page and init/load fields.
72
+ $this->init_form_fields();
73
+ $this->init_settings();
74
+
75
+ // Used by IPN to receive IPN incomings.
76
+ add_action(
77
+ 'woocommerce_api_wc_woomercadopagoticket_gateway',
78
+ array( $this, 'process_http_request' )
79
+ );
80
+ // Used by IPN to process valid incomings.
81
+ add_action(
82
+ 'valid_mercadopagoticket_ipn_request',
83
+ array( $this, 'successful_request' )
84
+ );
85
+ // process the cancel order meta box order action
86
+ add_action(
87
+ 'woocommerce_order_action_cancel_order',
88
+ array( $this, 'process_cancel_order_meta_box_actions' )
89
+ );
90
+ // process the refund order meta box order action
91
+ add_action(
92
+ 'woocommerce_order_action_refund_order',
93
+ array( $this, 'process_refund_order_meta_box_actions' )
94
+ );
95
+ // Used in settings page to hook "save settings" action.
96
+ add_action(
97
+ 'woocommerce_update_options_payment_gateways_' . $this->id,
98
+ array( $this, 'process_admin_options' )
99
+ );
100
+ // Scripts for custom checkout.
101
+ add_action(
102
+ 'wp_enqueue_scripts',
103
+ array( $this, 'ticket_checkout_scripts' )
104
+ );
105
+ // Apply the discounts.
106
+ add_action(
107
+ 'woocommerce_cart_calculate_fees',
108
+ array( $this, 'add_discount_ticket' ), 10
109
+ );
110
+ // Used in settings page to hook "save settings" action.
111
+ add_action(
112
+ 'woocommerce_update_options_payment_gateways_' . $this->id,
113
+ array( $this, 'custom_process_admin_options' )
114
+ );
115
+ // Customizes thank you page.
116
+ add_filter(
117
+ 'woocommerce_thankyou_order_received_text',
118
+ array( $this, 'show_ticket_button' ), 10, 2
119
+ );
120
+
121
+ if ( ! empty( $this->settings['enabled'] ) && $this->settings['enabled'] == 'yes' ) {
122
+ if ( $is_instance ) {
123
+ if ( empty( $this->access_token ) ) {
124
+ // Verify if access token is empty.
125
+ add_action( 'admin_notices', array( $this, 'credentials_missing_message' ) );
126
+ } else {
127
+ // Verify if SSL is supported.
128
+ add_action( 'admin_notices', array( $this, 'check_ssl_absence' ) );
129
+ }
130
+ } else {
131
+ // Scripts for order configuration.
132
+ add_action(
133
+ 'woocommerce_after_checkout_form',
134
+ array( $this, 'add_checkout_script' )
135
+ );
136
+ // Checkout updates.
137
+ add_action(
138
+ 'woocommerce_thankyou',
139
+ array( $this, 'update_checkout_status' )
140
+ );
141
+ }
142
+ }
143
+
144
+ }
145
+
146
+ /**
147
+ * Summary: Initialise Gateway Settings Form Fields.
148
+ * Description: Initialise Gateway settings form fields with a customized page.
149
+ */
150
+ public function init_form_fields() {
151
+
152
+ // If module is disabled, we do not need to load and process the settings page.
153
+ if ( empty( $this->settings['enabled'] ) || 'no' == $this->settings['enabled'] ) {
154
+ $this->form_fields = array(
155
+ 'enabled' => array(
156
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
157
+ 'type' => 'checkbox',
158
+ 'label' => __( 'Enable Ticket Payment Method', 'woocommerce-mercadopago-module' ),
159
+ 'default' => 'no'
160
+ )
161
+ );
162
+ return;
163
+ }
164
+
165
+ $api_secret_locale = sprintf(
166
+ '<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
167
+ '<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
168
+ '<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
169
+ '<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
170
+ '<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a>, ' .
171
+ '<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a> %s ' .
172
+ '<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
173
+ __( 'Argentine', 'woocommerce-mercadopago-module' ),
174
+ __( 'Brazil', 'woocommerce-mercadopago-module' ),
175
+ __( 'Chile', 'woocommerce-mercadopago-module' ),
176
+ __( 'Colombia', 'woocommerce-mercadopago-module' ),
177
+ __( 'Mexico', 'woocommerce-mercadopago-module' ),
178
+ __( 'Peru', 'woocommerce-mercadopago-module' ),
179
+ __( 'or', 'woocommerce-mercadopago-module' ),
180
+ __( 'Venezuela', 'woocommerce-mercadopago-module' )
181
+ );
182
+
183
+ // Trigger API to get payment methods and site_id, also validates access_token.
184
+ if ( $this->validate_credentials() ) {
185
+ // checking the currency
186
+ $this->currency_message = '';
187
+ if ( ! $this->is_supported_currency() && 'yes' == $this->settings['enabled'] ) {
188
+ if ( $this->currency_conversion == 'no' ) {
189
+ $this->currency_ratio = -1;
190
+ $this->currency_message .= WC_WooMercadoPago_Module::build_currency_not_converted_msg(
191
+ $this->country_configs['currency'],
192
+ $this->country_configs['country_name']
193
+ );
194
+ } elseif ( $this->currency_conversion == 'yes' && $this->currency_ratio != -1 ) {
195
+ $this->currency_message .= WC_WooMercadoPago_Module::build_currency_converted_msg(
196
+ $this->country_configs['currency'],
197
+ $this->currency_ratio
198
+ );
199
+ } else {
200
+ $this->currency_ratio = -1;
201
+ $this->currency_message .=
202
+ WC_WooMercadoPago_Module::build_currency_conversion_err_msg(
203
+ $this->country_configs['currency']
204
+ );
205
+ }
206
+ } else {
207
+ $this->currency_ratio = -1;
208
+ }
209
+ $this->credentials_message = WC_WooMercadoPago_Module::build_valid_credentials_msg(
210
+ $this->country_configs['country_name'],
211
+ $this->site_id
212
+ );
213
+ } else {
214
+ $this->credentials_message = WC_WooMercadoPago_Module::build_invalid_credentials_msg();
215
+ }
216
+
217
+ // fill categories (can be handled without credentials).
218
+ $categories = WC_WooMercadoPago_Module::get_categories();
219
+ $this->store_categories_id = $categories['store_categories_id'];
220
+ $this->store_categories_description = $categories['store_categories_description'];
221
+
222
+ // This array draws each UI (text, selector, checkbox, label, etc).
223
+ $this->form_fields = array(
224
+ 'enabled' => array(
225
+ 'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
226
+ 'type' => 'checkbox',
227
+ 'label' => __( 'Enable Ticket Payment Method', 'woocommerce-mercadopago-module' ),
228
+ 'default' => 'no'
229
+ ),
230
+ 'credentials_title' => array(
231
+ 'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
232
+ 'type' => 'title',
233
+ 'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf(
234
+ __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) .
235
+ ' %s.', $api_secret_locale
236
+ )
237
+ ),
238
+ 'access_token' => array(
239
+ 'title' => 'Access token',
240
+ 'type' => 'text',
241
+ 'description' =>
242
+ __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
243
+ 'default' => '',
244
+ 'required' => true
245
+ ),
246
+ 'ipn_url' => array(
247
+ 'title' =>
248
+ __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
249
+ 'type' => 'title',
250
+ 'description' => sprintf(
251
+ __( 'Your IPN URL to receive instant payment notifications is', 'woocommerce-mercadopago-module' ) .
252
+ '<br>%s', '<code>' . WC()->api_request_url( 'WC_WooMercadoPagoTicket_Gateway' ) . '</code>.'
253
+ )
254
+ ),
255
+ 'checkout_options_title' => array(
256
+ 'title' => __( 'Ticket Options', 'woocommerce-mercadopago-module' ),
257
+ 'type' => 'title',
258
+ 'description' => ''
259
+ ),
260
+ 'title' => array(
261
+ 'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
262
+ 'type' => 'text',
263
+ 'description' =>
264
+ __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
265
+ 'default' => __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' )
266
+ ),
267
+ 'description' => array(
268
+ 'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
269
+ 'type' => 'textarea',
270
+ 'description' =>
271
+ __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
272
+ 'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
273
+ ),
274
+ 'coupon_mode' => array(
275
+ 'title' => __( 'Coupons', 'woocommerce-mercadopago-module' ),
276
+ 'type' => 'checkbox',
277
+ 'label' => __( 'Enable coupons of discounts', 'woocommerce-mercadopago-module' ),
278
+ 'default' => 'no',
279
+ 'description' =>
280
+ __( 'If there is a Mercado Pago campaign, allow your store to give discounts to customers.', 'woocommerce-mercadopago-module' )
281
+ ),
282
+ 'category_id' => array(
283
+ 'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
284
+ 'type' => 'select',
285
+ 'description' =>
286
+ __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
287
+ 'options' => $this->store_categories_id
288
+ ),
289
+ 'invoice_prefix' => array(
290
+ 'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
291
+ 'type' => 'text',
292
+ 'description' =>
293
+ __( 'Please, inform a prefix to your store.', 'woocommerce-mercadopago-module' )
294
+ . ' ' .
295
+ __( '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' ),
296
+ 'default' => 'WC-'
297
+ ),
298
+ 'currency_conversion' => array(
299
+ 'title' => __( 'Currency Conversion', 'woocommerce-mercadopago-module' ),
300
+ 'type' => 'checkbox',
301
+ 'label' =>
302
+ __( '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' ),
303
+ 'default' => 'no',
304
+ 'description' => sprintf( '%s', $this->currency_message )
305
+ ),
306
+ 'reduce_stock_on_order_gen' => array(
307
+ 'title' => __( 'Stock Reduce', 'woocommerce-mercadopago-module' ),
308
+ 'type' => 'checkbox',
309
+ 'label' =>
310
+ __( 'Reduce Stock in Order Generation', 'woocommerce-mercadopago-module' ),
311
+ 'default' => 'no',
312
+ 'description' => __( 'Enable this to reduce the stock on order creation. Disable this to reduce <strong>after</strong> the payment approval.', 'woocommerce-mercadopago-module' )
313
+ ),
314
+ 'testing' => array(
315
+ 'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
316
+ 'type' => 'title',
317
+ 'description' => ''
318
+ ),
319
+ 'debug' => array(
320
+ 'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
321
+ 'type' => 'checkbox',
322
+ 'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
323
+ 'default' => 'no',
324
+ 'description' => sprintf(
325
+ __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
326
+ ' %s.', $this->build_log_path_string() . '.<br>' .
327
+ __( 'File location: ', 'woocommerce-mercadopago-module' ) .
328
+ '<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' .
329
+ sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>' )
330
+ )
331
+ );
332
+
333
+ }
334
+
335
+ /**
336
+ * Processes and saves options.
337
+ * If there is an error thrown, will continue to save and validate fields, but will leave the
338
+ * erroring field out.
339
+ * @return bool was anything saved?
340
+ */
341
+ public function custom_process_admin_options() {
342
+ $this->init_settings();
343
+
344
+ $post_data = $this->get_post_data();
345
+
346
+ foreach ( $this->get_form_fields() as $key => $field ) {
347
+ if ( 'title' !== $this->get_field_type( $field ) ) {
348
+ try {
349
+ $this->settings[$key] = $this->get_field_value( $key, $field, $post_data );
350
+ } catch ( Exception $e ) {
351
+ $this->add_error( $e->getMessage() );
352
+ }
353
+ }
354
+ }
355
+
356
+ if ( ! empty( $this->settings['access_token'] ) ) {
357
+ $this->mp = new MP(
358
+ WC_WooMercadoPago_Module::get_module_version(),
359
+ $this->settings['access_token']
360
+ );
361
+ } else {
362
+ $this->mp = null;
363
+ }
364
+
365
+ // analytics
366
+ $infra_data = WC_WooMercadoPago_Module::get_common_settings();
367
+ $infra_data['checkout_custom_ticket'] = ( $this->settings['enabled'] == 'yes' ? 'true' : 'false' );
368
+ $infra_data['checkout_custom_ticket_coupon'] = ( $this->settings['coupon_mode'] == 'yes' ? 'true' : 'false' );
369
+ if ( $this->mp != null ) {
370
+ $response = $this->mp->analytics_save_settings( $infra_data );
371
+ if ( 'yes' == $this->debug) {
372
+ $this->log->add(
373
+ $this->id,
374
+ '[custom_process_admin_options] - analytics info response: ' .
375
+ json_encode( $response, JSON_PRETTY_PRINT )
376
+ );
377
+ }
378
+ }
379
+
380
+ return update_option(
381
+ $this->get_option_key(),
382
+ apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings )
383
+ );
384
+ }
385
+
386
+ /**
387
+ * Handles the manual order refunding in server-side.
388
+ */
389
+ public function process_refund_order_meta_box_actions( $order ) {
390
+
391
+ if ( get_post_meta( $order->id, '_used_gateway', true ) != 'WC_WooMercadoPagoTicket_Gateway' )
392
+ return;
393
+
394
+ $payments = get_post_meta(
395
+ $order->id,
396
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
397
+ true
398
+ );
399
+
400
+ if ( 'yes' == $this->debug ) {
401
+ $this->log->add(
402
+ $this->id,
403
+ '[process_refund_order_meta_box_actions] - refunding payments for ' . $payments
404
+ );
405
+ }
406
+
407
+ if ( $this->mp != null && ! empty( $payments ) ) {
408
+ $payment_ids = explode( ', ', $payments );
409
+ foreach ( $payment_ids as $p_id ) {
410
+ $response = $this->mp->refund_payment( $p_id );
411
+ $message = $response['response']['message'];
412
+ $status = $response['status'];
413
+ if ( 'yes' == $this->debug ) {
414
+ $this->log->add(
415
+ $this->id,
416
+ '[process_refund_order_meta_box_actions] - refund payment of id ' . $p_id .
417
+ ' => ' . ( $status >= 200 && $status < 300 ? 'SUCCESS' : 'FAIL - ' . $message )
418
+ );
419
+ }
420
+ }
421
+ } else {
422
+ if ( 'yes' == $this->debug ) {
423
+ $this->log->add(
424
+ $this->id,
425
+ '[process_refund_order_meta_box_actions] - no payments or credentials invalid'
426
+ );
427
+ }
428
+ }
429
+
430
+ }
431
+
432
+ /**
433
+ * Handles the manual order cancellation in server-side.
434
+ */
435
+ public function process_cancel_order_meta_box_actions( $order ) {
436
+
437
+ if ( get_post_meta( $order->id, '_used_gateway', true ) != 'WC_WooMercadoPagoTicket_Gateway' )
438
+ return;
439
+
440
+ $payments = get_post_meta(
441
+ $order->id,
442
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
443
+ true
444
+ );
445
+
446
+ if ( 'yes' == $this->debug ) {
447
+ $this->log->add(
448
+ $this->id,
449
+ '[process_cancel_order_meta_box_actions] - cancelling payments for ' . $payments
450
+ );
451
+ }
452
+
453
+ if ( $this->mp != null && ! empty( $payments ) ) {
454
+ $payment_ids = explode( ', ', $payments );
455
+ foreach ( $payment_ids as $p_id ) {
456
+ $response = $this->mp->cancel_payment( $p_id );
457
+ $message = $response['response']['message'];
458
+ $status = $response['status'];
459
+ if ( 'yes' == $this->debug ) {
460
+ $this->log->add(
461
+ $this->id,
462
+ '[process_cancel_order_meta_box_actions] - cancel payment of id ' . $p_id .
463
+ ' => ' . ( $status >= 200 && $status < 300 ? 'SUCCESS' : 'FAIL - ' . $message )
464
+ );
465
+ }
466
+ }
467
+ } else {
468
+ if ( 'yes' == $this->debug ) {
469
+ $this->log->add(
470
+ $this->id,
471
+ '[process_cancel_order_meta_box_actions] - no payments or credentials invalid'
472
+ );
473
+ }
474
+ }
475
+
476
+ }
477
+
478
+ /*
479
+ * ========================================================================
480
+ * CHECKOUT BUSINESS RULES (CLIENT SIDE)
481
+ * ========================================================================
482
+ */
483
+
484
+ public function add_checkout_script() {
485
+
486
+ $client_id = WC_WooMercadoPago_Module::get_client_id( $this->get_option( 'access_token' ) );
487
+ $w = WC_WooMercadoPago_Module::woocommerce_instance();
488
+ $logged_user_email = null;
489
+ $payments = array();
490
+ $gateways = WC()->payment_gateways->get_available_payment_gateways();
491
+ foreach ( $gateways as $g ) {
492
+ $payments[] = $g->id;
493
+ }
494
+ $payments = str_replace( '-', '_', implode( ', ', $payments ) );
495
+
496
+ if ( wp_get_current_user()->ID != 0 ) {
497
+ $logged_user_email = wp_get_current_user()->user_email;
498
+ }
499
+
500
+ ?>
501
+ <script src="https://secure.mlstatic.com/modules/javascript/analytics.js"></script>
502
+ <script type="text/javascript">
503
+ var MA = ModuleAnalytics;
504
+ MA.setPublicKey( '<?php echo $client_id; ?>' );
505
+ MA.setPlatform( 'WooCommerce' );
506
+ MA.setPlatformVersion( '<?php echo $w->version; ?>' );
507
+ MA.setModuleVersion( '<?php echo WC_WooMercadoPago_Module::VERSION; ?>' );
508
+ MA.setPayerEmail( '<?php echo ( $logged_user_email != null ? $logged_user_email : "" ); ?>' );
509
+ MA.setUserLogged( <?php echo ( empty( $logged_user_email ) ? 0 : 1 ); ?> );
510
+ MA.setInstalledModules( '<?php echo $payments; ?>' );
511
+ MA.post();
512
+ </script>
513
+ <?php
514
+
515
+ }
516
+
517
+ public function update_checkout_status( $order_id ) {
518
+
519
+ if ( get_post_meta( $order_id, '_used_gateway', true ) != 'WC_WooMercadoPagoTicket_Gateway' )
520
+ return;
521
+
522
+ if ( 'yes' == $this->debug ) {
523
+ $this->log->add(
524
+ $this->id,
525
+ '[update_checkout_status] - updating checkout statuses ' . $order_id
526
+ );
527
+ }
528
+
529
+ $client_id = WC_WooMercadoPago_Module::get_client_id( $this->get_option( 'access_token' ) );
530
+
531
+ echo '<script src="https://secure.mlstatic.com/modules/javascript/analytics.js"></script>
532
+ <script type="text/javascript">
533
+ var MA = ModuleAnalytics;
534
+ MA.setToken( ' . $client_id . ' );
535
+ MA.setPaymentType("ticket");
536
+ MA.setCheckoutType("custom");
537
+ MA.put();
538
+ </script>';
539
+
540
+ }
541
+
542
+ public function show_ticket_button( $thankyoutext, $order ) {
543
+ if ( get_post_meta( $order->id, '_used_gateway', true ) != 'WC_WooMercadoPagoTicket_Gateway' )
544
+ return;
545
+ $html = '<p>' .
546
+ __( 'Thank you for your order. Please, pay the ticket to get your order approved.', 'woocommerce-mercadopago-module' ) .
547
+ '</p>';
548
+ $html .= '<a id="submit-payment" target="_blank" href="' .
549
+ get_post_meta( $order->id, '_transaction_details_ticket', true ) . '" class="button alt"' .
550
+ ' style="font-size:1.25rem; width:75%; height:48px; line-height:24px; text-align:center;">' .
551
+ __( 'Print the Ticket', 'woocommerce-mercadopago-module' ) .
552
+ '</a> ';
553
+ $added_text = '<p>' . $html . '</p>';
554
+ return $added_text;
555
+ }
556
+
557
+ public function ticket_checkout_scripts() {
558
+ if ( is_checkout() && $this->is_available() ) {
559
+ if ( ! get_query_var( 'order-received' ) ) {
560
+ wp_enqueue_style(
561
+ 'woocommerce-mercadopago-style', plugins_url(
562
+ 'assets/css/custom_checkout_mercadopago.css',
563
+ plugin_dir_path( __FILE__ ) ) );
564
+ wp_enqueue_script(
565
+ 'woocommerce-mercadopago-v1',
566
+ 'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js' );
567
+ }
568
+ }
569
+ }
570
+
571
+ public function payment_fields() {
572
+ $amount = $this->get_order_total();
573
+
574
+ $parameters = array(
575
+ 'payment_methods' => $this->payment_methods,
576
+ 'site_id' => $this->site_id,
577
+ 'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
578
+ 'amount' => $amount * ( ( float ) $this->currency_ratio > 0 ? ( float ) $this->currency_ratio : 1 ),
579
+ 'coupon_mode' => $this->coupon_mode,
580
+ 'is_currency_conversion' => $this->currency_ratio,
581
+ 'woocommerce_currency' => get_woocommerce_currency(),
582
+ 'account_currency' => $this->country_configs['currency'],
583
+ 'discount_action_url' => $this->domain .
584
+ '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoTicket_Gateway',
585
+ 'form_labels' => array(
586
+ 'form' => array(
587
+ 'payment_converted' =>
588
+ __( 'Payment converted from', 'woocommerce-mercadopago-module' ),
589
+ 'to' => __( 'to', 'woocommerce-mercadopago-module' ),
590
+ 'coupon_empty' =>
591
+ __( 'Please, inform your coupon code', 'woocommerce-mercadopago-module' ),
592
+ 'apply' => __( 'Apply', 'woocommerce-mercadopago-module' ),
593
+ 'remove' => __( 'Remove', 'woocommerce-mercadopago-module' ),
594
+ 'discount_info1' => __( 'You will save', 'woocommerce-mercadopago-module' ),
595
+ 'discount_info2' => __( 'with discount from', 'woocommerce-mercadopago-module' ),
596
+ 'discount_info3' => __( 'Total of your purchase:', 'woocommerce-mercadopago-module' ),
597
+ 'discount_info4' =>
598
+ __( 'Total of your purchase with discount:', 'woocommerce-mercadopago-module' ),
599
+ 'discount_info5' => __( '*Uppon payment approval', 'woocommerce-mercadopago-module' ),
600
+ 'discount_info6' =>
601
+ __( 'Terms and Conditions of Use', 'woocommerce-mercadopago-module' ),
602
+ 'coupon_of_discounts' => __( 'Discount Coupon', 'woocommerce-mercadopago-module' ),
603
+ 'label_choose' => __( 'Choose', 'woocommerce-mercadopago-module' ),
604
+ 'issuer_selection' =>
605
+ __( 'Please, select the ticket issuer of your preference.', 'woocommerce-mercadopago-module' ),
606
+ 'payment_instructions' =>
607
+ __( 'Click "Place order" button. The ticket will be generated and you will be redirected to print it.', 'woocommerce-mercadopago-module' ),
608
+ 'ticket_note' =>
609
+ __( 'Important: The order will be confirmed only after the payment approval.', 'woocommerce-mercadopago-module' )
610
+ )
611
+ )
612
+ );
613
+
614
+ wc_get_template(
615
+ 'ticket/ticket-form.php',
616
+ $parameters,
617
+ 'woocommerce/mercadopago/',
618
+ WC_WooMercadoPago_Module::get_templates_path()
619
+ );
620
+ }
621
+
622
+ /**
623
+ * Summary: Handle the payment and processing the order.
624
+ * Description: This function is called after we click on [place_order] button, and each field is
625
+ * passed to this function through $_POST variable.
626
+ * @return an array containing the result of the processment and the URL to redirect.
627
+ */
628
+ public function process_payment( $order_id ) {
629
+
630
+ if ( ! isset( $_POST['mercadopago_ticket'] ) )
631
+ return;
632
+
633
+ update_post_meta( $order_id, '_used_gateway', 'WC_WooMercadoPagoTicket_Gateway' );
634
+
635
+ $order = new WC_Order( $order_id );
636
+ $mercadopago_ticket = $_POST['mercadopago_ticket'];
637
+
638
+ // We have got parameters from checkout page, now its time to charge the card.
639
+ if ( 'yes' == $this->debug ) {
640
+ $this->log->add(
641
+ $this->id,
642
+ '[process_payment] - Received [$_POST] from customer front-end page: ' .
643
+ json_encode( $_POST, JSON_PRETTY_PRINT )
644
+ );
645
+ }
646
+
647
+ if ( isset( $mercadopago_ticket['amount'] ) && ! empty( $mercadopago_ticket['amount'] ) &&
648
+ isset( $mercadopago_ticket['paymentMethodId'] ) && ! empty( $mercadopago_ticket['paymentMethodId'] ) ) {
649
+
650
+ return self::create_url( $order, $mercadopago_ticket );
651
+
652
+ } else {
653
+ // process when fields are imcomplete.
654
+ wc_add_notice(
655
+ '<p>' .
656
+ __( 'A problem was occurred when processing your payment. Please, try again.', 'woocommerce-mercadopago-module' ) .
657
+ '</p>',
658
+ 'error'
659
+ );
660
+ return array(
661
+ 'result' => 'fail',
662
+ 'redirect' => '',
663
+ );
664
+ }
665
+
666
+ }
667
+
668
+ /**
669
+ * Summary: Build Mercado Pago preference.
670
+ * Description: Create Mercado Pago preference and get init_point URL based in the order options
671
+ * from the cart.
672
+ * @return the preference object.
673
+ */
674
+ private function build_payment_preference( $order, $ticket_checkout ) {
675
+
676
+ // A string to register items (workaround to deal with API problem that shows only first item).
677
+ $list_of_items = array();
678
+
679
+ // Here we build the array that contains ordered itens, from customer cart.
680
+ $items = array();
681
+ if ( sizeof( $order->get_items() ) > 0 ) {
682
+ foreach ( $order->get_items() as $item ) {
683
+ if ( $item['qty'] ) {
684
+ $product = new WC_product( $item['product_id'] );
685
+ array_push( $list_of_items, $product->post->post_title . ' x ' . $item['qty'] );
686
+ array_push( $items, array(
687
+ 'id' => $item['product_id'],
688
+ 'title' => ( $product->post->post_title . ' x ' . $item['qty'] ),
689
+ 'description' => html_entity_decode( sanitize_file_name(
690
+ // This handles description width limit of Mercado Pago.
691
+ ( strlen( $product->post->post_content ) > 230 ?
692
+ substr( $product->post->post_content, 0, 230 ) . '...' :
693
+ $product->post->post_content )
694
+ ), ENT_COMPAT, 'UTF-8' ),
695
+ 'picture_url' => wp_get_attachment_url( $product->get_image_id() ),
696
+ 'category_id' => $this->store_categories_id[$this->category_id],
697
+ 'quantity' => 1,
698
+ 'unit_price' => floor( ( ( float ) $item['line_total'] + ( float ) $item['line_tax'] ) *
699
+ ( ( float ) $this->currency_ratio > 0 ? ( float ) $this->currency_ratio : 1 ) * 100 ) / 100
700
+ ) );
701
+ }
702
+ }
703
+ }
704
+
705
+ // Creates the shipment cost structure.
706
+ $ship_cost = ( ( float ) $order->get_total_shipping() + ( float ) $order->get_shipping_tax() ) *
707
+ ( ( float ) $this->currency_ratio > 0 ? ( float ) $this->currency_ratio : 1 );
708
+ if ( $ship_cost > 0 ) {
709
+ $item = array(
710
+ 'title' => sanitize_file_name( $order->get_shipping_to_display() ),
711
+ 'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
712
+ 'quantity' => 1,
713
+ 'category_id' => $this->store_categories_id[$this->category_id],
714
+ 'unit_price' => floor( $ship_cost * 100 ) / 100
715
+ );
716
+ $items[] = $item;
717
+ }
718
+
719
+ // Discounts features.
720
+ if ( isset( $ticket_checkout['discount'] ) && $ticket_checkout['discount'] != '' &&
721
+ $ticket_checkout['discount'] > 0 && isset( $ticket_checkout['coupon_code'] ) &&
722
+ $ticket_checkout['coupon_code'] != '' &&
723
+ WC()->session->chosen_payment_method == 'woocommerce-mercadopago-ticket-module' ) {
724
+
725
+ $item = array(
726
+ 'title' => __( 'Discount', 'woocommerce-mercadopago-module' ),
727
+ 'description' => __( 'Discount provided by store', 'woocommerce-mercadopago-module' ),
728
+ 'quantity' => 1,
729
+ 'category_id' => $this->store_categories_id[$this->category_id],
730
+ 'unit_price' => -( ( float ) $ticket_checkout['discount'] )
731
+ );
732
+ $items[] = $item;
733
+ }
734
+
735
+ // Build additional information from the customer data.
736
+ $payer_additional_info = array(
737
+ 'first_name' => $order->billing_first_name,
738
+ 'last_name' => $order->billing_last_name,
739
+ //'registration_date' =>
740
+ 'phone' => array(
741
+ //'area_code' =>
742
+ 'number' => $order->billing_phone
743
+ ),
744
+ 'address' => array(
745
+ 'zip_code' => $order->billing_postcode,
746
+ //'street_number' =>
747
+ 'street_name' => $order->billing_address_1 . ' / ' .
748
+ $order->billing_city . ' ' .
749
+ $order->billing_state . ' ' .
750
+ $order->billing_country
751
+ )
752
+ );
753
+
754
+ // Create the shipment address information set.
755
+ $shipments = array(
756
+ 'receiver_address' => array(
757
+ 'zip_code' => $order->shipping_postcode,
758
+ //'street_number' =>
759
+ 'street_name' => $order->shipping_address_1 . ' ' .
760
+ $order->shipping_address_2 . ' ' .
761
+ $order->shipping_city . ' ' .
762
+ $order->shipping_state . ' ' .
763
+ $order->shipping_country,
764
+ //'floor' =>
765
+ 'apartment' => $order->shipping_address_2
766
+ )
767
+ );
768
+
769
+ // The payment preference.
770
+ $preferences = array(
771
+ 'transaction_amount' => floor( ( ( float ) $ticket_checkout['amount'] ) * 100 ) / 100,
772
+ 'description' => html_entity_decode( implode( ', ', $list_of_items ), ENT_COMPAT, 'UTF-8' ),
773
+ 'payment_method_id' => $ticket_checkout['paymentMethodId'],
774
+ 'payer' => array(
775
+ 'email' => $order->billing_email
776
+ ),
777
+ 'external_reference' => $this->invoice_prefix . $order->id,
778
+ 'additional_info' => array(
779
+ 'items' => $items,
780
+ 'payer' => $payer_additional_info,
781
+ 'shipments' => $shipments
782
+ )
783
+ );
784
+
785
+ // Do not set IPN url if it is a localhost.
786
+ if ( ! strrpos( $this->domain, 'localhost' ) ) {
787
+ $preferences['notification_url'] = WC_WooMercadoPago_Module::workaround_ampersand_bug(
788
+ WC()->api_request_url( 'WC_WooMercadoPagoTicket_Gateway' )
789
+ );
790
+ }
791
+
792
+ // Discounts features.
793
+ if ( isset( $ticket_checkout['discount'] ) && $ticket_checkout['discount'] != '' &&
794
+ $ticket_checkout['discount'] > 0 && isset( $ticket_checkout['coupon_code'] ) &&
795
+ $ticket_checkout['coupon_code'] != '' &&
796
+ WC()->session->chosen_payment_method == 'woocommerce-mercadopago-ticket-module' ) {
797
+
798
+ $preferences['campaign_id'] = ( int ) $ticket_checkout['campaign_id'];
799
+ $preferences['coupon_amount'] = ( ( float ) $ticket_checkout['discount'] );
800
+ $preferences['coupon_code'] = strtoupper( $ticket_checkout['coupon_code'] );
801
+ }
802
+
803
+ // Set sponsor ID.
804
+ if ( ! $this->is_test_user ) {
805
+ $preferences['sponsor_id'] = $this->country_configs['sponsor_id'];
806
+ }
807
+
808
+ if ( 'yes' == $this->debug ) {
809
+ $this->log->add(
810
+ $this->id,
811
+ '[build_payment_preference] - returning just created [$preferences] structure: ' .
812
+ json_encode( $preferences, JSON_PRETTY_PRINT )
813
+ );
814
+ }
815
+
816
+ $preferences = apply_filters(
817
+ 'woocommerce_mercadopago_module_ticket_preferences',
818
+ $preferences, $order
819
+ );
820
+ return $preferences;
821
+ }
822
+
823
+ // --------------------------------------------------
824
+
825
+ protected function create_url( $order, $ticket_checkout ) {
826
+
827
+ // Creates the order parameters by checking the cart configuration.
828
+ $preferences = $this->build_payment_preference( $order, $ticket_checkout );
829
+
830
+ $this->mp->sandbox_mode( false );
831
+
832
+ // Create order preferences with Mercado Pago API request.
833
+ try {
834
+ $ticket_info = $this->mp->create_payment( json_encode( $preferences ) );
835
+ if ( $ticket_info['status'] < 200 || $ticket_info['status'] >= 300 ) {
836
+ // Mercado Pago trowed an error.
837
+ if ( 'yes' == $this->debug ) {
838
+ $this->log->add(
839
+ $this->id,
840
+ '[create_url] - mercado pago gave error, payment creation failed with error: ' .
841
+ $ticket_info['response']['status'] );
842
+ }
843
+ return false;
844
+ } elseif ( is_wp_error( $ticket_info ) ) {
845
+ // WordPress throwed an error.
846
+ if ( 'yes' == $this->debug ) {
847
+ $this->log->add(
848
+ $this->id,
849
+ '[create_url] - wordpress gave error, payment creation failed with error: ' .
850
+ $ticket_info['response']['status'] );
851
+ }
852
+ return false;
853
+ } else {
854
+ // Obtain the URL.
855
+ $response = $ticket_info['response'];
856
+ if ( array_key_exists( 'status', $response ) ) {
857
+ if ( $response['status'] == 'pending' ) {
858
+ if ( $response['status_detail'] == 'pending_waiting_payment' ) {
859
+ WC()->cart->empty_cart();
860
+ if ( $this->reduce_stock_on_order_gen == 'yes' ) {
861
+ $order->reduce_order_stock();
862
+ }
863
+ /*$html = '<p></p><p>' . wordwrap(
864
+ __( 'Thank you for your order. Please, pay the ticket to get your order approved.', 'woocommerce-mercadopago-module' ),
865
+ 60, '<br>'
866
+ ) . '</p>';
867
+ $html .= '<a id="submit-payment" target="_blank" href="' .
868
+ $response['transaction_details']['external_resource_url'] .
869
+ '" class="button alt">' .
870
+ __( 'Print the Ticket', 'woocommerce-mercadopago-module' ) .
871
+ '</a> ';
872
+ wc_add_notice( '<p>' . $html . '</p>', 'notice' );*/
873
+ update_post_meta(
874
+ $order->id,
875
+ '_transaction_details_ticket',
876
+ $response['transaction_details']['external_resource_url']
877
+ );
878
+
879
+ $order->add_order_note(
880
+ 'Mercado Pago: ' .
881
+ __( 'Customer haven\'t paid yet.', 'woocommerce-mercadopago-module' )
882
+ );
883
+ $order->add_order_note(
884
+ 'Mercado Pago: ' .
885
+ __( 'To reprint the ticket click ', 'woocommerce-mercadopago-module' ) .
886
+ '<a target="_blank" href="' .
887
+ $response['transaction_details']['external_resource_url'] . '">' .
888
+ __( 'here', 'woocommerce-mercadopago-module' ) .
889
+ '</a>', 1, false
890
+ );
891
+
892
+ /*return array(
893
+ 'result' => 'success',
894
+ 'redirect' => $order->get_checkout_payment_url( true )
895
+ );*/
896
+ return array(
897
+ 'result' => 'success',
898
+ 'redirect' => $order->get_checkout_order_received_url()
899
+ );
900
+ }
901
+ }
902
+ }
903
+ return false;
904
+ }
905
+ } catch ( MercadoPagoException $e ) {
906
+ // Something went wrong with the payment creation.
907
+ if ( 'yes' == $this->debug ) {
908
+ $this->log->add(
909
+ $this->id,
910
+ '[create_url] - payment creation failed with exception: ' .
911
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
912
+ );
913
+ }
914
+ }
915
+ return false;
916
+ }
917
+
918
+ /**
919
+ * Summary: Receive post data and applies a discount based in the received values.
920
+ * Description: Receive post data and applies a discount based in the received values.
921
+ */
922
+ public function add_discount_ticket() {
923
+
924
+ if ( ! isset( $_POST['mercadopago_ticket'] ) )
925
+ return;
926
+
927
+ if ( is_admin() && ! defined( 'DOING_AJAX' ) || is_cart() ) {
928
+ return;
929
+ }
930
+
931
+ $mercadopago_ticket = $_POST['mercadopago_ticket'];
932
+ if ( isset( $mercadopago_ticket['discount'] ) && $mercadopago_ticket['discount'] != '' &&
933
+ $mercadopago_ticket['discount'] > 0 && isset( $mercadopago_ticket['coupon_code'] ) &&
934
+ $mercadopago_ticket['coupon_code'] != '' &&
935
+ WC()->session->chosen_payment_method == 'woocommerce-mercadopago-ticket-module' ) {
936
+
937
+ if ( 'yes' == $this->debug ) {
938
+ $this->log->add(
939
+ $this->id,
940
+ '[add_discount_ticket] - ticket trying to apply discount...'
941
+ );
942
+ }
943
+
944
+ $value = ( $mercadopago_ticket['discount'] ) /
945
+ ( ( float ) $this->currency_ratio > 0 ? ( float ) $this->currency_ratio : 1 );
946
+ global $woocommerce;
947
+ if ( apply_filters(
948
+ 'wc_mercadopagoticket_module_apply_discount',
949
+ 0 < $value, $woocommerce->cart )
950
+ ) {
951
+ $woocommerce->cart->add_fee( sprintf(
952
+ __( 'Discount for %s coupon', 'woocommerce-mercadopago-module' ),
953
+ esc_attr( $mercadopago_ticket['campaign']
954
+ ) ), ( $value * -1 ), true
955
+ );
956
+ }
957
+ }
958
+
959
+ }
960
+
961
+ /*
962
+ * ========================================================================
963
+ * AUXILIARY AND FEEDBACK METHODS (SERVER SIDE)
964
+ * ========================================================================
965
+ */
966
+
967
+ /**
968
+ * Summary: Check if we have valid credentials.
969
+ * Description: Check if we have valid credentials.
970
+ * @return boolean true/false depending on the validation result.
971
+ */
972
+ public function validate_credentials() {
973
+
974
+ if ( empty( $this->access_token ) )
975
+ return false;
976
+
977
+ try {
978
+
979
+ $this->mp = new MP(
980
+ WC_WooMercadoPago_Module::get_module_version(),
981
+ $this->access_token
982
+ );
983
+ $get_request = $this->mp->get( '/users/me?access_token=' . $this->access_token );
984
+
985
+ if ( isset( $get_request['response']['site_id'] ) ) {
986
+
987
+ $this->is_test_user = in_array( 'test_user', $get_request['response']['tags'] );
988
+ $this->site_id = $get_request['response']['site_id'];
989
+ $this->collector_id = $get_request['response']['id'];
990
+ $this->country_configs = WC_WooMercadoPago_Module::get_country_config( $this->site_id );
991
+
992
+ // Get ticket payments.
993
+ $payments = $this->mp->get( '/v1/payment_methods/?access_token=' . $this->access_token );
994
+ foreach ( $payments['response'] as $payment ) {
995
+ if ( $payment['payment_type_id'] != 'account_money' &&
996
+ $payment['payment_type_id'] != 'credit_card' &&
997
+ $payment['payment_type_id'] != 'debit_card' &&
998
+ $payment['payment_type_id'] != 'prepaid_card' ) {
999
+
1000
+ array_push( $this->payment_methods, $payment );
1001
+
1002
+ }
1003
+ }
1004
+
1005
+ // Check for auto converstion of currency.
1006
+ $this->currency_ratio = -1;
1007
+ if ( $this->currency_conversion == 'yes' ) {
1008
+ $this->currency_ratio = WC_WooMercadoPago_Module::get_conversion_rate(
1009
+ $this->country_configs['currency']
1010
+ );
1011
+ }
1012
+
1013
+ return true;
1014
+
1015
+ } else {
1016
+ $this->mp = null;
1017
+ return false;
1018
+ }
1019
+
1020
+ } catch ( MercadoPagoException $e ) {
1021
+ if ( 'yes' == $this->debug ) {
1022
+ $this->log->add(
1023
+ $this->id,
1024
+ '[validate_credentials] - while validating credentials, got exception: ' .
1025
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
1026
+ );
1027
+ }
1028
+ $this->mp = null;
1029
+ return false;
1030
+ }
1031
+
1032
+ return false;
1033
+
1034
+ }
1035
+
1036
+ // Build the string representing the path to the log file.
1037
+ protected function build_log_path_string() {
1038
+ return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
1039
+ esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
1040
+ __( 'WooCommerce &gt; System Status &gt; Logs', 'woocommerce-mercadopago-module' ) . '</a>';
1041
+ }
1042
+
1043
+ // Return boolean indicating if currency is supported.
1044
+ protected function is_supported_currency() {
1045
+ return get_woocommerce_currency() == $this->country_configs['currency'];
1046
+ }
1047
+
1048
+ // Called automatically by WooCommerce, verify if Module is available to use.
1049
+ public function is_available() {
1050
+ if ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
1051
+ return false;
1052
+ }
1053
+ $available = ( 'yes' == $this->settings['enabled'] ) && ! empty( $this->access_token );
1054
+ return $available;
1055
+ }
1056
+
1057
+ public function check_ssl_absence() {
1058
+ if ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
1059
+ if ( 'yes' == $this->settings['enabled'] ) {
1060
+ echo '<div class="error"><p><strong>' .
1061
+ __( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
1062
+ '</strong>: ' .
1063
+ sprintf(
1064
+ __( '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' )
1065
+ ) . '</p></div>';
1066
+ }
1067
+ }
1068
+ }
1069
+
1070
+ // Get the URL to admin page.
1071
+ protected function admin_url() {
1072
+ if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
1073
+ return admin_url(
1074
+ 'admin.php?page=wc-settings&tab=checkout&section=wc_woomercadopagoticket_gateway'
1075
+ );
1076
+ }
1077
+ return admin_url(
1078
+ 'admin.php?page=woocommerce_settings&tab=payment_gateways&section=WC_WooMercadoPagoTicket_Gateway'
1079
+ );
1080
+ }
1081
+
1082
+ // Notify that access_token are not valid.
1083
+ public function credentials_missing_message() {
1084
+ echo '<div class="error"><p><strong>' .
1085
+ __( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
1086
+ '</strong>: ' .
1087
+ __( 'Your Mercado Pago credentials Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) .
1088
+ '</p></div>';
1089
+ }
1090
+
1091
+ /*
1092
+ * ========================================================================
1093
+ * IPN MECHANICS (SERVER SIDE)
1094
+ * ========================================================================
1095
+ */
1096
+
1097
+ /**
1098
+ * Summary: This call checks any incoming notifications from Mercado Pago server.
1099
+ * Description: This call checks any incoming notifications from Mercado Pago server.
1100
+ */
1101
+ public function process_http_request() {
1102
+ @ob_clean();
1103
+ if ( 'yes' == $this->debug ) {
1104
+ $this->log->add(
1105
+ $this->id,
1106
+ '[process_http_request] - Received _get content: ' .
1107
+ json_encode( $_GET, JSON_PRETTY_PRINT )
1108
+ );
1109
+ }
1110
+ if ( isset( $_GET['coupon_id'] ) && $_GET['coupon_id'] != '' ) {
1111
+ // process coupon evaluations.
1112
+ if ( isset( $_GET['payer'] ) && $_GET['payer'] != '' ) {
1113
+ $logged_user_email = $_GET['payer'];
1114
+ $coupon_id = $_GET['coupon_id'];
1115
+ if ( 'yes' == $this->sandbox )
1116
+ $this->mp->sandbox_mode( true );
1117
+ else
1118
+ $this->mp->sandbox_mode( false );
1119
+ $response = $this->mp->check_discount_campaigns(
1120
+ $_GET['amount'],
1121
+ $logged_user_email,
1122
+ $coupon_id
1123
+ );
1124
+ header( 'HTTP/1.1 200 OK' );
1125
+ header( 'Content-Type: application/json' );
1126
+ echo json_encode( $response );
1127
+ } else {
1128
+ $obj = new stdClass();
1129
+ $obj->status = 404;
1130
+ $obj->response = array(
1131
+ 'message' =>
1132
+ __( 'Please, inform your email in billing address to use this feature', 'woocommerce-mercadopago-module' ),
1133
+ 'error' => 'payer_not_found',
1134
+ 'status' => 404,
1135
+ 'cause' => array()
1136
+ );
1137
+ header( 'HTTP/1.1 200 OK' );
1138
+ header( 'Content-Type: application/json' );
1139
+ echo json_encode( $obj );
1140
+ }
1141
+ exit( 0 );
1142
+ } else {
1143
+ // process IPN messages.
1144
+ $data = $this->check_ipn_request_is_valid( $_GET );
1145
+ if ( $data ) {
1146
+ header( 'HTTP/1.1 200 OK' );
1147
+ do_action( 'valid_mercadopagoticket_ipn_request', $data );
1148
+ }
1149
+ }
1150
+ }
1151
+
1152
+ /**
1153
+ * Summary: Get received data from IPN and checks if its a merchant_order or a payment.
1154
+ * Description: If we have these information, we return data to be processed by
1155
+ * successful_request function.
1156
+ * @return boolean indicating if it was successfuly processed.
1157
+ */
1158
+ public function check_ipn_request_is_valid( $data ) {
1159
+
1160
+ if ( ! isset( $data['data_id'] ) || ! isset( $data['type'] ) ) {
1161
+ if ( 'yes' == $this->debug ) {
1162
+ $this->log->add(
1163
+ $this->id,
1164
+ '[check_ipn_request_is_valid] - data_id or type not set: ' .
1165
+ json_encode( $data, JSON_PRETTY_PRINT )
1166
+ );
1167
+ }
1168
+ // at least, check if its a v0 ipn.
1169
+ if ( ! isset( $data['id'] ) || ! isset( $data['topic'] ) ) {
1170
+ if ( 'yes' == $this->debug ) {
1171
+ $this->log->add(
1172
+ $this->id,
1173
+ '[check_ipn_response] - Mercado Pago Request Failure: ' .
1174
+ json_encode( $_GET, JSON_PRETTY_PRINT )
1175
+ );
1176
+ }
1177
+ wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
1178
+ } else {
1179
+ header( 'HTTP/1.1 200 OK' );
1180
+ }
1181
+ // No ID? No process!
1182
+ return false;
1183
+ }
1184
+
1185
+ $this->mp->sandbox_mode( false );
1186
+
1187
+ try {
1188
+ // Get the payment reported by the IPN.
1189
+ if ( $data['type'] == 'payment' ) {
1190
+ $access_token = array( 'access_token' => $this->mp->get_access_token() );
1191
+ $payment_info = $this->mp->get(
1192
+ '/v1/payments/' . $data['data_id'], $access_token, false
1193
+ );
1194
+ if ( ! is_wp_error( $payment_info ) &&
1195
+ ( $payment_info['status'] == 200 || $payment_info['status'] == 201 ) ) {
1196
+ return $payment_info['response'];
1197
+ } else {
1198
+ if ( 'yes' == $this->debug ) {
1199
+ $this->log->add(
1200
+ $this->id,
1201
+ '[check_ipn_request_is_valid] - error when processing received data: ' .
1202
+ json_encode( $payment_info, JSON_PRETTY_PRINT )
1203
+ );
1204
+ }
1205
+ return false;
1206
+ }
1207
+ }
1208
+ } catch ( MercadoPagoException $e ) {
1209
+ if ( 'yes' == $this->debug ) {
1210
+ $this->log->add(
1211
+ $this->id,
1212
+ '[check_ipn_request_is_valid] - MercadoPagoException: ' .
1213
+ json_encode( array( 'status' => $e->getCode(), 'message' => $e->getMessage() ) )
1214
+ );
1215
+ }
1216
+ return false;
1217
+ }
1218
+ return true;
1219
+ }
1220
+
1221
+ /**
1222
+ * Summary: Properly handles each case of notification, based in payment status.
1223
+ * Description: Properly handles each case of notification, based in payment status.
1224
+ */
1225
+ public function successful_request( $data ) {
1226
+
1227
+ if ( 'yes' == $this->debug ) {
1228
+ $this->log->add(
1229
+ $this->id,
1230
+ '[successful_request] - starting to process ipn update...'
1231
+ );
1232
+ }
1233
+
1234
+ $order_key = $data['external_reference'];
1235
+ if ( ! empty( $order_key ) ) {
1236
+ $order_id = ( int ) str_replace( $this->invoice_prefix, '', $order_key );
1237
+ $order = new WC_Order( $order_id );
1238
+ // Checks whether the invoice number matches the order, if true processes the payment.
1239
+ if ( $order->id === $order_id ) {
1240
+ if ( 'yes' == $this->debug ) {
1241
+ $this->log->add(
1242
+ $this->id,
1243
+ '[successful_request] - got order with ID ' . $order->id . ' and data: ' .
1244
+ json_encode( $data, JSON_PRETTY_PRINT )
1245
+ );
1246
+ }
1247
+ update_post_meta( $order->id, '_used_gateway', 'WC_WooMercadoPagoTicket_Gateway' );
1248
+ // Order details.
1249
+ if ( ! empty( $data['payer']['email'] ) ) {
1250
+ update_post_meta(
1251
+ $order_id,
1252
+ __( 'Payer email', 'woocommerce-mercadopago-module' ),
1253
+ $data['payer']['email']
1254
+ );
1255
+ }
1256
+ if ( ! empty( $data['payment_type_id'] ) ) {
1257
+ update_post_meta(
1258
+ $order_id,
1259
+ __( 'Payment type', 'woocommerce-mercadopago-module' ),
1260
+ $data['payment_type_id']
1261
+ );
1262
+ }
1263
+ if ( ! empty( $data ) ) {
1264
+ update_post_meta(
1265
+ $order_id,
1266
+ __( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
1267
+ $data['id']
1268
+ );
1269
+ }
1270
+ // Switch the status and update in WooCommerce.
1271
+ switch ( $data['status'] ) {
1272
+ case 'approved':
1273
+ $order->add_order_note(
1274
+ 'Mercado Pago: ' . __( 'Payment approved.', 'woocommerce-mercadopago-module' )
1275
+ );
1276
+ if ( $this->reduce_stock_on_order_gen == 'no' ) {
1277
+ $order->payment_complete();
1278
+ }
1279
+ break;
1280
+ case 'pending':
1281
+ // decrease stock if not yet decreased and order not exists.
1282
+ $notes = $order->get_customer_order_notes();
1283
+ $has_note = false;
1284
+ if ( sizeof( $notes ) > 1 ) {
1285
+ $has_note = true;
1286
+ break;
1287
+ }
1288
+ if ( ! $has_note ) {
1289
+ $order->add_order_note(
1290
+ 'Mercado Pago: ' .
1291
+ __( 'Waiting for the ticket payment.', 'woocommerce-mercadopago-module' )
1292
+ );
1293
+ $order->add_order_note(
1294
+ 'Mercado Pago: ' .
1295
+ __( 'Waiting for the ticket payment.', 'woocommerce-mercadopago-module' ),
1296
+ 1, false
1297
+ );
1298
+ }
1299
+ break;
1300
+ case 'in_process':
1301
+ $order->update_status(
1302
+ 'on-hold',
1303
+ 'Mercado Pago: ' . __( 'Payment under review.', 'woocommerce-mercadopago-module' )
1304
+ );
1305
+ break;
1306
+ case 'rejected':
1307
+ $order->update_status(
1308
+ 'failed',
1309
+ 'Mercado Pago: ' .
1310
+ __( 'The payment was refused. The customer can try again.', 'woocommerce-mercadopago-module' )
1311
+ );
1312
+ break;
1313
+ case 'refunded':
1314
+ $order->update_status(
1315
+ 'refunded',
1316
+ 'Mercado Pago: ' .
1317
+ __( 'The payment was refunded to the customer.', 'woocommerce-mercadopago-module' )
1318
+ );
1319
+ break;
1320
+ case 'cancelled':
1321
+ $order->update_status(
1322
+ 'cancelled',
1323
+ 'Mercado Pago: ' .
1324
+ __( 'The payment was cancelled.', 'woocommerce-mercadopago-module' )
1325
+ );
1326
+ break;
1327
+ case 'in_mediation':
1328
+ $order->add_order_note(
1329
+ 'Mercado Pago: ' .
1330
+ __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
1331
+ );
1332
+ break;
1333
+ case 'charged-back':
1334
+ $order->add_order_note(
1335
+ 'Mercado Pago: ' .
1336
+ __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
1337
+ );
1338
+ break;
1339
+ default:
1340
+ break;
1341
+ }
1342
+ }
1343
+ }
1344
+ }
1345
+
1346
+ }
1347
+
1348
+ new WC_WooMercadoPagoTicket_Gateway( true );
mercadopago/sdk/lib/cacert.pem CHANGED
File without changes
mercadopago/sdk/lib/mercadopago.php CHANGED
@@ -1,413 +1,734 @@
1
  <?php
2
 
3
  /**
4
- * MercadoPago Integration Library
5
- * Access MercadoPago for payments integration
6
- *
7
- * @author hcasatti
8
- *
9
  */
10
- $GLOBALS["LIB_LOCATION"] = dirname(__FILE__);
 
11
 
12
  class MP {
13
 
14
- const version = "0.5.2";
15
-
16
- private $client_id;
17
- private $client_secret;
18
- private $ll_access_token;
19
- private $access_data;
20
- private $sandbox = FALSE;
21
-
22
- function __construct() {
23
- $i = func_num_args();
24
-
25
- if ($i > 2 || $i < 1) {
26
- throw new MercadoPagoException("Invalid arguments. Use CLIENT_ID and CLIENT SECRET, or ACCESS_TOKEN");
27
- }
28
-
29
- if ($i == 1) {
30
- $this->ll_access_token = func_get_arg(0);
31
- }
32
-
33
- if ($i == 2) {
34
- $this->client_id = func_get_arg(0);
35
- $this->client_secret = func_get_arg(1);
36
- }
37
- }
38
-
39
- public function sandbox_mode($enable = NULL) {
40
- if (!is_null($enable)) {
41
- $this->sandbox = $enable === TRUE;
42
- }
43
-
44
- return $this->sandbox;
45
- }
46
-
47
- /**
48
- * Get Access Token for API use
49
- */
50
- public function get_access_token() {
51
- if (isset ($this->ll_access_token) && !is_null($this->ll_access_token)) {
52
- return $this->ll_access_token;
53
- }
54
-
55
- $app_client_values = array(
56
- 'client_id' => $this->client_id,
57
- 'client_secret' => $this->client_secret,
58
- 'grant_type' => 'client_credentials'
59
- );
60
-
61
- $access_data = MPRestClient::post(array(
62
- "uri" => "/oauth/token",
63
- "data" => $app_client_values,
64
- "headers" => array(
65
- "content-type" => "application/x-www-form-urlencoded"
66
- )
67
- ));
68
-
69
- if ($access_data["status"] != 200) {
70
- throw new MercadoPagoException ($access_data['response']['message'], $access_data['status']);
71
- }
72
-
73
- $this->access_data = $access_data['response'];
74
-
75
- return $this->access_data['access_token'];
76
- }
77
-
78
- /**
79
- * Get information for specific payment
80
- * @param int $id
81
- * @return array(json)
82
- */
83
- public function get_payment($id) {
84
- $uri_prefix = $this->sandbox ? "/sandbox" : "";
85
-
86
- $request = array(
87
- "uri" => $uri_prefix."/collections/notifications/{$id}",
88
- "params" => array(
89
- "access_token" => $this->get_access_token()
90
- )
91
- );
92
-
93
- $payment_info = MPRestClient::get($request);
94
- return $payment_info;
95
- }
96
- public function get_payment_info($id) {
97
- return $this->get_payment($id);
98
- }
99
-
100
- /**
101
- * Get information for specific authorized payment
102
- * @param id
103
- * @return array(json)
104
- */
105
- public function get_authorized_payment($id) {
106
- $request = array(
107
- "uri" => "/authorized_payments/{$id}",
108
- "params" => array(
109
- "access_token" => $this->get_access_token()
110
- )
111
- );
112
-
113
- $authorized_payment_info = MPRestClient::get($request);
114
- return $authorized_payment_info;
115
- }
116
-
117
- /**
118
- * Refund accredited payment
119
- * @param int $id
120
- * @return array(json)
121
- */
122
- public function refund_payment($id) {
123
- $request = array(
124
- "uri" => "/collections/{$id}",
125
- "params" => array(
126
- "access_token" => $this->get_access_token()
127
- ),
128
- "data" => array(
129
- "status" => "refunded"
130
- )
131
- );
132
-
133
- $response = MPRestClient::put($request);
134
- return $response;
135
- }
136
-
137
- /**
138
- * Cancel pending payment
139
- * @param int $id
140
- * @return array(json)
141
- */
142
- public function cancel_payment($id) {
143
- $request = array(
144
- "uri" => "/collections/{$id}",
145
- "params" => array(
146
- "access_token" => $this->get_access_token()
147
- ),
148
- "data" => array(
149
- "status" => "cancelled"
150
- )
151
- );
152
-
153
- $response = MPRestClient::put($request);
154
- return $response;
155
- }
156
-
157
- /**
158
- * Cancel preapproval payment
159
- * @param int $id
160
- * @return array(json)
161
- */
162
- public function cancel_preapproval_payment($id) {
163
- $request = array(
164
- "uri" => "/preapproval/{$id}",
165
- "params" => array(
166
- "access_token" => $this->get_access_token()
167
- ),
168
- "data" => array(
169
- "status" => "cancelled"
170
- )
171
- );
172
-
173
- $response = MPRestClient::put($request);
174
- return $response;
175
- }
176
-
177
- /**
178
- * Search payments according to filters, with pagination
179
- * @param array $filters
180
- * @param int $offset
181
- * @param int $limit
182
- * @return array(json)
183
- */
184
- public function search_payment($filters, $offset = 0, $limit = 0) {
185
- $filters["offset"] = $offset;
186
- $filters["limit"] = $limit;
187
-
188
- $uri_prefix = $this->sandbox ? "/sandbox" : "";
189
-
190
- $request = array(
191
- "uri" => $uri_prefix."/collections/search",
192
- "params" => array_merge ($filters, array(
193
- "access_token" => $this->get_access_token()
194
- ))
195
- );
196
-
197
- $collection_result = MPRestClient::get($request);
198
- return $collection_result;
199
- }
200
-
201
- /**
202
- * Create a checkout preference
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
221
- * @param string $id
222
- * @param array $preference
223
- * @return array(json)
224
- */
225
- public function update_preference($id, $preference) {
226
- $request = array(
227
- "uri" => "/checkout/preferences/{$id}",
228
- "params" => array(
229
- "access_token" => $this->get_access_token()
230
- ),
231
- "data" => $preference
232
- );
233
-
234
- $preference_result = MPRestClient::put($request);
235
- return $preference_result;
236
- }
237
-
238
- /**
239
- * Get a checkout preference
240
- * @param string $id
241
- * @return array(json)
242
- */
243
- public function get_preference($id) {
244
- $request = array(
245
- "uri" => "/checkout/preferences/{$id}",
246
- "params" => array(
247
- "access_token" => $this->get_access_token()
248
- )
249
- );
250
-
251
- $preference_result = MPRestClient::get($request);
252
- return $preference_result;
253
- }
254
-
255
- /**
256
- * Create a preapproval payment
257
- * @param array $preapproval_payment
258
- * @return array(json)
259
- */
260
- public function create_preapproval_payment($preapproval_payment) {
261
- $request = array(
262
- "uri" => "/preapproval",
263
- "params" => array(
264
- "access_token" => $this->get_access_token()
265
- ),
266
- "data" => $preapproval_payment
267
- );
268
-
269
- $preapproval_payment_result = MPRestClient::post($request);
270
- return $preapproval_payment_result;
271
- }
272
-
273
- /**
274
- * Get a preapproval payment
275
- * @param string $id
276
- * @return array(json)
277
- */
278
- public function get_preapproval_payment($id) {
279
- $request = array(
280
- "uri" => "/preapproval/{$id}",
281
- "params" => array(
282
- "access_token" => $this->get_access_token()
283
- )
284
- );
285
-
286
- $preapproval_payment_result = MPRestClient::get($request);
287
- return $preapproval_payment_result;
288
- }
289
-
290
- /**
291
- * Update a preapproval payment
292
- * @param string $preapproval_payment, $id
293
- * @return array(json)
294
- */
295
-
296
- public function update_preapproval_payment($id, $preapproval_payment) {
297
- $request = array(
298
- "uri" => "/preapproval/{$id}",
299
- "params" => array(
300
- "access_token" => $this->get_access_token()
301
- ),
302
- "data" => $preapproval_payment
303
- );
304
-
305
- $preapproval_payment_result = MPRestClient::put($request);
306
- return $preapproval_payment_result;
307
- }
308
-
309
- /* Generic resource call methods */
310
-
311
- /**
312
- * Generic resource get
313
- * @param request
314
- * @param params (deprecated)
315
- * @param authenticate = true (deprecated)
316
- */
317
- public function get($request, $params = null, $authenticate = true) {
318
- if (is_string ($request)) {
319
- $request = array(
320
- "uri" => $request,
321
- "params" => $params,
322
- "authenticate" => $authenticate
323
- );
324
- }
325
-
326
- $request["params"] = isset ($request["params"]) && is_array ($request["params"]) ? $request["params"] : array();
327
-
328
- if (!isset ($request["authenticate"]) || $request["authenticate"] !== false) {
329
- $request["params"]["access_token"] = $this->get_access_token();
330
- }
331
-
332
- $result = MPRestClient::get($request);
333
- return $result;
334
- }
335
-
336
- /**
337
- * Generic resource post
338
- * @param request
339
- * @param data (deprecated)
340
- * @param params (deprecated)
341
- */
342
- public function post($request, $data = null, $params = null) {
343
- if (is_string ($request)) {
344
- $request = array(
345
- "uri" => $request,
346
- "data" => $data,
347
- "params" => $params
348
- );
349
- }
350
-
351
- $request["params"] = isset ($request["params"]) && is_array ($request["params"]) ? $request["params"] : array();
352
-
353
- if (!isset ($request["authenticate"]) || $request["authenticate"] !== false) {
354
- $request["params"]["access_token"] = $this->get_access_token();
355
- }
356
-
357
- $result = MPRestClient::post($request);
358
- return $result;
359
- }
360
-
361
- /**
362
- * Generic resource put
363
- * @param request
364
- * @param data (deprecated)
365
- * @param params (deprecated)
366
- */
367
- public function put($request, $data = null, $params = null) {
368
- if (is_string ($request)) {
369
- $request = array(
370
- "uri" => $request,
371
- "data" => $data,
372
- "params" => $params
373
- );
374
- }
375
-
376
- $request["params"] = isset ($request["params"]) && is_array ($request["params"]) ? $request["params"] : array();
377
-
378
- if (!isset ($request["authenticate"]) || $request["authenticate"] !== false) {
379
- $request["params"]["access_token"] = $this->get_access_token();
380
- }
381
-
382
- $result = MPRestClient::put($request);
383
- return $result;
384
- }
385
-
386
- /**
387
- * Generic resource delete
388
- * @param request
389
- * @param data (deprecated)
390
- * @param params (deprecated)
391
- */
392
- public function delete($request, $params = null) {
393
- if (is_string ($request)) {
394
- $request = array(
395
- "uri" => $request,
396
- "params" => $params
397
- );
398
- }
399
-
400
- $request["params"] = isset ($request["params"]) && is_array ($request["params"]) ? $request["params"] : array();
401
-
402
- if (!isset ($request["authenticate"]) || $request["authenticate"] !== false) {
403
- $request["params"]["access_token"] = $this->get_access_token();
404
- }
405
-
406
- $result = MPRestClient::delete($request);
407
- return $result;
408
- }
409
-
410
- /* **************************************************************************************** */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
 
412
  }
413
 
@@ -415,164 +736,172 @@ class MP {
415
  * MercadoPago cURL RestClient
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")) {
422
- throw new MercadoPagoException("cURL extension not found. You need to enable cURL in your php.ini or another configuration you have.");
423
- }
424
-
425
- if (!isset($request["method"])) {
426
- throw new MercadoPagoException("No HTTP METHOD specified");
427
- }
428
-
429
- if (!isset($request["uri"])) {
430
- throw new MercadoPagoException("No URI specified");
431
- }
432
-
433
- // Set headers
434
- $headers = array("accept: application/json");
435
- $json_content = true;
436
- $form_content = false;
437
- $default_content_type = true;
438
-
439
- if (isset($request["headers"]) && is_array($request["headers"])) {
440
- foreach ($request["headers"] as $h => $v) {
441
- $h = strtolower($h);
442
- $v = strtolower($v);
443
-
444
- if ($h == "content-type") {
445
- $default_content_type = false;
446
- $json_content = $v == "application/json";
447
- $form_content = $v == "application/x-www-form-urlencoded";
448
- }
449
-
450
- array_push ($headers, $h.": ".$v);
451
- }
452
- }
453
- if ($default_content_type) {
454
- array_push($headers, "content-type: application/json");
455
- }
456
-
457
- // Build $connect
458
- $connect = curl_init();
459
-
460
- curl_setopt($connect, CURLOPT_USERAGENT, "MercadoPago PHP SDK v" . MP::version);
461
- curl_setopt($connect, CURLOPT_RETURNTRANSFER, true);
462
- curl_setopt($connect, CURLOPT_SSL_VERIFYPEER, true);
463
- curl_setopt($connect, CURLOPT_CAINFO, $GLOBALS["LIB_LOCATION"] . "/cacert.pem");
464
- curl_setopt($connect, CURLOPT_CUSTOMREQUEST, $request["method"]);
465
- curl_setopt($connect, CURLOPT_HTTPHEADER, $headers);
466
-
467
- // Set parameters and url
468
- if (isset ($request["params"]) && is_array($request["params"]) && count($request["params"]) > 0) {
469
- $request["uri"] .= (strpos($request["uri"], "?") === false) ? "?" : "&";
470
- $request["uri"] .= self::build_query($request["params"]);
471
- }
472
- curl_setopt($connect, CURLOPT_URL, self::API_BASE_URL . $request["uri"]);
473
-
474
- // Set data
475
- if (isset($request["data"])) {
476
- if ($json_content) {
477
- if (gettype($request["data"]) == "string") {
478
- json_decode($request["data"], true);
479
- } else {
480
- $request["data"] = json_encode($request["data"]);
481
- }
482
-
483
- if(function_exists('json_last_error')) {
484
- $json_error = json_last_error();
485
- if ($json_error != JSON_ERROR_NONE) {
486
- throw new MercadoPagoException("JSON Error [{$json_error}] - Data: ".$request["data"]);
487
- }
488
- }
489
- } else if ($form_content) {
490
- $request["data"] = self::build_query($request["data"]);
491
- }
492
-
493
- curl_setopt($connect, CURLOPT_POSTFIELDS, $request["data"]);
494
- }
495
-
496
- return $connect;
497
- }
498
-
499
- private static function exec($request) {
500
- // private static function exec($method, $uri, $data, $content_type) {
501
-
502
- $connect = self::build_request($request);
503
-
504
- $api_result = curl_exec($connect);
505
- $api_http_code = curl_getinfo($connect, CURLINFO_HTTP_CODE);
506
-
507
- if ($api_result === FALSE) {
508
- throw new MercadoPagoException (curl_error ($connect));
509
- }
510
-
511
- $response = array(
512
- "status" => $api_http_code,
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'])) {
520
- $message .= " - ".$response['response']['cause']['code'].': '.$response['response']['cause']['description'];
521
- } else if (is_array ($response['response']['cause'])) {
522
- foreach ($response['response']['cause'] as $cause) {
523
- $message .= " - ".$cause['code'].': '.$cause['description'];
524
- }
525
- }
526
- }
527
-
528
- throw new MercadoPagoException ($message, $response['status']);
529
- }
530
-
531
- curl_close($connect);
532
-
533
- return $response;
534
- }
535
-
536
- private static function build_query($params) {
537
- if (function_exists("http_build_query")) {
538
- return http_build_query($params, "", "&");
539
- } else {
540
- foreach ($params as $name => $value) {
541
- $elements[] = "{$name}=" . urlencode($value);
542
- }
543
-
544
- return implode("&", $elements);
545
- }
546
- }
547
-
548
- public static function get($request) {
549
- $request["method"] = "GET";
550
-
551
- return self::exec($request);
552
- }
553
-
554
- public static function post($request) {
555
- $request["method"] = "POST";
556
-
557
- return self::exec($request);
558
- }
559
-
560
- public static function put($request) {
561
- $request["method"] = "PUT";
562
-
563
- return self::exec($request);
564
- }
565
-
566
- public static function delete($request) {
567
- $request["method"] = "DELETE";
568
-
569
- return self::exec($request);
570
- }
 
 
 
 
 
 
 
 
571
  }
572
 
573
  class MercadoPagoException extends Exception {
574
- public function __construct($message, $code = 500, Exception $previous = null) {
575
- // Default code 500
576
- parent::__construct($message, $code, $previous);
577
- }
578
- }
1
  <?php
2
 
3
  /**
4
+ * Part of Woo Mercado Pago Module - MercadoPago Integration Library, Access MercadoPago for payments integration
5
+ * Author - Mercado Pago
6
+ * Developer - hcasatti, Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
7
+ * Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
8
+ * License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
9
  */
10
+
11
+ $GLOBALS['LIB_LOCATION'] = dirname( __FILE__ );
12
 
13
  class MP {
14
 
15
+ private $version = '2.1.7';
16
+ private $client_id;
17
+ private $client_secret;
18
+ private $ll_access_token;
19
+ private $sandbox = FALSE;
20
+
21
+ /**
22
+ * Summary: Constructor.
23
+ * Description: Build an object with module version and credentials.
24
+ */
25
+ function __construct() {
26
+
27
+ $i = func_num_args();
28
+
29
+ if ( $i > 3 || $i < 2 ) {
30
+ throw new MercadoPagoException(
31
+ 'Invalid arguments. Use CLIENT_ID and CLIENT SECRET, or ACCESS_TOKEN'
32
+ );
33
+ }
34
+
35
+ if ( $i == 2 ) {
36
+ $this->version = func_get_arg( 0 );
37
+ $this->ll_access_token = func_get_arg( 1 );
38
+ }
39
+
40
+ if ( $i == 3 ) {
41
+ $this->version = func_get_arg( 0 );
42
+ $this->client_id = func_get_arg( 1 );
43
+ $this->client_secret = func_get_arg( 2 );
44
+ }
45
+
46
+ }
47
+
48
+ public function sandbox_mode( $enable = NULL ) {
49
+ if ( ! is_null( $enable ) ) {
50
+ $this->sandbox = $enable === TRUE;
51
+ }
52
+ return $this->sandbox;
53
+ }
54
+
55
+ /**
56
+ * Summary: Get Access Token for API use.
57
+ * Description: Get Access Token for API use.
58
+ * @return a string that identifies the access token.
59
+ */
60
+ public function get_access_token() {
61
+
62
+ if ( isset( $this->ll_access_token ) && ! is_null( $this->ll_access_token ) ) {
63
+ return $this->ll_access_token;
64
+ }
65
+
66
+ $app_client_values = array(
67
+ 'client_id' => $this->client_id,
68
+ 'client_secret' => $this->client_secret,
69
+ 'grant_type' => 'client_credentials'
70
+ );
71
+
72
+ $access_data = MPRestClient::post(
73
+ array(
74
+ 'uri' => '/oauth/token',
75
+ 'data' => $app_client_values,
76
+ 'headers' => array(
77
+ 'content-type' => 'application/x-www-form-urlencoded'
78
+ )
79
+ ),
80
+ $this->version
81
+ );
82
+
83
+ if ( $access_data['status'] != 200 ) {
84
+ throw new MercadoPagoException (
85
+ $access_data['response']['message'], $access_data['status']
86
+ );
87
+ }
88
+
89
+ $access_data = $access_data['response'];
90
+ return $access_data['access_token'];
91
+
92
+ }
93
+
94
+ /**
95
+ * Summary: Search for a payment given its id.
96
+ * Description: Search for a payment given its id.
97
+ * @param string $id
98
+ * @return array( json )
99
+ */
100
+ public function search_paymentV1( $id ) {
101
+
102
+ $request = array(
103
+ 'uri' => '/v1/payments/' . $id,
104
+ 'params' => array(
105
+ 'access_token' => $this->get_access_token()
106
+ )
107
+ );
108
+
109
+ $payment = MPRestClient::get( $request, $this->version );
110
+ return $payment;
111
+
112
+ }
113
+
114
+ //=== CUSTOMER CARDS FUNCTIONS ===
115
+
116
+ /**
117
+ * Summary: Trigger API to find a card owner and create him if dont find.
118
+ * Description: Trigger API to find a card owner and create him if dont find.
119
+ * @param string $payer_email
120
+ * @return array( json )
121
+ */
122
+ public function get_or_create_customer( $payer_email ) {
123
+
124
+ $customer = $this->search_customer( $payer_email );
125
+
126
+ if ( $customer['status'] == 200 && $customer['response']['paging']['total'] > 0 ) {
127
+ $customer = $customer['response']['results'][0];
128
+ } else {
129
+ $resp = $this->create_customer( $payer_email );
130
+ $customer = $resp['response'];
131
+ }
132
+
133
+ return $customer;
134
+
135
+ }
136
+
137
+ /**
138
+ * Summary: Create a card owner.
139
+ * Description: Create a card owner.
140
+ * @param string $payer_email
141
+ * @return array( json )
142
+ */
143
+ public function create_customer( $email ) {
144
+
145
+ $request = array(
146
+ 'uri' => '/v1/customers',
147
+ 'params' => array(
148
+ 'access_token' => $this->get_access_token()
149
+ ),
150
+ 'data' => array(
151
+ 'email' => $email
152
+ )
153
+ );
154
+
155
+ $customer = MPRestClient::post( $request, $this->version );
156
+ return $customer;
157
+
158
+ }
159
+
160
+ /**
161
+ * Summary: Try to find a card owner.
162
+ * Description: Try to find a card owner.
163
+ * @param string $payer_email
164
+ * @return array( json )
165
+ */
166
+ public function search_customer( $email ) {
167
+
168
+ $request = array(
169
+ 'uri' => '/v1/customers/search',
170
+ 'params' => array(
171
+ 'access_token' => $this->get_access_token(),
172
+ 'email' => $email
173
+ )
174
+ );
175
+
176
+ $customer = MPRestClient::get( $request, $this->version );
177
+ return $customer;
178
+
179
+ }
180
+
181
+ /**
182
+ * Summary: Given a customer, create a card for him.
183
+ * Description: Given a customer, create a card for him.
184
+ * @param string $customer_id
185
+ * @param string $token
186
+ * @param string $payment_method_id
187
+ * @param string $issuer_id
188
+ * @return array( json )
189
+ */
190
+ public function create_card_in_customer( $customer_id, $token, $payment_method_id = null,
191
+ $issuer_id = null ) {
192
+
193
+ $request = array(
194
+ 'uri' => '/v1/customers/' . $customer_id . '/cards',
195
+ 'params' => array(
196
+ 'access_token' => $this->get_access_token()
197
+ ),
198
+ 'data' => array(
199
+ 'token' => $token,
200
+ 'issuer_id' => $issuer_id,
201
+ 'payment_method_id' => $payment_method_id
202
+ )
203
+ );
204
+
205
+ $card = MPRestClient::post( $request, $this->version );
206
+ return $card;
207
+
208
+ }
209
+
210
+ /**
211
+ * Summary: Given a customer, find all of his cards.
212
+ * Description: Given a customer, find all of his cards.
213
+ * @param string $customer_id
214
+ * @param string $token
215
+ * @return array( json )
216
+ */
217
+ public function get_all_customer_cards( $customer_id, $token ) {
218
+
219
+ $request = array(
220
+ 'uri' => '/v1/customers/' . $customer_id . '/cards',
221
+ 'params' => array(
222
+ 'access_token' => $this->get_access_token()
223
+ )
224
+ );
225
+
226
+ $cards = MPRestClient::get( $request, $this->version );
227
+ return $cards;
228
+
229
+ }
230
+
231
+ //=== COUPOM AND DISCOUNTS FUNCTIONS ===
232
+
233
+ /**
234
+ * Summary: Check for discounts for a combination of amount, payer and coupm code.
235
+ * Description: Check for discounts for a combination of amount, payer and coupm code.
236
+ * @param string $transaction_amount
237
+ * @param string $payer_email
238
+ * @param string $coupon_code
239
+ * @return array( json )
240
+ */
241
+ public function check_discount_campaigns( $transaction_amount, $payer_email, $coupon_code ) {
242
+
243
+ $request = array(
244
+ 'uri' => '/discount_campaigns',
245
+ 'params' => array(
246
+ 'access_token' => $this->get_access_token(),
247
+ 'transaction_amount' => $transaction_amount,
248
+ 'payer_email' => $payer_email,
249
+ 'coupon_code' => $coupon_code
250
+ )
251
+ );
252
+
253
+ $discount_info = MPRestClient::get( $request, $this->version );
254
+ return $discount_info;
255
+
256
+ }
257
+
258
+ //=== ACCOUNT SETTINGS FUNCTIONS ===
259
+
260
+ /**
261
+ * Summary: Check the status of a account regarding its option to use two cards for pay.
262
+ * Description: Check the status of a account regarding its option to use two cards for pay.
263
+ * @return array( json )
264
+ */
265
+ public function check_two_cards() {
266
+
267
+ $request = array(
268
+ 'uri' => '/account/settings?access_token=' . $this->get_access_token()
269
+ );
270
+
271
+ $two_cards_info = MPRestClient::get( $request, $this->version );
272
+ if ( $two_cards_info['status'] == 200 )
273
+ return $two_cards_info['response']['two_cards'];
274
+ else {
275
+ return 'inactive';
276
+ }
277
+
278
+ }
279
+
280
+ /**
281
+ * Summary: Set paymennts with two cards for the merchant.
282
+ * Description: Set paymennts with two cards for the merchant.
283
+ * @param string $mode ( should be 'active' or 'inactive' string )
284
+ * @return array( json )
285
+ */
286
+ public function set_two_cards_mode( $mode ) {
287
+
288
+ $request = array(
289
+ 'uri' => '/account/settings?access_token=' . $this->get_access_token(),
290
+ 'data' => array(
291
+ 'two_cards' => $mode
292
+ ),
293
+ 'headers' => array(
294
+ 'content-type' => 'application/json'
295
+ )
296
+ );
297
+
298
+ $two_cards_info = MPRestClient::put( $request, $this->version );
299
+ return $two_cards_info;
300
+
301
+ }
302
+
303
+ //=== CHECKOUT AUXILIARY FUNCTIONS ===
304
+
305
+ /**
306
+ * Summary: Get information for specific payment.
307
+ * Description: Get information for specific payment.
308
+ * @param int $id
309
+ * @return array( json )
310
+ */
311
+ public function get_payment_info( $id ) {
312
+
313
+ $uri_prefix = $this->sandbox ? '/sandbox' : '';
314
+
315
+ $request = array(
316
+ 'uri' => $uri_prefix.'/collections/notifications/{$id}',
317
+ 'params' => array(
318
+ 'access_token' => $this->get_access_token()
319
+ )
320
+ );
321
+
322
+ $payment_info = MPRestClient::get( $request, $this->version );
323
+ return $payment_info;
324
+
325
+ }
326
+
327
+ /**
328
+ * Summary: Search payments according to filters, with pagination.
329
+ * Description: Search payments according to filters, with pagination.
330
+ * @param array $filters
331
+ * @param int $offset
332
+ * @param int $limit
333
+ * @return array( json )
334
+ */
335
+ public function search_payment( $filters, $offset = 0, $limit = 0 ) {
336
+
337
+ $filters['offset'] = $offset;
338
+ $filters['limit'] = $limit;
339
+
340
+ $uri_prefix = $this->sandbox ? '/sandbox' : '';
341
+
342
+ $request = array(
343
+ 'uri' => $uri_prefix . '/collections/search',
344
+ 'params' => array_merge ( $filters, array(
345
+ 'access_token' => $this->get_access_token()
346
+ ) )
347
+ );
348
+
349
+ $collection_result = MPRestClient::get( $request, $this->version );
350
+ return $collection_result;
351
+
352
+ }
353
+
354
+ /**
355
+ * Summary: Get information for specific authorized payment.
356
+ * Description: Get information for specific authorized payment.
357
+ * @param id
358
+ * @return array( json )
359
+ */
360
+ public function get_authorized_payment( $id ) {
361
+
362
+ $request = array(
363
+ 'uri' => '/authorized_payments/{$id}',
364
+ 'params' => array(
365
+ 'access_token' => $this->get_access_token()
366
+ )
367
+ );
368
+
369
+ $authorized_payment_info = MPRestClient::get( $request, $this->version );
370
+ return $authorized_payment_info;
371
+
372
+ }
373
+
374
+ /**
375
+ * Summary: Create a checkout preference.
376
+ * Description: Create a checkout preference.
377
+ * @param array $preference
378
+ * @return array( json )
379
+ */
380
+ public function create_preference( $preference ) {
381
+
382
+ $request = array(
383
+ 'uri' => '/checkout/preferences',
384
+ 'params' => array(
385
+ 'access_token' => $this->get_access_token()
386
+ ),
387
+ 'headers' => array(
388
+ 'user-agent' => 'platform:desktop,type:woocommerce,so:' . $this->version
389
+ ),
390
+ 'data' => $preference
391
+ );
392
+
393
+ $preference_result = MPRestClient::post( $request, $this->version );
394
+ return $preference_result;
395
+
396
+ }
397
+
398
+ /**
399
+ * Summary: Update a checkout preference.
400
+ * Description: Update a checkout preference.
401
+ * @param string $id
402
+ * @param array $preference
403
+ * @return array( json )
404
+ */
405
+ public function update_preference( $id, $preference ) {
406
+
407
+ $request = array(
408
+ 'uri' => '/checkout/preferences/{$id}',
409
+ 'params' => array(
410
+ 'access_token' => $this->get_access_token()
411
+ ),
412
+ 'data' => $preference
413
+ );
414
+
415
+ $preference_result = MPRestClient::put( $request, $this->version );
416
+ return $preference_result;
417
+
418
+ }
419
+
420
+ /**
421
+ * Summary: Get a checkout preference.
422
+ * Description: Get a checkout preference.
423
+ * @param string $id
424
+ * @return array( json )
425
+ */
426
+ public function get_preference( $id ) {
427
+
428
+ $request = array(
429
+ 'uri' => '/checkout/preferences/{$id}',
430
+ 'params' => array(
431
+ 'access_token' => $this->get_access_token()
432
+ )
433
+ );
434
+
435
+ $preference_result = MPRestClient::get( $request, $this->version );
436
+ return $preference_result;
437
+
438
+ }
439
+
440
+ /**
441
+ * Summary: Create a checkout preference.
442
+ * Description: Create a checkout preference.
443
+ * @param array $preference
444
+ * @return array( json )
445
+ */
446
+ public function create_payment( $preference ) {
447
+
448
+ $request = array(
449
+ 'uri' => '/v1/payments',
450
+ 'params' => array(
451
+ 'access_token' => $this->get_access_token()
452
+ ),
453
+ 'headers' => array(
454
+ 'X-Tracking-Id' => 'platform:v1-whitelabel,type:woocommerce,so:' . $this->version
455
+ ),
456
+ 'data' => $preference
457
+ );
458
+
459
+ $payment = MPRestClient::post( $request, $this->version );
460
+ return $payment;
461
+ }
462
+
463
+ /**
464
+ * Summary: Create a preapproval payment.
465
+ * Description: Create a preapproval payment.
466
+ * @param array $preapproval_payment
467
+ * @return array( json )
468
+ */
469
+ public function create_preapproval_payment( $preapproval_payment ) {
470
+
471
+ $request = array(
472
+ 'uri' => '/preapproval',
473
+ 'params' => array(
474
+ 'access_token' => $this->get_access_token()
475
+ ),
476
+ 'data' => $preapproval_payment
477
+ );
478
+
479
+ $preapproval_payment_result = MPRestClient::post( $request, $this->version );
480
+ return $preapproval_payment_result;
481
+
482
+ }
483
+
484
+ /**
485
+ * Summary: Get a preapproval payment.
486
+ * Description: Get a preapproval payment.
487
+ * @param string $id
488
+ * @return array( json )
489
+ */
490
+ public function get_preapproval_payment( $id ) {
491
+
492
+ $request = array(
493
+ 'uri' => '/preapproval/{$id}',
494
+ 'params' => array(
495
+ 'access_token' => $this->get_access_token()
496
+ )
497
+ );
498
+
499
+ $preapproval_payment_result = MPRestClient::get( $request, $this->version );
500
+ return $preapproval_payment_result;
501
+
502
+ }
503
+
504
+ /**
505
+ * Summary: Update a preapproval payment.
506
+ * Description: Update a preapproval payment.
507
+ * @param string $preapproval_payment, $id
508
+ * @return array( json )
509
+ */
510
+ public function update_preapproval_payment( $id, $preapproval_payment ) {
511
+
512
+ $request = array(
513
+ 'uri' => '/preapproval/{$id}',
514
+ 'params' => array(
515
+ 'access_token' => $this->get_access_token()
516
+ ),
517
+ 'data' => $preapproval_payment
518
+ );
519
+
520
+ $preapproval_payment_result = MPRestClient::put( $request, $this->version );
521
+ return $preapproval_payment_result;
522
+
523
+ }
524
+
525
+ //=== REFUND AND CANCELING FLOW FUNCTIONS ===
526
+
527
+ /**
528
+ * Summary: Refund accredited payment.
529
+ * Description: Refund accredited payment.
530
+ * @param int $id
531
+ * @return array( json )
532
+ */
533
+ public function refund_payment( $id ) {
534
+
535
+ $request = array(
536
+ 'uri' => '/collections/' . $id,
537
+ 'params' => array(
538
+ 'access_token' => $this->get_access_token()
539
+ ),
540
+ 'data' => '{"status":"refunded"}'
541
+ );
542
+
543
+ $response = MPRestClient::put( $request, $this->version );
544
+ return $response;
545
+
546
+ }
547
+
548
+ /**
549
+ * Summary: Cancel pending payment.
550
+ * Description: Cancel pending payment.
551
+ * @param int $id
552
+ * @return array( json )
553
+ */
554
+ public function cancel_payment( $id ) {
555
+
556
+ $request = array(
557
+ 'uri' => '/collections/' . $id,
558
+ 'params' => array(
559
+ 'access_token' => $this->get_access_token()
560
+ ),
561
+ 'data' => '{"status":"cancelled"}'
562
+ );
563
+
564
+ $response = MPRestClient::put( $request, $this->version );
565
+ return $response;
566
+
567
+ }
568
+
569
+ /**
570
+ * Summary: Cancel preapproval payment.
571
+ * Description: Cancel preapproval payment.
572
+ * @param int $id
573
+ * @return array( json )
574
+ */
575
+ public function cancel_preapproval_payment( $id ) {
576
+
577
+ $request = array(
578
+ 'uri' => '/preapproval/{$id}',
579
+ 'params' => array(
580
+ 'access_token' => $this->get_access_token()
581
+ ),
582
+ 'data' => array(
583
+ 'status' => 'cancelled'
584
+ )
585
+ );
586
+
587
+ $response = MPRestClient::put( $request, $this->version );
588
+ return $response;
589
+
590
+ }
591
+
592
+ //=== GENERIC RESOURCE CALL METHODS ===
593
+
594
+ /**
595
+ * Summary: Generic resource get.
596
+ * Description: Generic resource get.
597
+ * @param request
598
+ * @param params (deprecated)
599
+ * @param authenticate = true (deprecated)
600
+ */
601
+ public function get( $request, $params = null, $authenticate = true ) {
602
+
603
+ if ( is_string ( $request ) ) {
604
+ $request = array(
605
+ 'uri' => $request,
606
+ 'params' => $params,
607
+ 'authenticate' => $authenticate
608
+ );
609
+ }
610
+
611
+ $request['params'] = isset( $request['params'] ) && is_array( $request['params'] ) ?
612
+ $request['params'] :
613
+ array();
614
+
615
+ if ( ! isset( $request['authenticate'] ) || $request['authenticate'] !== false ) {
616
+ $request['params']['access_token'] = $this->get_access_token();
617
+ }
618
+
619
+ $result = MPRestClient::get( $request, $this->version );
620
+ return $result;
621
+
622
+ }
623
+
624
+ /**
625
+ * Summary: Generic resource post.
626
+ * Description: Generic resource get.
627
+ * @param request
628
+ * @param data (deprecated)
629
+ * @param params (deprecated)
630
+ */
631
+ public function post( $request, $data = null, $params = null ) {
632
+
633
+ if ( is_string ( $request ) ) {
634
+ $request = array(
635
+ 'uri' => $request,
636
+ 'data' => $data,
637
+ 'params' => $params
638
+ );
639
+ }
640
+
641
+ $request['params'] = isset( $request['params'] ) && is_array( $request['params'] ) ?
642
+ $request["params"] :
643
+ array();
644
+
645
+ if ( ! isset ( $request['authenticate'] ) || $request['authenticate'] !== false ) {
646
+ $request['params']['access_token'] = $this->get_access_token();
647
+ }
648
+
649
+ $result = MPRestClient::post( $request, $this->version );
650
+ return $result;
651
+
652
+ }
653
+
654
+ /**
655
+ * Summary: Generic resource put.
656
+ * Description: Generic resource put.
657
+ * @param request
658
+ * @param data (deprecated)
659
+ * @param params (deprecated)
660
+ */
661
+ public function put( $request, $data = null, $params = null ) {
662
+
663
+ if ( is_string ( $request ) ) {
664
+ $request = array(
665
+ 'uri' => $request,
666
+ 'data' => $data,
667
+ 'params' => $params
668
+ );
669
+ }
670
+
671
+ $request['params'] = isset( $request['params'] ) && is_array( $request['params'] ) ?
672
+ $request['params'] :
673
+ array();
674
+
675
+ if ( ! isset ( $request['authenticate'] ) || $request['authenticate'] !== false ) {
676
+ $request['params']['access_token'] = $this->get_access_token();
677
+ }
678
+
679
+ $result = MPRestClient::put( $request, $this->version );
680
+ return $result;
681
+
682
+ }
683
+
684
+ /**
685
+ * Summary: Generic resource delete.
686
+ * Description: Generic resource delete.
687
+ * @param request
688
+ * @param data (deprecated)
689
+ * @param params (deprecated)
690
+ */
691
+ public function delete( $request, $params = null ) {
692
+
693
+ if ( is_string ( $request ) ) {
694
+ $request = array(
695
+ 'uri' => $request,
696
+ 'params' => $params
697
+ );
698
+ }
699
+
700
+ $request['params'] = isset( $request['params'] ) && is_array( $request['params'] ) ?
701
+ $request['params'] :
702
+ array();
703
+
704
+ if ( ! isset( $request['authenticate'] ) || $request['authenticate'] !== false ) {
705
+ $request['params']['access_token'] = $this->get_access_token();
706
+ }
707
+
708
+ $result = MPRestClient::delete( $request, $this->version );
709
+ return $result;
710
+
711
+ }
712
+
713
+ //=== MODULE ANALYTICS FUNCTIONS ===
714
+
715
+ /**
716
+ * Summary: Save the settings of the module for analytics purposes.
717
+ * Description: Save the settings of the module for analytics purposes.
718
+ * @param array( json )
719
+ * @return array( json )
720
+ */
721
+ public function analytics_save_settings( $module_info ) {
722
+
723
+ $request = array(
724
+ 'uri' => '/modules/tracking/settings?access_token=' . $this->get_access_token(),
725
+ 'data' => $module_info
726
+ );
727
+
728
+ $result = MPRestClient::post( $request, $this->version );
729
+ return $result;
730
+
731
+ }
732
 
733
  }
734
 
736
  * MercadoPago cURL RestClient
737
  */
738
  class MPRestClient {
739
+
740
+ const API_BASE_URL = 'https://api.mercadopago.com';
741
+
742
+ private static function build_request( $request, $version ) {
743
+
744
+ if ( ! extension_loaded ( 'curl' ) ) {
745
+ throw new MercadoPagoException( 'cURL extension not found. You need to enable cURL in your php.ini or another configuration you have.' );
746
+ }
747
+
748
+ if ( ! isset( $request['method'] ) ) {
749
+ throw new MercadoPagoException( 'No HTTP METHOD specified' );
750
+ }
751
+
752
+ if ( ! isset( $request['uri'] ) ) {
753
+ throw new MercadoPagoException( 'No URI specified' );
754
+ }
755
+
756
+ // Set headers
757
+ $headers = array( 'accept: application/json' );
758
+ $json_content = true;
759
+ $form_content = false;
760
+ $default_content_type = true;
761
+
762
+ if ( isset( $request['headers'] ) && is_array( $request['headers'] ) ) {
763
+ foreach ( $request['headers'] as $h => $v ) {
764
+ $h = strtolower( $h );
765
+ $v = strtolower( $v );
766
+ if ( $h == 'content-type' ) {
767
+ $default_content_type = false;
768
+ $json_content = $v == 'application/json';
769
+ $form_content = $v == 'application/x-www-form-urlencoded';
770
+ }
771
+ array_push ( $headers, $h . ': ' . $v );
772
+ }
773
+ }
774
+ if ( $default_content_type ) {
775
+ array_push( $headers, 'content-type: application/json' );
776
+ }
777
+
778
+ // Build $connect
779
+ $connect = curl_init();
780
+
781
+ curl_setopt(
782
+ $connect,
783
+ CURLOPT_USERAGENT,
784
+ 'platform:v1-whitelabel,type:woocommerce,so:' . $version );
785
+ curl_setopt(
786
+ $connect,
787
+ CURLOPT_RETURNTRANSFER,
788
+ true );
789
+ curl_setopt(
790
+ $connect,
791
+ CURLOPT_SSL_VERIFYPEER,
792
+ true );
793
+ curl_setopt(
794
+ $connect,
795
+ CURLOPT_CAINFO,
796
+ $GLOBALS['LIB_LOCATION'] . '/cacert.pem' );
797
+ curl_setopt(
798
+ $connect,
799
+ CURLOPT_CUSTOMREQUEST,
800
+ $request['method'] );
801
+ curl_setopt(
802
+ $connect,
803
+ CURLOPT_HTTPHEADER,
804
+ $headers );
805
+
806
+ // Set parameters and url
807
+ if ( isset( $request['params'] ) && is_array( $request['params'] ) ) {
808
+ if ( count( $request['params'] > 0 ) ) {
809
+ $request['uri'] .= ( strpos( $request['uri'], '?' ) === false ) ? '?' : '&';
810
+ $request['uri'] .= self::build_query( $request['params'] );
811
+ }
812
+ }
813
+ curl_setopt( $connect, CURLOPT_URL, MPRestClient::API_BASE_URL . $request['uri'] );
814
+
815
+ // Set data
816
+ if ( isset( $request['data'] ) ) {
817
+ if ( $json_content ) {
818
+ if ( gettype( $request['data'] ) == 'string' ) {
819
+ json_decode( $request['data'], true );
820
+ } else {
821
+ $request['data'] = json_encode( $request['data'] );
822
+ }
823
+ if( function_exists( 'json_last_error' ) ) {
824
+ $json_error = json_last_error();
825
+ if ( $json_error != JSON_ERROR_NONE ) {
826
+ throw new MercadoPagoException(
827
+ 'JSON Error [{$json_error}] - Data: ' . $request['data']
828
+ );
829
+ }
830
+ }
831
+ } elseif ( $form_content ) {
832
+ $request['data'] = self::build_query( $request['data'] );
833
+ }
834
+ curl_setopt( $connect, CURLOPT_POSTFIELDS, $request['data'] );
835
+ }
836
+
837
+ return $connect;
838
+
839
+ }
840
+
841
+ private static function exec( $request, $version ) {
842
+
843
+ $connect = self::build_request( $request, $version );
844
+
845
+ $api_result = curl_exec( $connect );
846
+ $api_http_code = curl_getinfo( $connect, CURLINFO_HTTP_CODE );
847
+
848
+ if ( $api_result === FALSE ) {
849
+ throw new MercadoPagoException ( curl_error ( $connect ) );
850
+ }
851
+
852
+ $response = array(
853
+ 'status' => $api_http_code,
854
+ 'response' => json_decode( $api_result, true )
855
+ );
856
+
857
+ curl_close( $connect );
858
+
859
+ return $response;
860
+
861
+ }
862
+
863
+ private static function build_query( $params ) {
864
+
865
+ if ( function_exists( 'http_build_query' ) ) {
866
+ return http_build_query( $params, '', '&' );
867
+ } else {
868
+ foreach ( $params as $name => $value ) {
869
+ $elements[] = '{$name}=' . urlencode( $value );
870
+ }
871
+ return implode( '&', $elements );
872
+ }
873
+
874
+ }
875
+
876
+ public static function get( $request, $version ) {
877
+ $request['method'] = 'GET';
878
+
879
+ return self::exec( $request, $version );
880
+ }
881
+
882
+ public static function post( $request, $version ) {
883
+ $request['method'] = 'POST';
884
+
885
+ return self::exec( $request, $version );
886
+ }
887
+
888
+ public static function put( $request, $version ) {
889
+ $request['method'] = 'PUT';
890
+
891
+ return self::exec( $request, $version );
892
+ }
893
+
894
+ public static function delete( $request, $version ) {
895
+ $request['method'] = 'DELETE';
896
+
897
+ return self::exec( $request, $version );
898
+ }
899
+
900
  }
901
 
902
  class MercadoPagoException extends Exception {
903
+ public function __construct( $message, $code = 500, Exception $previous = null ) {
904
+ // Default code 500
905
+ parent::__construct( $message, $code, $previous );
906
+ }
907
+ }
templates/credit-card/payment-form.php ADDED
@@ -0,0 +1,1257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Part of Woo Mercado Pago Module
5
+ * Author - Mercado Pago
6
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
7
+ * Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
8
+ * License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
9
+ */
10
+
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ exit;
13
+ }
14
+
15
+ ?>
16
+
17
+ <div width="100%" style="margin:1px; padding:36px 36px 16px 36px; background:white;">
18
+ <img class="logo" src="<?php echo ($images_path . 'mplogo.png'); ?>" width="156" height="40"/>
19
+ <?php if ( ! empty( $banner_path ) ) : ?>
20
+ <img class="mp-creditcard-banner" src="<?php echo $banner_path;?>" width="312" height="40"/>
21
+ <?php endif; ?>
22
+ </div>
23
+ <fieldset style="background:white;">
24
+
25
+ <div class="mp-box-inputs mp-line" id="mercadopago-form-coupon"
26
+ style="padding:0px 36px 16px 36px;">
27
+ <label for="couponCodeLabel">
28
+ <?php echo $form_labels['form']['coupon_of_discounts']; ?>
29
+ </label>
30
+ <div class="mp-box-inputs mp-col-65">
31
+ <input type="text" id="couponCode" name="mercadopago_custom[coupon_code]"
32
+ autocomplete="off" maxlength="24"/>
33
+ <span class="mp-discount" id="mpCouponApplyed"></span>
34
+ <span class="mp-error" id="mpCouponError"></span>
35
+ </div>
36
+ <div class="mp-box-inputs mp-col-10">
37
+ <div id="mp-separete-date"></div>
38
+ </div>
39
+ <div class="mp-box-inputs mp-col-25">
40
+ <input type="button" class="button" id="applyCoupon"
41
+ value="<?php echo $form_labels['form']['apply']; ?>">
42
+ </div>
43
+ </div>
44
+
45
+ <!-- payment method -->
46
+ <div id="mercadopago-form-customer-and-card" style="padding:0px 36px 0px 36px;">
47
+ <div class="mp-box-inputs mp-line">
48
+ <label for="paymentMethodIdSelector">
49
+ <?php echo $form_labels['form']['payment_method']; ?> <em>*</em>
50
+ </label>
51
+ <select id="paymentMethodSelector" name="mercadopago_custom[paymentMethodSelector]"
52
+ data-checkout="cardId">
53
+ <optgroup label=<?php echo $form_labels['form']['your_card']; ?>
54
+ id="payment-methods-for-customer-and-cards">
55
+ <?php foreach ($customer_cards as $card) : ?>
56
+ <option value=<?php echo $card['id']; ?>
57
+ first_six_digits=<?php echo $card['first_six_digits']; ?>
58
+ last_four_digits=<?php echo $card['last_four_digits']; ?>
59
+ security_code_length=<?php echo $card['security_code']['length']; ?>
60
+ type_checkout='customer_and_card'
61
+ payment_method_id=<?php echo $card['payment_method']['id']; ?>>
62
+ <?php echo ucfirst($card['payment_method']['name']); ?>
63
+ <?php echo $form_labels['form']['ended_in']; ?>
64
+ <?php echo $card['last_four_digits']; ?>
65
+ </option>
66
+ <?php endforeach; ?>
67
+ </optgroup>
68
+ <optgroup label="<?php echo $form_labels['form']['other_cards']; ?>"
69
+ id="payment-methods-list-other-cards">
70
+ <option value="-1"><?php echo $form_labels['form']['other_card']; ?></option>
71
+ </optgroup>
72
+ </select>
73
+ </div>
74
+ <div class="mp-box-inputs mp-line" id="mp-securityCode-customer-and-card">
75
+ <div class="mp-box-inputs mp-col-45">
76
+ <label for="customer-and-card-securityCode">
77
+ <?php echo $form_labels['form']['security_code']; ?> <em>*</em>
78
+ </label>
79
+ <input type="text" id="customer-and-card-securityCode" data-checkout="securityCode"
80
+ autocomplete="off" maxlength="4" style="padding: 8px;
81
+ background: url(<?php echo ($images_path . 'cvv.png'); ?>) 98% 50% no-repeat;"/>
82
+ <span class="mp-error" id="mp-error-224" data-main="#customer-and-card-securityCode">
83
+ <?php echo $form_labels['error']['224']; ?>
84
+ </span>
85
+ <span class="mp-error" id="mp-error-E302" data-main="#customer-and-card-securityCode">
86
+ <?php echo $form_labels['error']['E302']; ?>
87
+ </span>
88
+ <span class="mp-error" id="mp-error-E203" data-main="#customer-and-card-securityCode">
89
+ <?php echo $form_labels['error']['E203']; ?>
90
+ </span>
91
+ </div>
92
+ </div>
93
+ </div> <!-- end mercadopago-form-osc -->
94
+
95
+ <div id="mercadopago-form" style="padding:0px 36px 0px 36px;">
96
+ <!-- Card Number -->
97
+ <div class="mp-box-inputs mp-col-100">
98
+ <label for="cardNumber">
99
+ <?php echo $form_labels['form']['credit_card_number']; ?> <em>*</em>
100
+ </label>
101
+ <input type="text" id="cardNumber" data-checkout="cardNumber" autocomplete="off"
102
+ maxlength="19"/>
103
+ <span class="mp-error" id="mp-error-205" data-main="#cardNumber">
104
+ <?php echo $form_labels['error']['205']; ?>
105
+ </span>
106
+ <span class="mp-error" id="mp-error-E301" data-main="#cardNumber">
107
+ <?php echo $form_labels['error']['E301']; ?>
108
+ </span>
109
+ </div>
110
+ <!-- Expiry Date -->
111
+ <div class="mp-box-inputs mp-line">
112
+ <div class="mp-box-inputs mp-col-45">
113
+ <label for="cardExpirationMonth">
114
+ <?php echo $form_labels['form']['expiration_month']; ?> <em>*</em>
115
+ </label>
116
+ <select id="cardExpirationMonth" data-checkout="cardExpirationMonth"
117
+ name="mercadopago_custom[cardExpirationMonth]">
118
+ <option value="-1"> <?php echo $form_labels['form']['month']; ?> </option>
119
+ <?php for ($x=1; $x<=12; $x++) : ?>
120
+ <option value="<?php echo $x; ?>"> <?php echo $x; ?></option>
121
+ <?php endfor; ?>
122
+ </select>
123
+ </div>
124
+ <div class="mp-box-inputs mp-col-10">
125
+ <div id="mp-separete-date"> / </div>
126
+ </div>
127
+ <div class="mp-box-inputs mp-col-45">
128
+ <label for="cardExpirationYear">
129
+ <?php echo $form_labels['form']['expiration_year']; ?> <em>*</em>
130
+ </label>
131
+ <select id="cardExpirationYear" data-checkout="cardExpirationYear"
132
+ name="mercadopago_custom[cardExpirationYear]">
133
+ <option value="-1"> <?php echo $form_labels['form']['year']; ?> </option>
134
+ <?php for ($x=date("Y"); $x<= date("Y") + 10; $x++) : ?>
135
+ <option value="<?php echo $x; ?>"> <?php echo $x; ?> </option>
136
+ <?php endfor; ?>
137
+ </select>
138
+ </div>
139
+ <span class="mp-error" id="mp-error-208" data-main="#cardExpirationMonth">
140
+ <?php echo $form_labels['error']['208']; ?>
141
+ </span>
142
+ <span class="mp-error" id="mp-error-209" data-main="#cardExpirationYear"> </span>
143
+ <span class="mp-error" id="mp-error-325" data-main="#cardExpirationMonth">
144
+ <?php echo $form_labels['error']['325']; ?>
145
+ </span>
146
+ <span class="mp-error" id="mp-error-326" data-main="#cardExpirationYear"> </span>
147
+ </div>
148
+ <!-- Card Holder Name -->
149
+ <div class="mp-box-inputs mp-col-100">
150
+ <label for="cardholderName">
151
+ <?php echo $form_labels['form']['card_holder_name']; ?> <em>*</em>
152
+ </label>
153
+ <input type="text" id="cardholderName" name="mercadopago_custom[cardholderName]"
154
+ data-checkout="cardholderName" autocomplete="off" />
155
+ <span class="mp-error" id="mp-error-221" data-main="#cardholderName">
156
+ <?php echo $form_labels['error']['221']; ?>
157
+ </span>
158
+ <span class="mp-error" id="mp-error-316" data-main="#cardholderName">
159
+ <?php echo $form_labels['error']['316']; ?>
160
+ </span>
161
+ </div>
162
+ <!-- CVV -->
163
+ <div class="mp-box-inputs mp-line">
164
+ <div class="mp-box-inputs mp-col-45">
165
+ <label for="securityCode">
166
+ <?php echo $form_labels['form']['security_code']; ?> <em>*</em>
167
+ </label>
168
+ <input type="text" id="securityCode" data-checkout="securityCode"
169
+ autocomplete="off" maxlength="4" style="padding: 8px;
170
+ background: url(<?php echo ($images_path . 'cvv.png'); ?>) 98% 50% no-repeat;" />
171
+ <span class="mp-error" id="mp-error-224" data-main="#securityCode">
172
+ <?php echo $form_labels['error']['224']; ?>
173
+ </span>
174
+ <span class="mp-error" id="mp-error-E302" data-main="#securityCode">
175
+ <?php echo $form_labels['error']['E302']; ?>
176
+ </span>
177
+ </div>
178
+ </div>
179
+ <!-- Document Type -->
180
+ <div class="mp-box-inputs mp-col-100 mp-doc">
181
+ <div class="mp-box-inputs mp-col-35 mp-docType">
182
+ <label for="docType">
183
+ <?php echo $form_labels['form']['document_type']; ?> <em>*</em>
184
+ </label>
185
+ <select id="docType" data-checkout="docType"
186
+ name="mercadopago_custom[docType]"></select>
187
+ <span class="mp-error" id="mp-error-212" data-main="#docType">
188
+ <?php echo $form_labels['error']['212']; ?>
189
+ </span>
190
+ <span class="mp-error" id="mp-error-322" data-main="#docType">
191
+ <?php echo $form_labels['error']['322']; ?>
192
+ </span>
193
+ </div>
194
+ <div class="mp-box-inputs mp-col-65 mp-docNumber">
195
+ <label for="docNumber">
196
+ <?php echo $form_labels['form']['document_number']; ?> <em>*</em>
197
+ </label>
198
+ <input type="text" id="docNumber" data-checkout="docNumber"
199
+ name="mercadopago_custom[docNumber]" autocomplete="off" />
200
+ <span class="mp-error" id="mp-error-214" data-main="#docNumber">
201
+ <?php echo $form_labels['error']['214']; ?>
202
+ </span>
203
+ <span class="mp-error" id="mp-error-324" data-main="#docNumber">
204
+ <?php echo $form_labels['error']['324']; ?>
205
+ </span>
206
+ </div>
207
+ </div>
208
+ <!-- Issuer -->
209
+ <div class="mp-box-inputs mp-col-100 mp-issuer">
210
+ <label for="issuer">
211
+ <?php echo $form_labels['form']['issuer']; ?> <em>*</em>
212
+ </label>
213
+ <select id="issuer" data-checkout="issuer" name="mercadopago_custom[issuer]"></select>
214
+ <span class="mp-error" id="mp-error-220" data-main="#issuer">
215
+ <?php echo $form_labels['error']['220']; ?>
216
+ </span>
217
+ </div>
218
+ </div> <!-- end #mercadopago-form -->
219
+
220
+ <div class="mp-box-inputs mp-col-100" style="padding:0px 36px 0px 36px;">
221
+ <label for="installments">
222
+ <?php echo $form_labels['form']['installments']; ?>
223
+ <?php if ($is_currency_conversion > 0) :
224
+ echo "(" . $form_labels['form']['payment_converted'] . " " .
225
+ $woocommerce_currency . " " . $form_labels['form']['to'] . " " .
226
+ $account_currency . ")";
227
+ endif; ?> <em>*</em>
228
+ </label>
229
+ <select id="installments" data-checkout="installments"
230
+ name="mercadopago_custom[installments]"></select>
231
+ </div>
232
+ <div class="mp-box-inputs mp-line" style="padding:0px 36px 0px 36px;">
233
+ <!-- NOT DELETE LOADING-->
234
+ <div class="mp-box-inputs mp-col-25">
235
+ <div id="mp-box-loading"></div>
236
+ </div>
237
+ </div>
238
+
239
+ <div class="mp-box-inputs mp-col-100" id="mercadopago-utilities"
240
+ style="padding:0px 36px 0px 36px;">
241
+ <input type="hidden" id="site_id" name="mercadopago_custom[site_id]"/>
242
+ <input type="hidden" id="amount" value='<?php echo $amount; ?>'
243
+ name="mercadopago_custom[amount]"/>
244
+ <input type="hidden" id="campaign_id" name="mercadopago_custom[campaign_id]"/>
245
+ <input type="hidden" id="campaign" name="mercadopago_custom[campaign]"/>
246
+ <input type="hidden" id="discount" name="mercadopago_custom[discount]"/>
247
+ <input type="hidden" id="paymentMethodId" name="mercadopago_custom[paymentMethodId]"/>
248
+ <input type="hidden" id="token" name="mercadopago_custom[token]"/>
249
+ <input type="hidden" id="cardTruncated" name="mercadopago_custom[cardTruncated]"/>
250
+ <input type="hidden" id="CustomerAndCard" name="mercadopago_custom[CustomerAndCard]"/>
251
+ <input type="hidden" id="CustomerId" value='<?php echo $customerId; ?>'
252
+ name="mercadopago_custom[CustomerId]"/>
253
+ </div>
254
+
255
+ </fieldset>
256
+
257
+ <script type="text/javascript">
258
+
259
+ ( function() {
260
+
261
+ var MPv1 = {
262
+ debug: true,
263
+ add_truncated_card: true,
264
+ site_id: "",
265
+ public_key: "",
266
+ coupon_of_discounts: {
267
+ discount_action_url: "",
268
+ default: true,
269
+ status: false
270
+ },
271
+ customer_and_card: {
272
+ default: true,
273
+ status: true
274
+ },
275
+ create_token_on: {
276
+ event: true, //if true create token on event, if false create on click and ignore others
277
+ keyup: false,
278
+ paste: true
279
+ },
280
+ inputs_to_create_discount: [
281
+ "couponCode",
282
+ "applyCoupon"
283
+ ],
284
+ inputs_to_create_token: [
285
+ "cardNumber",
286
+ "cardExpirationMonth",
287
+ "cardExpirationYear",
288
+ "cardholderName",
289
+ "securityCode",
290
+ "docType",
291
+ "docNumber"
292
+ ],
293
+ inputs_to_create_token_customer_and_card: [
294
+ "paymentMethodSelector",
295
+ "securityCode"
296
+ ],
297
+ selectors: {
298
+ // coupom
299
+ couponCode: "#couponCode",
300
+ applyCoupon: "#applyCoupon",
301
+ mpCouponApplyed: "#mpCouponApplyed",
302
+ mpCouponError: "#mpCouponError",
303
+ campaign_id: "#campaign_id",
304
+ campaign: "#campaign",
305
+ discount: "#discount",
306
+ // customer cards
307
+ paymentMethodSelector: "#paymentMethodSelector",
308
+ pmCustomerAndCards: "#payment-methods-for-customer-and-cards",
309
+ pmListOtherCards: "#payment-methods-list-other-cards",
310
+ // card data
311
+ mpSecurityCodeCustomerAndCard: "#mp-securityCode-customer-and-card",
312
+ cardNumber: "#cardNumber",
313
+ cardExpirationMonth: "#cardExpirationMonth",
314
+ cardExpirationYear: "#cardExpirationYear",
315
+ cardholderName: "#cardholderName",
316
+ securityCode: "#securityCode",
317
+ docType: "#docType",
318
+ docNumber: "#docNumber",
319
+ issuer: "#issuer",
320
+ installments: "#installments",
321
+ // document
322
+ mpDoc: ".mp-doc",
323
+ mpIssuer: ".mp-issuer",
324
+ mpDocType: ".mp-docType",
325
+ mpDocNumber: ".mp-docNumber",
326
+ // payment method and checkout
327
+ paymentMethodId: "#paymentMethodId",
328
+ amount: "#amount",
329
+ token: "#token",
330
+ cardTruncated: "#cardTruncated",
331
+ site_id: "#site_id",
332
+ CustomerAndCard: '#CustomerAndCard',
333
+ box_loading: "#mp-box-loading",
334
+ submit: "#submit",
335
+ // form
336
+ form: '#mercadopago-form',
337
+ formCoupon: '#mercadopago-form-coupon',
338
+ formCustomerAndCard: '#mercadopago-form-customer-and-card',
339
+ utilities_fields: "#mercadopago-utilities"
340
+ },
341
+ text: {
342
+ choose: "Choose",
343
+ other_bank: "Other Bank",
344
+ discount_info1: "You will save",
345
+ discount_info2: "with discount from",
346
+ discount_info3: "Total of your purchase:",
347
+ discount_info4: "Total of your purchase with discount:",
348
+ discount_info5: "*Uppon payment approval",
349
+ discount_info6: "Terms and Conditions of Use",
350
+ coupon_empty: "Please, inform your coupon code",
351
+ apply: "Apply",
352
+ remove: "Remove"
353
+ },
354
+ paths: {
355
+ loading: "images/loading.gif",
356
+ check: "images/check.png",
357
+ error: "images/error.png"
358
+ }
359
+ }
360
+
361
+ // === Coupon of Discounts
362
+
363
+ MPv1.currencyIdToCurrency = function ( currency_id ) {
364
+ if ( currency_id == "ARS" ) {
365
+ return "$";
366
+ } else if ( currency_id == "BRL" ) {
367
+ return "R$";
368
+ } else if ( currency_id == "COP" ) {
369
+ return "$";
370
+ } else if ( currency_id == "CLP" ) {
371
+ return "$";
372
+ } else if ( currency_id == "MXN" ) {
373
+ return "$";
374
+ } else if ( currency_id == "VEF" ) {
375
+ return "Bs";
376
+ } else if ( currency_id == "PEN" ) {
377
+ return "S/";
378
+ } else {
379
+ return "$";
380
+ }
381
+ }
382
+
383
+ MPv1.checkCouponEligibility = function () {
384
+ if ( document.querySelector( MPv1.selectors.couponCode).value == "" ) {
385
+ // Coupon code is empty.
386
+ document.querySelector( MPv1.selectors.mpCouponApplyed ).style.display = "none";
387
+ document.querySelector( MPv1.selectors.mpCouponError ).style.display = "block";
388
+ document.querySelector( MPv1.selectors.mpCouponError ).innerHTML =
389
+ MPv1.text.coupon_empty;
390
+ MPv1.coupon_of_discounts.status = false;
391
+ document.querySelector( MPv1.selectors.couponCode ).style.background = null;
392
+ document.querySelector( MPv1.selectors.applyCoupon ).value = MPv1.text.apply;
393
+ document.querySelector( MPv1.selectors.discount ).value = 0;
394
+ MPv1.cardsHandler();
395
+ } else if ( MPv1.coupon_of_discounts.status ) {
396
+ // We already have a coupon set, so we remove it.
397
+ document.querySelector( MPv1.selectors.mpCouponApplyed ).style.display = "none";
398
+ document.querySelector( MPv1.selectors.mpCouponError ).style.display = "none";
399
+ MPv1.coupon_of_discounts.status = false;
400
+ document.querySelector( MPv1.selectors.applyCoupon ).style.background = null;
401
+ document.querySelector( MPv1.selectors.applyCoupon ).value = MPv1.text.apply;
402
+ document.querySelector( MPv1.selectors.couponCode ).value = "";
403
+ document.querySelector( MPv1.selectors.couponCode ).style.background = null;
404
+ document.querySelector( MPv1.selectors.discount ).value = 0;
405
+ MPv1.cardsHandler();
406
+ } else {
407
+ // Set loading.
408
+ document.querySelector( MPv1.selectors.mpCouponApplyed ).style.display = "none";
409
+ document.querySelector( MPv1.selectors.mpCouponError ).style.display = "none";
410
+ document.querySelector( MPv1.selectors.couponCode ).style.background =
411
+ "url(" + MPv1.paths.loading + ") 98% 50% no-repeat #fff";
412
+ document.querySelector( MPv1.selectors.applyCoupon ).disabled = true;
413
+ // Call method in server to validate coupom.
414
+ var request = new XMLHttpRequest();
415
+ request.open(
416
+ "GET",
417
+ MPv1.coupon_of_discounts.discount_action_url +
418
+ "&coupon_id=" + document.querySelector( MPv1.selectors.couponCode ).value +
419
+ "&amount=" + document.querySelector( MPv1.selectors.amount ).value +
420
+ "&payer=" + document.getElementById( "billing_email" ).value,
421
+ true
422
+ );
423
+ request.onreadystatechange = function() {
424
+ if ( request.readyState == 4 ) {
425
+ if ( request.status == 200 ) {
426
+ var response = JSON.parse(request.responseText);
427
+ if ( response.status == 200 ) {
428
+ document.querySelector( MPv1.selectors.mpCouponApplyed ).style.display =
429
+ "block";
430
+ document.querySelector( MPv1.selectors.discount ).value =
431
+ response.response.coupon_amount;
432
+ document.querySelector( MPv1.selectors.mpCouponApplyed ).innerHTML =
433
+ "<div style='border-style: solid; border-width:thin; " +
434
+ "border-color: #009EE3; padding: 8px 8px 8px 8px; margin-top: 4px;'>" +
435
+ MPv1.text.discount_info1 + " <strong>" +
436
+ MPv1.currencyIdToCurrency( response.response.currency_id ) + " " +
437
+ Math.round( response.response.coupon_amount * 100 ) / 100 +
438
+ "</strong> " + MPv1.text.discount_info2 + " " +
439
+ response.response.name + ".<br>" + MPv1.text.discount_info3 + " <strong>" +
440
+ MPv1.currencyIdToCurrency( response.response.currency_id ) + " " +
441
+ Math.round( MPv1.getAmountWithoutDiscount() * 100 ) / 100 +
442
+ "</strong><br>" + MPv1.text.discount_info4 + " <strong>" +
443
+ MPv1.currencyIdToCurrency( response.response.currency_id ) + " " +
444
+ Math.round( MPv1.getAmount() * 100 ) / 100 + "*</strong><br>" +
445
+ "<i>" + MPv1.text.discount_info5 + "</i><br>" +
446
+ "<a href='https://api.mercadolibre.com/campaigns/" +
447
+ response.response.id +
448
+ "/terms_and_conditions?format_type=html' target='_blank'>" +
449
+ MPv1.text.discount_info6 + "</a></div>";
450
+ document.querySelector( MPv1.selectors.mpCouponError ).style.display =
451
+ "none";
452
+ MPv1.coupon_of_discounts.status = true;
453
+ document.querySelector( MPv1.selectors.couponCode ).style.background =
454
+ null;
455
+ document.querySelector( MPv1.selectors.couponCode ).style.background =
456
+ "url(" + MPv1.paths.check + ") 98% 50% no-repeat #fff";
457
+ document.querySelector( MPv1.selectors.applyCoupon ).value =
458
+ MPv1.text.remove;
459
+ MPv1.cardsHandler();
460
+ document.querySelector( MPv1.selectors.campaign_id ).value =
461
+ response.response.id;
462
+ document.querySelector( MPv1.selectors.campaign ).value =
463
+ response.response.name;
464
+ } else if ( response.status == 400 || response.status == 404 ) {
465
+ document.querySelector( MPv1.selectors.mpCouponApplyed ).style.display =
466
+ "none";
467
+ document.querySelector( MPv1.selectors.mpCouponError ).style.display =
468
+ "block";
469
+ document.querySelector( MPv1.selectors.mpCouponError ).innerHTML =
470
+ response.response.message;
471
+ MPv1.coupon_of_discounts.status = false;
472
+ document.querySelector( MPv1.selectors.couponCode ).style.background =
473
+ null;
474
+ document.querySelector( MPv1.selectors.couponCode ).style.background =
475
+ "url(" + MPv1.paths.error + ") 98% 50% no-repeat #fff";
476
+ document.querySelector( MPv1.selectors.applyCoupon ).value =
477
+ MPv1.text.apply;
478
+ document.querySelector( MPv1.selectors.discount ).value = 0;
479
+ MPv1.cardsHandler();
480
+ }
481
+ } else {
482
+ // Request failed.
483
+ document.querySelector( MPv1.selectors.mpCouponApplyed ).style.display =
484
+ "none";
485
+ document.querySelector( MPv1.selectors.mpCouponError ).style.display =
486
+ "none";
487
+ MPv1.coupon_of_discounts.status = false;
488
+ document.querySelector( MPv1.selectors.applyCoupon ).style.background = null;
489
+ document.querySelector( MPv1.selectors.applyCoupon ).value = MPv1.text.apply;
490
+ document.querySelector( MPv1.selectors.couponCode ).value = "";
491
+ document.querySelector( MPv1.selectors.couponCode ).style.background = null;
492
+ document.querySelector( MPv1.selectors.discount ).value = 0;
493
+ MPv1.cardsHandler();
494
+ }
495
+ document.querySelector( MPv1.selectors.applyCoupon ).disabled = false;
496
+ }
497
+ };
498
+ request.send( null );
499
+ }
500
+ }
501
+
502
+ MPv1.getBin = function() {
503
+
504
+ var cardSelector = document.querySelector( MPv1.selectors.paymentMethodSelector );
505
+
506
+ if (cardSelector && cardSelector[cardSelector.options.selectedIndex].value != "-1") {
507
+ return cardSelector[cardSelector.options.selectedIndex]
508
+ .getAttribute( "first_six_digits" );
509
+ }
510
+
511
+ var ccNumber = document.querySelector( MPv1.selectors.cardNumber );
512
+ return ccNumber.value.replace( /[ .-]/g, "" ).slice( 0, 6 );
513
+
514
+ }
515
+
516
+ MPv1.clearOptions = function() {
517
+
518
+ var bin = MPv1.getBin();
519
+
520
+ if ( bin.length == 0 ) {
521
+
522
+ MPv1.hideIssuer();
523
+
524
+ var selectorInstallments = document.querySelector( MPv1.selectors.installments ),
525
+ fragment = document.createDocumentFragment(),
526
+ option = new Option( MPv1.text.choose + "...", "-1" );
527
+
528
+ selectorInstallments.options.length = 0;
529
+ fragment.appendChild( option );
530
+ selectorInstallments.appendChild( fragment );
531
+ selectorInstallments.setAttribute( "disabled", "disabled" );
532
+
533
+ }
534
+
535
+ }
536
+
537
+ MPv1.guessingPaymentMethod = function( event ) {
538
+
539
+ var bin = MPv1.getBin();
540
+ var amount = MPv1.getAmount();
541
+
542
+ if ( event.type == "keyup" ) {
543
+ if ( bin != null && bin.length == 6 ) {
544
+ Mercadopago.getPaymentMethod( {
545
+ "bin": bin
546
+ }, MPv1.setPaymentMethodInfo );
547
+ }
548
+ } else {
549
+ setTimeout( function() {
550
+ if ( bin.length >= 6 ) {
551
+ Mercadopago.getPaymentMethod( {
552
+ "bin": bin
553
+ }, MPv1.setPaymentMethodInfo );
554
+ }
555
+ }, 100 );
556
+ }
557
+
558
+ };
559
+
560
+ MPv1.setPaymentMethodInfo = function( status, response ) {
561
+
562
+ if ( status == 200 ) {
563
+
564
+ if ( MPv1.site_id != "MLM" ) {
565
+ // Guessing...
566
+ document.querySelector( MPv1.selectors.paymentMethodId ).value = response[0].id;
567
+ if ( MPv1.customer_and_card.status ) {
568
+ document.querySelector( MPv1.selectors.paymentMethodSelector )
569
+ .style.background = "url(" + response[0].secure_thumbnail + ") 95% 50% no-repeat #fff";
570
+ } else {
571
+ document.querySelector( MPv1.selectors.cardNumber ).style.background = "url(" +
572
+ response[0].secure_thumbnail + ") 98% 50% no-repeat #fff";
573
+ }
574
+ }
575
+
576
+ // Check if the security code (ex: Tarshop) is required.
577
+ var cardConfiguration = response[0].settings;
578
+ var bin = MPv1.getBin();
579
+ var amount = MPv1.getAmount();
580
+
581
+ Mercadopago.getInstallments(
582
+ { "bin": bin, "amount": amount },
583
+ MPv1.setInstallmentInfo
584
+ );
585
+
586
+ // Check if the issuer is necessary to pay.
587
+ var issuerMandatory = false, additionalInfo = response[0].additional_info_needed;
588
+
589
+ for ( var i=0; i<additionalInfo.length; i++ ) {
590
+ if ( additionalInfo[i] == "issuer_id" ) {
591
+ issuerMandatory = true;
592
+ }
593
+ };
594
+
595
+ if ( issuerMandatory && MPv1.site_id != "MLM" ) {
596
+ var payment_method_id = response[0].id;
597
+ MPv1.getIssuersPaymentMethod( payment_method_id );
598
+ } else {
599
+ MPv1.hideIssuer();
600
+ }
601
+
602
+ }
603
+
604
+ }
605
+
606
+ MPv1.changePaymetMethodSelector = function() {
607
+ var payment_method_id =
608
+ document.querySelector( MPv1.selectors.paymentMethodSelector ).value;
609
+ MPv1.getIssuersPaymentMethod( payment_method_id );
610
+ }
611
+
612
+ // === Issuers
613
+
614
+ MPv1.getIssuersPaymentMethod = function( payment_method_id ) {
615
+
616
+ var amount = MPv1.getAmount();
617
+
618
+ // flow: MLM mercadopagocard
619
+ if ( payment_method_id == "mercadopagocard" ) {
620
+ Mercadopago.getInstallments(
621
+ { "payment_method_id": payment_method_id, "amount": amount },
622
+ MPv1.setInstallmentInfo
623
+ );
624
+ }
625
+
626
+ Mercadopago.getIssuers( payment_method_id, MPv1.showCardIssuers );
627
+ MPv1.addListenerEvent(
628
+ document.querySelector( MPv1.selectors.issuer ),
629
+ "change",
630
+ MPv1.setInstallmentsByIssuerId
631
+ );
632
+
633
+ }
634
+
635
+ MPv1.showCardIssuers = function( status, issuers ) {
636
+
637
+ // If the API does not return any bank.
638
+ if ( issuers.length > 0 ) {
639
+ var issuersSelector = document.querySelector( MPv1.selectors.issuer );
640
+ var fragment = document.createDocumentFragment();
641
+
642
+ issuersSelector.options.length = 0;
643
+ var option = new Option( MPv1.text.choose + "...", "-1" );
644
+ fragment.appendChild( option );
645
+
646
+ for ( var i=0; i<issuers.length; i++ ) {
647
+ if ( issuers[i].name != "default" ) {
648
+ option = new Option( issuers[i].name, issuers[i].id );
649
+ } else {
650
+ option = new Option( "Otro", issuers[i].id );
651
+ }
652
+ fragment.appendChild( option );
653
+ }
654
+
655
+ issuersSelector.appendChild( fragment );
656
+ issuersSelector.removeAttribute( "disabled" );
657
+ } else {
658
+ MPv1.hideIssuer();
659
+ }
660
+
661
+ }
662
+
663
+ MPv1.setInstallmentsByIssuerId = function( status, response ) {
664
+
665
+ var issuerId = document.querySelector( MPv1.selectors.issuer ).value;
666
+ var amount = MPv1.getAmount();
667
+
668
+ if ( issuerId === "-1" ) {
669
+ return;
670
+ }
671
+
672
+ var params_installments = {
673
+ "bin": MPv1.getBin(),
674
+ "amount": amount,
675
+ "issuer_id": issuerId
676
+ }
677
+
678
+ if ( MPv1.site_id == "MLM" ) {
679
+ params_installments = {
680
+ "payment_method_id": document.querySelector(
681
+ MPv1.selectors.paymentMethodSelector
682
+ ).value,
683
+ "amount": amount,
684
+ "issuer_id": issuerId
685
+ }
686
+ }
687
+ Mercadopago.getInstallments( params_installments, MPv1.setInstallmentInfo );
688
+
689
+ }
690
+
691
+ MPv1.hideIssuer = function() {
692
+ var $issuer = document.querySelector( MPv1.selectors.issuer );
693
+ var opt = document.createElement( "option" );
694
+ opt.value = "-1";
695
+ opt.innerHTML = MPv1.text.other_bank;
696
+
697
+ $issuer.innerHTML = "";
698
+ $issuer.appendChild( opt );
699
+ $issuer.setAttribute( "disabled", "disabled" );
700
+ }
701
+
702
+ // === Installments
703
+
704
+ MPv1.setInstallmentInfo = function( status, response ) {
705
+
706
+ var selectorInstallments = document.querySelector( MPv1.selectors.installments );
707
+
708
+ if ( response.length > 0 ) {
709
+
710
+ var html_option = "<option value='-1'>" + MPv1.text.choose + "...</option>";
711
+ payerCosts = response[0].payer_costs;
712
+
713
+ // fragment.appendChild(option);
714
+ for ( var i=0; i<payerCosts.length; i++) {
715
+ html_option += "<option value='" + payerCosts[i].installments + "'>" +
716
+ ( payerCosts[i].recommended_message || payerCosts[i].installments ) +
717
+ "</option>";
718
+ }
719
+
720
+ // Not take the user's selection if equal.
721
+ if ( selectorInstallments.innerHTML != html_option ) {
722
+ selectorInstallments.innerHTML = html_option;
723
+ }
724
+
725
+ selectorInstallments.removeAttribute( "disabled" );
726
+
727
+ }
728
+
729
+ }
730
+
731
+ // === Customer & Cards
732
+
733
+ MPv1.cardsHandler = function() {
734
+
735
+ var cardSelector = document.querySelector( MPv1.selectors.paymentMethodSelector );
736
+ var type_checkout =
737
+ cardSelector[cardSelector.options.selectedIndex].getAttribute( "type_checkout" );
738
+ var amount = MPv1.getAmount();
739
+
740
+ if ( MPv1.customer_and_card.default ) {
741
+
742
+ if ( cardSelector &&
743
+ cardSelector[cardSelector.options.selectedIndex].value != "-1" &&
744
+ type_checkout == "customer_and_card" ) {
745
+
746
+ document.querySelector( MPv1.selectors.paymentMethodId )
747
+ .value = cardSelector[cardSelector.options.selectedIndex]
748
+ .getAttribute( "payment_method_id" );
749
+
750
+ MPv1.clearOptions();
751
+
752
+ MPv1.customer_and_card.status = true;
753
+
754
+ var _bin = cardSelector[cardSelector.options.selectedIndex]
755
+ .getAttribute( "first_six_digits" );
756
+
757
+ Mercadopago.getPaymentMethod(
758
+ { "bin": _bin },
759
+ MPv1.setPaymentMethodInfo
760
+ );
761
+
762
+ } else {
763
+
764
+ document.querySelector( MPv1.selectors.paymentMethodId )
765
+ .value = cardSelector.value != -1 ? cardSelector.value : "";
766
+ MPv1.customer_and_card.status = false;
767
+ MPv1.resetBackgroundCard();
768
+ MPv1.guessingPaymentMethod(
769
+ { type: "keyup" }
770
+ );
771
+
772
+ }
773
+
774
+ MPv1.setForm();
775
+
776
+ }
777
+
778
+ }
779
+
780
+ // === Payment Methods
781
+
782
+ MPv1.getPaymentMethods = function() {
783
+
784
+ var fragment = document.createDocumentFragment();
785
+ var paymentMethodsSelector =
786
+ document.querySelector( MPv1.selectors.paymentMethodSelector )
787
+ var mainPaymentMethodSelector =
788
+ document.querySelector( MPv1.selectors.paymentMethodSelector )
789
+
790
+ // Set loading.
791
+ mainPaymentMethodSelector.style.background =
792
+ "url(" + MPv1.paths.loading + ") 95% 50% no-repeat #fff";
793
+
794
+ // If customer and card.
795
+ if ( MPv1.customer_and_card.status ) {
796
+ paymentMethodsSelector = document.querySelector( MPv1.selectors.pmListOtherCards )
797
+ // Clean payment methods.
798
+ paymentMethodsSelector.innerHTML = "";
799
+ } else {
800
+ paymentMethodsSelector.innerHTML = "";
801
+ option = new Option( MPv1.text.choose + "...", "-1" );
802
+ fragment.appendChild( option );
803
+ }
804
+
805
+ Mercadopago.getAllPaymentMethods( function( code, payment_methods ) {
806
+
807
+ for ( var x=0; x < payment_methods.length; x++ ) {
808
+
809
+ var pm = payment_methods[x];
810
+
811
+ if ( ( pm.payment_type_id == "credit_card" || pm.payment_type_id == "debit_card" ||
812
+ pm.payment_type_id == "prepaid_card" ) && pm.status == "active" ) {
813
+
814
+ option = new Option( pm.name, pm.id );
815
+ option.setAttribute( "type_checkout", "custom" );
816
+ fragment.appendChild( option );
817
+
818
+ } // end if
819
+
820
+ } // end for
821
+
822
+ paymentMethodsSelector.appendChild( fragment );
823
+ mainPaymentMethodSelector.style.background = "#fff";
824
+
825
+ } );
826
+
827
+ }
828
+
829
+ // === Functions related to Create Tokens
830
+
831
+ MPv1.createTokenByEvent = function() {
832
+
833
+ var $inputs = MPv1.getForm().querySelectorAll( "[data-checkout]" );
834
+ var $inputs_to_create_token = MPv1.getInputsToCreateToken();
835
+
836
+ for (var x=0; x<$inputs.length; x++) {
837
+
838
+ var element = $inputs[x];
839
+
840
+ // Add events only in the required fields.
841
+ if ( $inputs_to_create_token
842
+ .indexOf( element.getAttribute( "data-checkout" ) ) > -1 ) {
843
+
844
+ var event = "focusout";
845
+
846
+ if ( element.nodeName == "SELECT" ) {
847
+ event = "change";
848
+ }
849
+
850
+ MPv1.addListenerEvent( element, event, MPv1.validateInputsCreateToken );
851
+
852
+ // For firefox.
853
+ MPv1.addListenerEvent( element, "blur", MPv1.validateInputsCreateToken );
854
+
855
+ if ( MPv1.create_token_on.keyup ) {
856
+ MPv1.addListenerEvent(element, "keyup", MPv1.validateInputsCreateToken );
857
+ }
858
+
859
+ if ( MPv1.create_token_on.paste ) {
860
+ MPv1.addListenerEvent(element, "paste", MPv1.validateInputsCreateToken );
861
+ }
862
+
863
+ }
864
+
865
+ }
866
+
867
+ }
868
+
869
+ MPv1.createTokenBySubmit = function() {
870
+ addListenerEvent( document.querySelector( MPv1.selectors.form ), "submit", MPv1.doPay );
871
+ }
872
+
873
+ var doSubmit = false;
874
+
875
+ MPv1.doPay = function( event ) {
876
+ event.preventDefault();
877
+ if ( ! doSubmit ) {
878
+ MPv1.createToken();
879
+ return false;
880
+ }
881
+ }
882
+
883
+ MPv1.validateInputsCreateToken = function() {
884
+
885
+ var valid_to_create_token = true;
886
+ var $inputs = MPv1.getForm().querySelectorAll( "[data-checkout]" );
887
+ var $inputs_to_create_token = MPv1.getInputsToCreateToken();
888
+
889
+ for (var x=0; x<$inputs.length; x++) {
890
+
891
+ var element = $inputs[x];
892
+
893
+ // Check is a input to create token.
894
+ if ( $inputs_to_create_token
895
+ .indexOf( element.getAttribute( "data-checkout" ) ) > -1 ) {
896
+
897
+ if ( element.value == -1 || element.value == "" ) {
898
+ valid_to_create_token = false;
899
+ } // end if check values
900
+ } // end if check data-checkout
901
+ } // end for
902
+
903
+ if ( valid_to_create_token ) {
904
+ MPv1.createToken();
905
+ }
906
+
907
+ }
908
+
909
+ MPv1.createToken = function() {
910
+ MPv1.hideErrors();
911
+
912
+ // Show loading.
913
+ document.querySelector( MPv1.selectors.box_loading ).style.background =
914
+ "url(" + MPv1.paths.loading + ") 0 50% no-repeat #fff";
915
+
916
+ // Form.
917
+ var $form = MPv1.getForm();
918
+
919
+ Mercadopago.createToken( $form, MPv1.sdkResponseHandler );
920
+
921
+ return false;
922
+ }
923
+
924
+ MPv1.sdkResponseHandler = function( status, response ) {
925
+
926
+ // Hide loading.
927
+ document.querySelector( MPv1.selectors.box_loading ).style.background = "";
928
+
929
+ if ( status != 200 && status != 201 ) {
930
+ MPv1.showErrors( response );
931
+ } else {
932
+ var token = document.querySelector( MPv1.selectors.token );
933
+ token.value = response.id;
934
+
935
+ if ( MPv1.add_truncated_card ) {
936
+ var card = MPv1.truncateCard( response );
937
+ document.querySelector( MPv1.selectors.cardTruncated ).value = card;
938
+ }
939
+
940
+ if ( ! MPv1.create_token_on.event ) {
941
+ doSubmit = true;
942
+ btn = document.querySelector( MPv1.selectors.form );
943
+ btn.submit();
944
+ }
945
+ }
946
+
947
+ }
948
+
949
+ // === Useful functions
950
+
951
+ MPv1.resetBackgroundCard = function() {
952
+ document.querySelector( MPv1.selectors.paymentMethodSelector ).style.background =
953
+ "no-repeat #fff";
954
+ document.querySelector( MPv1.selectors.cardNumber ).style.background =
955
+ "no-repeat #fff";
956
+ }
957
+
958
+ MPv1.setForm = function() {
959
+ if ( MPv1.customer_and_card.status ) {
960
+ document.querySelector( MPv1.selectors.form ).style.display = "none";
961
+ document.querySelector( MPv1.selectors.mpSecurityCodeCustomerAndCard )
962
+ .removeAttribute( "style" );
963
+ } else {
964
+ document.querySelector(
965
+ MPv1.selectors.mpSecurityCodeCustomerAndCard
966
+ ).style.display = "none";
967
+ document.querySelector( MPv1.selectors.form ).removeAttribute( "style" );
968
+ }
969
+
970
+ Mercadopago.clearSession();
971
+
972
+ if ( MPv1.create_token_on.event ) {
973
+ MPv1.createTokenByEvent();
974
+ MPv1.validateInputsCreateToken();
975
+ }
976
+
977
+ document.querySelector( MPv1.selectors.CustomerAndCard ).value =
978
+ MPv1.customer_and_card.status;
979
+ }
980
+
981
+ MPv1.getForm = function() {
982
+ if ( MPv1.customer_and_card.status ) {
983
+ return document.querySelector( MPv1.selectors.formCustomerAndCard );
984
+ } else {
985
+ return document.querySelector( MPv1.selectors.form );
986
+ }
987
+ }
988
+
989
+ MPv1.getInputsToCreateToken = function() {
990
+ if ( MPv1.customer_and_card.status ) {
991
+ return MPv1.inputs_to_create_token_customer_and_card;
992
+ } else {
993
+ return MPv1.inputs_to_create_token;
994
+ }
995
+ }
996
+
997
+ MPv1.truncateCard = function( response_card_token ) {
998
+
999
+ var first_six_digits;
1000
+ var last_four_digits;
1001
+
1002
+ if ( MPv1.customer_and_card.status ) {
1003
+ var cardSelector = document.querySelector( MPv1.selectors.paymentMethodSelector );
1004
+ first_six_digits = cardSelector[cardSelector.options.selectedIndex]
1005
+ .getAttribute( "first_six_digits" ).match( /.{1,4}/g )
1006
+ last_four_digits = cardSelector[cardSelector.options.selectedIndex]
1007
+ .getAttribute( "last_four_digits" )
1008
+ } else {
1009
+ first_six_digits = response_card_token.first_six_digits.match( /.{1,4}/g )
1010
+ last_four_digits = response_card_token.last_four_digits
1011
+ }
1012
+
1013
+ var card = first_six_digits[0] + " " +
1014
+ first_six_digits[1] + "** **** " + last_four_digits;
1015
+
1016
+ return card;
1017
+
1018
+ }
1019
+
1020
+ MPv1.getAmount = function() {
1021
+ return document.querySelector( MPv1.selectors.amount ).value;
1022
+ }
1023
+
1024
+ // === Show errors
1025
+
1026
+ MPv1.showErrors = function( response ) {
1027
+ var $form = MPv1.getForm();
1028
+
1029
+ for ( var x=0; x<response.cause.length; x++ ) {
1030
+ var error = response.cause[x];
1031
+ var $span = $form.querySelector( "#mp-error-" + error.code );
1032
+ var $input = $form.querySelector( $span.getAttribute( "data-main" ) );
1033
+
1034
+ $span.style.display = "inline-block";
1035
+ $input.classList.add( "mp-error-input" );
1036
+ }
1037
+
1038
+ return;
1039
+ }
1040
+
1041
+ MPv1.hideErrors = function() {
1042
+
1043
+ for ( var x = 0; x < document.querySelectorAll( "[data-checkout]" ).length; x++ ) {
1044
+ var $field = document.querySelectorAll( "[data-checkout]" )[x];
1045
+ $field.classList.remove( "mp-error-input" );
1046
+ } // end for
1047
+
1048
+ for ( var x = 0; x < document.querySelectorAll( ".mp-error" ).length; x++ ) {
1049
+ var $span = document.querySelectorAll( ".mp-error" )[x];
1050
+ $span.style.display = "none";
1051
+ }
1052
+
1053
+ return;
1054
+
1055
+ }
1056
+
1057
+ // === Add events to guessing
1058
+
1059
+ MPv1.addListenerEvent = function( el, eventName, handler ) {
1060
+ if ( el.addEventListener ) {
1061
+ el.addEventListener( eventName, handler );
1062
+ } else {
1063
+ el.attachEvent( "on" + eventName, function() {
1064
+ handler.call( el );
1065
+ });
1066
+ }
1067
+ };
1068
+
1069
+ MPv1.addListenerEvent(
1070
+ document.querySelector( MPv1.selectors.cardNumber ),
1071
+ "keyup", MPv1.guessingPaymentMethod
1072
+ );
1073
+ MPv1.addListenerEvent(
1074
+ document.querySelector( MPv1.selectors.cardNumber ),
1075
+ "keyup", MPv1.clearOptions
1076
+ );
1077
+ MPv1.addListenerEvent(
1078
+ document.querySelector( MPv1.selectors.cardNumber),
1079
+ "change", MPv1.guessingPaymentMethod
1080
+ );
1081
+
1082
+ // === Initialization function
1083
+
1084
+ MPv1.Initialize = function( site_id, public_key, coupon_mode, discount_action_url ) {
1085
+
1086
+ // Sets
1087
+ MPv1.site_id = site_id
1088
+ MPv1.public_key = public_key
1089
+ MPv1.coupon_of_discounts.default = coupon_mode
1090
+ MPv1.coupon_of_discounts.discount_action_url = discount_action_url
1091
+
1092
+ Mercadopago.setPublishableKey( MPv1.public_key );
1093
+
1094
+ // flow coupon of discounts
1095
+ if ( MPv1.coupon_of_discounts.default ) {
1096
+ MPv1.addListenerEvent(
1097
+ document.querySelector( MPv1.selectors.applyCoupon ),
1098
+ "click", MPv1.checkCouponEligibility
1099
+ );
1100
+ } else {
1101
+ document.querySelector( MPv1.selectors.formCoupon ).style.display = "none";
1102
+ }
1103
+
1104
+ // Flow: customer & cards.
1105
+ var selectorPmCustomerAndCards = document.querySelector( MPv1.selectors.pmCustomerAndCards );
1106
+ if ( MPv1.customer_and_card.default && selectorPmCustomerAndCards.childElementCount > 0 ) {
1107
+ MPv1.addListenerEvent(
1108
+ document.querySelector( MPv1.selectors.paymentMethodSelector ),
1109
+ "change", MPv1.cardsHandler
1110
+ );
1111
+ MPv1.cardsHandler();
1112
+ } else {
1113
+ // If customer & cards is disabled or customer does not have cards.
1114
+ MPv1.customer_and_card.status = false;
1115
+ document.querySelector( MPv1.selectors.formCustomerAndCard ).style.display = "none";
1116
+ }
1117
+
1118
+ if ( MPv1.create_token_on.event ) {
1119
+ MPv1.createTokenByEvent();
1120
+ } else {
1121
+ MPv1.createTokenBySubmit()
1122
+ }
1123
+
1124
+ // flow: MLM
1125
+ if ( MPv1.site_id != "MLM" ) {
1126
+ Mercadopago.getIdentificationTypes();
1127
+ }
1128
+
1129
+ if ( MPv1.site_id == "MLM" ) {
1130
+
1131
+ // Hide documento for mex.
1132
+ document.querySelector( MPv1.selectors.mpDoc ).style.display = "none";
1133
+
1134
+ document.querySelector( MPv1.selectors.formCustomerAndCard )
1135
+ .removeAttribute( 'style' );
1136
+ document.querySelector( MPv1.selectors.formCustomerAndCard )
1137
+ .style.padding = "36px 36px 16px 36px";
1138
+ document.querySelector( MPv1.selectors.mpSecurityCodeCustomerAndCard )
1139
+ .style.display = "none";
1140
+
1141
+ // Removing not used fields for this country.
1142
+ MPv1.inputs_to_create_token.splice(
1143
+ MPv1.inputs_to_create_token.indexOf( "docType" ),
1144
+ 1 );
1145
+ MPv1.inputs_to_create_token.splice(
1146
+ MPv1.inputs_to_create_token.indexOf( "docNumber" ),
1147
+ 1 );
1148
+
1149
+ MPv1.addListenerEvent(
1150
+ document.querySelector( MPv1.selectors.paymentMethodSelector ),
1151
+ "change",
1152
+ MPv1.changePaymetMethodSelector
1153
+ );
1154
+
1155
+ // Get payment methods and populate selector.
1156
+ MPv1.getPaymentMethods();
1157
+
1158
+ }
1159
+
1160
+ // flow: MLB AND MCO
1161
+ if ( MPv1.site_id == "MLB" ) {
1162
+
1163
+ document.querySelector( MPv1.selectors.mpDocType ).style.display = "none";
1164
+ document.querySelector( MPv1.selectors.mpIssuer ).style.display = "none";
1165
+ // Adjust css.
1166
+ document.querySelector( MPv1.selectors.docNumber ).classList.remove( "mp-col-75" );
1167
+ document.querySelector( MPv1.selectors.docNumber ).classList.add( "mp-col-100" );
1168
+
1169
+ } else if ( MPv1.site_id == "MCO" ) {
1170
+ document.querySelector( MPv1.selectors.mpIssuer ).style.display = "none";
1171
+ }
1172
+
1173
+ if ( MPv1.debug ) {
1174
+ document.querySelector( MPv1.selectors.utilities_fields ).style.display = "inline-block";
1175
+ }
1176
+
1177
+ document.querySelector( MPv1.selectors.site_id ).value = MPv1.site_id;
1178
+
1179
+ return;
1180
+
1181
+ }
1182
+
1183
+ this.MPv1 = MPv1;
1184
+
1185
+ } ).call();
1186
+
1187
+ // === Instantiation
1188
+
1189
+ var mercadopago_site_id = "<?php echo $site_id; ?>";
1190
+ var mercadopago_public_key = "<?php echo $public_key; ?>";
1191
+ var mercadopago_coupon_mode = "<?php echo $coupon_mode; ?>";
1192
+ var mercadopago_discount_action_url = "<?php echo $discount_action_url; ?>";
1193
+
1194
+ MPv1.text.choose = "<?php echo $form_labels['form']['label_choose']; ?>";
1195
+ MPv1.text.other_bank = "<?php echo $form_labels['form']['label_other_bank']; ?>";
1196
+ MPv1.text.discount_info1 = "<?php echo $form_labels['form']['discount_info1']; ?>";
1197
+ MPv1.text.discount_info2 = "<?php echo $form_labels['form']['discount_info2']; ?>";
1198
+ MPv1.text.discount_info3 = "<?php echo $form_labels['form']['discount_info3']; ?>";
1199
+ MPv1.text.discount_info4 = "<?php echo $form_labels['form']['discount_info4']; ?>";
1200
+ MPv1.text.discount_info5 = "<?php echo $form_labels['form']['discount_info5']; ?>";
1201
+ MPv1.text.discount_info6 = "<?php echo $form_labels['form']['discount_info6']; ?>";
1202
+ MPv1.text.apply = "<?php echo $form_labels['form']['apply']; ?>";
1203
+ MPv1.text.remove = "<?php echo $form_labels['form']['remove']; ?>";
1204
+ MPv1.text.coupon_empty = "<?php echo $form_labels['form']['coupon_empty']; ?>";
1205
+ MPv1.paths.loading = "<?php echo ( $images_path . 'loading.gif' ); ?>";
1206
+ MPv1.paths.check = "<?php echo ( $images_path . 'check.png' ); ?>";
1207
+ MPv1.paths.error = "<?php echo ( $images_path . 'error.png' ); ?>";
1208
+
1209
+ // Overriding this function to give form padding attribute.
1210
+ MPv1.setForm = function() {
1211
+ if ( MPv1.customer_and_card.status ) {
1212
+ document.querySelector( MPv1.selectors.form ).style.display = "none";
1213
+ document.querySelector( MPv1.selectors.mpSecurityCodeCustomerAndCard )
1214
+ .removeAttribute( "style" );
1215
+ } else {
1216
+ document.querySelector( MPv1.selectors.mpSecurityCodeCustomerAndCard )
1217
+ .style.display = "none";
1218
+ document.querySelector( MPv1.selectors.form ).removeAttribute( "style" );
1219
+ document.querySelector( MPv1.selectors.form ).style.padding = "0px 36px 0px 36px";
1220
+ }
1221
+ Mercadopago.clearSession();
1222
+ if ( MPv1.create_token_on.event ) {
1223
+ MPv1.createTokenByEvent();
1224
+ MPv1.validateInputsCreateToken();
1225
+ }
1226
+ document.querySelector( MPv1.selectors.CustomerAndCard ).value =
1227
+ MPv1.customer_and_card.status;
1228
+ }
1229
+
1230
+ MPv1.getAmount = function() {
1231
+ return document.querySelector( MPv1.selectors.amount )
1232
+ .value - document.querySelector( MPv1.selectors.discount ).value;
1233
+ }
1234
+
1235
+ MPv1.getAmountWithoutDiscount = function() {
1236
+ return document.querySelector( MPv1.selectors.amount ).value;
1237
+ }
1238
+
1239
+ MPv1.showErrors = function( response ) {
1240
+ var $form = MPv1.getForm();
1241
+ for ( var x=0; x<response.cause.length; x++ ) {
1242
+ var error = response.cause[x];
1243
+ var $span = $form.querySelector( "#mp-error-" + error.code );
1244
+ var $input = $form.querySelector( $span.getAttribute( "data-main" ) );
1245
+ $span.style.display = "inline-block";
1246
+ $input.classList.add( "mp-error-input" );
1247
+ }
1248
+ return;
1249
+ }
1250
+ MPv1.Initialize(
1251
+ mercadopago_site_id,
1252
+ mercadopago_public_key,
1253
+ mercadopago_coupon_mode == "yes",
1254
+ mercadopago_discount_action_url
1255
+ );
1256
+
1257
+ </script>
templates/ticket/ticket-form.php ADDED
@@ -0,0 +1,398 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Part of Woo Mercado Pago Module
5
+ * Author - Mercado Pago
6
+ * Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
7
+ * Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
8
+ * License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
9
+ */
10
+
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ exit;
13
+ }
14
+
15
+ ?>
16
+
17
+ <div width="100%" style="margin:1px; padding:36px 36px 16px 36px; background:white;">
18
+ <img class="logo" src="<?php echo ($images_path . 'mplogo.png'); ?>" width="156" height="40" />
19
+ <?php if ( count( $payment_methods ) > 1 ) : ?>
20
+ <img class="logo" src="<?php echo ($images_path . 'boleto.png'); ?>"
21
+ width="90" height="40" style="float:right;"/>
22
+ <?php else : ?>
23
+ <?php foreach ( $payment_methods as $payment ) : ?>
24
+ <img class="logo" src="<?php echo $payment['secure_thumbnail']; ?>" width="90" height="40"
25
+ style="float:right;"/>
26
+ <?php endforeach; ?>
27
+ <?php endif; ?>
28
+ </div>
29
+
30
+ <fieldset id="mercadopago-form" style="background:white;">
31
+ <div class="mp-box-inputs mp-line" id="mercadopago-form-coupon-ticket"
32
+ style="padding:0px 36px 16px 36px;">
33
+ <label for="couponCodeLabel">
34
+ <?php echo $form_labels['form']['coupon_of_discounts']; ?>
35
+ </label>
36
+ <div class="mp-box-inputs mp-col-65">
37
+ <input type="text" id="couponCodeTicket" name="mercadopago_ticket[coupon_code]"
38
+ autocomplete="off" maxlength="24" />
39
+ <span class="mp-discount" id="mpCouponApplyedTicket" ></span>
40
+ <span class="mp-error" id="mpCouponErrorTicket" ></span>
41
+ </div>
42
+ <div class="mp-box-inputs mp-col-10">
43
+ <div id="mp-separete-date"></div>
44
+ </div>
45
+ <div class="mp-box-inputs mp-col-25">
46
+ <input type="button" class="button" id="applyCouponTicket"
47
+ value="<?php echo $form_labels['form']['apply']; ?>">
48
+ </div>
49
+ </div>
50
+
51
+ <div style="padding:0px 36px 0px 36px;">
52
+ <p>
53
+ <?php
54
+ if ( count( $payment_methods ) > 1 ) :
55
+ echo $form_labels['form']['issuer_selection'];
56
+ endif;
57
+ echo $form_labels['form']['payment_instructions'];
58
+ ?> <br /> <?php
59
+ echo $form_labels['form']['ticket_note'];
60
+ if ( $is_currency_conversion > 0 ) :
61
+ echo " (" . $form_labels['form']['payment_converted'] . " " .
62
+ $woocommerce_currency . " " . $form_labels['form']['to'] . " " .
63
+ $account_currency . ")";
64
+ endif;
65
+ ?>
66
+ </p>
67
+ <?php if ( count( $payment_methods ) > 1 ) : ?>
68
+ <div class="mp-box-inputs mp-col-100">
69
+ <?php $atFirst = true; ?>
70
+ <?php foreach ( $payment_methods as $payment ) : ?>
71
+ <div class="mp-box-inputs mp-line">
72
+ <div id="paymentMethodId" class="mp-box-inputs mp-col-5">
73
+ <input type="radio" class="input-radio"
74
+ name="mercadopago_ticket[paymentMethodId]"
75
+ style="height:16px; width:16px;" value="<?php echo $payment['id']; ?>"
76
+ <?php if ( $atFirst ) : ?> checked="checked" <?php endif; ?> />
77
+ </div>
78
+ <div class="mp-box-inputs mp-col-45">
79
+ <label>
80
+ <img src="<?php echo $payment['secure_thumbnail']; ?>"
81
+ alt="<?php echo $payment['name']; ?>" />
82
+ &nbsp;&nbsp;<?php echo $payment['name']; ?>
83
+ </label>
84
+ </div>
85
+ </div>
86
+ <?php $atFirst = false; ?>
87
+ <?php endforeach; ?>
88
+ </div>
89
+ <?php else : ?>
90
+ <div class="mp-box-inputs mp-col-100" style="display:none;">
91
+ <select id="paymentMethodId" name="mercadopago_ticket[paymentMethodId]">
92
+ <?php foreach ( $payment_methods as $payment ) : ?>
93
+ <option value="<?php echo $payment['id']; ?>" style="padding: 8px;
94
+ background: url('https://img.mlstatic.com/org-img/MP3/API/logos/bapropagos.gif')
95
+ 98% 50% no-repeat;"> <?php echo $payment['name']; ?>
96
+ </option>
97
+ <?php endforeach; ?>
98
+ </select>
99
+ </div>
100
+ <?php endif; ?>
101
+
102
+ <div class="mp-box-inputs mp-line">
103
+ <div class="mp-box-inputs mp-col-25">
104
+ <div id="mp-box-loading">
105
+ </div>
106
+ </div>
107
+ </div>
108
+
109
+ <!-- utilities -->
110
+ <div class="mp-box-inputs mp-col-100" id="mercadopago-utilities">
111
+ <input type="hidden" id="site_id" value="<?php echo $site_id; ?>"
112
+ name="mercadopago_ticket[site_id]"/>
113
+ <input type="hidden" id="amountTicket" value="<?php echo $amount; ?>"
114
+ name="mercadopago_ticket[amount]"/>
115
+ <input type="hidden" id="campaign_idTicket" name="mercadopago_ticket[campaign_id]"/>
116
+ <input type="hidden" id="campaignTicket" name="mercadopago_ticket[campaign]"/>
117
+ <input type="hidden" id="discountTicket" name="mercadopago_ticket[discount]"/>
118
+ </div>
119
+
120
+ </div>
121
+ </fieldset>
122
+
123
+ <script type="text/javascript">
124
+
125
+ ( function() {
126
+
127
+ var MPv1Ticket = {
128
+ site_id: "",
129
+ coupon_of_discounts: {
130
+ discount_action_url: "",
131
+ default: true,
132
+ status: false
133
+ },
134
+ inputs_to_create_discount: [
135
+ "couponCodeTicket",
136
+ "applyCouponTicket"
137
+ ],
138
+ selectors: {
139
+ // coupom
140
+ couponCode: "#couponCodeTicket",
141
+ applyCoupon: "#applyCouponTicket",
142
+ mpCouponApplyed: "#mpCouponApplyedTicket",
143
+ mpCouponError: "#mpCouponErrorTicket",
144
+ campaign_id: "#campaign_idTicket",
145
+ campaign: "#campaignTicket",
146
+ discount: "#discountTicket",
147
+ // payment method and checkout
148
+ paymentMethodId: "#paymentMethodId",
149
+ amount: "#amountTicket",
150
+ // form
151
+ formCoupon: '#mercadopago-form-coupon-ticket'
152
+ },
153
+ text: {
154
+ discount_info1: "You will save",
155
+ discount_info2: "with discount from",
156
+ discount_info3: "Total of your purchase:",
157
+ discount_info4: "Total of your purchase with discount:",
158
+ discount_info5: "*Uppon payment approval",
159
+ discount_info6: "Terms and Conditions of Use",
160
+ coupon_empty: "Please, inform your coupon code",
161
+ apply: "Apply",
162
+ remove: "Remove"
163
+ },
164
+ paths: {
165
+ loading: "images/loading.gif",
166
+ check: "images/check.png",
167
+ error: "images/error.png"
168
+ }
169
+ }
170
+
171
+ // === Coupon of Discounts
172
+
173
+ MPv1Ticket.currencyIdToCurrency = function ( currency_id ) {
174
+ if ( currency_id == "ARS" ) {
175
+ return "$";
176
+ } else if ( currency_id == "BRL" ) {
177
+ return "R$";
178
+ } else if ( currency_id == "COP" ) {
179
+ return "$";
180
+ } else if ( currency_id == "CLP" ) {
181
+ return "$";
182
+ } else if ( currency_id == "MXN" ) {
183
+ return "$";
184
+ } else if ( currency_id == "VEF" ) {
185
+ return "Bs";
186
+ } else if ( currency_id == "PEN" ) {
187
+ return "S/";
188
+ } else {
189
+ return "$";
190
+ }
191
+ }
192
+
193
+ MPv1Ticket.checkCouponEligibility = function () {
194
+ if ( document.querySelector( MPv1Ticket.selectors.couponCode ).value == "" ) {
195
+ // Coupon code is empty.
196
+ document.querySelector( MPv1Ticket.selectors.mpCouponApplyed ).style.display =
197
+ "none";
198
+ document.querySelector( MPv1Ticket.selectors.mpCouponError ).style.display =
199
+ "block";
200
+ document.querySelector( MPv1Ticket.selectors.mpCouponError ).innerHTML =
201
+ MPv1Ticket.text.coupon_empty;
202
+ MPv1Ticket.coupon_of_discounts.status = false;
203
+ document.querySelector( MPv1Ticket.selectors.couponCode ).style.background = null;
204
+ document.querySelector( MPv1Ticket.selectors.applyCoupon ).value =
205
+ MPv1Ticket.text.apply;
206
+ document.querySelector( MPv1.selectors.discount ).value = 0;
207
+ } else if ( MPv1Ticket.coupon_of_discounts.status ) {
208
+ // We already have a coupon set, so we remove it.
209
+ document.querySelector( MPv1Ticket.selectors.mpCouponApplyed ).style.display =
210
+ "none";
211
+ document.querySelector( MPv1Ticket.selectors.mpCouponError ).style.display =
212
+ "none";
213
+ MPv1Ticket.coupon_of_discounts.status = false;
214
+ document.querySelector( MPv1Ticket.selectors.applyCoupon ).style.background = null;
215
+ document.querySelector( MPv1Ticket.selectors.applyCoupon ).value =
216
+ MPv1Ticket.text.apply;
217
+ document.querySelector( MPv1Ticket.selectors.couponCode ).value = "";
218
+ document.querySelector( MPv1Ticket.selectors.couponCode ).style.background = null;
219
+ document.querySelector( MPv1.selectors.discount ).value = 0;
220
+ } else {
221
+ // Set loading.
222
+ document.querySelector( MPv1Ticket.selectors.mpCouponApplyed ).style.display =
223
+ "none";
224
+ document.querySelector( MPv1Ticket.selectors.mpCouponError ).style.display =
225
+ "none";
226
+ document.querySelector( MPv1Ticket.selectors.couponCode ).style.background =
227
+ "url(" + MPv1Ticket.paths.loading + ") 98% 50% no-repeat #fff";
228
+ document.querySelector( MPv1Ticket.selectors.applyCoupon ).disabled = true;
229
+ // Call method in server to validate coupom.
230
+ var request = new XMLHttpRequest();
231
+ request.open(
232
+ "GET",
233
+ MPv1Ticket.coupon_of_discounts.discount_action_url +
234
+ "&coupon_id=" + document.querySelector(
235
+ MPv1Ticket.selectors.couponCode
236
+ ).value +
237
+ "&amount=" + document.querySelector( MPv1Ticket.selectors.amount ).value +
238
+ "&payer=" + document.getElementById( "billing_email" ).value,
239
+ true
240
+ );
241
+ request.onreadystatechange = function() {
242
+ if ( request.readyState == 4 ) {
243
+ if ( request.status == 200 ) {
244
+ var response = JSON.parse( request.responseText );
245
+ if ( response.status == 200 ) {
246
+ document.querySelector( MPv1Ticket.selectors.mpCouponApplyed )
247
+ .style.display = "block";
248
+ document.querySelector( MPv1Ticket.selectors.discount )
249
+ .value = response.response.coupon_amount;
250
+ document.querySelector( MPv1Ticket.selectors.mpCouponApplyed )
251
+ .innerHTML =
252
+ "<div style='border-style: solid; border-width:thin; " +
253
+ "border-color: #009EE3; padding: 8px 8px 8px 8px; margin-top: 4px;'>" +
254
+ MPv1Ticket.text.discount_info1 + " <strong>" +
255
+ MPv1Ticket.currencyIdToCurrency( response.response.currency_id ) +
256
+ " " + Math.round( response.response.coupon_amount * 100 ) / 100 +
257
+ "</strong> " + MPv1Ticket.text.discount_info2 + " " +
258
+ response.response.name + ".<br>" +
259
+ MPv1Ticket.text.discount_info3 + " <strong>" +
260
+ MPv1Ticket.currencyIdToCurrency( response.response.currency_id ) +
261
+ " " + Math.round( MPv1Ticket.getAmountWithoutDiscount() * 100 ) / 100 +
262
+ "</strong><br>" + MPv1Ticket.text.discount_info4 + " <strong>" +
263
+ MPv1Ticket.currencyIdToCurrency( response.response.currency_id ) +
264
+ " " + Math.round( MPv1Ticket.getAmount() * 100 ) / 100 +
265
+ "*</strong><br>" + "<i>" + MPv1Ticket.text.discount_info5 +
266
+ "</i><br><a href='https://api.mercadolibre.com/campaigns/" +
267
+ response.response.id + "/terms_and_conditions?format_type=html' target='_blank'>" +
268
+ MPv1Ticket.text.discount_info6 + "</a></div>";
269
+ document.querySelector( MPv1Ticket.selectors.mpCouponError )
270
+ .style.display = "none";
271
+ MPv1Ticket.coupon_of_discounts.status = true;
272
+ document.querySelector( MPv1Ticket.selectors.couponCode )
273
+ .style.background = null;
274
+ document.querySelector( MPv1Ticket.selectors.couponCode )
275
+ .style.background = "url(" + MPv1Ticket.paths.check +
276
+ ") 98% 50% no-repeat #fff";
277
+ document.querySelector( MPv1Ticket.selectors.applyCoupon ).value =
278
+ MPv1Ticket.text.remove;
279
+ document.querySelector( MPv1Ticket.selectors.campaign_id ).value =
280
+ response.response.id;
281
+ document.querySelector( MPv1Ticket.selectors.campaign ).value =
282
+ response.response.name;
283
+ } else if ( response.status == 400 || response.status == 404 ) {
284
+ document.querySelector( MPv1Ticket.selectors.mpCouponApplyed )
285
+ .style.display = "none";
286
+ document.querySelector( MPv1Ticket.selectors.mpCouponError )
287
+ .style.display = "block";
288
+ document.querySelector( MPv1Ticket.selectors.mpCouponError )
289
+ .innerHTML = response.response.message;
290
+ MPv1Ticket.coupon_of_discounts.status = false;
291
+ document.querySelector(MPv1Ticket.selectors.couponCode)
292
+ .style.background = null;
293
+ document.querySelector( MPv1Ticket.selectors.couponCode )
294
+ .style.background = "url(" + MPv1Ticket.paths.error +
295
+ ") 98% 50% no-repeat #fff";
296
+ document.querySelector( MPv1Ticket.selectors.applyCoupon ).value =
297
+ MPv1Ticket.text.apply;
298
+ document.querySelector( MPv1.selectors.discount ).value = 0;
299
+ }
300
+ } else {
301
+ // Request failed.
302
+ document.querySelector( MPv1Ticket.selectors.mpCouponApplyed )
303
+ .style.display = "none";
304
+ document.querySelector( MPv1Ticket.selectors.mpCouponError )
305
+ .style.display = "none";
306
+ MPv1Ticket.coupon_of_discounts.status = false;
307
+ document.querySelector( MPv1Ticket.selectors.applyCoupon )
308
+ .style.background = null;
309
+ document.querySelector( MPv1Ticket.selectors.applyCoupon )
310
+ .value = MPv1Ticket.text.apply;
311
+ document.querySelector( MPv1Ticket.selectors.couponCode )
312
+ .value = "";
313
+ document.querySelector( MPv1Ticket.selectors.couponCode )
314
+ .style.background = null;
315
+ document.querySelector( MPv1.selectors.discount )
316
+ .value = 0;
317
+ }
318
+ document.querySelector( MPv1Ticket.selectors.applyCoupon )
319
+ .disabled = false;
320
+ }
321
+ };
322
+ request.send( null );
323
+ }
324
+ }
325
+
326
+ // === Initialization function
327
+
328
+ MPv1Ticket.addListenerEvent = function( el, eventName, handler ) {
329
+ if ( el.addEventListener ) {
330
+ el.addEventListener( eventName, handler );
331
+ } else {
332
+ el.attachEvent( "on" + eventName, function() {
333
+ handler.call( el );
334
+ } );
335
+ }
336
+ };
337
+
338
+ MPv1Ticket.Initialize = function( site_id, coupon_mode, discount_action_url ) {
339
+
340
+ // Sets.
341
+ MPv1Ticket.site_id = site_id
342
+ MPv1Ticket.coupon_of_discounts.default = coupon_mode
343
+ MPv1Ticket.coupon_of_discounts.discount_action_url = discount_action_url
344
+
345
+ // Flow coupon of discounts.
346
+ if ( MPv1Ticket.coupon_of_discounts.default ) {
347
+ MPv1Ticket.addListenerEvent(
348
+ document.querySelector( MPv1Ticket.selectors.applyCoupon ),
349
+ "click",
350
+ MPv1Ticket.checkCouponEligibility
351
+ );
352
+ } else {
353
+ document.querySelector( MPv1Ticket.selectors.formCoupon ).style.display = "none";
354
+ }
355
+
356
+ return;
357
+
358
+ }
359
+
360
+ this.MPv1Ticket = MPv1Ticket;
361
+
362
+ } ).call();
363
+
364
+ // === Instantiation
365
+
366
+ var mercadopago_site_id = "<?php echo $site_id; ?>";
367
+ var mercadopago_coupon_mode = "<?php echo $coupon_mode; ?>";
368
+ var mercadopago_discount_action_url = "<?php echo $discount_action_url; ?>";
369
+
370
+ MPv1Ticket.text.discount_info1 = "<?php echo $form_labels['form']['discount_info1']; ?>";
371
+ MPv1Ticket.text.discount_info2 = "<?php echo $form_labels['form']['discount_info2']; ?>";
372
+ MPv1Ticket.text.discount_info3 = "<?php echo $form_labels['form']['discount_info3']; ?>";
373
+ MPv1Ticket.text.discount_info4 = "<?php echo $form_labels['form']['discount_info4']; ?>";
374
+ MPv1Ticket.text.discount_info5 = "<?php echo $form_labels['form']['discount_info5']; ?>";
375
+ MPv1Ticket.text.discount_info6 = "<?php echo $form_labels['form']['discount_info6']; ?>";
376
+ MPv1Ticket.text.apply = "<?php echo $form_labels['form']['apply']; ?>";
377
+ MPv1Ticket.text.remove = "<?php echo $form_labels['form']['remove']; ?>";
378
+ MPv1Ticket.text.coupon_empty = "<?php echo $form_labels['form']['coupon_empty']; ?>";
379
+ MPv1Ticket.paths.loading = "<?php echo ( $images_path . 'loading.gif' ); ?>";
380
+ MPv1Ticket.paths.check = "<?php echo ( $images_path . 'check.png' ); ?>";
381
+ MPv1Ticket.paths.error = "<?php echo ( $images_path . 'error.png' ); ?>";
382
+
383
+ MPv1Ticket.getAmount = function() {
384
+ return document.querySelector( MPv1Ticket.selectors.amount )
385
+ .value - document.querySelector( MPv1Ticket.selectors.discount ).value;
386
+ }
387
+
388
+ MPv1Ticket.getAmountWithoutDiscount = function() {
389
+ return document.querySelector( MPv1Ticket.selectors.amount ).value;
390
+ }
391
+
392
+ MPv1Ticket.Initialize(
393
+ mercadopago_site_id,
394
+ mercadopago_coupon_mode == "yes",
395
+ mercadopago_discount_action_url
396
+ );
397
+
398
+ </script>