Version Description
Download this release
Release Info
Developer | mercadopago |
Plugin | WooCommerce MercadoPago |
Version | old.2.1.3 |
Comparing to | |
See all releases |
Code changes from version old.1.0.3 to old.2.1.3
- README.txt +181 -62
- assets/css/custom_checkout_mercadopago.css +169 -0
- images/MCO/CUPOM_MCO.jpg +0 -0
- images/{MCO.png → MCO/MCO.png} +0 -0
- images/MCO/banner_all_methods.png +0 -0
- images/{MCO.jpg → MCO/credit_card.png} +0 -0
- images/MCO/standard_mco.jpg +0 -0
- images/MLA/CUPOM_MLA.jpg +0 -0
- images/{MLA.png → MLA/MLA.png} +0 -0
- images/MLA/banner_all_methods.png +0 -0
- images/MLA/credit_card.png +0 -0
- images/{MLA.jpg → MLA/standard_mla.jpg} +0 -0
- images/MLB/CUPOM_MLB.jpg +0 -0
- images/{MLB.png → MLB/MLB.png} +0 -0
- images/MLB/banner_all_methods.png +0 -0
- images/{MLB.jpg → MLB/credit_card.png} +0 -0
- images/MLB/cupom1.jpg +0 -0
- images/MLB/cupom2.jpg +0 -0
- images/MLB/cupom3.jpg +0 -0
- images/MLB/desconto_MLB.jpg +0 -0
- images/MLB/standard_mlb.jpg +0 -0
- images/MLC/CUPOM_MLC.jpg +0 -0
- images/{MLC.png → MLC/MLC.png} +0 -0
- images/MLC/banner_all_methods.png +0 -0
- images/{MLC.gif → MLC/credit_card.png} +0 -0
- images/MLC/standard_mlc.gif +0 -0
- images/MLM/CUPOM_MLM.jpg +0 -0
- images/{MLM.png → MLM/MLM.png} +0 -0
- images/MLM/banner_all_methods.png +0 -0
- images/MLM/credit_card.png +0 -0
- images/{MLM.jpg → MLM/standard_mlm.jpg} +0 -0
- images/MLV/CUPOM_MLV.jpg +0 -0
- images/{MLV.png → MLV/MLV.png} +0 -0
- images/MLV/banner_all_methods.png +0 -0
- images/{MLV.jpg → MLV/credit_card.png} +0 -0
- images/MLV/standard_mlv.jpg +0 -0
- images/MPE/CUPOM_MPE.png +0 -0
- images/MPE/MPE.png +0 -0
- images/MPE/banner_all_methods.png +0 -0
- images/MPE/credit_card.png +0 -0
- images/MPE/standard_mpe.png +0 -0
- images/bandeiras/amex.png +0 -0
- images/bandeiras/boleto.png +0 -0
- images/bandeiras/cash.png +0 -0
- images/bandeiras/diners.png +0 -0
- images/bandeiras/elo.png +0 -0
- images/bandeiras/hipercard.png +0 -0
- images/bandeiras/master.png +0 -0
- images/bandeiras/melicard.png +0 -0
- images/bandeiras/visa.png +0 -0
- images/banner.png +0 -0
- images/bar_code.png +0 -0
- images/boleto.png +0 -0
- images/check.png +0 -0
- images/credit_card.png +0 -0
- images/cvv.png +0 -0
- images/error.png +0 -0
- images/loading.gif +0 -0
- images/mercadopago.png +0 -0
- images/mplogo.png +0 -0
- images/warning.png +0 -0
- languages/woocommerce-mercadopago-module-es_AR.mo +0 -0
- languages/woocommerce-mercadopago-module-es_AR.po +607 -180
- languages/woocommerce-mercadopago-module-es_CL.mo +0 -0
- languages/woocommerce-mercadopago-module-es_CL.po +608 -181
- languages/woocommerce-mercadopago-module-es_CO.mo +0 -0
- languages/woocommerce-mercadopago-module-es_CO.po +608 -188
- languages/woocommerce-mercadopago-module-es_ES.mo +0 -0
- languages/woocommerce-mercadopago-module-es_ES.po +775 -0
- languages/woocommerce-mercadopago-module-es_MX.mo +0 -0
- languages/woocommerce-mercadopago-module-es_MX.po +608 -181
- languages/woocommerce-mercadopago-module-es_PE.mo +0 -0
- languages/woocommerce-mercadopago-module-es_PE.po +775 -0
- languages/woocommerce-mercadopago-module-es_VE.mo +0 -0
- languages/woocommerce-mercadopago-module-es_VE.po +608 -181
- languages/woocommerce-mercadopago-module-pt_BR.mo +0 -0
- languages/woocommerce-mercadopago-module-pt_BR.po +675 -247
- languages/woocommerce-mercadopago-module.pot +575 -337
- mercadopago-module.php +60 -42
- mercadopago/mercadopago-custom-gateway.php +1228 -0
- mercadopago/mercadopago-gateway.php +728 -571
- mercadopago/mercadopago-ticket-gateway.php +1017 -0
- mercadopago/sdk/lib/cacert.pem +0 -0
- mercadopago/sdk/lib/mercadopago.php +261 -24
- templates/credit-card/payment-form.php +1137 -0
- templates/ticket/ticket-form.php +347 -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:
|
5 |
Requires at least: WooCommerce 2.1.x
|
6 |
Tested up to: WooCommerce 2.5.x
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
-
License URI:
|
10 |
|
11 |
This is the oficial module of Mercado Pago for WooCommerce plugin.
|
12 |
|
@@ -14,79 +14,198 @@ 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
24 |
-
You will receive the following message: "Plugin enabled." as a notice in your WordPress.
|
25 |
|
26 |
-
|
|
|
27 |
|
28 |
-
|
|
|
29 |
|
30 |
-
==
|
31 |
|
32 |
-
1.
|
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 |
-
|
66 |
|
67 |
-
|
68 |
|
69 |
-
|
70 |
|
71 |
-
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
-
=
|
76 |
-
*
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
-
= v1.0.
|
83 |
-
*
|
84 |
-
|
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 |
-
*
|
|
|
90 |
|
91 |
-
= v1.0.
|
92 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Woo Mercado Pago Module Oficial ===
|
2 |
Contributors: mercadopago, mercadolivre
|
3 |
Donate link: https://www.mercadopago.com.br/developers/
|
4 |
+
Tags: ecommerce, mercadopago, woocommerce
|
5 |
Requires at least: WooCommerce 2.1.x
|
6 |
Tested up to: WooCommerce 2.5.x
|
7 |
+
Stable tag: 2.1.3
|
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.3.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.3 (15/09/2016) =
|
112 |
+
* Improvements
|
113 |
+
- A few improvements in performance;
|
114 |
+
- Improved translations;
|
115 |
+
- Improved security with URL access via SSL in all module flow.
|
116 |
+
|
117 |
+
= v2.1.2 (18/08/2016) =
|
118 |
+
* Improvements
|
119 |
+
- Improved performance for both client and server sides.
|
120 |
+
* Bug fixes
|
121 |
+
- Fixed the product list for multiple items in Basic Checkout form.
|
122 |
+
|
123 |
+
= v2.1.1 (02/08/2016) =
|
124 |
+
* Improvements
|
125 |
+
- Improved log messages when applying discounts;
|
126 |
+
- Added a link to reprint ticket in customer account order page.
|
127 |
+
* Bug fixes
|
128 |
+
- Fixed tax fee for shipments.
|
129 |
+
|
130 |
+
= v2.1.0 (25/07/2016) =
|
131 |
+
* Features
|
132 |
+
- 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>;
|
133 |
+
- Currency Conversion. Added an option to try to use Mercado Pago currency ratio, to automatically convert any currencies to supported/used currency.
|
134 |
+
* Improvements
|
135 |
+
- Improved credentials validation algorithm;
|
136 |
+
- Improved checkout data, with more clean and sanitized info for product image and description.
|
137 |
+
|
138 |
+
= v2.0.5 (07/07/2016) =
|
139 |
+
* Improvements
|
140 |
+
- Improved IPN behavior to handle consistent messages with absent IDs.
|
141 |
+
* Bug fixes
|
142 |
+
- Fixed the informative URL of ticket IPN in admin page.
|
143 |
+
|
144 |
+
= v2.0.4 (29/06/2016) =
|
145 |
+
* Improvements
|
146 |
+
- Added a message in admin view when currency is different from used locally (used in credential's country).
|
147 |
+
* Bug fixes
|
148 |
+
- We have wrote a snippet to handle the absent shipment cost problem;
|
149 |
+
- Fixed some URLs of the credentials link for Basic Checkout.
|
150 |
+
|
151 |
+
= v2.0.3 (21/06/2016) =
|
152 |
+
* Bug fixes
|
153 |
+
- 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.
|
154 |
+
|
155 |
+
= v2.0.2 (13/06/2016) =
|
156 |
+
* Features
|
157 |
+
- Rollout to Peru. This plugin is now supporting Peru, which includes Basic Checkout, Custom Checkout, Tickets, and local language translations.
|
158 |
+
* Bug fixes
|
159 |
+
- 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;
|
160 |
+
- Fix a tax issue. It wasn't been correctly added to the total value in Mercado Pago gateway.
|
161 |
+
|
162 |
+
= v2.0.1 (09/06/2016) =
|
163 |
+
* Features
|
164 |
+
- 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>.
|
165 |
+
* Improvements
|
166 |
+
- 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;
|
167 |
+
- 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.
|
168 |
+
|
169 |
+
= v2.0.0 (01/06/2016) =
|
170 |
+
* Features
|
171 |
+
- 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>;
|
172 |
+
- 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>.
|
173 |
+
* Improvements
|
174 |
+
- 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).
|
175 |
+
|
176 |
+
= v1.0.5 (29/04/2016) =
|
177 |
+
* Improvements
|
178 |
+
- Removal of extra shipment setup in checkout view. We have made a workaround to prevent an extra shipment screen to appear;
|
179 |
+
- Translation to es_ES. Users can select Spain as module country, and translation should be ok.
|
180 |
+
* Bug fixes
|
181 |
+
- Some bug fixes to stabilize the module.
|
182 |
+
|
183 |
+
= v1.0.4 (15/04/2016) =
|
184 |
+
* Improvements
|
185 |
+
- 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!
|
186 |
+
- 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.
|
187 |
|
188 |
+
= v1.0.3 (23/03/2016) =
|
189 |
+
* Improving algorithm when processing IPN
|
190 |
+
Async calls and processment were refined.
|
|
|
|
|
191 |
|
192 |
= v1.0.2 (23/03/2016) =
|
193 |
+
* Bug fixes
|
194 |
+
- IPN URL wasn’t triggered when topic=payment. Fixed a bug for some specific IPN messages of Mercado Pago.
|
195 |
|
196 |
+
= v1.0.1 (23/03/2016) =
|
197 |
+
* Improvements
|
198 |
+
- Added payment ID in order custom fields information. Added some good informations about the payment in the order view;
|
199 |
+
- Removed some unused files/code. We've made some code cleaning;
|
200 |
+
- 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;
|
201 |
+
- Proper information of shipment cost. Previously, the shipment cost was passed together with the cart total order amount.
|
202 |
+
|
203 |
+
= v1.0.0 (16/03/2016) =
|
204 |
+
* Features
|
205 |
+
- 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>;
|
206 |
+
- 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;
|
207 |
+
- Sandbox and debug options. Basicer can test orders by enabling debug mode or using sandbox environment.
|
208 |
+
|
209 |
+
== Upgrade Notice ==
|
210 |
+
|
211 |
+
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,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
#submit{
|
123 |
+
color: #fff;
|
124 |
+
background-color: #337ab7;
|
125 |
+
border-color: #2e6da4;
|
126 |
+
padding: 6px 12px;
|
127 |
+
border: 1px solid transparent;
|
128 |
+
border-radius: 4px;
|
129 |
+
text-align: center;
|
130 |
+
font-size: 14px;
|
131 |
+
font-weight: 400;
|
132 |
+
}
|
133 |
+
|
134 |
+
#submit:hover {
|
135 |
+
color: #fff;
|
136 |
+
background-color: #286090;
|
137 |
+
border-color: #204d74;
|
138 |
+
}
|
139 |
+
|
140 |
+
.mp-discount{
|
141 |
+
text-transform: uppercase;
|
142 |
+
font-size: 12px;
|
143 |
+
/*color: #009EE3;*/
|
144 |
+
color: #333333;
|
145 |
+
display: none;
|
146 |
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
147 |
+
clear: both;
|
148 |
+
float: left;
|
149 |
+
}
|
150 |
+
|
151 |
+
/*
|
152 |
+
*
|
153 |
+
*
|
154 |
+
* Error
|
155 |
+
*
|
156 |
+
*
|
157 |
+
*/
|
158 |
+
|
159 |
+
.mp-error{
|
160 |
+
text-transform: uppercase;
|
161 |
+
font-size: 10px;
|
162 |
+
color: red;
|
163 |
+
font-weight: bold;
|
164 |
+
display: none;
|
165 |
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
166 |
+
clear: both;
|
167 |
+
float: left;
|
168 |
+
}
|
169 |
+
|
images/MCO/CUPOM_MCO.jpg
ADDED
Binary file
|
images/{MCO.png → MCO/MCO.png}
RENAMED
File without changes
|
images/MCO/banner_all_methods.png
ADDED
Binary file
|
images/{MCO.jpg → MCO/credit_card.png}
RENAMED
File without changes
|
images/MCO/standard_mco.jpg
ADDED
Binary file
|
images/MLA/CUPOM_MLA.jpg
ADDED
Binary file
|
images/{MLA.png → MLA/MLA.png}
RENAMED
File without changes
|
images/MLA/banner_all_methods.png
ADDED
Binary file
|
images/MLA/credit_card.png
ADDED
Binary file
|
images/{MLA.jpg → MLA/standard_mla.jpg}
RENAMED
File without changes
|
images/MLB/CUPOM_MLB.jpg
ADDED
Binary file
|
images/{MLB.png → MLB/MLB.png}
RENAMED
File without changes
|
images/MLB/banner_all_methods.png
ADDED
Binary file
|
images/{MLB.jpg → MLB/credit_card.png}
RENAMED
File without changes
|
images/MLB/cupom1.jpg
ADDED
Binary file
|
images/MLB/cupom2.jpg
ADDED
Binary file
|
images/MLB/cupom3.jpg
ADDED
Binary file
|
images/MLB/desconto_MLB.jpg
ADDED
Binary file
|
images/MLB/standard_mlb.jpg
ADDED
Binary file
|
images/MLC/CUPOM_MLC.jpg
ADDED
Binary file
|
images/{MLC.png → MLC/MLC.png}
RENAMED
File without changes
|
images/MLC/banner_all_methods.png
ADDED
Binary file
|
images/{MLC.gif → MLC/credit_card.png}
RENAMED
File without changes
|
images/MLC/standard_mlc.gif
ADDED
Binary file
|
images/MLM/CUPOM_MLM.jpg
ADDED
Binary file
|
images/{MLM.png → MLM/MLM.png}
RENAMED
File without changes
|
images/MLM/banner_all_methods.png
ADDED
Binary file
|
images/MLM/credit_card.png
ADDED
Binary file
|
images/{MLM.jpg → MLM/standard_mlm.jpg}
RENAMED
File without changes
|
images/MLV/CUPOM_MLV.jpg
ADDED
Binary file
|
images/{MLV.png → MLV/MLV.png}
RENAMED
File without changes
|
images/MLV/banner_all_methods.png
ADDED
Binary file
|
images/{MLV.jpg → MLV/credit_card.png}
RENAMED
File without changes
|
images/MLV/standard_mlv.jpg
ADDED
Binary file
|
images/MPE/CUPOM_MPE.png
ADDED
Binary file
|
images/MPE/MPE.png
ADDED
Binary file
|
images/MPE/banner_all_methods.png
ADDED
Binary file
|
images/MPE/credit_card.png
ADDED
Binary file
|
images/MPE/standard_mpe.png
ADDED
Binary file
|
images/bandeiras/amex.png
ADDED
Binary file
|
images/bandeiras/boleto.png
ADDED
Binary file
|
images/bandeiras/cash.png
ADDED
Binary file
|
images/bandeiras/diners.png
ADDED
Binary file
|
images/bandeiras/elo.png
ADDED
Binary file
|
images/bandeiras/hipercard.png
ADDED
Binary file
|
images/bandeiras/master.png
ADDED
Binary file
|
images/bandeiras/melicard.png
ADDED
Binary file
|
images/bandeiras/visa.png
ADDED
Binary file
|
images/banner.png
ADDED
Binary file
|
images/bar_code.png
ADDED
Binary file
|
images/boleto.png
ADDED
Binary file
|
images/check.png
CHANGED
File without changes
|
images/credit_card.png
ADDED
Binary file
|
images/cvv.png
ADDED
Binary file
|
images/error.png
CHANGED
File without changes
|
images/loading.gif
ADDED
Binary file
|
images/mercadopago.png
CHANGED
File without changes
|
images/mplogo.png
CHANGED
File without changes
|
images/warning.png
CHANGED
File without changes
|
languages/woocommerce-mercadopago-module-es_AR.mo
CHANGED
Binary file
|
languages/woocommerce-mercadopago-module-es_AR.po
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"PO-Revision-Date: \n"
|
9 |
-
"Language-Team:
|
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;
|
18 |
-
"
|
|
|
19 |
"X-Generator: Poedit 1.8.7\n"
|
20 |
"Last-Translator: \n"
|
21 |
"Language: es_AR\n"
|
@@ -23,326 +24,752 @@ msgstr ""
|
|
23 |
|
24 |
#. Description of the plugin/theme
|
25 |
msgid "This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store."
|
26 |
-
msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como
|
27 |
|
28 |
-
#: mercadopago-module.php:
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
36 |
|
37 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
38 |
msgid "Argentine"
|
39 |
msgstr "Argentina"
|
40 |
|
41 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
42 |
msgid "Brazil"
|
43 |
msgstr "Brasil"
|
44 |
|
45 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
46 |
msgid "Chile"
|
47 |
msgstr "Chile"
|
48 |
|
49 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
50 |
msgid "Colombia"
|
51 |
msgstr "Colombia"
|
52 |
|
53 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
54 |
msgid "Mexico"
|
55 |
msgstr "México"
|
56 |
|
57 |
-
#: mercadopago/mercadopago-gateway.php:
|
58 |
msgid "or"
|
59 |
msgstr "o"
|
60 |
|
61 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
62 |
msgid "Venezuela"
|
63 |
msgstr "Venezuela"
|
64 |
|
65 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
74 |
-
|
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-
|
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:
|
102 |
-
msgid "Enable
|
103 |
-
msgstr "Habilitar
|
104 |
|
105 |
-
#: mercadopago/mercadopago-gateway.php:
|
106 |
msgid "Mercado Pago Credentials"
|
107 |
msgstr "Credenciales de Mercado Pago"
|
108 |
|
109 |
-
#: mercadopago/mercadopago-gateway.php:
|
110 |
msgid "You can obtain your credentials for"
|
111 |
msgstr "Puedes obtener tus credenciales para"
|
112 |
|
113 |
-
#: mercadopago/mercadopago-gateway.php:
|
114 |
-
msgid "Mercado Pago
|
115 |
-
msgstr "
|
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:
|
122 |
-
msgid "Mercado Pago
|
123 |
-
msgstr "
|
124 |
|
125 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
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:
|
138 |
msgid "Checkout Options"
|
139 |
msgstr "Opciones de Checkout"
|
140 |
|
141 |
-
#: mercadopago/mercadopago-gateway.php:
|
142 |
msgid "Title"
|
143 |
msgstr "Título"
|
144 |
|
145 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
|
|
|
|
|
|
|
|
150 |
msgid "Description"
|
151 |
msgstr "Descripción"
|
152 |
|
153 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
158 |
msgid "Pay with Mercado Pago"
|
159 |
msgstr "Pagar con Mercado Pago"
|
160 |
|
161 |
-
#: mercadopago/mercadopago-gateway.php:
|
162 |
-
msgid "
|
163 |
-
msgstr "
|
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:
|
186 |
-
msgid "
|
187 |
-
msgstr "
|
188 |
|
189 |
-
#: mercadopago/mercadopago-gateway.php:
|
190 |
-
msgid "
|
191 |
-
msgstr "
|
192 |
|
193 |
-
#: mercadopago/mercadopago-gateway.php:
|
194 |
-
msgid "
|
195 |
-
msgstr "
|
196 |
|
197 |
-
#: mercadopago/mercadopago-gateway.php:
|
198 |
-
msgid "
|
199 |
-
msgstr "
|
200 |
|
201 |
-
#: mercadopago/mercadopago-gateway.php:
|
202 |
-
msgid "
|
203 |
-
msgstr "
|
204 |
|
205 |
-
#: mercadopago/mercadopago-gateway.php:
|
206 |
-
msgid "
|
207 |
-
msgstr "
|
208 |
|
209 |
-
#: mercadopago/mercadopago-gateway.php:
|
210 |
-
msgid "
|
211 |
-
msgstr "
|
212 |
|
213 |
-
#: mercadopago/mercadopago-gateway.php:
|
214 |
-
msgid "
|
215 |
-
msgstr "
|
216 |
|
217 |
-
#: mercadopago/mercadopago-gateway.php:
|
218 |
-
msgid "
|
219 |
-
msgstr "
|
220 |
|
221 |
-
#: mercadopago/mercadopago-gateway.php:
|
222 |
-
msgid "
|
223 |
-
msgstr "
|
224 |
|
225 |
-
#: mercadopago/mercadopago-gateway.php:
|
226 |
-
msgid "
|
227 |
-
msgstr "
|
228 |
|
229 |
-
#: mercadopago/mercadopago-gateway.php:
|
230 |
-
msgid "
|
231 |
-
|
|
|
|
|
|
|
232 |
|
233 |
-
#: mercadopago/mercadopago-gateway.php:
|
234 |
msgid "Test and Debug Options"
|
235 |
msgstr "Opciones de Prueba y Debug"
|
236 |
|
237 |
-
#: mercadopago/mercadopago-gateway.php:
|
238 |
msgid "Mercado Pago Sandbox"
|
239 |
msgstr "Sandbox Mercado Pago"
|
240 |
|
241 |
-
#: mercadopago/mercadopago-gateway.php:
|
242 |
msgid "Enable Mercado Pago Sandbox"
|
243 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
244 |
|
245 |
-
#: mercadopago/mercadopago-gateway.php:
|
246 |
-
msgid "This
|
247 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
248 |
|
249 |
-
#: mercadopago/mercadopago-gateway.php:
|
250 |
msgid "Debug and Log"
|
251 |
msgstr "Debug y Log"
|
252 |
|
253 |
-
#: mercadopago/mercadopago-gateway.php:
|
254 |
msgid "Enable log"
|
255 |
msgstr "Habilitar Log"
|
256 |
|
257 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
263 |
-
msgid "
|
264 |
-
msgstr "
|
265 |
|
266 |
-
#: mercadopago/mercadopago-gateway.php:
|
267 |
-
|
268 |
-
|
|
|
269 |
|
270 |
-
#: mercadopago/mercadopago-gateway.php:
|
271 |
-
msgid "
|
272 |
-
msgstr "
|
273 |
|
274 |
-
#: mercadopago/mercadopago-gateway.php:
|
275 |
-
msgid "
|
276 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
|
278 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
msgid "Click to try again"
|
280 |
-
msgstr "Haga
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
283 |
msgid "Mercado Pago is Inactive"
|
284 |
msgstr "Mercado Pago Inactivo"
|
285 |
|
286 |
-
#: mercadopago/mercadopago-gateway.php:
|
287 |
-
msgid "Your Mercado Pago credentials
|
288 |
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
289 |
|
290 |
-
#: mercadopago/mercadopago-gateway.php:
|
291 |
msgid "Click here and configure!"
|
292 |
msgstr "Haga click aquí y configure!"
|
293 |
|
294 |
-
#: mercadopago/mercadopago-gateway.php:
|
295 |
msgid "The currency"
|
296 |
msgstr "La moneda"
|
297 |
|
298 |
-
#: mercadopago/mercadopago-gateway.php:
|
299 |
-
msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN,
|
300 |
-
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
|
302 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
msgid "Mercado Pago Request Failure"
|
304 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
305 |
|
306 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
315 |
msgid "Payment type"
|
316 |
-
msgstr "
|
317 |
|
318 |
-
#: mercadopago/mercadopago-gateway.php:
|
319 |
-
msgid "Payment
|
320 |
-
msgstr "Pago
|
321 |
|
322 |
-
#: mercadopago/mercadopago-gateway.php:
|
323 |
msgid "Customer haven't paid yet."
|
324 |
msgstr "El cliente todavía no efectuó el pago."
|
325 |
|
326 |
-
#: mercadopago/mercadopago-gateway.php:
|
327 |
msgid "Payment under review."
|
328 |
msgstr "El pago está pendiente de revisión."
|
329 |
|
330 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
335 |
msgid "The payment was refunded to the customer."
|
336 |
msgstr "El pago fue devuelto al cliente."
|
337 |
|
338 |
-
#: mercadopago/mercadopago-gateway.php:
|
339 |
msgid "The payment was cancelled."
|
340 |
msgstr "El pago fue cancelado."
|
341 |
|
342 |
-
#: mercadopago/mercadopago-gateway.php:
|
343 |
-
|
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 > System Status > Logs"
|
384 |
+
msgstr "WooCommerce > Estado del Sistema > 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 & Clear cart"
|
566 |
+
msgstr "Cancelar & Limpiar carrito"
|
567 |
+
|
568 |
+
#: mercadopago/mercadopago-gateway.php:446
|
569 |
+
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
570 |
+
msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
|
571 |
+
|
572 |
+
#: mercadopago/mercadopago-gateway.php:697
|
573 |
+
msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
|
574 |
+
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
575 |
+
|
576 |
+
msgid " as it appears in your card ..."
|
577 |
+
msgstr " tal como aparece en su tarjeta ..."
|
578 |
+
|
579 |
+
msgid "Done, your payment was accredited!"
|
580 |
+
msgstr "Listo, su pago ha sido aceptado!"
|
581 |
+
|
582 |
+
msgid "We are processing the payment. In less than an hour we will e-mail you the results."
|
583 |
+
msgstr "Estamos procesando su pago. En menos de una hora le enviaremos el resultado por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días le enviaremos por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar los pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro medio de pago. Se recomienda en efectivo."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro medio de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta medio de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, realice el pago del ticket para tener su orden aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Personalizado Inactivo"
|
665 |
+
|
666 |
+
msgid "Basic Checkout is Inactive"
|
667 |
+
msgstr "Checkout Básico Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección."
|
674 |
+
|
675 |
+
msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
676 |
+
msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
677 |
+
|
678 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
679 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
680 |
+
|
681 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
682 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
|
683 |
+
|
684 |
+
msgid "Your Card"
|
685 |
+
msgstr "Sus Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Cards"
|
688 |
+
msgstr "Otras Tarjetas"
|
689 |
+
|
690 |
+
msgid "Other Card"
|
691 |
+
msgstr "Otra Tarjeta"
|
692 |
+
|
693 |
+
msgid "ended in"
|
694 |
+
msgstr "terminado en"
|
695 |
+
|
696 |
+
msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
|
697 |
+
msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
|
698 |
+
|
699 |
+
msgid "ATTENTION: The currency"
|
700 |
+
msgstr "ATENCIÓN: La moneda"
|
701 |
+
|
702 |
+
msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
|
703 |
+
msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
|
704 |
+
|
705 |
+
msgid "Currency conversions should be made outside this module."
|
706 |
+
msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
|
707 |
+
|
708 |
+
msgid "Coupons"
|
709 |
+
msgstr "Cupones"
|
710 |
+
|
711 |
+
msgid "Enable coupons of discounts"
|
712 |
+
msgstr "Activar los cupones de descuento"
|
713 |
+
|
714 |
+
msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
|
715 |
+
msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
|
716 |
+
|
717 |
+
msgid "You will save"
|
718 |
+
msgstr "Usted ahorrará"
|
719 |
+
|
720 |
+
msgid "Apply"
|
721 |
+
msgstr "Aplicar"
|
722 |
+
|
723 |
+
msgid "Remove"
|
724 |
+
msgstr "Eliminar"
|
725 |
+
|
726 |
+
msgid "Please, inform your coupon code"
|
727 |
+
msgstr "Por favor, introduzca el código de su cupón"
|
728 |
+
|
729 |
+
msgid "Please, inform your email in billing address to use this feature"
|
730 |
+
msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
|
731 |
+
|
732 |
+
msgid "Discount for %s coupon"
|
733 |
+
msgstr "Descuento para el cupón %s"
|
734 |
+
|
735 |
+
msgid "Discount provided by store"
|
736 |
+
msgstr "Descuento dado por la tienda"
|
737 |
+
|
738 |
+
msgid "Discount Coupon"
|
739 |
+
msgstr "Cupón de Descuento"
|
740 |
+
|
741 |
+
msgid "CURRENCY CONVERTED: The currency conversion ratio from"
|
742 |
+
msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
|
743 |
+
|
744 |
+
msgid "ERROR: It was not possible to convert the unsupported currency"
|
745 |
+
msgstr "ERROR: No fue posible convertir la moneda no soportada"
|
746 |
+
|
747 |
+
msgid "to"
|
748 |
+
msgstr "para"
|
749 |
+
|
750 |
+
msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
|
751 |
+
msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
|
752 |
+
|
753 |
+
msgid " is: "
|
754 |
+
msgstr " es: "
|
755 |
+
|
756 |
+
msgid "Currency Conversion"
|
757 |
+
msgstr "Conversión de Moneda"
|
758 |
+
|
759 |
+
msgid "with discount from"
|
760 |
+
msgstr "con descuento de"
|
761 |
+
|
762 |
+
msgid "Total of your purchase:"
|
763 |
+
msgstr "Total de su compra:"
|
764 |
+
|
765 |
+
msgid "Total of your purchase with discount:"
|
766 |
+
msgstr "Total de su compra con descuento:"
|
767 |
+
|
768 |
+
msgid "*Uppon payment approval"
|
769 |
+
msgstr "*Con la aprobación de pago"
|
770 |
+
|
771 |
+
msgid "Terms and Conditions of Use"
|
772 |
+
msgstr "Términos y Condiciones de Uso"
|
773 |
+
|
774 |
+
msgid "Payment converted from"
|
775 |
+
msgstr "Pago convertido de"
|
languages/woocommerce-mercadopago-module-es_CL.mo
CHANGED
Binary file
|
languages/woocommerce-mercadopago-module-es_CL.po
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"PO-Revision-Date: \n"
|
9 |
-
"Language-Team:
|
10 |
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -14,335 +14,762 @@ msgstr ""
|
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;
|
18 |
-
"
|
|
|
19 |
"X-Generator: Poedit 1.8.7\n"
|
20 |
"Last-Translator: \n"
|
21 |
-
"Language:
|
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
|
27 |
|
28 |
-
#: mercadopago-module.php:
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
36 |
|
37 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
38 |
msgid "Argentine"
|
39 |
msgstr "Argentina"
|
40 |
|
41 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
42 |
msgid "Brazil"
|
43 |
msgstr "Brasil"
|
44 |
|
45 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
46 |
msgid "Chile"
|
47 |
msgstr "Chile"
|
48 |
|
49 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
50 |
msgid "Colombia"
|
51 |
msgstr "Colombia"
|
52 |
|
53 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
54 |
msgid "Mexico"
|
55 |
msgstr "México"
|
56 |
|
57 |
-
#: mercadopago/mercadopago-gateway.php:
|
58 |
msgid "or"
|
59 |
msgstr "o"
|
60 |
|
61 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
62 |
msgid "Venezuela"
|
63 |
msgstr "Venezuela"
|
64 |
|
65 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
74 |
-
|
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-
|
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:
|
102 |
-
msgid "Enable
|
103 |
-
msgstr "Habilitar
|
104 |
|
105 |
-
#: mercadopago/mercadopago-gateway.php:
|
106 |
msgid "Mercado Pago Credentials"
|
107 |
msgstr "Credenciales de Mercado Pago"
|
108 |
|
109 |
-
#: mercadopago/mercadopago-gateway.php:
|
110 |
msgid "You can obtain your credentials for"
|
111 |
msgstr "Puedes obtener tus credenciales para"
|
112 |
|
113 |
-
#: mercadopago/mercadopago-gateway.php:
|
114 |
-
msgid "Mercado Pago
|
115 |
-
msgstr "
|
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:
|
122 |
-
msgid "Mercado Pago
|
123 |
-
msgstr "
|
124 |
|
125 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
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:
|
138 |
msgid "Checkout Options"
|
139 |
msgstr "Opciones de Checkout"
|
140 |
|
141 |
-
#: mercadopago/mercadopago-gateway.php:
|
142 |
msgid "Title"
|
143 |
msgstr "Título"
|
144 |
|
145 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
|
|
|
|
|
|
|
|
150 |
msgid "Description"
|
151 |
msgstr "Descripción"
|
152 |
|
153 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
158 |
msgid "Pay with Mercado Pago"
|
159 |
msgstr "Pagar con Mercado Pago"
|
160 |
|
161 |
-
#: mercadopago/mercadopago-gateway.php:
|
162 |
-
msgid "
|
163 |
-
msgstr "
|
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:
|
186 |
-
msgid "
|
187 |
-
msgstr "
|
188 |
|
189 |
-
#: mercadopago/mercadopago-gateway.php:
|
190 |
-
msgid "
|
191 |
-
msgstr "
|
192 |
|
193 |
-
#: mercadopago/mercadopago-gateway.php:
|
194 |
-
msgid "
|
195 |
-
msgstr "
|
196 |
|
197 |
-
#: mercadopago/mercadopago-gateway.php:
|
198 |
-
msgid "
|
199 |
-
msgstr "
|
200 |
|
201 |
-
#: mercadopago/mercadopago-gateway.php:
|
202 |
-
msgid "
|
203 |
-
msgstr "
|
204 |
|
205 |
-
#: mercadopago/mercadopago-gateway.php:
|
206 |
-
msgid "
|
207 |
-
msgstr "
|
208 |
|
209 |
-
#: mercadopago/mercadopago-gateway.php:
|
210 |
-
msgid "
|
211 |
-
msgstr "
|
212 |
|
213 |
-
#: mercadopago/mercadopago-gateway.php:
|
214 |
-
msgid "
|
215 |
-
msgstr "
|
216 |
|
217 |
-
#: mercadopago/mercadopago-gateway.php:
|
218 |
-
msgid "
|
219 |
-
msgstr "
|
220 |
|
221 |
-
#: mercadopago/mercadopago-gateway.php:
|
222 |
-
msgid "
|
223 |
-
msgstr "
|
224 |
|
225 |
-
#: mercadopago/mercadopago-gateway.php:
|
226 |
-
msgid "
|
227 |
-
msgstr "
|
228 |
|
229 |
-
#: mercadopago/mercadopago-gateway.php:
|
230 |
-
msgid "
|
231 |
-
|
|
|
|
|
|
|
232 |
|
233 |
-
#: mercadopago/mercadopago-gateway.php:
|
234 |
msgid "Test and Debug Options"
|
235 |
msgstr "Opciones de Prueba y Debug"
|
236 |
|
237 |
-
#: mercadopago/mercadopago-gateway.php:
|
238 |
msgid "Mercado Pago Sandbox"
|
239 |
msgstr "Sandbox Mercado Pago"
|
240 |
|
241 |
-
#: mercadopago/mercadopago-gateway.php:
|
242 |
msgid "Enable Mercado Pago Sandbox"
|
243 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
244 |
|
245 |
-
#: mercadopago/mercadopago-gateway.php:
|
246 |
-
msgid "This
|
247 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
248 |
|
249 |
-
#: mercadopago/mercadopago-gateway.php:
|
250 |
msgid "Debug and Log"
|
251 |
msgstr "Debug y Log"
|
252 |
|
253 |
-
#: mercadopago/mercadopago-gateway.php:
|
254 |
msgid "Enable log"
|
255 |
msgstr "Habilitar Log"
|
256 |
|
257 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
263 |
-
msgid "
|
264 |
-
msgstr "
|
265 |
|
266 |
-
#: mercadopago/mercadopago-gateway.php:
|
267 |
-
|
268 |
-
|
|
|
269 |
|
270 |
-
#: mercadopago/mercadopago-gateway.php:
|
271 |
-
msgid "
|
272 |
-
msgstr "
|
273 |
|
274 |
-
#: mercadopago/mercadopago-gateway.php:
|
275 |
-
msgid "
|
276 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
|
278 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
msgid "Click to try again"
|
280 |
-
msgstr "Haga
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
283 |
msgid "Mercado Pago is Inactive"
|
284 |
msgstr "Mercado Pago Inactivo"
|
285 |
|
286 |
-
#: mercadopago/mercadopago-gateway.php:
|
287 |
-
msgid "Your Mercado Pago credentials
|
288 |
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
289 |
|
290 |
-
#: mercadopago/mercadopago-gateway.php:
|
291 |
msgid "Click here and configure!"
|
292 |
msgstr "Haga click aquí y configure!"
|
293 |
|
294 |
-
#: mercadopago/mercadopago-gateway.php:
|
295 |
msgid "The currency"
|
296 |
msgstr "La moneda"
|
297 |
|
298 |
-
#: mercadopago/mercadopago-gateway.php:
|
299 |
-
msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN,
|
300 |
-
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
|
302 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
msgid "Mercado Pago Request Failure"
|
304 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
305 |
|
306 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
315 |
msgid "Payment type"
|
316 |
-
msgstr "
|
317 |
|
318 |
-
#: mercadopago/mercadopago-gateway.php:
|
319 |
-
msgid "Payment
|
320 |
-
msgstr "Pago
|
321 |
|
322 |
-
#: mercadopago/mercadopago-gateway.php:
|
323 |
msgid "Customer haven't paid yet."
|
324 |
msgstr "El cliente todavía no efectuó el pago."
|
325 |
|
326 |
-
#: mercadopago/mercadopago-gateway.php:
|
327 |
msgid "Payment under review."
|
328 |
msgstr "El pago está pendiente de revisión."
|
329 |
|
330 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
335 |
msgid "The payment was refunded to the customer."
|
336 |
msgstr "El pago fue devuelto al cliente."
|
337 |
|
338 |
-
#: mercadopago/mercadopago-gateway.php:
|
339 |
msgid "The payment was cancelled."
|
340 |
msgstr "El pago fue cancelado."
|
341 |
|
342 |
-
#: mercadopago/mercadopago-gateway.php:
|
343 |
-
|
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 > System Status > Logs"
|
384 |
+
msgstr "WooCommerce > Estado del Sistema > 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 & Clear cart"
|
566 |
+
msgstr "Cancelar & Limpiar carrito"
|
567 |
+
|
568 |
+
#: mercadopago/mercadopago-gateway.php:446
|
569 |
+
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
570 |
+
msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
|
571 |
+
|
572 |
+
#: mercadopago/mercadopago-gateway.php:697
|
573 |
+
msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
|
574 |
+
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
575 |
+
|
576 |
+
msgid " as it appears in your card ..."
|
577 |
+
msgstr " tal como aparece en su tarjeta ..."
|
578 |
+
|
579 |
+
msgid "Done, your payment was accredited!"
|
580 |
+
msgstr "Listo, su pago ha sido aceptado!"
|
581 |
+
|
582 |
+
msgid "We are processing the payment. In less than an hour we will e-mail you the results."
|
583 |
+
msgstr "Estamos procesando su pago. En menos de una hora le enviaremos el resultado por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días le enviaremos por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar los pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro medio de pago. Se recomienda en efectivo."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro medio de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta medio de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, realice el pago del ticket para tener su orden aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Personalizado Inactivo"
|
665 |
+
|
666 |
+
msgid "Basic Checkout is Inactive"
|
667 |
+
msgstr "Checkout Básico Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección."
|
674 |
+
|
675 |
+
msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
676 |
+
msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
677 |
+
|
678 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
679 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
680 |
+
|
681 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
682 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
|
683 |
+
|
684 |
+
msgid "Your Card"
|
685 |
+
msgstr "Sus Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Cards"
|
688 |
+
msgstr "Otras Tarjetas"
|
689 |
+
|
690 |
+
msgid "Other Card"
|
691 |
+
msgstr "Otra Tarjeta"
|
692 |
+
|
693 |
+
msgid "ended in"
|
694 |
+
msgstr "terminado en"
|
695 |
+
|
696 |
+
msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
|
697 |
+
msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
|
698 |
+
|
699 |
+
msgid "ATTENTION: The currency"
|
700 |
+
msgstr "ATENCIÓN: La moneda"
|
701 |
+
|
702 |
+
msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
|
703 |
+
msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
|
704 |
+
|
705 |
+
msgid "Currency conversions should be made outside this module."
|
706 |
+
msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
|
707 |
+
|
708 |
+
msgid "Coupons"
|
709 |
+
msgstr "Cupones"
|
710 |
+
|
711 |
+
msgid "Enable coupons of discounts"
|
712 |
+
msgstr "Activar los cupones de descuento"
|
713 |
+
|
714 |
+
msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
|
715 |
+
msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
|
716 |
+
|
717 |
+
msgid "You will save"
|
718 |
+
msgstr "Usted ahorrará"
|
719 |
+
|
720 |
+
msgid "Apply"
|
721 |
+
msgstr "Aplicar"
|
722 |
+
|
723 |
+
msgid "Remove"
|
724 |
+
msgstr "Eliminar"
|
725 |
+
|
726 |
+
msgid "Please, inform your coupon code"
|
727 |
+
msgstr "Por favor, introduzca el código de su cupón"
|
728 |
+
|
729 |
+
msgid "Please, inform your email in billing address to use this feature"
|
730 |
+
msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
|
731 |
+
|
732 |
+
msgid "Discount for %s coupon"
|
733 |
+
msgstr "Descuento para el cupón %s"
|
734 |
+
|
735 |
+
msgid "Discount provided by store"
|
736 |
+
msgstr "Descuento dado por la tienda"
|
737 |
+
|
738 |
+
msgid "Discount Coupon"
|
739 |
+
msgstr "Cupón de Descuento"
|
740 |
+
|
741 |
+
msgid "CURRENCY CONVERTED: The currency conversion ratio from"
|
742 |
+
msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
|
743 |
+
|
744 |
+
msgid "ERROR: It was not possible to convert the unsupported currency"
|
745 |
+
msgstr "ERROR: No fue posible convertir la moneda no soportada"
|
746 |
+
|
747 |
+
msgid "to"
|
748 |
+
msgstr "para"
|
749 |
+
|
750 |
+
msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
|
751 |
+
msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
|
752 |
+
|
753 |
+
msgid " is: "
|
754 |
+
msgstr " es: "
|
755 |
+
|
756 |
+
msgid "Currency Conversion"
|
757 |
+
msgstr "Conversión de Moneda"
|
758 |
+
|
759 |
+
msgid "with discount from"
|
760 |
+
msgstr "con descuento de"
|
761 |
+
|
762 |
+
msgid "Total of your purchase:"
|
763 |
+
msgstr "Total de su compra:"
|
764 |
+
|
765 |
+
msgid "Total of your purchase with discount:"
|
766 |
+
msgstr "Total de su compra con descuento:"
|
767 |
+
|
768 |
+
msgid "*Uppon payment approval"
|
769 |
+
msgstr "*Con la aprobación de pago"
|
770 |
+
|
771 |
+
msgid "Terms and Conditions of Use"
|
772 |
+
msgstr "Términos y Condiciones de Uso"
|
773 |
+
|
774 |
+
msgid "Payment converted from"
|
775 |
+
msgstr "Pago convertido de"
|
languages/woocommerce-mercadopago-module-es_CO.mo
CHANGED
Binary file
|
languages/woocommerce-mercadopago-module-es_CO.po
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"PO-Revision-Date: \n"
|
9 |
-
"Language-Team:
|
10 |
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -14,342 +14,762 @@ msgstr ""
|
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;
|
18 |
-
"
|
|
|
19 |
"X-Generator: Poedit 1.8.7\n"
|
20 |
"Last-Translator: \n"
|
21 |
-
"Language:
|
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
|
27 |
|
28 |
-
#: mercadopago-module.php:
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
36 |
|
37 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
38 |
msgid "Argentine"
|
39 |
msgstr "Argentina"
|
40 |
|
41 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
42 |
msgid "Brazil"
|
43 |
msgstr "Brasil"
|
44 |
|
45 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
46 |
msgid "Chile"
|
47 |
msgstr "Chile"
|
48 |
|
49 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
50 |
msgid "Colombia"
|
51 |
msgstr "Colombia"
|
52 |
|
53 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
54 |
msgid "Mexico"
|
55 |
msgstr "México"
|
56 |
|
57 |
-
#: mercadopago/mercadopago-gateway.php:
|
58 |
msgid "or"
|
59 |
msgstr "o"
|
60 |
|
61 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
62 |
msgid "Venezuela"
|
63 |
msgstr "Venezuela"
|
64 |
|
65 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
74 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
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:
|
106 |
-
msgid "Enable
|
107 |
-
msgstr "Habilitar
|
108 |
|
109 |
-
#: mercadopago/mercadopago-gateway.php:
|
110 |
msgid "Mercado Pago Credentials"
|
111 |
msgstr "Credenciales de Mercado Pago"
|
112 |
|
113 |
-
#: mercadopago/mercadopago-gateway.php:
|
114 |
msgid "You can obtain your credentials for"
|
115 |
msgstr "Puedes obtener tus credenciales para"
|
116 |
|
117 |
-
#: mercadopago/mercadopago-gateway.php:
|
118 |
-
msgid "Mercado Pago
|
119 |
-
msgstr "
|
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:
|
126 |
-
msgid "Mercado Pago
|
127 |
-
msgstr "
|
128 |
|
129 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
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:
|
142 |
msgid "Checkout Options"
|
143 |
msgstr "Opciones de Checkout"
|
144 |
|
145 |
-
#: mercadopago/mercadopago-gateway.php:
|
146 |
msgid "Title"
|
147 |
msgstr "Título"
|
148 |
|
149 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
|
|
|
|
|
|
|
|
154 |
msgid "Description"
|
155 |
msgstr "Descripción"
|
156 |
|
157 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
162 |
-
#: mercadopago/mercadopago-gateway.php:406
|
163 |
msgid "Pay with Mercado Pago"
|
164 |
msgstr "Pagar con Mercado Pago"
|
165 |
|
166 |
-
#: mercadopago/mercadopago-gateway.php:
|
167 |
-
msgid "
|
168 |
-
msgstr "
|
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:
|
191 |
-
msgid "
|
192 |
-
msgstr "
|
193 |
|
194 |
-
#: mercadopago/mercadopago-gateway.php:
|
195 |
-
msgid "
|
196 |
-
msgstr "
|
197 |
|
198 |
-
#: mercadopago/mercadopago-gateway.php:
|
199 |
-
msgid "
|
200 |
-
msgstr "
|
201 |
|
202 |
-
#: mercadopago/mercadopago-gateway.php:
|
203 |
-
msgid "
|
204 |
-
msgstr "
|
205 |
|
206 |
-
#: mercadopago/mercadopago-gateway.php:
|
207 |
-
msgid "
|
208 |
-
msgstr "
|
209 |
|
210 |
-
#: mercadopago/mercadopago-gateway.php:
|
211 |
-
msgid "
|
212 |
-
msgstr "
|
213 |
|
214 |
-
#: mercadopago/mercadopago-gateway.php:
|
215 |
-
msgid "
|
216 |
-
msgstr "
|
217 |
|
218 |
-
#: mercadopago/mercadopago-gateway.php:
|
219 |
-
msgid "
|
220 |
-
msgstr "
|
221 |
|
222 |
-
#: mercadopago/mercadopago-gateway.php:
|
223 |
-
msgid "
|
224 |
-
msgstr "
|
225 |
|
226 |
-
#: mercadopago/mercadopago-gateway.php:
|
227 |
-
msgid "
|
228 |
-
msgstr "
|
229 |
|
230 |
-
#: mercadopago/mercadopago-gateway.php:
|
231 |
-
msgid "
|
232 |
-
msgstr "
|
233 |
|
234 |
-
#: mercadopago/mercadopago-gateway.php:
|
235 |
-
msgid "
|
236 |
-
|
|
|
|
|
|
|
237 |
|
238 |
-
#: mercadopago/mercadopago-gateway.php:
|
239 |
msgid "Test and Debug Options"
|
240 |
msgstr "Opciones de Prueba y Debug"
|
241 |
|
242 |
-
#: mercadopago/mercadopago-gateway.php:
|
243 |
msgid "Mercado Pago Sandbox"
|
244 |
msgstr "Sandbox Mercado Pago"
|
245 |
|
246 |
-
#: mercadopago/mercadopago-gateway.php:
|
247 |
msgid "Enable Mercado Pago Sandbox"
|
248 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
249 |
|
250 |
-
#: mercadopago/mercadopago-gateway.php:
|
251 |
-
msgid "This
|
252 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
253 |
|
254 |
-
#: mercadopago/mercadopago-gateway.php:
|
255 |
msgid "Debug and Log"
|
256 |
msgstr "Debug y Log"
|
257 |
|
258 |
-
#: mercadopago/mercadopago-gateway.php:
|
259 |
msgid "Enable log"
|
260 |
msgstr "Habilitar Log"
|
261 |
|
262 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
268 |
-
msgid "
|
269 |
-
msgstr "
|
270 |
|
271 |
-
#: mercadopago/mercadopago-gateway.php:
|
272 |
-
|
273 |
-
|
|
|
274 |
|
275 |
-
#: mercadopago/mercadopago-gateway.php:
|
276 |
-
msgid "
|
277 |
-
msgstr "
|
278 |
|
279 |
-
#: mercadopago/mercadopago-gateway.php:
|
280 |
-
msgid "
|
281 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
|
283 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
msgid "Click to try again"
|
285 |
-
msgstr "Haga
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
|
287 |
-
#: mercadopago/mercadopago-gateway.php:
|
288 |
-
|
|
|
|
|
|
|
|
|
289 |
msgid "Mercado Pago is Inactive"
|
290 |
msgstr "Mercado Pago Inactivo"
|
291 |
|
292 |
-
#: mercadopago/mercadopago-gateway.php:
|
293 |
-
msgid "Your Mercado Pago credentials
|
294 |
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
295 |
|
296 |
-
#: mercadopago/mercadopago-gateway.php:
|
297 |
msgid "Click here and configure!"
|
298 |
msgstr "Haga click aquí y configure!"
|
299 |
|
300 |
-
#: mercadopago/mercadopago-gateway.php:
|
301 |
msgid "The currency"
|
302 |
msgstr "La moneda"
|
303 |
|
304 |
-
#: mercadopago/mercadopago-gateway.php:
|
305 |
-
msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN,
|
306 |
-
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
|
308 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
msgid "Mercado Pago Request Failure"
|
310 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
311 |
|
312 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
321 |
msgid "Payment type"
|
322 |
-
msgstr "
|
323 |
|
324 |
-
#: mercadopago/mercadopago-gateway.php:
|
325 |
-
msgid "Payment
|
326 |
-
msgstr "Pago
|
327 |
|
328 |
-
#: mercadopago/mercadopago-gateway.php:
|
329 |
msgid "Customer haven't paid yet."
|
330 |
msgstr "El cliente todavía no efectuó el pago."
|
331 |
|
332 |
-
#: mercadopago/mercadopago-gateway.php:
|
333 |
msgid "Payment under review."
|
334 |
msgstr "El pago está pendiente de revisión."
|
335 |
|
336 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
341 |
msgid "The payment was refunded to the customer."
|
342 |
msgstr "El pago fue devuelto al cliente."
|
343 |
|
344 |
-
#: mercadopago/mercadopago-gateway.php:
|
345 |
msgid "The payment was cancelled."
|
346 |
msgstr "El pago fue cancelado."
|
347 |
|
348 |
-
#: mercadopago/mercadopago-gateway.php:
|
349 |
-
|
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 > System Status > Logs"
|
384 |
+
msgstr "WooCommerce > Estado del Sistema > 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 & Clear cart"
|
566 |
+
msgstr "Cancelar & Limpiar carrito"
|
567 |
+
|
568 |
+
#: mercadopago/mercadopago-gateway.php:446
|
569 |
+
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
570 |
+
msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
|
571 |
+
|
572 |
+
#: mercadopago/mercadopago-gateway.php:697
|
573 |
+
msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
|
574 |
+
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
575 |
+
|
576 |
+
msgid " as it appears in your card ..."
|
577 |
+
msgstr " tal como aparece en su tarjeta ..."
|
578 |
+
|
579 |
+
msgid "Done, your payment was accredited!"
|
580 |
+
msgstr "Listo, su pago ha sido aceptado!"
|
581 |
+
|
582 |
+
msgid "We are processing the payment. In less than an hour we will e-mail you the results."
|
583 |
+
msgstr "Estamos procesando su pago. En menos de una hora le enviaremos el resultado por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días le enviaremos por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar los pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro medio de pago. Se recomienda en efectivo."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro medio de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta medio de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, realice el pago del ticket para tener su orden aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Personalizado Inactivo"
|
665 |
+
|
666 |
+
msgid "Basic Checkout is Inactive"
|
667 |
+
msgstr "Checkout Básico Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección."
|
674 |
+
|
675 |
+
msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
676 |
+
msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
677 |
+
|
678 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
679 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
680 |
+
|
681 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
682 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
|
683 |
+
|
684 |
+
msgid "Your Card"
|
685 |
+
msgstr "Sus Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Cards"
|
688 |
+
msgstr "Otras Tarjetas"
|
689 |
+
|
690 |
+
msgid "Other Card"
|
691 |
+
msgstr "Otra Tarjeta"
|
692 |
+
|
693 |
+
msgid "ended in"
|
694 |
+
msgstr "terminado en"
|
695 |
+
|
696 |
+
msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
|
697 |
+
msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
|
698 |
+
|
699 |
+
msgid "ATTENTION: The currency"
|
700 |
+
msgstr "ATENCIÓN: La moneda"
|
701 |
+
|
702 |
+
msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
|
703 |
+
msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
|
704 |
+
|
705 |
+
msgid "Currency conversions should be made outside this module."
|
706 |
+
msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
|
707 |
+
|
708 |
+
msgid "Coupons"
|
709 |
+
msgstr "Cupones"
|
710 |
+
|
711 |
+
msgid "Enable coupons of discounts"
|
712 |
+
msgstr "Activar los cupones de descuento"
|
713 |
+
|
714 |
+
msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
|
715 |
+
msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
|
716 |
+
|
717 |
+
msgid "You will save"
|
718 |
+
msgstr "Usted ahorrará"
|
719 |
+
|
720 |
+
msgid "Apply"
|
721 |
+
msgstr "Aplicar"
|
722 |
+
|
723 |
+
msgid "Remove"
|
724 |
+
msgstr "Eliminar"
|
725 |
+
|
726 |
+
msgid "Please, inform your coupon code"
|
727 |
+
msgstr "Por favor, introduzca el código de su cupón"
|
728 |
+
|
729 |
+
msgid "Please, inform your email in billing address to use this feature"
|
730 |
+
msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
|
731 |
+
|
732 |
+
msgid "Discount for %s coupon"
|
733 |
+
msgstr "Descuento para el cupón %s"
|
734 |
+
|
735 |
+
msgid "Discount provided by store"
|
736 |
+
msgstr "Descuento dado por la tienda"
|
737 |
+
|
738 |
+
msgid "Discount Coupon"
|
739 |
+
msgstr "Cupón de Descuento"
|
740 |
+
|
741 |
+
msgid "CURRENCY CONVERTED: The currency conversion ratio from"
|
742 |
+
msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
|
743 |
+
|
744 |
+
msgid "ERROR: It was not possible to convert the unsupported currency"
|
745 |
+
msgstr "ERROR: No fue posible convertir la moneda no soportada"
|
746 |
+
|
747 |
+
msgid "to"
|
748 |
+
msgstr "para"
|
749 |
+
|
750 |
+
msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
|
751 |
+
msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
|
752 |
+
|
753 |
+
msgid " is: "
|
754 |
+
msgstr " es: "
|
755 |
+
|
756 |
+
msgid "Currency Conversion"
|
757 |
+
msgstr "Conversión de Moneda"
|
758 |
+
|
759 |
+
msgid "with discount from"
|
760 |
+
msgstr "con descuento de"
|
761 |
+
|
762 |
+
msgid "Total of your purchase:"
|
763 |
+
msgstr "Total de su compra:"
|
764 |
+
|
765 |
+
msgid "Total of your purchase with discount:"
|
766 |
+
msgstr "Total de su compra con descuento:"
|
767 |
+
|
768 |
+
msgid "*Uppon payment approval"
|
769 |
+
msgstr "*Con la aprobación de pago"
|
770 |
+
|
771 |
+
msgid "Terms and Conditions of Use"
|
772 |
+
msgstr "Términos y Condiciones de Uso"
|
773 |
+
|
774 |
+
msgid "Payment converted from"
|
775 |
+
msgstr "Pago convertido de"
|
languages/woocommerce-mercadopago-module-es_ES.mo
ADDED
Binary file
|
languages/woocommerce-mercadopago-module-es_ES.po
ADDED
@@ -0,0 +1,775 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# WordPress Blank Pot
|
2 |
+
# Copyright (C) 2014 ...
|
3 |
+
# This file is distributed under the GNU General Public License v2 or later.
|
4 |
+
msgid ""
|
5 |
+
msgstr ""
|
6 |
+
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
7 |
+
"POT-Creation-Date: 2016-05-23 14:52-0300\n"
|
8 |
+
"PO-Revision-Date: \n"
|
9 |
+
"Language-Team: Product Development <translations@example.com>\n"
|
10 |
+
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
11 |
+
"MIME-Version: 1.0\n"
|
12 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
+
"Content-Transfer-Encoding: 8bit\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
18 |
+
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
19 |
+
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
20 |
+
"X-Generator: Poedit 1.8.7\n"
|
21 |
+
"Last-Translator: \n"
|
22 |
+
"Language: es_ES\n"
|
23 |
+
"X-Poedit-SearchPath-0: .\n"
|
24 |
+
|
25 |
+
#. Description of the plugin/theme
|
26 |
+
msgid "This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store."
|
27 |
+
msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como medio de pago para compras realizadas en su tienda virtual."
|
28 |
+
|
29 |
+
#: mercadopago-module.php:69
|
30 |
+
#, php-format
|
31 |
+
msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
|
32 |
+
msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
|
33 |
+
|
34 |
+
#: mercadopago-module.php:109
|
35 |
+
msgid "Basic Checkout"
|
36 |
+
msgstr "Checkout Básico"
|
37 |
+
|
38 |
+
#: mercadopago-module.php:113
|
39 |
+
msgid "Custom Checkout"
|
40 |
+
msgstr "Checkout Personalizado"
|
41 |
+
|
42 |
+
#: mercadopago/mercadopago-custom-gateway.php:48
|
43 |
+
msgid "Mercado Pago - Custom Checkout"
|
44 |
+
msgstr "Mercado Pago - Checkout Personalizado"
|
45 |
+
|
46 |
+
#: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
|
47 |
+
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
48 |
+
msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como medio de pago para compras realizadas en su tienda virtual."
|
49 |
+
|
50 |
+
#: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
|
51 |
+
#: mercadopago/mercadopago-gateway.php:716
|
52 |
+
msgid "Argentine"
|
53 |
+
msgstr "Argentina"
|
54 |
+
|
55 |
+
#: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
|
56 |
+
#: mercadopago/mercadopago-gateway.php:717
|
57 |
+
msgid "Brazil"
|
58 |
+
msgstr "Brasil"
|
59 |
+
|
60 |
+
#: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
|
61 |
+
#: mercadopago/mercadopago-gateway.php:719
|
62 |
+
msgid "Chile"
|
63 |
+
msgstr "Chile"
|
64 |
+
|
65 |
+
#: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
|
66 |
+
#: mercadopago/mercadopago-gateway.php:718
|
67 |
+
msgid "Colombia"
|
68 |
+
msgstr "Colombia"
|
69 |
+
|
70 |
+
#: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
|
71 |
+
#: mercadopago/mercadopago-gateway.php:720
|
72 |
+
msgid "Mexico"
|
73 |
+
msgstr "México"
|
74 |
+
|
75 |
+
#: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
|
76 |
+
msgid "or"
|
77 |
+
msgstr "o"
|
78 |
+
|
79 |
+
#: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
|
80 |
+
#: mercadopago/mercadopago-gateway.php:721
|
81 |
+
msgid "Venezuela"
|
82 |
+
msgstr "Venezuela"
|
83 |
+
|
84 |
+
#: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
|
85 |
+
msgid "Your credentials are <strong>valid</strong> for"
|
86 |
+
msgstr "Sus credenciales <strong>son válidas</strong> para"
|
87 |
+
|
88 |
+
#: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
|
89 |
+
#: mercadopago/mercadopago-gateway.php:170
|
90 |
+
msgid "Your credentials are <strong>not valid</strong>!"
|
91 |
+
msgstr "Sus credenciales <strong>no son válidas</strong>!"
|
92 |
+
|
93 |
+
#: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
|
94 |
+
msgid "Enable/Disable"
|
95 |
+
msgstr "Habilitar/Deshabilitar"
|
96 |
+
|
97 |
+
#: mercadopago/mercadopago-custom-gateway.php:171
|
98 |
+
msgid "Enable Custom Checkout"
|
99 |
+
msgstr "Habilitar Checkout Personalizado"
|
100 |
+
|
101 |
+
#: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
|
102 |
+
msgid "Mercado Pago Credentials"
|
103 |
+
msgstr "Credenciales de Mercado Pago"
|
104 |
+
|
105 |
+
#: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
|
106 |
+
msgid "You can obtain your credentials for"
|
107 |
+
msgstr "Puedes obtener tus credenciales para"
|
108 |
+
|
109 |
+
#: mercadopago/mercadopago-custom-gateway.php:182
|
110 |
+
msgid "Insert your Mercado Pago Public key."
|
111 |
+
msgstr "Inserte su Public Key de Mercado Pago."
|
112 |
+
|
113 |
+
#: mercadopago/mercadopago-custom-gateway.php:189
|
114 |
+
msgid "Insert your Mercado Pago Access token."
|
115 |
+
msgstr "Inserte su Access Token de Mercado Pago."
|
116 |
+
|
117 |
+
#: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
|
118 |
+
msgid "Instant Payment Notification (IPN) URL"
|
119 |
+
msgstr "URL da Notificación Instantanea de Pago (IPN)"
|
120 |
+
|
121 |
+
#: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
|
122 |
+
msgid "Your IPN URL to receive instant payment notifications is"
|
123 |
+
msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
|
124 |
+
|
125 |
+
#: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
|
126 |
+
msgid "Checkout Options"
|
127 |
+
msgstr "Opciones de Checkout"
|
128 |
+
|
129 |
+
#: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
|
130 |
+
msgid "Title"
|
131 |
+
msgstr "Título"
|
132 |
+
|
133 |
+
#: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
|
134 |
+
msgid "Title shown to the client in the checkout."
|
135 |
+
msgstr "Título mostrado al cliente en el checkout."
|
136 |
+
|
137 |
+
#: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
|
138 |
+
msgid "Mercado Pago"
|
139 |
+
msgstr "Mercado Pago"
|
140 |
+
|
141 |
+
#: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
|
142 |
+
msgid "Description"
|
143 |
+
msgstr "Descripción"
|
144 |
+
|
145 |
+
#: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
|
146 |
+
msgid "Description shown to the client in the checkout."
|
147 |
+
msgstr "Descripción mostrada al cliente en el checkout."
|
148 |
+
|
149 |
+
#: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
|
150 |
+
msgid "Pay with Mercado Pago"
|
151 |
+
msgstr "Pagar con Mercado Pago"
|
152 |
+
|
153 |
+
#: mercadopago/mercadopago-custom-gateway.php:216
|
154 |
+
msgid "Statement Descriptor"
|
155 |
+
msgstr "Descripción de la Factura"
|
156 |
+
|
157 |
+
#: mercadopago/mercadopago-custom-gateway.php:218
|
158 |
+
msgid "The description that will be shown in your customer's invoice."
|
159 |
+
msgstr "La descripción que se muestra en la factura de su cliente."
|
160 |
+
|
161 |
+
#: mercadopago/mercadopago-custom-gateway.php:222
|
162 |
+
msgid "Binary Mode"
|
163 |
+
msgstr "Modo binario"
|
164 |
+
|
165 |
+
#: mercadopago/mercadopago-custom-gateway.php:224
|
166 |
+
msgid "Enable binary mode for checkout status"
|
167 |
+
msgstr "Activar el modo binario para el estado del checkout"
|
168 |
+
|
169 |
+
#: mercadopago/mercadopago-custom-gateway.php:226
|
170 |
+
msgid "When charging a credit card, only [approved] or [reject] status will be taken."
|
171 |
+
msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
|
172 |
+
|
173 |
+
#: mercadopago/mercadopago-custom-gateway.php:229
|
174 |
+
msgid "Ticket"
|
175 |
+
msgstr "Ticket"
|
176 |
+
|
177 |
+
#: mercadopago/mercadopago-custom-gateway.php:231
|
178 |
+
msgid "Enable Ticket for Custom Checkout"
|
179 |
+
msgstr "Habilitar Ticket para Checkout Personalizado"
|
180 |
+
|
181 |
+
#: mercadopago/mercadopago-custom-gateway.php:233
|
182 |
+
msgid "Let your customer pay you with tickets"
|
183 |
+
msgstr "Deje que su cliente le paga con tickets"
|
184 |
+
|
185 |
+
#: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
|
186 |
+
msgid "Store Category"
|
187 |
+
msgstr "Categoría de la tienda"
|
188 |
+
|
189 |
+
#: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
|
190 |
+
msgid "Define which type of products your store sells."
|
191 |
+
msgstr "Defina el tipo de productos que su tienda vende."
|
192 |
+
|
193 |
+
#: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
|
194 |
+
msgid "Store Identificator"
|
195 |
+
msgstr "Identificador de la tienda"
|
196 |
+
|
197 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
198 |
+
msgid "Please, inform a prefix to your store."
|
199 |
+
msgstr "Por favor, informe un prefijo para su tienda."
|
200 |
+
|
201 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
202 |
+
msgid ""
|
203 |
+
"If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
|
204 |
+
"identificators."
|
205 |
+
msgstr ""
|
206 |
+
"Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
|
207 |
+
|
208 |
+
#: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
|
209 |
+
msgid "Test and Debug Options"
|
210 |
+
msgstr "Opciones de Prueba y Debug"
|
211 |
+
|
212 |
+
#: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
|
213 |
+
msgid "Mercado Pago Sandbox"
|
214 |
+
msgstr "Sandbox Mercado Pago"
|
215 |
+
|
216 |
+
#: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
|
217 |
+
msgid "Enable Mercado Pago Sandbox"
|
218 |
+
msgstr "Habilitar el sandbox de Mercado Pago"
|
219 |
+
|
220 |
+
#: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
|
221 |
+
msgid "This option allows you to test payments inside a sandbox environment."
|
222 |
+
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
223 |
+
|
224 |
+
#: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
|
225 |
+
msgid "Debug and Log"
|
226 |
+
msgstr "Debug y Log"
|
227 |
+
|
228 |
+
#: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
|
229 |
+
msgid "Enable log"
|
230 |
+
msgstr "Habilitar Log"
|
231 |
+
|
232 |
+
#: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
|
233 |
+
msgid "Register event logs of Mercado Pago, such as API requests, in the file"
|
234 |
+
msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
|
235 |
+
|
236 |
+
#: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
|
237 |
+
msgid "File location: "
|
238 |
+
msgstr "Local del archivo: "
|
239 |
+
|
240 |
+
#: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
|
241 |
+
#, php-format
|
242 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
243 |
+
msgstr "Por favor, califíquenos con %s en WordPress.org y de su feedback para ayudar a mejorar este módulo!"
|
244 |
+
|
245 |
+
#: mercadopago/mercadopago-custom-gateway.php:332
|
246 |
+
msgid "Payment Method"
|
247 |
+
msgstr "Medios de Pago"
|
248 |
+
|
249 |
+
#: mercadopago/mercadopago-custom-gateway.php:333
|
250 |
+
msgid "Credit card number"
|
251 |
+
msgstr "Número de tarjeta de crédito"
|
252 |
+
|
253 |
+
#: mercadopago/mercadopago-custom-gateway.php:334
|
254 |
+
msgid "Expiration month"
|
255 |
+
msgstr "Mes de expiración"
|
256 |
+
|
257 |
+
#: mercadopago/mercadopago-custom-gateway.php:335
|
258 |
+
msgid "Expiration year"
|
259 |
+
msgstr "Año de expiración"
|
260 |
+
|
261 |
+
#: mercadopago/mercadopago-custom-gateway.php:336
|
262 |
+
msgid "Year"
|
263 |
+
msgstr "Año"
|
264 |
+
|
265 |
+
#: mercadopago/mercadopago-custom-gateway.php:337
|
266 |
+
msgid "Month"
|
267 |
+
msgstr "Mes"
|
268 |
+
|
269 |
+
#: mercadopago/mercadopago-custom-gateway.php:338
|
270 |
+
msgid "Card holder name"
|
271 |
+
msgstr "Nombre del titular de la tarjeta"
|
272 |
+
|
273 |
+
#: mercadopago/mercadopago-custom-gateway.php:339
|
274 |
+
msgid "Security code"
|
275 |
+
msgstr "Código de seguridad"
|
276 |
+
|
277 |
+
#: mercadopago/mercadopago-custom-gateway.php:340
|
278 |
+
msgid "Document Type"
|
279 |
+
msgstr "Tipo de Documento"
|
280 |
+
|
281 |
+
#: mercadopago/mercadopago-custom-gateway.php:341
|
282 |
+
msgid "Document number"
|
283 |
+
msgstr "Número de Documento"
|
284 |
+
|
285 |
+
#: mercadopago/mercadopago-custom-gateway.php:342
|
286 |
+
msgid "Issuer"
|
287 |
+
msgstr "Emisor"
|
288 |
+
|
289 |
+
#: mercadopago/mercadopago-custom-gateway.php:343
|
290 |
+
msgid "Installments"
|
291 |
+
msgstr "Cuotas"
|
292 |
+
|
293 |
+
#: mercadopago/mercadopago-custom-gateway.php:347
|
294 |
+
msgid "Parameter cardNumber can not be null/empty"
|
295 |
+
msgstr "Parámetro [Número de tarjeta] no puede ser nulo/vacío"
|
296 |
+
|
297 |
+
#: mercadopago/mercadopago-custom-gateway.php:348
|
298 |
+
msgid "Invalid Card Number"
|
299 |
+
msgstr "Número de tarjeta inválido"
|
300 |
+
|
301 |
+
#: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
|
302 |
+
#: mercadopago/mercadopago-custom-gateway.php:353
|
303 |
+
msgid "Invalid Expiration Date"
|
304 |
+
msgstr "Fecha de expiración inválida"
|
305 |
+
|
306 |
+
#: mercadopago/mercadopago-custom-gateway.php:355
|
307 |
+
msgid "Parameter cardholderName can not be null/empty"
|
308 |
+
msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
|
309 |
+
|
310 |
+
#: mercadopago/mercadopago-custom-gateway.php:356
|
311 |
+
msgid "Invalid Card Holder Name"
|
312 |
+
msgstr "Nombre del titular de la tarjeta inválido"
|
313 |
+
|
314 |
+
#: mercadopago/mercadopago-custom-gateway.php:358
|
315 |
+
msgid "Parameter securityCode can not be null/empty"
|
316 |
+
msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
|
317 |
+
|
318 |
+
#: mercadopago/mercadopago-custom-gateway.php:359
|
319 |
+
msgid "Invalid Security Code"
|
320 |
+
msgstr "Código de seguridad inválido"
|
321 |
+
|
322 |
+
#: mercadopago/mercadopago-custom-gateway.php:361
|
323 |
+
msgid "Parameter docType can not be null/empty"
|
324 |
+
msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
|
325 |
+
|
326 |
+
#: mercadopago/mercadopago-custom-gateway.php:362
|
327 |
+
msgid "Invalid Document Type"
|
328 |
+
msgstr "Tipo de Documento inválido"
|
329 |
+
|
330 |
+
#: mercadopago/mercadopago-custom-gateway.php:364
|
331 |
+
msgid "Parameter docNumber can not be null/empty"
|
332 |
+
msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
|
333 |
+
|
334 |
+
#: mercadopago/mercadopago-custom-gateway.php:365
|
335 |
+
msgid "Invalid Document Number"
|
336 |
+
msgstr "Número del Documento inválido"
|
337 |
+
|
338 |
+
#: mercadopago/mercadopago-custom-gateway.php:367
|
339 |
+
msgid "The parameter cardholder.document.subtype can not be null or empty"
|
340 |
+
msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
|
341 |
+
|
342 |
+
#: mercadopago/mercadopago-custom-gateway.php:368
|
343 |
+
msgid "Invalid Document Sub Type"
|
344 |
+
msgstr "Subtipo del documento inválido"
|
345 |
+
|
346 |
+
#: mercadopago/mercadopago-custom-gateway.php:370
|
347 |
+
msgid "Parameter cardIssuerId can not be null/empty"
|
348 |
+
msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
|
349 |
+
|
350 |
+
#: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
|
351 |
+
msgid "Payment approved."
|
352 |
+
msgstr "Pago aprobado."
|
353 |
+
|
354 |
+
#: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
|
355 |
+
msgid "Your payment is under review. In less than 1h, you should be notified by email."
|
356 |
+
msgstr "Su pago está en revisión. En menos de 1 hora, usted será notificado por correo electrónico."
|
357 |
+
|
358 |
+
#: mercadopago/mercadopago-custom-gateway.php:418
|
359 |
+
msgid "Check your order resume"
|
360 |
+
msgstr "Ver su hoja de pedido"
|
361 |
+
|
362 |
+
#: mercadopago/mercadopago-custom-gateway.php:431
|
363 |
+
msgid "Your payment was refused. You can try again."
|
364 |
+
msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
|
365 |
+
|
366 |
+
#: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
|
367 |
+
msgid "Click to try again"
|
368 |
+
msgstr "Haga clic para intentarlo de nuevo"
|
369 |
+
|
370 |
+
#: mercadopago/mercadopago-custom-gateway.php:455
|
371 |
+
msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
|
372 |
+
msgstr "Un problema se produjo al procesar su pago. ¿Esta seguro que ha rellenado correctamente toda la información en el formulario de checkout?"
|
373 |
+
|
374 |
+
#: mercadopago/mercadopago-custom-gateway.php:544
|
375 |
+
msgid "Shipping"
|
376 |
+
msgstr "Envío"
|
377 |
+
|
378 |
+
#: mercadopago/mercadopago-custom-gateway.php:545
|
379 |
+
msgid "Shipping service used by store"
|
380 |
+
msgstr "Servicio de envío utilizado por la tienda"
|
381 |
+
|
382 |
+
#: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
|
383 |
+
msgid "WooCommerce > System Status > Logs"
|
384 |
+
msgstr "WooCommerce > Estado del Sistema > 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 & Clear cart"
|
566 |
+
msgstr "Cancelar & Limpiar carrito"
|
567 |
+
|
568 |
+
#: mercadopago/mercadopago-gateway.php:446
|
569 |
+
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
570 |
+
msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
|
571 |
+
|
572 |
+
#: mercadopago/mercadopago-gateway.php:697
|
573 |
+
msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
|
574 |
+
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
575 |
+
|
576 |
+
msgid " as it appears in your card ..."
|
577 |
+
msgstr " tal como aparece en su tarjeta ..."
|
578 |
+
|
579 |
+
msgid "Done, your payment was accredited!"
|
580 |
+
msgstr "Listo, su pago ha sido aceptado!"
|
581 |
+
|
582 |
+
msgid "We are processing the payment. In less than an hour we will e-mail you the results."
|
583 |
+
msgstr "Estamos procesando su pago. En menos de una hora le enviaremos el resultado por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días le enviaremos por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar los pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro medio de pago. Se recomienda en efectivo."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro medio de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta medio de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, realice el pago del ticket para tener su orden aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Personalizado Inactivo"
|
665 |
+
|
666 |
+
msgid "Basic Checkout is Inactive"
|
667 |
+
msgstr "Checkout Básico Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección."
|
674 |
+
|
675 |
+
msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
676 |
+
msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
677 |
+
|
678 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
679 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
680 |
+
|
681 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
682 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
|
683 |
+
|
684 |
+
msgid "Your Card"
|
685 |
+
msgstr "Sus Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Cards"
|
688 |
+
msgstr "Otras Tarjetas"
|
689 |
+
|
690 |
+
msgid "Other Card"
|
691 |
+
msgstr "Otra Tarjeta"
|
692 |
+
|
693 |
+
msgid "ended in"
|
694 |
+
msgstr "terminado en"
|
695 |
+
|
696 |
+
msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
|
697 |
+
msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
|
698 |
+
|
699 |
+
msgid "ATTENTION: The currency"
|
700 |
+
msgstr "ATENCIÓN: La moneda"
|
701 |
+
|
702 |
+
msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
|
703 |
+
msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
|
704 |
+
|
705 |
+
msgid "Currency conversions should be made outside this module."
|
706 |
+
msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
|
707 |
+
|
708 |
+
msgid "Coupons"
|
709 |
+
msgstr "Cupones"
|
710 |
+
|
711 |
+
msgid "Enable coupons of discounts"
|
712 |
+
msgstr "Activar los cupones de descuento"
|
713 |
+
|
714 |
+
msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
|
715 |
+
msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
|
716 |
+
|
717 |
+
msgid "You will save"
|
718 |
+
msgstr "Usted ahorrará"
|
719 |
+
|
720 |
+
msgid "Apply"
|
721 |
+
msgstr "Aplicar"
|
722 |
+
|
723 |
+
msgid "Remove"
|
724 |
+
msgstr "Eliminar"
|
725 |
+
|
726 |
+
msgid "Please, inform your coupon code"
|
727 |
+
msgstr "Por favor, introduzca el código de su cupón"
|
728 |
+
|
729 |
+
msgid "Please, inform your email in billing address to use this feature"
|
730 |
+
msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
|
731 |
+
|
732 |
+
msgid "Discount for %s coupon"
|
733 |
+
msgstr "Descuento para el cupón %s"
|
734 |
+
|
735 |
+
msgid "Discount provided by store"
|
736 |
+
msgstr "Descuento dado por la tienda"
|
737 |
+
|
738 |
+
msgid "Discount Coupon"
|
739 |
+
msgstr "Cupón de Descuento"
|
740 |
+
|
741 |
+
msgid "CURRENCY CONVERTED: The currency conversion ratio from"
|
742 |
+
msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
|
743 |
+
|
744 |
+
msgid "ERROR: It was not possible to convert the unsupported currency"
|
745 |
+
msgstr "ERROR: No fue posible convertir la moneda no soportada"
|
746 |
+
|
747 |
+
msgid "to"
|
748 |
+
msgstr "para"
|
749 |
+
|
750 |
+
msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
|
751 |
+
msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
|
752 |
+
|
753 |
+
msgid " is: "
|
754 |
+
msgstr " es: "
|
755 |
+
|
756 |
+
msgid "Currency Conversion"
|
757 |
+
msgstr "Conversión de Moneda"
|
758 |
+
|
759 |
+
msgid "with discount from"
|
760 |
+
msgstr "con descuento de"
|
761 |
+
|
762 |
+
msgid "Total of your purchase:"
|
763 |
+
msgstr "Total de su compra:"
|
764 |
+
|
765 |
+
msgid "Total of your purchase with discount:"
|
766 |
+
msgstr "Total de su compra con descuento:"
|
767 |
+
|
768 |
+
msgid "*Uppon payment approval"
|
769 |
+
msgstr "*Con la aprobación de pago"
|
770 |
+
|
771 |
+
msgid "Terms and Conditions of Use"
|
772 |
+
msgstr "Términos y Condiciones de Uso"
|
773 |
+
|
774 |
+
msgid "Payment converted from"
|
775 |
+
msgstr "Pago convertido de"
|
languages/woocommerce-mercadopago-module-es_MX.mo
CHANGED
Binary file
|
languages/woocommerce-mercadopago-module-es_MX.po
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"PO-Revision-Date: \n"
|
9 |
-
"Language-Team:
|
10 |
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -14,335 +14,762 @@ msgstr ""
|
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;
|
18 |
-
"
|
|
|
19 |
"X-Generator: Poedit 1.8.7\n"
|
20 |
"Last-Translator: \n"
|
21 |
-
"Language:
|
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
|
27 |
|
28 |
-
#: mercadopago-module.php:
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
36 |
|
37 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
38 |
msgid "Argentine"
|
39 |
msgstr "Argentina"
|
40 |
|
41 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
42 |
msgid "Brazil"
|
43 |
msgstr "Brasil"
|
44 |
|
45 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
46 |
msgid "Chile"
|
47 |
msgstr "Chile"
|
48 |
|
49 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
50 |
msgid "Colombia"
|
51 |
msgstr "Colombia"
|
52 |
|
53 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
54 |
msgid "Mexico"
|
55 |
msgstr "México"
|
56 |
|
57 |
-
#: mercadopago/mercadopago-gateway.php:
|
58 |
msgid "or"
|
59 |
msgstr "o"
|
60 |
|
61 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
62 |
msgid "Venezuela"
|
63 |
msgstr "Venezuela"
|
64 |
|
65 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
74 |
-
|
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-
|
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:
|
102 |
-
msgid "Enable
|
103 |
-
msgstr "Habilitar
|
104 |
|
105 |
-
#: mercadopago/mercadopago-gateway.php:
|
106 |
msgid "Mercado Pago Credentials"
|
107 |
msgstr "Credenciales de Mercado Pago"
|
108 |
|
109 |
-
#: mercadopago/mercadopago-gateway.php:
|
110 |
msgid "You can obtain your credentials for"
|
111 |
msgstr "Puedes obtener tus credenciales para"
|
112 |
|
113 |
-
#: mercadopago/mercadopago-gateway.php:
|
114 |
-
msgid "Mercado Pago
|
115 |
-
msgstr "
|
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:
|
122 |
-
msgid "Mercado Pago
|
123 |
-
msgstr "
|
124 |
|
125 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
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:
|
138 |
msgid "Checkout Options"
|
139 |
msgstr "Opciones de Checkout"
|
140 |
|
141 |
-
#: mercadopago/mercadopago-gateway.php:
|
142 |
msgid "Title"
|
143 |
msgstr "Título"
|
144 |
|
145 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
|
|
|
|
|
|
|
|
150 |
msgid "Description"
|
151 |
msgstr "Descripción"
|
152 |
|
153 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
158 |
msgid "Pay with Mercado Pago"
|
159 |
msgstr "Pagar con Mercado Pago"
|
160 |
|
161 |
-
#: mercadopago/mercadopago-gateway.php:
|
162 |
-
msgid "
|
163 |
-
msgstr "
|
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:
|
186 |
-
msgid "
|
187 |
-
msgstr "
|
188 |
|
189 |
-
#: mercadopago/mercadopago-gateway.php:
|
190 |
-
msgid "
|
191 |
-
msgstr "
|
192 |
|
193 |
-
#: mercadopago/mercadopago-gateway.php:
|
194 |
-
msgid "
|
195 |
-
msgstr "
|
196 |
|
197 |
-
#: mercadopago/mercadopago-gateway.php:
|
198 |
-
msgid "
|
199 |
-
msgstr "
|
200 |
|
201 |
-
#: mercadopago/mercadopago-gateway.php:
|
202 |
-
msgid "
|
203 |
-
msgstr "
|
204 |
|
205 |
-
#: mercadopago/mercadopago-gateway.php:
|
206 |
-
msgid "
|
207 |
-
msgstr "
|
208 |
|
209 |
-
#: mercadopago/mercadopago-gateway.php:
|
210 |
-
msgid "
|
211 |
-
msgstr "
|
212 |
|
213 |
-
#: mercadopago/mercadopago-gateway.php:
|
214 |
-
msgid "
|
215 |
-
msgstr "
|
216 |
|
217 |
-
#: mercadopago/mercadopago-gateway.php:
|
218 |
-
msgid "
|
219 |
-
msgstr "
|
220 |
|
221 |
-
#: mercadopago/mercadopago-gateway.php:
|
222 |
-
msgid "
|
223 |
-
msgstr "
|
224 |
|
225 |
-
#: mercadopago/mercadopago-gateway.php:
|
226 |
-
msgid "
|
227 |
-
msgstr "
|
228 |
|
229 |
-
#: mercadopago/mercadopago-gateway.php:
|
230 |
-
msgid "
|
231 |
-
|
|
|
|
|
|
|
232 |
|
233 |
-
#: mercadopago/mercadopago-gateway.php:
|
234 |
msgid "Test and Debug Options"
|
235 |
msgstr "Opciones de Prueba y Debug"
|
236 |
|
237 |
-
#: mercadopago/mercadopago-gateway.php:
|
238 |
msgid "Mercado Pago Sandbox"
|
239 |
msgstr "Sandbox Mercado Pago"
|
240 |
|
241 |
-
#: mercadopago/mercadopago-gateway.php:
|
242 |
msgid "Enable Mercado Pago Sandbox"
|
243 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
244 |
|
245 |
-
#: mercadopago/mercadopago-gateway.php:
|
246 |
-
msgid "This
|
247 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
248 |
|
249 |
-
#: mercadopago/mercadopago-gateway.php:
|
250 |
msgid "Debug and Log"
|
251 |
msgstr "Debug y Log"
|
252 |
|
253 |
-
#: mercadopago/mercadopago-gateway.php:
|
254 |
msgid "Enable log"
|
255 |
msgstr "Habilitar Log"
|
256 |
|
257 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
263 |
-
msgid "
|
264 |
-
msgstr "
|
265 |
|
266 |
-
#: mercadopago/mercadopago-gateway.php:
|
267 |
-
|
268 |
-
|
|
|
269 |
|
270 |
-
#: mercadopago/mercadopago-gateway.php:
|
271 |
-
msgid "
|
272 |
-
msgstr "
|
273 |
|
274 |
-
#: mercadopago/mercadopago-gateway.php:
|
275 |
-
msgid "
|
276 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
|
278 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
msgid "Click to try again"
|
280 |
-
msgstr "Haga
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
283 |
msgid "Mercado Pago is Inactive"
|
284 |
msgstr "Mercado Pago Inactivo"
|
285 |
|
286 |
-
#: mercadopago/mercadopago-gateway.php:
|
287 |
-
msgid "Your Mercado Pago credentials
|
288 |
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
289 |
|
290 |
-
#: mercadopago/mercadopago-gateway.php:
|
291 |
msgid "Click here and configure!"
|
292 |
msgstr "Haga click aquí y configure!"
|
293 |
|
294 |
-
#: mercadopago/mercadopago-gateway.php:
|
295 |
msgid "The currency"
|
296 |
msgstr "La moneda"
|
297 |
|
298 |
-
#: mercadopago/mercadopago-gateway.php:
|
299 |
-
msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN,
|
300 |
-
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
|
302 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
msgid "Mercado Pago Request Failure"
|
304 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
305 |
|
306 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
315 |
msgid "Payment type"
|
316 |
-
msgstr "
|
317 |
|
318 |
-
#: mercadopago/mercadopago-gateway.php:
|
319 |
-
msgid "Payment
|
320 |
-
msgstr "Pago
|
321 |
|
322 |
-
#: mercadopago/mercadopago-gateway.php:
|
323 |
msgid "Customer haven't paid yet."
|
324 |
msgstr "El cliente todavía no efectuó el pago."
|
325 |
|
326 |
-
#: mercadopago/mercadopago-gateway.php:
|
327 |
msgid "Payment under review."
|
328 |
msgstr "El pago está pendiente de revisión."
|
329 |
|
330 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
335 |
msgid "The payment was refunded to the customer."
|
336 |
msgstr "El pago fue devuelto al cliente."
|
337 |
|
338 |
-
#: mercadopago/mercadopago-gateway.php:
|
339 |
msgid "The payment was cancelled."
|
340 |
msgstr "El pago fue cancelado."
|
341 |
|
342 |
-
#: mercadopago/mercadopago-gateway.php:
|
343 |
-
|
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 > System Status > Logs"
|
384 |
+
msgstr "WooCommerce > Estado del Sistema > 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 & Clear cart"
|
566 |
+
msgstr "Cancelar & Limpiar carrito"
|
567 |
+
|
568 |
+
#: mercadopago/mercadopago-gateway.php:446
|
569 |
+
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
570 |
+
msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
|
571 |
+
|
572 |
+
#: mercadopago/mercadopago-gateway.php:697
|
573 |
+
msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
|
574 |
+
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
575 |
+
|
576 |
+
msgid " as it appears in your card ..."
|
577 |
+
msgstr " tal como aparece en su tarjeta ..."
|
578 |
+
|
579 |
+
msgid "Done, your payment was accredited!"
|
580 |
+
msgstr "Listo, su pago ha sido aceptado!"
|
581 |
+
|
582 |
+
msgid "We are processing the payment. In less than an hour we will e-mail you the results."
|
583 |
+
msgstr "Estamos procesando su pago. En menos de una hora le enviaremos el resultado por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días le enviaremos por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar los pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro medio de pago. Se recomienda en efectivo."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la mensualidad seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro medio de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta medio de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, realice el pago del ticket para tener su orden aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Personalizado Inactivo"
|
665 |
+
|
666 |
+
msgid "Basic Checkout is Inactive"
|
667 |
+
msgstr "Checkout Básico Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección."
|
674 |
+
|
675 |
+
msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
676 |
+
msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
677 |
+
|
678 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
679 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
680 |
+
|
681 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
682 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
|
683 |
+
|
684 |
+
msgid "Your Card"
|
685 |
+
msgstr "Sus Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Cards"
|
688 |
+
msgstr "Otras Tarjetas"
|
689 |
+
|
690 |
+
msgid "Other Card"
|
691 |
+
msgstr "Otra Tarjeta"
|
692 |
+
|
693 |
+
msgid "ended in"
|
694 |
+
msgstr "terminado en"
|
695 |
+
|
696 |
+
msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
|
697 |
+
msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
|
698 |
+
|
699 |
+
msgid "ATTENTION: The currency"
|
700 |
+
msgstr "ATENCIÓN: La moneda"
|
701 |
+
|
702 |
+
msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
|
703 |
+
msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
|
704 |
+
|
705 |
+
msgid "Currency conversions should be made outside this module."
|
706 |
+
msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
|
707 |
+
|
708 |
+
msgid "Coupons"
|
709 |
+
msgstr "Cupones"
|
710 |
+
|
711 |
+
msgid "Enable coupons of discounts"
|
712 |
+
msgstr "Activar los cupones de descuento"
|
713 |
+
|
714 |
+
msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
|
715 |
+
msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
|
716 |
+
|
717 |
+
msgid "You will save"
|
718 |
+
msgstr "Usted ahorrará"
|
719 |
+
|
720 |
+
msgid "Apply"
|
721 |
+
msgstr "Aplicar"
|
722 |
+
|
723 |
+
msgid "Remove"
|
724 |
+
msgstr "Eliminar"
|
725 |
+
|
726 |
+
msgid "Please, inform your coupon code"
|
727 |
+
msgstr "Por favor, introduzca el código de su cupón"
|
728 |
+
|
729 |
+
msgid "Please, inform your email in billing address to use this feature"
|
730 |
+
msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
|
731 |
+
|
732 |
+
msgid "Discount for %s coupon"
|
733 |
+
msgstr "Descuento para el cupón %s"
|
734 |
+
|
735 |
+
msgid "Discount provided by store"
|
736 |
+
msgstr "Descuento dado por la tienda"
|
737 |
+
|
738 |
+
msgid "Discount Coupon"
|
739 |
+
msgstr "Cupón de Descuento"
|
740 |
+
|
741 |
+
msgid "CURRENCY CONVERTED: The currency conversion ratio from"
|
742 |
+
msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
|
743 |
+
|
744 |
+
msgid "ERROR: It was not possible to convert the unsupported currency"
|
745 |
+
msgstr "ERROR: No fue posible convertir la moneda no soportada"
|
746 |
+
|
747 |
+
msgid "to"
|
748 |
+
msgstr "para"
|
749 |
+
|
750 |
+
msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
|
751 |
+
msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
|
752 |
+
|
753 |
+
msgid " is: "
|
754 |
+
msgstr " es: "
|
755 |
+
|
756 |
+
msgid "Currency Conversion"
|
757 |
+
msgstr "Conversión de Moneda"
|
758 |
+
|
759 |
+
msgid "with discount from"
|
760 |
+
msgstr "con descuento de"
|
761 |
+
|
762 |
+
msgid "Total of your purchase:"
|
763 |
+
msgstr "Total de su compra:"
|
764 |
+
|
765 |
+
msgid "Total of your purchase with discount:"
|
766 |
+
msgstr "Total de su compra con descuento:"
|
767 |
+
|
768 |
+
msgid "*Uppon payment approval"
|
769 |
+
msgstr "*Con la aprobación de pago"
|
770 |
+
|
771 |
+
msgid "Terms and Conditions of Use"
|
772 |
+
msgstr "Términos y Condiciones de Uso"
|
773 |
+
|
774 |
+
msgid "Payment converted from"
|
775 |
+
msgstr "Pago convertido de"
|
languages/woocommerce-mercadopago-module-es_PE.mo
ADDED
Binary file
|
languages/woocommerce-mercadopago-module-es_PE.po
ADDED
@@ -0,0 +1,775 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# WordPress Blank Pot
|
2 |
+
# Copyright (C) 2014 ...
|
3 |
+
# This file is distributed under the GNU General Public License v2 or later.
|
4 |
+
msgid ""
|
5 |
+
msgstr ""
|
6 |
+
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
7 |
+
"POT-Creation-Date: 2016-05-23 14:52-0300\n"
|
8 |
+
"PO-Revision-Date: \n"
|
9 |
+
"Language-Team: Product Development <translations@example.com>\n"
|
10 |
+
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
11 |
+
"MIME-Version: 1.0\n"
|
12 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
+
"Content-Transfer-Encoding: 8bit\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
18 |
+
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
19 |
+
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
20 |
+
"X-Generator: Poedit 1.8.7\n"
|
21 |
+
"Last-Translator: \n"
|
22 |
+
"Language: es_PE\n"
|
23 |
+
"X-Poedit-SearchPath-0: .\n"
|
24 |
+
|
25 |
+
#. Description of the plugin/theme
|
26 |
+
msgid "This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store."
|
27 |
+
msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como medio de pago para compras realizadas en su tienda virtual."
|
28 |
+
|
29 |
+
#: mercadopago-module.php:69
|
30 |
+
#, php-format
|
31 |
+
msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
|
32 |
+
msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
|
33 |
+
|
34 |
+
#: mercadopago-module.php:109
|
35 |
+
msgid "Basic Checkout"
|
36 |
+
msgstr "Checkout Básico"
|
37 |
+
|
38 |
+
#: mercadopago-module.php:113
|
39 |
+
msgid "Custom Checkout"
|
40 |
+
msgstr "Checkout Personalizado"
|
41 |
+
|
42 |
+
#: mercadopago/mercadopago-custom-gateway.php:48
|
43 |
+
msgid "Mercado Pago - Custom Checkout"
|
44 |
+
msgstr "Mercado Pago - Checkout Personalizado"
|
45 |
+
|
46 |
+
#: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
|
47 |
+
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
48 |
+
msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como medio de pago para compras realizadas en su tienda virtual."
|
49 |
+
|
50 |
+
#: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
|
51 |
+
#: mercadopago/mercadopago-gateway.php:716
|
52 |
+
msgid "Argentine"
|
53 |
+
msgstr "Argentina"
|
54 |
+
|
55 |
+
#: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
|
56 |
+
#: mercadopago/mercadopago-gateway.php:717
|
57 |
+
msgid "Brazil"
|
58 |
+
msgstr "Brasil"
|
59 |
+
|
60 |
+
#: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
|
61 |
+
#: mercadopago/mercadopago-gateway.php:719
|
62 |
+
msgid "Chile"
|
63 |
+
msgstr "Chile"
|
64 |
+
|
65 |
+
#: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
|
66 |
+
#: mercadopago/mercadopago-gateway.php:718
|
67 |
+
msgid "Colombia"
|
68 |
+
msgstr "Colombia"
|
69 |
+
|
70 |
+
#: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
|
71 |
+
#: mercadopago/mercadopago-gateway.php:720
|
72 |
+
msgid "Mexico"
|
73 |
+
msgstr "México"
|
74 |
+
|
75 |
+
#: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
|
76 |
+
msgid "or"
|
77 |
+
msgstr "o"
|
78 |
+
|
79 |
+
#: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
|
80 |
+
#: mercadopago/mercadopago-gateway.php:721
|
81 |
+
msgid "Venezuela"
|
82 |
+
msgstr "Venezuela"
|
83 |
+
|
84 |
+
#: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
|
85 |
+
msgid "Your credentials are <strong>valid</strong> for"
|
86 |
+
msgstr "Sus credenciales <strong>son válidas</strong> para"
|
87 |
+
|
88 |
+
#: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
|
89 |
+
#: mercadopago/mercadopago-gateway.php:170
|
90 |
+
msgid "Your credentials are <strong>not valid</strong>!"
|
91 |
+
msgstr "Sus credenciales <strong>no son válidas</strong>!"
|
92 |
+
|
93 |
+
#: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
|
94 |
+
msgid "Enable/Disable"
|
95 |
+
msgstr "Habilitar/Deshabilitar"
|
96 |
+
|
97 |
+
#: mercadopago/mercadopago-custom-gateway.php:171
|
98 |
+
msgid "Enable Custom Checkout"
|
99 |
+
msgstr "Habilitar Checkout Personalizado"
|
100 |
+
|
101 |
+
#: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
|
102 |
+
msgid "Mercado Pago Credentials"
|
103 |
+
msgstr "Credenciales de Mercado Pago"
|
104 |
+
|
105 |
+
#: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
|
106 |
+
msgid "You can obtain your credentials for"
|
107 |
+
msgstr "Puedes obtener tus credenciales para"
|
108 |
+
|
109 |
+
#: mercadopago/mercadopago-custom-gateway.php:182
|
110 |
+
msgid "Insert your Mercado Pago Public key."
|
111 |
+
msgstr "Inserte su Public Key de Mercado Pago."
|
112 |
+
|
113 |
+
#: mercadopago/mercadopago-custom-gateway.php:189
|
114 |
+
msgid "Insert your Mercado Pago Access token."
|
115 |
+
msgstr "Inserte su Access Token de Mercado Pago."
|
116 |
+
|
117 |
+
#: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
|
118 |
+
msgid "Instant Payment Notification (IPN) URL"
|
119 |
+
msgstr "URL da Notificación Instantanea de Pago (IPN)"
|
120 |
+
|
121 |
+
#: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
|
122 |
+
msgid "Your IPN URL to receive instant payment notifications is"
|
123 |
+
msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
|
124 |
+
|
125 |
+
#: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
|
126 |
+
msgid "Checkout Options"
|
127 |
+
msgstr "Opciones de Checkout"
|
128 |
+
|
129 |
+
#: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
|
130 |
+
msgid "Title"
|
131 |
+
msgstr "Título"
|
132 |
+
|
133 |
+
#: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
|
134 |
+
msgid "Title shown to the client in the checkout."
|
135 |
+
msgstr "Título mostrado al cliente en el checkout."
|
136 |
+
|
137 |
+
#: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
|
138 |
+
msgid "Mercado Pago"
|
139 |
+
msgstr "Mercado Pago"
|
140 |
+
|
141 |
+
#: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
|
142 |
+
msgid "Description"
|
143 |
+
msgstr "Descripción"
|
144 |
+
|
145 |
+
#: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
|
146 |
+
msgid "Description shown to the client in the checkout."
|
147 |
+
msgstr "Descripción mostrada al cliente en el checkout."
|
148 |
+
|
149 |
+
#: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
|
150 |
+
msgid "Pay with Mercado Pago"
|
151 |
+
msgstr "Pagar con Mercado Pago"
|
152 |
+
|
153 |
+
#: mercadopago/mercadopago-custom-gateway.php:216
|
154 |
+
msgid "Statement Descriptor"
|
155 |
+
msgstr "Descripción de la Factura"
|
156 |
+
|
157 |
+
#: mercadopago/mercadopago-custom-gateway.php:218
|
158 |
+
msgid "The description that will be shown in your customer's invoice."
|
159 |
+
msgstr "La descripción que se muestra en la factura de su cliente."
|
160 |
+
|
161 |
+
#: mercadopago/mercadopago-custom-gateway.php:222
|
162 |
+
msgid "Binary Mode"
|
163 |
+
msgstr "Modo binario"
|
164 |
+
|
165 |
+
#: mercadopago/mercadopago-custom-gateway.php:224
|
166 |
+
msgid "Enable binary mode for checkout status"
|
167 |
+
msgstr "Activar el modo binario para el estado del checkout"
|
168 |
+
|
169 |
+
#: mercadopago/mercadopago-custom-gateway.php:226
|
170 |
+
msgid "When charging a credit card, only [approved] or [reject] status will be taken."
|
171 |
+
msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
|
172 |
+
|
173 |
+
#: mercadopago/mercadopago-custom-gateway.php:229
|
174 |
+
msgid "Ticket"
|
175 |
+
msgstr "Ticket"
|
176 |
+
|
177 |
+
#: mercadopago/mercadopago-custom-gateway.php:231
|
178 |
+
msgid "Enable Ticket for Custom Checkout"
|
179 |
+
msgstr "Habilitar Ticket para Checkout Personalizado"
|
180 |
+
|
181 |
+
#: mercadopago/mercadopago-custom-gateway.php:233
|
182 |
+
msgid "Let your customer pay you with tickets"
|
183 |
+
msgstr "Deje que su cliente le paga con tickets"
|
184 |
+
|
185 |
+
#: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
|
186 |
+
msgid "Store Category"
|
187 |
+
msgstr "Categoría de la tienda"
|
188 |
+
|
189 |
+
#: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
|
190 |
+
msgid "Define which type of products your store sells."
|
191 |
+
msgstr "Defina el tipo de productos que su tienda vende."
|
192 |
+
|
193 |
+
#: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
|
194 |
+
msgid "Store Identificator"
|
195 |
+
msgstr "Identificador de la tienda"
|
196 |
+
|
197 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
198 |
+
msgid "Please, inform a prefix to your store."
|
199 |
+
msgstr "Por favor, informe un prefijo para su tienda."
|
200 |
+
|
201 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
202 |
+
msgid ""
|
203 |
+
"If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
|
204 |
+
"identificators."
|
205 |
+
msgstr ""
|
206 |
+
"Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
|
207 |
+
|
208 |
+
#: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
|
209 |
+
msgid "Test and Debug Options"
|
210 |
+
msgstr "Opciones de Prueba y Debug"
|
211 |
+
|
212 |
+
#: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
|
213 |
+
msgid "Mercado Pago Sandbox"
|
214 |
+
msgstr "Sandbox Mercado Pago"
|
215 |
+
|
216 |
+
#: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
|
217 |
+
msgid "Enable Mercado Pago Sandbox"
|
218 |
+
msgstr "Habilitar el sandbox de Mercado Pago"
|
219 |
+
|
220 |
+
#: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
|
221 |
+
msgid "This option allows you to test payments inside a sandbox environment."
|
222 |
+
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
223 |
+
|
224 |
+
#: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
|
225 |
+
msgid "Debug and Log"
|
226 |
+
msgstr "Debug y Log"
|
227 |
+
|
228 |
+
#: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
|
229 |
+
msgid "Enable log"
|
230 |
+
msgstr "Habilitar Log"
|
231 |
+
|
232 |
+
#: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
|
233 |
+
msgid "Register event logs of Mercado Pago, such as API requests, in the file"
|
234 |
+
msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
|
235 |
+
|
236 |
+
#: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
|
237 |
+
msgid "File location: "
|
238 |
+
msgstr "Local del archivo: "
|
239 |
+
|
240 |
+
#: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
|
241 |
+
#, php-format
|
242 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
243 |
+
msgstr "Por favor, califíquenos con %s en WordPress.org y de su feedback para ayudar a mejorar este módulo!"
|
244 |
+
|
245 |
+
#: mercadopago/mercadopago-custom-gateway.php:332
|
246 |
+
msgid "Payment Method"
|
247 |
+
msgstr "Medios de Pago"
|
248 |
+
|
249 |
+
#: mercadopago/mercadopago-custom-gateway.php:333
|
250 |
+
msgid "Credit card number"
|
251 |
+
msgstr "Número de tarjeta de crédito"
|
252 |
+
|
253 |
+
#: mercadopago/mercadopago-custom-gateway.php:334
|
254 |
+
msgid "Expiration month"
|
255 |
+
msgstr "Mes de expiración"
|
256 |
+
|
257 |
+
#: mercadopago/mercadopago-custom-gateway.php:335
|
258 |
+
msgid "Expiration year"
|
259 |
+
msgstr "Año de expiración"
|
260 |
+
|
261 |
+
#: mercadopago/mercadopago-custom-gateway.php:336
|
262 |
+
msgid "Year"
|
263 |
+
msgstr "Año"
|
264 |
+
|
265 |
+
#: mercadopago/mercadopago-custom-gateway.php:337
|
266 |
+
msgid "Month"
|
267 |
+
msgstr "Mes"
|
268 |
+
|
269 |
+
#: mercadopago/mercadopago-custom-gateway.php:338
|
270 |
+
msgid "Card holder name"
|
271 |
+
msgstr "Nombre del titular de la tarjeta"
|
272 |
+
|
273 |
+
#: mercadopago/mercadopago-custom-gateway.php:339
|
274 |
+
msgid "Security code"
|
275 |
+
msgstr "Código de seguridad"
|
276 |
+
|
277 |
+
#: mercadopago/mercadopago-custom-gateway.php:340
|
278 |
+
msgid "Document Type"
|
279 |
+
msgstr "Tipo de Documento"
|
280 |
+
|
281 |
+
#: mercadopago/mercadopago-custom-gateway.php:341
|
282 |
+
msgid "Document number"
|
283 |
+
msgstr "Número de Documento"
|
284 |
+
|
285 |
+
#: mercadopago/mercadopago-custom-gateway.php:342
|
286 |
+
msgid "Issuer"
|
287 |
+
msgstr "Emisor"
|
288 |
+
|
289 |
+
#: mercadopago/mercadopago-custom-gateway.php:343
|
290 |
+
msgid "Installments"
|
291 |
+
msgstr "Cuotas"
|
292 |
+
|
293 |
+
#: mercadopago/mercadopago-custom-gateway.php:347
|
294 |
+
msgid "Parameter cardNumber can not be null/empty"
|
295 |
+
msgstr "Parámetro [Número de tarjeta] no puede ser nulo/vacío"
|
296 |
+
|
297 |
+
#: mercadopago/mercadopago-custom-gateway.php:348
|
298 |
+
msgid "Invalid Card Number"
|
299 |
+
msgstr "Número de tarjeta inválido"
|
300 |
+
|
301 |
+
#: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
|
302 |
+
#: mercadopago/mercadopago-custom-gateway.php:353
|
303 |
+
msgid "Invalid Expiration Date"
|
304 |
+
msgstr "Fecha de expiración inválida"
|
305 |
+
|
306 |
+
#: mercadopago/mercadopago-custom-gateway.php:355
|
307 |
+
msgid "Parameter cardholderName can not be null/empty"
|
308 |
+
msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
|
309 |
+
|
310 |
+
#: mercadopago/mercadopago-custom-gateway.php:356
|
311 |
+
msgid "Invalid Card Holder Name"
|
312 |
+
msgstr "Nombre del titular de la tarjeta inválido"
|
313 |
+
|
314 |
+
#: mercadopago/mercadopago-custom-gateway.php:358
|
315 |
+
msgid "Parameter securityCode can not be null/empty"
|
316 |
+
msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
|
317 |
+
|
318 |
+
#: mercadopago/mercadopago-custom-gateway.php:359
|
319 |
+
msgid "Invalid Security Code"
|
320 |
+
msgstr "Código de seguridad inválido"
|
321 |
+
|
322 |
+
#: mercadopago/mercadopago-custom-gateway.php:361
|
323 |
+
msgid "Parameter docType can not be null/empty"
|
324 |
+
msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
|
325 |
+
|
326 |
+
#: mercadopago/mercadopago-custom-gateway.php:362
|
327 |
+
msgid "Invalid Document Type"
|
328 |
+
msgstr "Tipo de Documento inválido"
|
329 |
+
|
330 |
+
#: mercadopago/mercadopago-custom-gateway.php:364
|
331 |
+
msgid "Parameter docNumber can not be null/empty"
|
332 |
+
msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
|
333 |
+
|
334 |
+
#: mercadopago/mercadopago-custom-gateway.php:365
|
335 |
+
msgid "Invalid Document Number"
|
336 |
+
msgstr "Número del Documento inválido"
|
337 |
+
|
338 |
+
#: mercadopago/mercadopago-custom-gateway.php:367
|
339 |
+
msgid "The parameter cardholder.document.subtype can not be null or empty"
|
340 |
+
msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
|
341 |
+
|
342 |
+
#: mercadopago/mercadopago-custom-gateway.php:368
|
343 |
+
msgid "Invalid Document Sub Type"
|
344 |
+
msgstr "Subtipo del documento inválido"
|
345 |
+
|
346 |
+
#: mercadopago/mercadopago-custom-gateway.php:370
|
347 |
+
msgid "Parameter cardIssuerId can not be null/empty"
|
348 |
+
msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
|
349 |
+
|
350 |
+
#: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
|
351 |
+
msgid "Payment approved."
|
352 |
+
msgstr "Pago aprobado."
|
353 |
+
|
354 |
+
#: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
|
355 |
+
msgid "Your payment is under review. In less than 1h, you should be notified by email."
|
356 |
+
msgstr "Su pago está en revisión. En menos de 1 hora, usted será notificado por correo electrónico."
|
357 |
+
|
358 |
+
#: mercadopago/mercadopago-custom-gateway.php:418
|
359 |
+
msgid "Check your order resume"
|
360 |
+
msgstr "Ver su hoja de pedido"
|
361 |
+
|
362 |
+
#: mercadopago/mercadopago-custom-gateway.php:431
|
363 |
+
msgid "Your payment was refused. You can try again."
|
364 |
+
msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
|
365 |
+
|
366 |
+
#: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
|
367 |
+
msgid "Click to try again"
|
368 |
+
msgstr "Haga clic para intentarlo de nuevo"
|
369 |
+
|
370 |
+
#: mercadopago/mercadopago-custom-gateway.php:455
|
371 |
+
msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
|
372 |
+
msgstr "Un problema se produjo al procesar su pago. ¿Esta seguro que ha rellenado correctamente toda la información en el formulario de checkout?"
|
373 |
+
|
374 |
+
#: mercadopago/mercadopago-custom-gateway.php:544
|
375 |
+
msgid "Shipping"
|
376 |
+
msgstr "Envío"
|
377 |
+
|
378 |
+
#: mercadopago/mercadopago-custom-gateway.php:545
|
379 |
+
msgid "Shipping service used by store"
|
380 |
+
msgstr "Servicio de envío utilizado por la tienda"
|
381 |
+
|
382 |
+
#: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
|
383 |
+
msgid "WooCommerce > System Status > Logs"
|
384 |
+
msgstr "WooCommerce > Estado del Sistema > 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 & Clear cart"
|
566 |
+
msgstr "Cancelar & Limpiar carrito"
|
567 |
+
|
568 |
+
#: mercadopago/mercadopago-gateway.php:446
|
569 |
+
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
570 |
+
msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
|
571 |
+
|
572 |
+
#: mercadopago/mercadopago-gateway.php:697
|
573 |
+
msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
|
574 |
+
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
575 |
+
|
576 |
+
msgid " as it appears in your card ..."
|
577 |
+
msgstr " tal como aparece en su tarjeta ..."
|
578 |
+
|
579 |
+
msgid "Done, your payment was accredited!"
|
580 |
+
msgstr "Listo, su pago ha sido aceptado!"
|
581 |
+
|
582 |
+
msgid "We are processing the payment. In less than an hour we will e-mail you the results."
|
583 |
+
msgstr "Estamos procesando su pago. En menos de una hora le enviaremos el resultado por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días le enviaremos por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar los pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro medio de pago. Se recomienda en efectivo."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro medio de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta medio de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, realice el pago del ticket para tener su orden aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Personalizado Inactivo"
|
665 |
+
|
666 |
+
msgid "Basic Checkout is Inactive"
|
667 |
+
msgstr "Checkout Básico Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección."
|
674 |
+
|
675 |
+
msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
676 |
+
msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
677 |
+
|
678 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
679 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
680 |
+
|
681 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
682 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
|
683 |
+
|
684 |
+
msgid "Your Card"
|
685 |
+
msgstr "Sus Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Cards"
|
688 |
+
msgstr "Otras Tarjetas"
|
689 |
+
|
690 |
+
msgid "Other Card"
|
691 |
+
msgstr "Otra Tarjeta"
|
692 |
+
|
693 |
+
msgid "ended in"
|
694 |
+
msgstr "terminado en"
|
695 |
+
|
696 |
+
msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
|
697 |
+
msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
|
698 |
+
|
699 |
+
msgid "ATTENTION: The currency"
|
700 |
+
msgstr "ATENCIÓN: La moneda"
|
701 |
+
|
702 |
+
msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
|
703 |
+
msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
|
704 |
+
|
705 |
+
msgid "Currency conversions should be made outside this module."
|
706 |
+
msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
|
707 |
+
|
708 |
+
msgid "Coupons"
|
709 |
+
msgstr "Cupones"
|
710 |
+
|
711 |
+
msgid "Enable coupons of discounts"
|
712 |
+
msgstr "Activar los cupones de descuento"
|
713 |
+
|
714 |
+
msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
|
715 |
+
msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
|
716 |
+
|
717 |
+
msgid "You will save"
|
718 |
+
msgstr "Usted ahorrará"
|
719 |
+
|
720 |
+
msgid "Apply"
|
721 |
+
msgstr "Aplicar"
|
722 |
+
|
723 |
+
msgid "Remove"
|
724 |
+
msgstr "Eliminar"
|
725 |
+
|
726 |
+
msgid "Please, inform your coupon code"
|
727 |
+
msgstr "Por favor, introduzca el código de su cupón"
|
728 |
+
|
729 |
+
msgid "Please, inform your email in billing address to use this feature"
|
730 |
+
msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
|
731 |
+
|
732 |
+
msgid "Discount for %s coupon"
|
733 |
+
msgstr "Descuento para el cupón %s"
|
734 |
+
|
735 |
+
msgid "Discount provided by store"
|
736 |
+
msgstr "Descuento dado por la tienda"
|
737 |
+
|
738 |
+
msgid "Discount Coupon"
|
739 |
+
msgstr "Cupón de Descuento"
|
740 |
+
|
741 |
+
msgid "CURRENCY CONVERTED: The currency conversion ratio from"
|
742 |
+
msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
|
743 |
+
|
744 |
+
msgid "ERROR: It was not possible to convert the unsupported currency"
|
745 |
+
msgstr "ERROR: No fue posible convertir la moneda no soportada"
|
746 |
+
|
747 |
+
msgid "to"
|
748 |
+
msgstr "para"
|
749 |
+
|
750 |
+
msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
|
751 |
+
msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
|
752 |
+
|
753 |
+
msgid " is: "
|
754 |
+
msgstr " es: "
|
755 |
+
|
756 |
+
msgid "Currency Conversion"
|
757 |
+
msgstr "Conversión de Moneda"
|
758 |
+
|
759 |
+
msgid "with discount from"
|
760 |
+
msgstr "con descuento de"
|
761 |
+
|
762 |
+
msgid "Total of your purchase:"
|
763 |
+
msgstr "Total de su compra:"
|
764 |
+
|
765 |
+
msgid "Total of your purchase with discount:"
|
766 |
+
msgstr "Total de su compra con descuento:"
|
767 |
+
|
768 |
+
msgid "*Uppon payment approval"
|
769 |
+
msgstr "*Con la aprobación de pago"
|
770 |
+
|
771 |
+
msgid "Terms and Conditions of Use"
|
772 |
+
msgstr "Términos y Condiciones de Uso"
|
773 |
+
|
774 |
+
msgid "Payment converted from"
|
775 |
+
msgstr "Pago convertido de"
|
languages/woocommerce-mercadopago-module-es_VE.mo
CHANGED
Binary file
|
languages/woocommerce-mercadopago-module-es_VE.po
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"PO-Revision-Date: \n"
|
9 |
-
"Language-Team:
|
10 |
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -14,335 +14,762 @@ msgstr ""
|
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;
|
18 |
-
"
|
|
|
19 |
"X-Generator: Poedit 1.8.7\n"
|
20 |
"Last-Translator: \n"
|
21 |
-
"Language:
|
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
|
27 |
|
28 |
-
#: mercadopago-module.php:
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
36 |
|
37 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
38 |
msgid "Argentine"
|
39 |
msgstr "Argentina"
|
40 |
|
41 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
42 |
msgid "Brazil"
|
43 |
msgstr "Brasil"
|
44 |
|
45 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
46 |
msgid "Chile"
|
47 |
msgstr "Chile"
|
48 |
|
49 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
50 |
msgid "Colombia"
|
51 |
msgstr "Colombia"
|
52 |
|
53 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
54 |
msgid "Mexico"
|
55 |
msgstr "México"
|
56 |
|
57 |
-
#: mercadopago/mercadopago-gateway.php:
|
58 |
msgid "or"
|
59 |
msgstr "o"
|
60 |
|
61 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
62 |
msgid "Venezuela"
|
63 |
msgstr "Venezuela"
|
64 |
|
65 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
74 |
-
|
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-
|
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:
|
102 |
-
msgid "Enable
|
103 |
-
msgstr "Habilitar
|
104 |
|
105 |
-
#: mercadopago/mercadopago-gateway.php:
|
106 |
msgid "Mercado Pago Credentials"
|
107 |
msgstr "Credenciales de Mercado Pago"
|
108 |
|
109 |
-
#: mercadopago/mercadopago-gateway.php:
|
110 |
msgid "You can obtain your credentials for"
|
111 |
msgstr "Puedes obtener tus credenciales para"
|
112 |
|
113 |
-
#: mercadopago/mercadopago-gateway.php:
|
114 |
-
msgid "Mercado Pago
|
115 |
-
msgstr "
|
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:
|
122 |
-
msgid "Mercado Pago
|
123 |
-
msgstr "
|
124 |
|
125 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
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:
|
138 |
msgid "Checkout Options"
|
139 |
msgstr "Opciones de Checkout"
|
140 |
|
141 |
-
#: mercadopago/mercadopago-gateway.php:
|
142 |
msgid "Title"
|
143 |
msgstr "Título"
|
144 |
|
145 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
|
|
|
|
|
|
|
|
150 |
msgid "Description"
|
151 |
msgstr "Descripción"
|
152 |
|
153 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
158 |
msgid "Pay with Mercado Pago"
|
159 |
msgstr "Pagar con Mercado Pago"
|
160 |
|
161 |
-
#: mercadopago/mercadopago-gateway.php:
|
162 |
-
msgid "
|
163 |
-
msgstr "
|
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:
|
186 |
-
msgid "
|
187 |
-
msgstr "
|
188 |
|
189 |
-
#: mercadopago/mercadopago-gateway.php:
|
190 |
-
msgid "
|
191 |
-
msgstr "
|
192 |
|
193 |
-
#: mercadopago/mercadopago-gateway.php:
|
194 |
-
msgid "
|
195 |
-
msgstr "
|
196 |
|
197 |
-
#: mercadopago/mercadopago-gateway.php:
|
198 |
-
msgid "
|
199 |
-
msgstr "
|
200 |
|
201 |
-
#: mercadopago/mercadopago-gateway.php:
|
202 |
-
msgid "
|
203 |
-
msgstr "
|
204 |
|
205 |
-
#: mercadopago/mercadopago-gateway.php:
|
206 |
-
msgid "
|
207 |
-
msgstr "
|
208 |
|
209 |
-
#: mercadopago/mercadopago-gateway.php:
|
210 |
-
msgid "
|
211 |
-
msgstr "
|
212 |
|
213 |
-
#: mercadopago/mercadopago-gateway.php:
|
214 |
-
msgid "
|
215 |
-
msgstr "
|
216 |
|
217 |
-
#: mercadopago/mercadopago-gateway.php:
|
218 |
-
msgid "
|
219 |
-
msgstr "
|
220 |
|
221 |
-
#: mercadopago/mercadopago-gateway.php:
|
222 |
-
msgid "
|
223 |
-
msgstr "
|
224 |
|
225 |
-
#: mercadopago/mercadopago-gateway.php:
|
226 |
-
msgid "
|
227 |
-
msgstr "
|
228 |
|
229 |
-
#: mercadopago/mercadopago-gateway.php:
|
230 |
-
msgid "
|
231 |
-
|
|
|
|
|
|
|
232 |
|
233 |
-
#: mercadopago/mercadopago-gateway.php:
|
234 |
msgid "Test and Debug Options"
|
235 |
msgstr "Opciones de Prueba y Debug"
|
236 |
|
237 |
-
#: mercadopago/mercadopago-gateway.php:
|
238 |
msgid "Mercado Pago Sandbox"
|
239 |
msgstr "Sandbox Mercado Pago"
|
240 |
|
241 |
-
#: mercadopago/mercadopago-gateway.php:
|
242 |
msgid "Enable Mercado Pago Sandbox"
|
243 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
244 |
|
245 |
-
#: mercadopago/mercadopago-gateway.php:
|
246 |
-
msgid "This
|
247 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
248 |
|
249 |
-
#: mercadopago/mercadopago-gateway.php:
|
250 |
msgid "Debug and Log"
|
251 |
msgstr "Debug y Log"
|
252 |
|
253 |
-
#: mercadopago/mercadopago-gateway.php:
|
254 |
msgid "Enable log"
|
255 |
msgstr "Habilitar Log"
|
256 |
|
257 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
263 |
-
msgid "
|
264 |
-
msgstr "
|
265 |
|
266 |
-
#: mercadopago/mercadopago-gateway.php:
|
267 |
-
|
268 |
-
|
|
|
269 |
|
270 |
-
#: mercadopago/mercadopago-gateway.php:
|
271 |
-
msgid "
|
272 |
-
msgstr "
|
273 |
|
274 |
-
#: mercadopago/mercadopago-gateway.php:
|
275 |
-
msgid "
|
276 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
|
278 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
msgid "Click to try again"
|
280 |
-
msgstr "Haga
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
283 |
msgid "Mercado Pago is Inactive"
|
284 |
msgstr "Mercado Pago Inactivo"
|
285 |
|
286 |
-
#: mercadopago/mercadopago-gateway.php:
|
287 |
-
msgid "Your Mercado Pago credentials
|
288 |
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
289 |
|
290 |
-
#: mercadopago/mercadopago-gateway.php:
|
291 |
msgid "Click here and configure!"
|
292 |
msgstr "Haga click aquí y configure!"
|
293 |
|
294 |
-
#: mercadopago/mercadopago-gateway.php:
|
295 |
msgid "The currency"
|
296 |
msgstr "La moneda"
|
297 |
|
298 |
-
#: mercadopago/mercadopago-gateway.php:
|
299 |
-
msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN,
|
300 |
-
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
|
302 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
msgid "Mercado Pago Request Failure"
|
304 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
305 |
|
306 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
315 |
msgid "Payment type"
|
316 |
-
msgstr "
|
317 |
|
318 |
-
#: mercadopago/mercadopago-gateway.php:
|
319 |
-
msgid "Payment
|
320 |
-
msgstr "Pago
|
321 |
|
322 |
-
#: mercadopago/mercadopago-gateway.php:
|
323 |
msgid "Customer haven't paid yet."
|
324 |
msgstr "El cliente todavía no efectuó el pago."
|
325 |
|
326 |
-
#: mercadopago/mercadopago-gateway.php:
|
327 |
msgid "Payment under review."
|
328 |
msgstr "El pago está pendiente de revisión."
|
329 |
|
330 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
335 |
msgid "The payment was refunded to the customer."
|
336 |
msgstr "El pago fue devuelto al cliente."
|
337 |
|
338 |
-
#: mercadopago/mercadopago-gateway.php:
|
339 |
msgid "The payment was cancelled."
|
340 |
msgstr "El pago fue cancelado."
|
341 |
|
342 |
-
#: mercadopago/mercadopago-gateway.php:
|
343 |
-
|
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 > System Status > Logs"
|
384 |
+
msgstr "WooCommerce > Estado del Sistema > 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 & Clear cart"
|
566 |
+
msgstr "Cancelar & Limpiar carrito"
|
567 |
+
|
568 |
+
#: mercadopago/mercadopago-gateway.php:446
|
569 |
+
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
570 |
+
msgstr "Gracias por su compra. Prosiga con su pago completando la información abajo."
|
571 |
+
|
572 |
+
#: mercadopago/mercadopago-gateway.php:697
|
573 |
+
msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
|
574 |
+
msgstr "Sus credenciales Client_id/Client_secret de Mercado Pago parecen no estar debidamente configuradas."
|
575 |
+
|
576 |
+
msgid " as it appears in your card ..."
|
577 |
+
msgstr " tal como aparece en su tarjeta ..."
|
578 |
+
|
579 |
+
msgid "Done, your payment was accredited!"
|
580 |
+
msgstr "Listo, su pago ha sido aceptado!"
|
581 |
+
|
582 |
+
msgid "We are processing the payment. In less than an hour we will e-mail you the results."
|
583 |
+
msgstr "Estamos procesando su pago. En menos de una hora le enviaremos el resultado por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días le enviaremos por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar los pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó un pago de este importe. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro medio de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro medio de pago. Se recomienda en efectivo."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro medio de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta medio de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, realice el pago del ticket para tener su orden aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Personalizado Inactivo"
|
665 |
+
|
666 |
+
msgid "Basic Checkout is Inactive"
|
667 |
+
msgstr "Checkout Básico Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección."
|
674 |
+
|
675 |
+
msgid "Click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
676 |
+
msgstr "Haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
677 |
+
|
678 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
679 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
680 |
+
|
681 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
682 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurada."
|
683 |
+
|
684 |
+
msgid "Your Card"
|
685 |
+
msgstr "Sus Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Cards"
|
688 |
+
msgstr "Otras Tarjetas"
|
689 |
+
|
690 |
+
msgid "Other Card"
|
691 |
+
msgstr "Otra Tarjeta"
|
692 |
+
|
693 |
+
msgid "ended in"
|
694 |
+
msgstr "terminado en"
|
695 |
+
|
696 |
+
msgid "Your site appears to not have SSL certification. SSL is a pre-requisite because the payment process is made in your server."
|
697 |
+
msgstr "Su sitio parece no tener certificación SSL. SSL es un requisito para transaccionar desde su servidor."
|
698 |
+
|
699 |
+
msgid "ATTENTION: The currency"
|
700 |
+
msgstr "ATENCIÓN: La moneda"
|
701 |
+
|
702 |
+
msgid "defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be"
|
703 |
+
msgstr "que se define en WooCommerce es diferente de la utilizada en el país de sus credenciales.<br>La moneda para las transacciones realizadas por este medio de pago será"
|
704 |
+
|
705 |
+
msgid "Currency conversions should be made outside this module."
|
706 |
+
msgstr "Conversiones de monedas deben hacerse fuera de este módulo."
|
707 |
+
|
708 |
+
msgid "Coupons"
|
709 |
+
msgstr "Cupones"
|
710 |
+
|
711 |
+
msgid "Enable coupons of discounts"
|
712 |
+
msgstr "Activar los cupones de descuento"
|
713 |
+
|
714 |
+
msgid "If there is a Mercado Pago campaign, allow your store to give discounts to customers."
|
715 |
+
msgstr "Si hay una campaña de Mercado Pago, permitir a su tienda hacer descuentos para los clientes."
|
716 |
+
|
717 |
+
msgid "You will save"
|
718 |
+
msgstr "Usted ahorrará"
|
719 |
+
|
720 |
+
msgid "Apply"
|
721 |
+
msgstr "Aplicar"
|
722 |
+
|
723 |
+
msgid "Remove"
|
724 |
+
msgstr "Eliminar"
|
725 |
+
|
726 |
+
msgid "Please, inform your coupon code"
|
727 |
+
msgstr "Por favor, introduzca el código de su cupón"
|
728 |
+
|
729 |
+
msgid "Please, inform your email in billing address to use this feature"
|
730 |
+
msgstr "Por favor, introduzca su email en la dirección de facturación para utilizar este servicio"
|
731 |
+
|
732 |
+
msgid "Discount for %s coupon"
|
733 |
+
msgstr "Descuento para el cupón %s"
|
734 |
+
|
735 |
+
msgid "Discount provided by store"
|
736 |
+
msgstr "Descuento dado por la tienda"
|
737 |
+
|
738 |
+
msgid "Discount Coupon"
|
739 |
+
msgstr "Cupón de Descuento"
|
740 |
+
|
741 |
+
msgid "CURRENCY CONVERTED: The currency conversion ratio from"
|
742 |
+
msgstr "MONEDA CONVERTIDA: "La tasa de conversión de moneda de"
|
743 |
+
|
744 |
+
msgid "ERROR: It was not possible to convert the unsupported currency"
|
745 |
+
msgstr "ERROR: No fue posible convertir la moneda no soportada"
|
746 |
+
|
747 |
+
msgid "to"
|
748 |
+
msgstr "para"
|
749 |
+
|
750 |
+
msgid "If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio"
|
751 |
+
msgstr "Si la moneda utilizada en WooCommerce es diferente o no soportada por Mercado Pago, convierte los importes de sus transacciones con la tasa de conversión de Mercado Pago"
|
752 |
+
|
753 |
+
msgid " is: "
|
754 |
+
msgstr " es: "
|
755 |
+
|
756 |
+
msgid "Currency Conversion"
|
757 |
+
msgstr "Conversión de Moneda"
|
758 |
+
|
759 |
+
msgid "with discount from"
|
760 |
+
msgstr "con descuento de"
|
761 |
+
|
762 |
+
msgid "Total of your purchase:"
|
763 |
+
msgstr "Total de su compra:"
|
764 |
+
|
765 |
+
msgid "Total of your purchase with discount:"
|
766 |
+
msgstr "Total de su compra con descuento:"
|
767 |
+
|
768 |
+
msgid "*Uppon payment approval"
|
769 |
+
msgstr "*Con la aprobación de pago"
|
770 |
+
|
771 |
+
msgid "Terms and Conditions of Use"
|
772 |
+
msgstr "Términos y Condiciones de Uso"
|
773 |
+
|
774 |
+
msgid "Payment converted from"
|
775 |
+
msgstr "Pago convertido de"
|
languages/woocommerce-mercadopago-module-pt_BR.mo
CHANGED
Binary file
|
languages/woocommerce-mercadopago-module-pt_BR.po
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"PO-Revision-Date: \n"
|
9 |
-
"Language-Team:
|
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 |
-
"
|
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,816 @@ 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:
|
31 |
#, php-format
|
32 |
-
msgid ""
|
33 |
-
"Woo Mercado Pago Module
|
34 |
-
|
35 |
-
|
36 |
-
"
|
37 |
-
"
|
38 |
-
|
39 |
-
#: mercadopago
|
40 |
-
msgid ""
|
41 |
-
"
|
42 |
-
|
43 |
-
|
44 |
-
"
|
45 |
-
"
|
46 |
-
|
47 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
msgid "Argentine"
|
49 |
msgstr "Argentina"
|
50 |
|
51 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
52 |
msgid "Brazil"
|
53 |
msgstr "Brasil"
|
54 |
|
55 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
56 |
msgid "Chile"
|
57 |
msgstr "Chile"
|
58 |
|
59 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
60 |
msgid "Colombia"
|
61 |
msgstr "Colômbia"
|
62 |
|
63 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
64 |
msgid "Mexico"
|
65 |
msgstr "México"
|
66 |
|
67 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
68 |
msgid "or"
|
69 |
msgstr "ou"
|
70 |
|
71 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
72 |
msgid "Venezuela"
|
73 |
msgstr "Venezuela"
|
74 |
|
75 |
-
#: mercadopago/mercadopago-gateway.php:
|
76 |
-
|
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:
|
88 |
-
#: mercadopago/mercadopago-gateway.php:
|
89 |
-
|
90 |
-
|
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:
|
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:
|
129 |
-
msgid "Enable
|
130 |
-
msgstr "Habilitar o
|
131 |
|
132 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
133 |
msgid "Mercado Pago Credentials"
|
134 |
msgstr "Credenciais do Mercado Pago"
|
135 |
|
136 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
137 |
msgid "You can obtain your credentials for"
|
138 |
msgstr "Você pode obter suas credenciais para"
|
139 |
|
140 |
-
#: mercadopago/mercadopago-gateway.php:
|
141 |
-
msgid "Mercado Pago
|
142 |
-
msgstr "
|
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:
|
149 |
-
msgid "Mercado Pago
|
150 |
-
msgstr "
|
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:
|
|
|
157 |
msgid "Instant Payment Notification (IPN) URL"
|
158 |
msgstr "URL de Notificações Instantâneas de Pagamento (IPN)"
|
159 |
|
160 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
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:
|
|
|
165 |
msgid "Checkout Options"
|
166 |
msgstr "Opções de Checkout"
|
167 |
|
168 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
169 |
msgid "Title"
|
170 |
msgstr "Título"
|
171 |
|
172 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
msgid "Description"
|
178 |
msgstr "Descrição"
|
179 |
|
180 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
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:
|
185 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
186 |
msgid "Pay with Mercado Pago"
|
187 |
msgstr "Pagar com Mercado Pago"
|
188 |
|
189 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
msgid "Store Category"
|
191 |
msgstr "Categoria da loja"
|
192 |
|
193 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
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:
|
|
|
198 |
msgid "Store Identificator"
|
199 |
msgstr "Identificador da Loja"
|
200 |
|
201 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
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:
|
206 |
-
|
207 |
-
"If you use your Mercado Pago account on multiple stores you should make sure "
|
208 |
-
"
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
msgid "Integration Method"
|
217 |
-
msgstr "Método de
|
218 |
|
219 |
-
#: mercadopago/mercadopago-gateway.php:
|
220 |
-
msgid ""
|
221 |
-
"
|
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:
|
230 |
msgid "iFrame"
|
231 |
msgstr "iFrame"
|
232 |
|
233 |
-
#: mercadopago/mercadopago-gateway.php:
|
234 |
msgid "Modal Window"
|
235 |
msgstr "Janela Modal"
|
236 |
|
237 |
-
#: mercadopago/mercadopago-gateway.php:
|
238 |
msgid "Redirect"
|
239 |
msgstr "Redirecionamento"
|
240 |
|
241 |
-
#: mercadopago/mercadopago-gateway.php:
|
242 |
msgid "iFrame Width"
|
243 |
msgstr "Largura do iFrame"
|
244 |
|
245 |
-
#: mercadopago/mercadopago-gateway.php:
|
246 |
msgid "iFrame Height"
|
247 |
msgstr "Altura do iFrame"
|
248 |
|
249 |
-
#: mercadopago/mercadopago-gateway.php:
|
250 |
msgid "Auto Return"
|
251 |
msgstr "Auto Retorno"
|
252 |
|
253 |
-
#: mercadopago/mercadopago-gateway.php:
|
254 |
msgid "Automatic Return After Payment"
|
255 |
msgstr "Retorno com Redirecionamento Automático"
|
256 |
|
257 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
262 |
msgid "Payment Options"
|
263 |
msgstr "Opções de Pagamento"
|
264 |
|
265 |
-
#: mercadopago/mercadopago-gateway.php:
|
266 |
msgid "Max installments"
|
267 |
msgstr "Número Máximo de Parcelamentos"
|
268 |
|
269 |
-
#: mercadopago/mercadopago-gateway.php:
|
270 |
msgid "Exclude Payment Methods"
|
271 |
msgstr "Excluir Métodos de Pagamento"
|
272 |
|
273 |
-
#: mercadopago/mercadopago-gateway.php:
|
274 |
-
msgid "
|
275 |
-
msgstr "
|
276 |
|
277 |
-
#: mercadopago/mercadopago-gateway.php:
|
278 |
-
msgid "
|
279 |
-
msgstr "
|
280 |
|
281 |
-
#: mercadopago/mercadopago-gateway.php:
|
282 |
-
msgid "
|
283 |
-
msgstr "
|
284 |
|
285 |
-
#: mercadopago/mercadopago-gateway.php:
|
286 |
-
msgid "
|
287 |
-
msgstr "
|
288 |
|
289 |
-
|
290 |
-
|
291 |
-
msgstr "Debug e Log"
|
292 |
|
293 |
-
|
294 |
-
|
295 |
-
msgstr "Habilitar Log"
|
296 |
|
297 |
-
|
298 |
-
|
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 |
-
|
305 |
-
|
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 |
-
|
313 |
-
|
314 |
-
msgstr "Cancelar & Limpar carrinho"
|
315 |
|
316 |
-
|
317 |
-
|
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 |
-
|
325 |
-
|
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 |
-
|
333 |
-
|
334 |
-
msgstr "Clique para tentar de novo"
|
335 |
|
336 |
-
|
337 |
-
|
338 |
-
msgid "Mercado Pago is Inactive"
|
339 |
-
msgstr "O Mercado Pago está inativo"
|
340 |
|
341 |
-
|
342 |
-
|
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 |
-
|
350 |
-
|
351 |
-
msgstr "Clique aqui e configure!"
|
352 |
|
353 |
-
|
354 |
-
|
355 |
-
msgstr "As moedas"
|
356 |
|
357 |
-
|
358 |
-
|
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 |
-
|
365 |
-
|
366 |
-
msgstr "Falha na Requisição do Mercado Pago"
|
367 |
|
368 |
-
|
369 |
-
|
370 |
-
msgstr "ID de Transação do Mercado Pago"
|
371 |
|
372 |
-
|
373 |
-
|
374 |
-
msgstr "Email do pagador"
|
375 |
|
376 |
-
|
377 |
-
|
378 |
-
msgstr "Tipo de pagamento"
|
379 |
|
380 |
-
|
381 |
-
|
382 |
-
msgstr "pagamento aprovado."
|
383 |
|
384 |
-
|
385 |
-
|
386 |
-
msgstr "O cliente ainda não realizou o pagamento."
|
387 |
|
388 |
-
|
389 |
-
|
390 |
-
msgstr "O pagamento está em revisão."
|
391 |
|
392 |
-
|
393 |
-
|
394 |
-
msgstr "O pagamento foi recusado. O cliente pode tentar novamente."
|
395 |
|
396 |
-
|
397 |
-
|
398 |
-
msgstr "O pagamento foi estornado ao cliente."
|
399 |
|
400 |
-
|
401 |
-
|
402 |
-
msgstr "O pagamento foi cancelado."
|
403 |
|
404 |
-
|
405 |
-
|
406 |
-
msgstr "ID de Pagamento do Mercado Pago"
|
407 |
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 > System Status > Logs"
|
433 |
+
msgstr "WooCommerce > Status de Sistema > 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 & Clear cart"
|
631 |
+
msgstr "Cancelar & 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"
|
languages/woocommerce-mercadopago-module.pot
CHANGED
@@ -1,527 +1,765 @@
|
|
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 |
-
"
|
9 |
-
"v1.0.0\n"
|
10 |
-
"POT-Creation-Date: "
|
11 |
-
"2016-03-04 17:44-0300\n"
|
12 |
"PO-Revision-Date: \n"
|
13 |
-
"
|
14 |
-
"
|
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 |
-
"
|
25 |
-
"
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
-
"
|
30 |
-
"X-
|
31 |
-
"
|
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-
|
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:
|
59 |
-
|
60 |
-
msgid ""
|
61 |
-
"Woo Mercado Pago Module "
|
62 |
-
"depends on the "
|
63 |
-
"last version of %s to "
|
64 |
-
"execute!"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: mercadopago
|
68 |
-
msgid ""
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
"
|
73 |
-
|
74 |
-
|
|
|
|
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
78 |
msgid "Argentine"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
82 |
msgid "Brazil"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
86 |
msgid "Chile"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
90 |
msgid "Colombia"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
94 |
msgid "Mexico"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: mercadopago/mercadopago-gateway.php:
|
98 |
msgid "or"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
102 |
msgid "Venezuela"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
115 |
-
|
116 |
-
"Your credentials are "
|
117 |
-
"<strong>valid</strong> "
|
118 |
-
"for"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: mercadopago/mercadopago-gateway.php:
|
122 |
-
|
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:
|
131 |
-
|
132 |
-
msgid ""
|
133 |
-
"Your credentials are "
|
134 |
-
"<strong>not valid</"
|
135 |
-
"strong>!"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: mercadopago/mercadopago-gateway.php:
|
139 |
-
|
140 |
-
#: mercadopago/mercadopago-gateway.php:208
|
141 |
-
msgid ""
|
142 |
-
"This field should be an "
|
143 |
-
"integer."
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
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:
|
163 |
-
msgid ""
|
164 |
-
"Select the max number of "
|
165 |
-
"installments for your "
|
166 |
-
"customers."
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: mercadopago/mercadopago-gateway.php:
|
170 |
-
msgid "
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: mercadopago/mercadopago-gateway.php:
|
174 |
-
msgid ""
|
175 |
-
"Enable Mercado Pago "
|
176 |
-
"Module"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: mercadopago/mercadopago-gateway.php:
|
180 |
-
msgid ""
|
181 |
-
"Mercado Pago Credentials"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: mercadopago/mercadopago-gateway.php:
|
185 |
-
msgid ""
|
186 |
-
"You can obtain your "
|
187 |
-
"credentials for"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: mercadopago/mercadopago-gateway.php:
|
191 |
-
msgid ""
|
192 |
-
"Mercado Pago Client_id"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: mercadopago/mercadopago-gateway.php:
|
196 |
-
msgid ""
|
197 |
-
"Insert your Mercado Pago "
|
198 |
-
"Client_id."
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: mercadopago/mercadopago-gateway.php:
|
202 |
-
msgid ""
|
203 |
-
"Mercado Pago "
|
204 |
-
"Client_secret"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: mercadopago/mercadopago-gateway.php:
|
208 |
-
msgid ""
|
209 |
-
"Insert your Mercado Pago "
|
210 |
-
"Client_secret."
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: mercadopago/mercadopago-gateway.php:
|
214 |
-
msgid ""
|
215 |
-
"Instant Payment "
|
216 |
-
"Notification (IPN) URL"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: mercadopago/mercadopago-gateway.php:
|
220 |
-
msgid ""
|
221 |
-
"Your IPN URL to receive "
|
222 |
-
"instant payment "
|
223 |
-
"notifications is"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: mercadopago/mercadopago-gateway.php:
|
227 |
-
msgid "
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: mercadopago/mercadopago-gateway.php:
|
231 |
-
msgid "
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: mercadopago/mercadopago-gateway.php:
|
235 |
-
msgid ""
|
236 |
-
"Title shown to the "
|
237 |
-
"client in the checkout."
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: mercadopago/mercadopago-gateway.php:
|
241 |
-
msgid "
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: mercadopago/mercadopago-gateway.php:
|
245 |
-
msgid ""
|
246 |
-
"Description shown to the "
|
247 |
-
"client in the checkout."
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: mercadopago/mercadopago-gateway.php:
|
251 |
-
|
252 |
-
msgid ""
|
253 |
-
"Pay with Mercado Pago"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
257 |
msgid "Store Category"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: mercadopago/mercadopago-gateway.php:
|
261 |
-
msgid ""
|
262 |
-
"Define which type of "
|
263 |
-
"products your store "
|
264 |
-
"sells."
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: mercadopago/mercadopago-gateway.php:
|
268 |
msgid "Store Identificator"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: mercadopago/mercadopago-gateway.php:
|
272 |
-
msgid ""
|
273 |
-
"Please, inform a prefix "
|
274 |
-
"to your store."
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
msgid "Integration Method"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
307 |
msgid "iFrame"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: mercadopago/mercadopago-gateway.php:
|
311 |
msgid "Modal Window"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: mercadopago/mercadopago-gateway.php:
|
315 |
msgid "Redirect"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: mercadopago/mercadopago-gateway.php:
|
319 |
msgid "iFrame Width"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: mercadopago/mercadopago-gateway.php:
|
323 |
msgid "iFrame Height"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: mercadopago/mercadopago-gateway.php:
|
327 |
msgid "Auto Return"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: mercadopago/mercadopago-gateway.php:
|
331 |
-
msgid ""
|
332 |
-
"Automatic Return After "
|
333 |
-
"Payment"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: mercadopago/mercadopago-gateway.php:
|
337 |
-
msgid ""
|
338 |
-
"After the payment, "
|
339 |
-
"client is automatically "
|
340 |
-
"redirected."
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: mercadopago/mercadopago-gateway.php:
|
344 |
msgid "Payment Options"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: mercadopago/mercadopago-gateway.php:
|
348 |
msgid "Max installments"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: mercadopago/mercadopago-gateway.php:
|
352 |
-
msgid ""
|
353 |
-
"Exclude Payment Methods"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: mercadopago/mercadopago-gateway.php:
|
357 |
-
msgid ""
|
358 |
-
"Test and Debug Options"
|
359 |
msgstr ""
|
360 |
|
361 |
-
#: mercadopago/mercadopago-gateway.php:
|
362 |
-
msgid ""
|
363 |
-
"Mercado Pago Sandbox"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: mercadopago/mercadopago-gateway.php:
|
367 |
-
msgid ""
|
368 |
-
"Enable Mercado Pago "
|
369 |
-
"Sandbox"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: mercadopago/mercadopago-gateway.php:
|
373 |
-
msgid ""
|
374 |
-
"This options allows you "
|
375 |
-
"to test payments inside "
|
376 |
-
"a sandbox environment."
|
377 |
msgstr ""
|
378 |
|
379 |
-
|
380 |
-
msgid "Debug and Log"
|
381 |
msgstr ""
|
382 |
|
383 |
-
|
384 |
-
msgid "Enable log"
|
385 |
msgstr ""
|
386 |
|
387 |
-
|
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 |
-
|
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 |
-
|
406 |
-
msgid ""
|
407 |
-
"Cancel order & Clear "
|
408 |
-
"cart"
|
409 |
msgstr ""
|
410 |
|
411 |
-
|
412 |
-
msgid ""
|
413 |
-
"Thank you for your "
|
414 |
-
"order. Proceed with your "
|
415 |
-
"payment completing the "
|
416 |
-
"following information."
|
417 |
msgstr ""
|
418 |
|
419 |
-
|
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 |
-
|
429 |
-
msgid "Click to try again"
|
430 |
msgstr ""
|
431 |
|
432 |
-
|
433 |
-
#: mercadopago/mercadopago-gateway.php:686
|
434 |
-
msgid ""
|
435 |
-
"Mercado Pago is Inactive"
|
436 |
msgstr ""
|
437 |
|
438 |
-
|
439 |
-
msgid ""
|
440 |
-
"Your Mercado Pago "
|
441 |
-
"credentials Client_id/"
|
442 |
-
"Client_secret appears to "
|
443 |
-
"be misconfigured."
|
444 |
msgstr ""
|
445 |
|
446 |
-
|
447 |
-
msgid ""
|
448 |
-
"Click here and configure!"
|
449 |
msgstr ""
|
450 |
|
451 |
-
|
452 |
-
msgid "The currency"
|
453 |
msgstr ""
|
454 |
|
455 |
-
|
456 |
-
msgid ""
|
457 |
-
"is not supported. "
|
458 |
-
"Supported currencies "
|
459 |
-
"are: ARS, BRL, CLP, COP, "
|
460 |
-
"MXN, USD, VEF."
|
461 |
msgstr ""
|
462 |
|
463 |
-
|
464 |
-
msgid ""
|
465 |
-
"Mercado Pago Request "
|
466 |
-
"Failure"
|
467 |
msgstr ""
|
468 |
|
469 |
-
|
470 |
-
msgid ""
|
471 |
-
"Mercado Pago Transaction "
|
472 |
-
"ID"
|
473 |
msgstr ""
|
474 |
|
475 |
-
|
476 |
-
msgid "Payer email"
|
477 |
msgstr ""
|
478 |
|
479 |
-
|
480 |
-
msgid "Payment type"
|
481 |
msgstr ""
|
482 |
|
483 |
-
|
484 |
-
msgid "Payment approved."
|
485 |
msgstr ""
|
486 |
|
487 |
-
|
488 |
-
msgid ""
|
489 |
-
"Customer haven't paid "
|
490 |
-
"yet."
|
491 |
msgstr ""
|
492 |
|
493 |
-
|
494 |
-
msgid ""
|
495 |
-
"Payment under review."
|
496 |
msgstr ""
|
497 |
|
498 |
-
|
499 |
-
msgid ""
|
500 |
-
"The payment was refused. "
|
501 |
-
"The customer can try "
|
502 |
-
"again."
|
503 |
msgstr ""
|
504 |
|
505 |
-
|
506 |
-
msgid ""
|
507 |
-
"The payment was refunded "
|
508 |
-
"to the customer."
|
509 |
msgstr ""
|
510 |
|
511 |
-
|
512 |
-
msgid ""
|
513 |
-
"The payment was "
|
514 |
-
"cancelled."
|
515 |
msgstr ""
|
516 |
|
517 |
-
|
518 |
-
msgid "Mercado Pago Payment ID"
|
519 |
msgstr ""
|
520 |
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
"
|
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 > System Status > 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 & 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 ""
|
mercadopago-module.php
CHANGED
@@ -6,9 +6,9 @@
|
|
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 [
|
10 |
-
* Version: 1.
|
11 |
-
* License:
|
12 |
* Text Domain: woocommerce-mercadopago-module
|
13 |
* Domain Path: /languages/
|
14 |
*/
|
@@ -18,24 +18,22 @@
|
|
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;
|
@@ -44,66 +42,86 @@ class WC_WooMercadoPago_Module {
|
|
44 |
// Class constructor
|
45 |
private function __construct() {
|
46 |
// load plugin text domain
|
47 |
-
add_action('init', array($this, 'load_plugin_textdomain'));
|
48 |
// verify if WooCommerce is already installed
|
49 |
-
if (class_exists('WC_Payment_Gateway')) {
|
50 |
include_once 'mercadopago/mercadopago-gateway.php';
|
51 |
-
|
|
|
|
|
|
|
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 |
-
|
69 |
-
|
70 |
-
'<a href="http://wordpress.org/extend/plugins/woocommerce/">' . 'WooCommerce' . '</a>'
|
71 |
) .
|
72 |
'</p></div>';
|
73 |
}
|
74 |
-
|
75 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
86 |
-
|
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 |
-
//
|
99 |
-
function
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
}
|
106 |
-
|
|
|
107 |
|
108 |
endif;
|
109 |
|
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 [https://www.mercadopago.com]
|
10 |
+
* Version: 2.1.3
|
11 |
+
* License: https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
12 |
* Text Domain: woocommerce-mercadopago-module
|
13 |
* Domain Path: /languages/
|
14 |
*/
|
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 |
+
// WooCommerce MercadoPago Module main class
|
|
|
|
|
31 |
class WC_WooMercadoPago_Module {
|
32 |
|
33 |
// Singleton design pattern
|
34 |
protected static $instance = null;
|
35 |
public static function initMercadoPagoGatewayClass() {
|
36 |
+
if ( null == self::$instance ) {
|
37 |
self::$instance = new self;
|
38 |
}
|
39 |
return self::$instance;
|
42 |
// Class constructor
|
43 |
private function __construct() {
|
44 |
// load plugin text domain
|
45 |
+
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
|
46 |
// verify if WooCommerce is already installed
|
47 |
+
if ( class_exists( 'WC_Payment_Gateway' ) ) {
|
48 |
include_once 'mercadopago/mercadopago-gateway.php';
|
49 |
+
include_once 'mercadopago/mercadopago-custom-gateway.php';
|
50 |
+
include_once 'mercadopago/mercadopago-ticket-gateway.php';
|
51 |
+
add_filter( 'woocommerce_payment_gateways', array( $this, 'addGateway' ) );
|
52 |
+
add_filter( 'woomercadopago_settings_link_' . plugin_basename( __FILE__ ), array( $this, 'woomercadopago_settings_link' ) );
|
53 |
} else {
|
54 |
+
add_action( 'admin_notices', array( $this, 'notifyWooCommerceMiss' ) );
|
55 |
}
|
56 |
}
|
57 |
+
|
58 |
// As well as defining your class, you need to also tell WooCommerce (WC) that
|
59 |
// it exists. Do this by filtering woocommerce_payment_gateways.
|
60 |
+
public function addGateway( $methods ) {
|
61 |
$methods[] = 'WC_WooMercadoPago_Gateway';
|
62 |
+
$methods[] = 'WC_WooMercadoPagoCustom_Gateway';
|
63 |
+
$methods[] = 'WC_WooMercadoPagoTicket_Gateway';
|
64 |
return $methods;
|
65 |
}
|
66 |
+
|
67 |
// Places a warning error to notify user that WooCommerce is missing
|
68 |
public function notifyWooCommerceMiss() {
|
69 |
echo
|
70 |
+
'<div class="error"><p>' . sprintf(
|
71 |
+
__( 'Woo Mercado Pago Module depends on the last version of %s to execute!', 'woocommerce-mercadopago-module' ),
|
72 |
+
'<a href="https://wordpress.org/extend/plugins/woocommerce/">' . 'WooCommerce' . '</a>'
|
|
|
73 |
) .
|
74 |
'</p></div>';
|
75 |
}
|
76 |
+
|
77 |
+
// Multi-language plugin
|
78 |
+
public function load_plugin_textdomain() {
|
79 |
+
$locale = apply_filters( 'plugin_locale', get_locale(), 'woocommerce-mercadopago-module' );
|
80 |
+
load_textdomain(
|
81 |
+
'woocommerce-mercadopago-module',
|
82 |
+
trailingslashit(WP_LANG_DIR ) . 'woocommerce-mercadopago-module/woocommerce-mercadopago-module-' . $locale . '.mo'
|
83 |
+
);
|
84 |
+
load_plugin_textdomain( 'woocommerce-mercadopago-module', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
85 |
+
}
|
86 |
+
|
87 |
public static function woocommerceInstance() {
|
88 |
+
if ( function_exists( 'WC' ) ) {
|
89 |
return WC();
|
90 |
} else {
|
91 |
global $woocommerce;
|
92 |
return $woocommerce;
|
93 |
}
|
94 |
}
|
95 |
+
|
96 |
+
public static function getTemplatesPath() {
|
97 |
+
return plugin_dir_path( __FILE__ ) . 'templates/';
|
|
|
|
|
|
|
98 |
}
|
99 |
+
|
100 |
}
|
101 |
+
|
102 |
// Payment gateways should be created as additional plugins that hook into WooCommerce.
|
103 |
// Inside the plugin, you need to create a class after plugins are loaded
|
104 |
+
add_action( 'plugins_loaded', array( 'WC_WooMercadoPago_Module', 'initMercadoPagoGatewayClass' ), 0 );
|
105 |
+
|
106 |
+
// Add settings link on plugin page
|
107 |
+
function woomercadopago_settings_link( $links ) {
|
108 |
+
$plugin_links = array();
|
109 |
+
$plugin_links[] = '<a href="' . esc_url( admin_url(
|
110 |
+
'admin.php?page=wc-settings&tab=checkout§ion=WC_WooMercadoPago_Gateway' ) ) . '">' .
|
111 |
+
__( 'Basic Checkout', 'woocommerce-mercadopago-module' ) .
|
112 |
+
'</a>';
|
113 |
+
$plugin_links[] = '<a href="' . esc_url( admin_url(
|
114 |
+
'admin.php?page=wc-settings&tab=checkout§ion=WC_WooMercadoPagoCustom_Gateway' ) ) . '">' .
|
115 |
+
__( 'Custom Checkout', 'woocommerce-mercadopago-module' ) .
|
116 |
+
'</a>';
|
117 |
+
$plugin_links[] = '<a href="' . esc_url( admin_url(
|
118 |
+
'admin.php?page=wc-settings&tab=checkout§ion=WC_WooMercadoPagoTicket_Gateway' ) ) . '">' .
|
119 |
+
__( 'Ticket', 'woocommerce-mercadopago-module' ) .
|
120 |
+
'</a>';
|
121 |
+
return array_merge( $plugin_links, $links );
|
122 |
}
|
123 |
+
$plugin = plugin_basename( __FILE__ );
|
124 |
+
add_filter( "plugin_action_links_$plugin", 'woomercadopago_settings_link' );
|
125 |
|
126 |
endif;
|
127 |
|
mercadopago/mercadopago-custom-gateway.php
ADDED
@@ -0,0 +1,1228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
|
7 |
+
* License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
8 |
+
*/
|
9 |
+
|
10 |
+
// This include Mercado Pago library SDK
|
11 |
+
require_once "sdk/lib/mercadopago.php";
|
12 |
+
|
13 |
+
// Extending from WooCommerce Payment Gateway class.
|
14 |
+
// This extension implements the custom checkout.
|
15 |
+
class WC_WooMercadoPagoCustom_Gateway extends WC_Payment_Gateway {
|
16 |
+
|
17 |
+
// This array stores each banner image, depending on the country it belongs to or on
|
18 |
+
// the type of checkout we use.
|
19 |
+
private $banners_mercadopago_credit = array(
|
20 |
+
"MLA" => 'MLA/credit_card.png',
|
21 |
+
"MLB" => 'MLB/credit_card.png',
|
22 |
+
"MCO" => 'MCO/credit_card.png',
|
23 |
+
"MLC" => 'MLC/credit_card.png',
|
24 |
+
"MPE" => 'MPE/credit_card.png',
|
25 |
+
"MLV" => 'MLV/credit_card.png',
|
26 |
+
"MLM" => 'MLM/credit_card.png'
|
27 |
+
);
|
28 |
+
|
29 |
+
// Sponsor ID array by country
|
30 |
+
private $sponsor_id = array(
|
31 |
+
"MLA" => '208682286',
|
32 |
+
"MLB" => '208686191',
|
33 |
+
"MCO" => '208687643',
|
34 |
+
"MLC" => '208690789',
|
35 |
+
"MPE" => '216998692',
|
36 |
+
"MLV" => '208692735',
|
37 |
+
"MLM" => '208692380'
|
38 |
+
);
|
39 |
+
|
40 |
+
// Required inherited method from WC_Payment_Gateway class: __construct.
|
41 |
+
// Please check:
|
42 |
+
// [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
|
43 |
+
// for documentation and further information.
|
44 |
+
public function __construct() {
|
45 |
+
|
46 |
+
// These fields are declared because we use them dinamically in our gateway class.
|
47 |
+
$this->mp = null;
|
48 |
+
$this->domain = get_site_url() . '/index.php';
|
49 |
+
$this->currency_ratio = -1;
|
50 |
+
$this->site_id = null;
|
51 |
+
$this->isTestUser = false;
|
52 |
+
$this->store_categories_id = array();
|
53 |
+
$this->store_categories_description = array();
|
54 |
+
|
55 |
+
// Within your constructor, you should define the following variables.
|
56 |
+
$this->id = 'woocommerce-mercadopago-custom-module';
|
57 |
+
$this->method_title = __( 'Mercado Pago - Credit Card', 'woocommerce-mercadopago-module' );
|
58 |
+
$this->method_description = '<img width="200" height="52" src="' .
|
59 |
+
plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
|
60 |
+
wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
|
61 |
+
'</strong>';
|
62 |
+
|
63 |
+
// These fields are used in our Mercado Pago Module configuration page.
|
64 |
+
$this->public_key = $this->get_option( 'public_key' );
|
65 |
+
$this->access_token = $this->get_option( 'access_token' );
|
66 |
+
$this->title = $this->get_option( 'title' );
|
67 |
+
$this->description = $this->get_option( 'description' );
|
68 |
+
$this->statement_descriptor = $this->get_option( 'statement_descriptor' );
|
69 |
+
$this->coupon_mode = $this->get_option( 'coupon_mode' );
|
70 |
+
$this->binary_mode = $this->get_option( 'binary_mode' );
|
71 |
+
$this->category_id = $this->get_option( 'category_id' );
|
72 |
+
$this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
|
73 |
+
$this->currency_conversion = $this->get_option('currency_conversion', false);
|
74 |
+
$this->sandbox = $this->get_option( 'sandbox', false );
|
75 |
+
$this->debug = $this->get_option( 'debug', false );
|
76 |
+
|
77 |
+
// Render our configuration page and init/load fields.
|
78 |
+
$this->init_form_fields();
|
79 |
+
$this->init_settings();
|
80 |
+
|
81 |
+
// Hook actions for WordPress.
|
82 |
+
add_action( // Used by IPN to receive IPN incomings.
|
83 |
+
'woocommerce_api_wc_woomercadopagocustom_gateway',
|
84 |
+
array($this, 'process_http_request')
|
85 |
+
);
|
86 |
+
add_action( // Used by IPN to process valid incomings.
|
87 |
+
'valid_mercadopagocustom_ipn_request',
|
88 |
+
array($this, 'successful_request')
|
89 |
+
);
|
90 |
+
add_action( // Used in settings page to hook "save settings" action.
|
91 |
+
'woocommerce_update_options_payment_gateways_' . $this->id,
|
92 |
+
array( $this, 'process_admin_options' )
|
93 |
+
);
|
94 |
+
add_action( // Scripts for custom checkout
|
95 |
+
'wp_enqueue_scripts',
|
96 |
+
array( $this, 'customCheckoutScripts' )
|
97 |
+
);
|
98 |
+
add_action( // Apply the discounts
|
99 |
+
'woocommerce_cart_calculate_fees',
|
100 |
+
array( $this, 'add_discount_custom' ), 10
|
101 |
+
);
|
102 |
+
|
103 |
+
// Verify if public_key or client_secret is empty.
|
104 |
+
if ( ( empty( $this->public_key ) || empty( $this->access_token ) ) && $this->settings[ 'enabled' ] == 'yes' ) {
|
105 |
+
add_action( 'admin_notices', array( $this, 'credentialsMissingMessage' ) );
|
106 |
+
} else {
|
107 |
+
add_action( // Verify if SSL is supported.
|
108 |
+
'admin_notices', array( $this, 'checkSSLAbsence' )
|
109 |
+
);
|
110 |
+
}
|
111 |
+
|
112 |
+
// Logging and debug.
|
113 |
+
if ( 'yes' == $this->debug ) {
|
114 |
+
if ( class_exists( 'WC_Logger' ) ) {
|
115 |
+
$this->log = new WC_Logger();
|
116 |
+
} else {
|
117 |
+
$this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
|
118 |
+
}
|
119 |
+
}
|
120 |
+
|
121 |
+
}
|
122 |
+
|
123 |
+
// Required inherited method from WC_Payment_Gateway class: init_form_fields.
|
124 |
+
// Initialise Gateway settings form fields with a customized page.
|
125 |
+
public function init_form_fields() {
|
126 |
+
|
127 |
+
if ( 'yes' == $this->settings[ 'enabled' ] ) {
|
128 |
+
$api_secret_locale = sprintf(
|
129 |
+
'<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
130 |
+
'<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
131 |
+
'<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
132 |
+
'<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
133 |
+
'<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
134 |
+
'<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a> %s ' .
|
135 |
+
'<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
|
136 |
+
__( 'Argentine', 'woocommerce-mercadopago-module' ),
|
137 |
+
__( 'Brazil', 'woocommerce-mercadopago-module' ),
|
138 |
+
__( 'Chile', 'woocommerce-mercadopago-module' ),
|
139 |
+
__( 'Colombia', 'woocommerce-mercadopago-module' ),
|
140 |
+
__( 'Mexico', 'woocommerce-mercadopago-module' ),
|
141 |
+
__( 'Peru', 'woocommerce-mercadopago-module' ),
|
142 |
+
__( 'or', 'woocommerce-mercadopago-module' ),
|
143 |
+
__( 'Venezuela', 'woocommerce-mercadopago-module' )
|
144 |
+
);
|
145 |
+
|
146 |
+
// Trigger API to get payment methods and site_id, also validates public_key/access_token.
|
147 |
+
if ( $this->validateCredentials() ) {
|
148 |
+
try {
|
149 |
+
// checking the currency
|
150 |
+
$this->currency_message = "";
|
151 |
+
if ( !$this->isSupportedCurrency() && 'yes' == $this->settings[ 'enabled' ] ) {
|
152 |
+
if ( $this->currency_conversion == 'no' ) {
|
153 |
+
$this->currency_ratio = -1;
|
154 |
+
$this->currency_message .= '<img width="12" height="12" src="' .
|
155 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
156 |
+
' ' . __( 'ATTENTION: The currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
|
157 |
+
' ' . __( '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' ) .
|
158 |
+
' ' . $this->getCurrencyId( $this->site_id ) . ' (' . $this->getCountryName( $this->site_id ) . ').' .
|
159 |
+
' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
|
160 |
+
} else if ( $this->currency_conversion == 'yes' && $this->currency_ratio != -1 ) {
|
161 |
+
$this->currency_message .= '<img width="12" height="12" src="' .
|
162 |
+
plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
163 |
+
' ' . __( 'CURRENCY CONVERTED: The currency conversion ratio from', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
|
164 |
+
' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . __( ' is: ', 'woocommerce-mercadopago-module' ) . $this->currency_ratio . ".";
|
165 |
+
} else {
|
166 |
+
$this->currency_ratio = -1;
|
167 |
+
$this->currency_message .= '<img width="12" height="12" src="' .
|
168 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
169 |
+
' ' . __( 'ERROR: It was not possible to convert the unsupported currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
|
170 |
+
' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . '.' .
|
171 |
+
' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
|
172 |
+
}
|
173 |
+
} else {
|
174 |
+
$this->currency_ratio = -1;
|
175 |
+
}
|
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 . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
|
181 |
+
} catch ( MercadoPagoException $e ) {
|
182 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
183 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
184 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
185 |
+
}
|
186 |
+
} else {
|
187 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
188 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
189 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
190 |
+
}
|
191 |
+
|
192 |
+
// Fills categoy selector. We do not need credentials to make this call.
|
193 |
+
$categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
|
194 |
+
foreach ( $categories[ "response" ] as $category ) {
|
195 |
+
array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
|
196 |
+
array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
|
197 |
+
}
|
198 |
+
}
|
199 |
+
|
200 |
+
if ( 'yes' == $this->settings[ 'enabled' ] ) {
|
201 |
+
// This array draws each UI (text, selector, checkbox, label, etc).
|
202 |
+
$this->form_fields = array(
|
203 |
+
'enabled' => array(
|
204 |
+
'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
|
205 |
+
'type' => 'checkbox',
|
206 |
+
'label' => __( 'Enable Custom Checkout', 'woocommerce-mercadopago-module' ),
|
207 |
+
'default' => 'yes'
|
208 |
+
),
|
209 |
+
'credentials_title' => array(
|
210 |
+
'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
|
211 |
+
'type' => 'title',
|
212 |
+
'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
|
213 |
+
),
|
214 |
+
'public_key' => array(
|
215 |
+
'title' => 'Public key',
|
216 |
+
'type' => 'text',
|
217 |
+
'description' => __( 'Insert your Mercado Pago Public key.', 'woocommerce-mercadopago-module' ),
|
218 |
+
'default' => '',
|
219 |
+
'required' => true
|
220 |
+
),
|
221 |
+
'access_token' => array(
|
222 |
+
'title' => 'Access token',
|
223 |
+
'type' => 'text',
|
224 |
+
'description' => __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
|
225 |
+
'default' => '',
|
226 |
+
'required' => true
|
227 |
+
),
|
228 |
+
'ipn_url' => array(
|
229 |
+
'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
|
230 |
+
'type' => 'title',
|
231 |
+
'description' => sprintf( __( 'Your IPN URL to receive instant payment notifications is', 'woocommerce-mercadopago-module' ) . '<br>%s', '<code>' . $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway' . '</code>.' )
|
232 |
+
),
|
233 |
+
'checkout_options_title' => array(
|
234 |
+
'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
|
235 |
+
'type' => 'title',
|
236 |
+
'description' => ''
|
237 |
+
),
|
238 |
+
'title' => array(
|
239 |
+
'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
|
240 |
+
'type' => 'text',
|
241 |
+
'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
242 |
+
'default' => __( 'Mercado Pago - Credit Card', 'woocommerce-mercadopago-module' )
|
243 |
+
),
|
244 |
+
'description' => array(
|
245 |
+
'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
|
246 |
+
'type' => 'textarea',
|
247 |
+
'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
248 |
+
'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
|
249 |
+
),
|
250 |
+
'statement_descriptor' => array(
|
251 |
+
'title' => __( 'Statement Descriptor', 'woocommerce-mercadopago-module' ),
|
252 |
+
'type' => 'text',
|
253 |
+
'description' => __( 'The description that will be shown in your customer\'s invoice.', 'woocommerce-mercadopago-module' ),
|
254 |
+
'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
|
255 |
+
),
|
256 |
+
'coupon_mode' => array(
|
257 |
+
'title' => __( 'Coupons', 'woocommerce-mercadopago-module' ),
|
258 |
+
'type' => 'checkbox',
|
259 |
+
'label' => __( 'Enable coupons of discounts', 'woocommerce-mercadopago-module' ),
|
260 |
+
'default' => 'no',
|
261 |
+
'description' => __( 'If there is a Mercado Pago campaign, allow your store to give discounts to customers.', 'woocommerce-mercadopago-module' )
|
262 |
+
),
|
263 |
+
'binary_mode' => array(
|
264 |
+
'title' => __( 'Binary Mode', 'woocommerce-mercadopago-module' ),
|
265 |
+
'type' => 'checkbox',
|
266 |
+
'label' => __( 'Enable binary mode for checkout status', 'woocommerce-mercadopago-module' ),
|
267 |
+
'default' => 'no',
|
268 |
+
'description' => __( 'When charging a credit card, only [approved] or [reject] status will be taken.', 'woocommerce-mercadopago-module' )
|
269 |
+
),
|
270 |
+
'category_id' => array(
|
271 |
+
'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
|
272 |
+
'type' => 'select',
|
273 |
+
'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
|
274 |
+
'options' => $this->store_categories_id
|
275 |
+
),
|
276 |
+
'invoice_prefix' => array(
|
277 |
+
'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
|
278 |
+
'type' => 'text',
|
279 |
+
'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' ),
|
280 |
+
'default' => 'WC-'
|
281 |
+
),
|
282 |
+
'currency_conversion' => array(
|
283 |
+
'title' => __( 'Currency Conversion', 'woocommerce-mercadopago-module' ),
|
284 |
+
'type' => 'checkbox',
|
285 |
+
'label' => __( 'If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio', 'woocommerce-mercadopago-module' ),
|
286 |
+
'default' => 'no',
|
287 |
+
'description' => sprintf( '%s', $this->currency_message )
|
288 |
+
),
|
289 |
+
'testing' => array(
|
290 |
+
'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
|
291 |
+
'type' => 'title',
|
292 |
+
'description' => ''
|
293 |
+
),
|
294 |
+
'sandbox' => array(
|
295 |
+
'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
|
296 |
+
'type' => 'checkbox',
|
297 |
+
'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
|
298 |
+
'default' => 'no',
|
299 |
+
'description' => __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
|
300 |
+
),
|
301 |
+
'debug' => array(
|
302 |
+
'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
|
303 |
+
'type' => 'checkbox',
|
304 |
+
'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
|
305 |
+
'default' => 'no',
|
306 |
+
'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
|
307 |
+
' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
|
308 |
+
'<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
|
309 |
+
)
|
310 |
+
);
|
311 |
+
} else {
|
312 |
+
$this->form_fields = array(
|
313 |
+
'enabled' => array(
|
314 |
+
'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
|
315 |
+
'type' => 'checkbox',
|
316 |
+
'label' => __( 'Enable Custom Checkout', 'woocommerce-mercadopago-module' ),
|
317 |
+
'default' => 'yes'
|
318 |
+
)
|
319 |
+
);
|
320 |
+
}
|
321 |
+
|
322 |
+
}
|
323 |
+
|
324 |
+
public function admin_options() {
|
325 |
+
if ( count( $this->errors ) > 0 ) {
|
326 |
+
$this->display_errors();
|
327 |
+
return false;
|
328 |
+
} else {
|
329 |
+
echo wpautop( $this->method_description );
|
330 |
+
?>
|
331 |
+
<p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
|
332 |
+
<?php esc_html_e( sprintf( __( 'Please, rate us %s on WordPress.org and give your feedback to help improve this module!', 'woocommerce-mercadopago-module' ), '★★★★★' ) ); ?>
|
333 |
+
</a></p>
|
334 |
+
<table class="form-table">
|
335 |
+
<?php $this->generate_settings_html(); ?>
|
336 |
+
</table>
|
337 |
+
<?php
|
338 |
+
return true;
|
339 |
+
}
|
340 |
+
}
|
341 |
+
|
342 |
+
/*
|
343 |
+
* ========================================================================
|
344 |
+
* CHECKOUT BUSINESS RULES
|
345 |
+
* ========================================================================
|
346 |
+
*/
|
347 |
+
|
348 |
+
public function customCheckoutScripts() {
|
349 |
+
if ( is_checkout() && $this->is_available() ) {
|
350 |
+
if ( !get_query_var( 'order-received' ) ) {
|
351 |
+
wp_enqueue_style(
|
352 |
+
'woocommerce-mercadopago-style', plugins_url(
|
353 |
+
'assets/css/custom_checkout_mercadopago.css',
|
354 |
+
plugin_dir_path( __FILE__ ) ) );
|
355 |
+
wp_enqueue_script(
|
356 |
+
'woocommerce-mercadopago-v1',
|
357 |
+
'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js' );
|
358 |
+
}
|
359 |
+
}
|
360 |
+
}
|
361 |
+
|
362 |
+
public function payment_fields() {
|
363 |
+
$amount = $this->get_order_total();
|
364 |
+
|
365 |
+
$parameters = array(
|
366 |
+
'public_key' => $this->public_key,
|
367 |
+
'site_id' => $this->site_id,
|
368 |
+
'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
|
369 |
+
'banner_path' => plugins_url( 'images/' .
|
370 |
+
$this->banners_mercadopago_credit[ $this->site_id ], plugin_dir_path( __FILE__ ) ),
|
371 |
+
'amount' => $amount * ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ),
|
372 |
+
'coupon_mode' => $this->coupon_mode,
|
373 |
+
'is_currency_conversion' => $this->currency_ratio,
|
374 |
+
'woocommerce_currency' => get_woocommerce_currency(),
|
375 |
+
'account_currency' => $this->getCurrencyId( $this->site_id ),
|
376 |
+
'discount_action_url' => $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway',
|
377 |
+
'form_labels' => array(
|
378 |
+
"form" => array(
|
379 |
+
"payment_converted" => __("Payment converted from", "woocommerce-mercadopago-module" ),
|
380 |
+
"to" => __("to", "woocommerce-mercadopago-module" ),
|
381 |
+
"coupon_empty" => __( "Please, inform your coupon code", "woocommerce-mercadopago-module" ),
|
382 |
+
'apply' => __( "Apply", "woocommerce-mercadopago-module" ),
|
383 |
+
'remove' => __( "Remove", "woocommerce-mercadopago-module" ),
|
384 |
+
'discount_info1' => __( "You will save", "woocommerce-mercadopago-module" ),
|
385 |
+
'discount_info2' => __( "with discount from", "woocommerce-mercadopago-module" ),
|
386 |
+
'discount_info3' => __( "Total of your purchase:", "woocommerce-mercadopago-module" ),
|
387 |
+
'discount_info4' => __( "Total of your purchase with discount:", "woocommerce-mercadopago-module" ),
|
388 |
+
'discount_info5' => __( "*Uppon payment approval", "woocommerce-mercadopago-module" ),
|
389 |
+
'discount_info6' => __( "Terms and Conditions of Use", "woocommerce-mercadopago-module" ),
|
390 |
+
'coupon_of_discounts' => __( "Discount Coupon", "woocommerce-mercadopago-module" ),
|
391 |
+
'label_other_bank' => __( "Other Bank", "woocommerce-mercadopago-module" ),
|
392 |
+
'label_choose' => __( "Choose", "woocommerce-mercadopago-module" ),
|
393 |
+
"your_card" => __( "Your Card", 'woocommerce-mercadopago-module' ),
|
394 |
+
"other_cards" => __( "Other Cards", 'woocommerce-mercadopago-module' ),
|
395 |
+
"other_card" => __( "Other Card", 'woocommerce-mercadopago-module' ),
|
396 |
+
"ended_in" => __( "ended in", 'woocommerce-mercadopago-module' ),
|
397 |
+
"card_holder_placeholder" => __( " as it appears in your card ...", 'woocommerce-mercadopago-module' ),
|
398 |
+
"payment_method" => __( "Payment Method", 'woocommerce-mercadopago-module' ),
|
399 |
+
"credit_card_number" => __( "Credit card number", 'woocommerce-mercadopago-module' ),
|
400 |
+
"expiration_month" => __( "Expiration month", 'woocommerce-mercadopago-module' ),
|
401 |
+
"expiration_year" => __( "Expiration year", 'woocommerce-mercadopago-module' ),
|
402 |
+
"year" => __( "Year", 'woocommerce-mercadopago-module' ),
|
403 |
+
"month" => __( "Month", 'woocommerce-mercadopago-module' ),
|
404 |
+
"card_holder_name" => __( "Card holder name", 'woocommerce-mercadopago-module' ),
|
405 |
+
"security_code" => __( "Security code", 'woocommerce-mercadopago-module' ),
|
406 |
+
"document_type" => __( "Document Type", 'woocommerce-mercadopago-module' ),
|
407 |
+
"document_number" => __( "Document number", 'woocommerce-mercadopago-module' ),
|
408 |
+
"issuer" => __( "Issuer", 'woocommerce-mercadopago-module' ),
|
409 |
+
"installments" => __( "Installments", 'woocommerce-mercadopago-module' )
|
410 |
+
),
|
411 |
+
"error" => array(
|
412 |
+
//card number
|
413 |
+
"205" => __( "Parameter cardNumber can not be null/empty", 'woocommerce-mercadopago-module' ),
|
414 |
+
"E301" => __( "Invalid Card Number", 'woocommerce-mercadopago-module' ),
|
415 |
+
//expiration date
|
416 |
+
"208" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
|
417 |
+
"209" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
|
418 |
+
"325" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
|
419 |
+
"326" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
|
420 |
+
//card holder name
|
421 |
+
"221" => __( "Parameter cardholderName can not be null/empty", 'woocommerce-mercadopago-module' ),
|
422 |
+
"316" => __( "Invalid Card Holder Name", 'woocommerce-mercadopago-module' ),
|
423 |
+
//security code
|
424 |
+
"224" => __( "Parameter securityCode can not be null/empty", 'woocommerce-mercadopago-module' ),
|
425 |
+
"E302" => __( "Invalid Security Code", 'woocommerce-mercadopago-module' ),
|
426 |
+
//doc type
|
427 |
+
"212" => __( "Parameter docType can not be null/empty", 'woocommerce-mercadopago-module' ),
|
428 |
+
"322" => __( "Invalid Document Type", 'woocommerce-mercadopago-module' ),
|
429 |
+
//doc number
|
430 |
+
"214" => __( "Parameter docNumber can not be null/empty", 'woocommerce-mercadopago-module' ),
|
431 |
+
"324" => __( "Invalid Document Number", 'woocommerce-mercadopago-module' ),
|
432 |
+
//doc sub type
|
433 |
+
"213" => __( "The parameter cardholder.document.subtype can not be null or empty", 'woocommerce-mercadopago-module' ),
|
434 |
+
"323" => __( "Invalid Document Sub Type", 'woocommerce-mercadopago-module' ),
|
435 |
+
//issuer
|
436 |
+
"220" => __( "Parameter cardIssuerId can not be null/empty", 'woocommerce-mercadopago-module' )
|
437 |
+
)
|
438 |
+
)
|
439 |
+
);
|
440 |
+
|
441 |
+
try { // find logged user
|
442 |
+
if ( wp_get_current_user()->ID != 0 ) {
|
443 |
+
$logged_user_email = wp_get_current_user()->user_email;
|
444 |
+
$customer = $this->mp->get_or_create_customer( $logged_user_email );
|
445 |
+
$customer_cards = $customer[ 'cards' ];
|
446 |
+
$parameters[ 'customerId' ] = $customer[ 'id' ];
|
447 |
+
$parameters[ 'customer_cards' ] = $customer_cards;
|
448 |
+
}
|
449 |
+
} catch ( Exception $e ) {
|
450 |
+
if ( 'yes' == $this->debug ) {
|
451 |
+
$this->log->add( $this->id, $this->id .
|
452 |
+
': @[process_fields] - There is a problem when retrieving information for cards: ' .
|
453 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) )
|
454 |
+
);
|
455 |
+
}
|
456 |
+
}
|
457 |
+
|
458 |
+
wc_get_template(
|
459 |
+
'credit-card/payment-form.php',
|
460 |
+
$parameters,
|
461 |
+
'woocommerce/mercadopago/',
|
462 |
+
WC_WooMercadoPago_Module::getTemplatesPath()
|
463 |
+
);
|
464 |
+
}
|
465 |
+
|
466 |
+
// This function is called after we click on [place_order] button, and each field is passed to this
|
467 |
+
// function through $_POST variable.
|
468 |
+
public function process_payment( $order_id ) {
|
469 |
+
$order = new WC_Order( $order_id );
|
470 |
+
// we have got parameters from checkout page, now its time to charge the card
|
471 |
+
if ( 'yes' == $this->debug ) {
|
472 |
+
$this->log->add( $this->id, $this->id .
|
473 |
+
': @[process_payment] - Received [$_POST] from customer front-end page: ' .
|
474 |
+
json_encode( $_POST, JSON_PRETTY_PRINT ) );
|
475 |
+
}
|
476 |
+
// Mexico country case
|
477 |
+
if ( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] == "" || empty( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) ) {
|
478 |
+
$_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] = $_POST[ 'mercadopago_custom' ][ 'paymentMethodSelector' ];
|
479 |
+
}
|
480 |
+
if ( isset( $_POST[ 'mercadopago_custom' ][ 'amount' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'amount' ] ) &&
|
481 |
+
isset( $_POST[ 'mercadopago_custom' ][ 'token' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'token' ] ) &&
|
482 |
+
isset( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) &&
|
483 |
+
isset( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) &&
|
484 |
+
$_POST[ 'mercadopago_custom' ][ 'installments' ] != -1 ) {
|
485 |
+
$post = $_POST;
|
486 |
+
$response = $this->createUrl( $order, $post );
|
487 |
+
if ( array_key_exists( 'status', $response ) ) {
|
488 |
+
switch ( $response[ 'status' ] ) {
|
489 |
+
case 'approved':
|
490 |
+
WC()->cart->empty_cart();
|
491 |
+
wc_add_notice(
|
492 |
+
'<p>' . __( $this->getOrderStatus( 'accredited' ), 'woocommerce-mercadopago-module') . '</p>',
|
493 |
+
'notice'
|
494 |
+
);
|
495 |
+
$order->add_order_note(
|
496 |
+
'Mercado Pago: ' .
|
497 |
+
__( 'Payment approved.', 'woocommerce-mercadopago-module' )
|
498 |
+
);
|
499 |
+
return array(
|
500 |
+
'result' => 'success',
|
501 |
+
'redirect' => $order->get_checkout_order_received_url()
|
502 |
+
);
|
503 |
+
break;
|
504 |
+
case 'pending':
|
505 |
+
// order approved/pending, we just redirect to the thankyou page
|
506 |
+
return array(
|
507 |
+
'result' => 'success',
|
508 |
+
'redirect' => $order->get_checkout_order_received_url()
|
509 |
+
);
|
510 |
+
break;
|
511 |
+
case 'in_process':
|
512 |
+
// for pending, we don't know if the purchase will be made, so we must inform this status
|
513 |
+
WC()->cart->empty_cart();
|
514 |
+
wc_add_notice(
|
515 |
+
'<p>' . __( $this->getOrderStatus( $response[ 'status_detail' ] ), 'woocommerce-mercadopago-module') . '</p>' .
|
516 |
+
'<p><a class="button" href="' . esc_url( $order->get_checkout_order_received_url() ) . '">' .
|
517 |
+
__( 'Check your order resume', 'woocommerce-mercadopago-module' ) .
|
518 |
+
'</a></p>',
|
519 |
+
'notice'
|
520 |
+
);
|
521 |
+
return array(
|
522 |
+
'result' => 'success',
|
523 |
+
'redirect' => $order->get_checkout_payment_url( true )
|
524 |
+
);
|
525 |
+
break;
|
526 |
+
case 'rejected':
|
527 |
+
// if rejected is received, the order will not proceed until another payment try,
|
528 |
+
// so we must inform this status
|
529 |
+
wc_add_notice(
|
530 |
+
'<p>' . __( 'Your payment was refused. You can try again.', 'woocommerce-mercadopago-module' ) .
|
531 |
+
'<br>' . __( $this->getOrderStatus( $response[ 'status_detail' ] ), 'woocommerce-mercadopago-module') . '</p>' .
|
532 |
+
'<p><a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
|
533 |
+
__( 'Click to try again', 'woocommerce-mercadopago-module' ) .
|
534 |
+
'</a></p>',
|
535 |
+
'error'
|
536 |
+
);
|
537 |
+
return array(
|
538 |
+
'result' => 'success',
|
539 |
+
'redirect' => $order->get_checkout_payment_url( true )
|
540 |
+
);
|
541 |
+
break;
|
542 |
+
case 'cancelled':
|
543 |
+
case 'in_mediation':
|
544 |
+
case 'charged-back':
|
545 |
+
break;
|
546 |
+
default:
|
547 |
+
break;
|
548 |
+
}
|
549 |
+
}
|
550 |
+
} else {
|
551 |
+
// process when fields are imcomplete
|
552 |
+
wc_add_notice(
|
553 |
+
'<p>' . __( 'A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?', 'woocommerce-mercadopago-module' ) . '</p>',
|
554 |
+
'error'
|
555 |
+
);
|
556 |
+
}
|
557 |
+
}
|
558 |
+
|
559 |
+
protected function createUrl( $order, $post_from_form ) {
|
560 |
+
|
561 |
+
// Checks for sandbox mode
|
562 |
+
if ( 'yes' == $this->sandbox ) {
|
563 |
+
$this->mp->sandbox_mode( true );
|
564 |
+
if ( 'yes' == $this->debug ) {
|
565 |
+
$this->log->add( $this->id, $this->id . ': @[createUrl] - sandbox mode is enabled' );
|
566 |
+
}
|
567 |
+
} else {
|
568 |
+
$this->mp->sandbox_mode( false );
|
569 |
+
}
|
570 |
+
|
571 |
+
// Creates the order parameters by checking the cart configuration
|
572 |
+
$preferences = $this->createPreferences( $order, $post_from_form );
|
573 |
+
try {
|
574 |
+
// Create order preferences with Mercado Pago API request
|
575 |
+
$checkout_info = $this->mp->post( "/v1/payments", json_encode( $preferences ) );
|
576 |
+
if ( 'yes' == $this->debug ) {
|
577 |
+
$this->log->add( $this->id, $this->id .
|
578 |
+
': @[createUrl] - Received [$checkout_info] from Mercado Pago API: ' .
|
579 |
+
json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
|
580 |
+
}
|
581 |
+
if ( is_wp_error( $checkout_info ) ||
|
582 |
+
$checkout_info[ 'status' ] < 200 || $checkout_info[ 'status' ] >= 300 ) {
|
583 |
+
if ( 'yes' == $this->debug ) {
|
584 |
+
$this->log->add( $this->id, $this->id .
|
585 |
+
': @[createUrl] - payment creation failed with error: ' .
|
586 |
+
$checkout_info[ 'response' ][ 'status' ] );
|
587 |
+
}
|
588 |
+
return false;
|
589 |
+
} else {
|
590 |
+
return $checkout_info[ 'response' ];
|
591 |
+
}
|
592 |
+
} catch ( MercadoPagoException $e ) {
|
593 |
+
if ( 'yes' == $this->debug ) {
|
594 |
+
$this->log->add( $this->id, $this->id .
|
595 |
+
': @[createUrl] - payment creation failed with exception: ' .
|
596 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
597 |
+
}
|
598 |
+
return false;
|
599 |
+
}
|
600 |
+
|
601 |
+
}
|
602 |
+
|
603 |
+
private function createPreferences( $order, $post_from_form ) {
|
604 |
+
|
605 |
+
// Here we build the array that contains ordered itens, from customer cart
|
606 |
+
$items = array();
|
607 |
+
$purchase_description = "";
|
608 |
+
if ( sizeof( $order->get_items() ) > 0 ) {
|
609 |
+
foreach ( $order->get_items() as $item ) {
|
610 |
+
if ( $item['qty'] ) {
|
611 |
+
$product = new WC_product( $item[ 'product_id' ] );
|
612 |
+
$purchase_description =
|
613 |
+
$purchase_description . ' ' .
|
614 |
+
( $product->post->post_title . ' x ' . $item[ 'qty' ] );
|
615 |
+
array_push( $items, array(
|
616 |
+
'id' => $item[ 'product_id' ],
|
617 |
+
'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
|
618 |
+
'description' => sanitize_file_name( (
|
619 |
+
// This handles description width limit of Mercado Pago
|
620 |
+
strlen( $product->post->post_content ) > 230 ?
|
621 |
+
substr( $product->post->post_content, 0, 230 ) . "..." :
|
622 |
+
$product->post->post_content
|
623 |
+
) ),
|
624 |
+
'picture_url' => wp_get_attachment_url( $product->get_image_id() ),
|
625 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
626 |
+
'quantity' => 1,
|
627 |
+
'unit_price' => floor( ( (float) $item[ 'line_total' ] + (float) $item[ 'line_tax' ] ) *
|
628 |
+
( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ) * 100 ) / 100
|
629 |
+
));
|
630 |
+
}
|
631 |
+
}
|
632 |
+
}
|
633 |
+
|
634 |
+
// Creates the shipment cost structure
|
635 |
+
$shipping_cost = (float) $order->get_total_shipping() + (float) $order->get_shipping_tax();
|
636 |
+
if ( $shipping_cost > 0 ) {
|
637 |
+
$item = array(
|
638 |
+
'title' => $this->workaroundAmperSandBug( $order->get_shipping_to_display() ),
|
639 |
+
'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
|
640 |
+
'quantity' => 1,
|
641 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
642 |
+
'unit_price' => floor( $shipping_cost * ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ) * 100 ) / 100
|
643 |
+
);
|
644 |
+
$items[] = $item;
|
645 |
+
}
|
646 |
+
|
647 |
+
// Discounts features
|
648 |
+
if ( isset( $post_from_form[ 'mercadopago_custom' ][ 'discount' ] ) &&
|
649 |
+
$post_from_form[ 'mercadopago_custom' ][ 'discount' ] != "" &&
|
650 |
+
$post_from_form[ 'mercadopago_custom' ][ 'discount' ] > 0 &&
|
651 |
+
isset( $post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] ) &&
|
652 |
+
$post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] != "" &&
|
653 |
+
WC()->session->chosen_payment_method == "woocommerce-mercadopago-custom-module" ) {
|
654 |
+
$item = array(
|
655 |
+
'title' => __( 'Discount', 'woocommerce-mercadopago-module' ),
|
656 |
+
'description' => __( 'Discount provided by store', 'woocommerce-mercadopago-module' ),
|
657 |
+
'quantity' => 1,
|
658 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
659 |
+
'unit_price' => - ( (float) $post_from_form[ 'mercadopago_custom' ][ 'discount' ] )
|
660 |
+
);
|
661 |
+
$items[] = $item;
|
662 |
+
}
|
663 |
+
|
664 |
+
// Build additional information from the customer data
|
665 |
+
$payer_additional_info = array(
|
666 |
+
'first_name' => $order->billing_first_name,
|
667 |
+
'last_name' => $order->billing_last_name,
|
668 |
+
//'registration_date' =>
|
669 |
+
'phone' => array(
|
670 |
+
//'area_code' =>
|
671 |
+
'number' => $order->billing_phone
|
672 |
+
),
|
673 |
+
'address' => array(
|
674 |
+
'zip_code' => $order->billing_postcode,
|
675 |
+
//'street_number' =>
|
676 |
+
'street_name' => $order->billing_address_1 . ' / ' .
|
677 |
+
$order->billing_city . ' ' .
|
678 |
+
$order->billing_state . ' ' .
|
679 |
+
$order->billing_country
|
680 |
+
)
|
681 |
+
);
|
682 |
+
|
683 |
+
// Create the shipment address information set
|
684 |
+
$shipments = array(
|
685 |
+
'receiver_address' => array(
|
686 |
+
'zip_code' => $order->shipping_postcode,
|
687 |
+
//'street_number' =>
|
688 |
+
'street_name' => $order->shipping_address_1 . ' ' .
|
689 |
+
$order->shipping_address_2 . ' ' .
|
690 |
+
$order->shipping_city . ' ' .
|
691 |
+
$order->shipping_state . ' ' .
|
692 |
+
$order->shipping_country,
|
693 |
+
//'floor' =>
|
694 |
+
'apartment' => $order->shipping_address_2
|
695 |
+
)
|
696 |
+
);
|
697 |
+
|
698 |
+
// The payment preference
|
699 |
+
$payment_preference = array (
|
700 |
+
'transaction_amount' => floor( ( (float) $post_from_form[ 'mercadopago_custom' ][ 'amount' ] ) * 100 ) / 100,
|
701 |
+
'token' => $post_from_form[ 'mercadopago_custom' ][ 'token' ],
|
702 |
+
'description' => $purchase_description,
|
703 |
+
'installments' => (int) $post_from_form[ 'mercadopago_custom' ][ 'installments' ],
|
704 |
+
'payment_method_id' => $post_from_form[ 'mercadopago_custom' ][ 'paymentMethodId' ],
|
705 |
+
'payer' => array(
|
706 |
+
'email' => $order->billing_email
|
707 |
+
),
|
708 |
+
'external_reference' => $this->invoice_prefix . $order->id,
|
709 |
+
'statement_descriptor' => $this->statement_descriptor,
|
710 |
+
'binary_mode' => ($this->binary_mode == "yes"),
|
711 |
+
'additional_info' => array(
|
712 |
+
'items' => $items,
|
713 |
+
'payer' => $payer_additional_info,
|
714 |
+
'shipments' => $shipments
|
715 |
+
)
|
716 |
+
);
|
717 |
+
|
718 |
+
// Customer's Card Feature, add only if it has issuer id
|
719 |
+
if ( array_key_exists( 'token', $post_from_form[ 'mercadopago_custom' ] ) ) {
|
720 |
+
$payment_preference[ 'metadata' ][ 'token' ] = $post_from_form[ 'mercadopago_custom' ][ 'token' ];
|
721 |
+
if ( array_key_exists( 'issuer', $post_from_form[ 'mercadopago_custom' ] ) ) {
|
722 |
+
if ( !empty( $post_from_form[ 'mercadopago_custom' ][ 'issuer' ] ) ) {
|
723 |
+
$payment_preference[ 'issuer_id' ] = (integer) $post_from_form[ 'mercadopago_custom' ][ 'issuer' ];
|
724 |
+
}
|
725 |
+
}
|
726 |
+
if ( !empty( $post_from_form[ 'mercadopago_custom' ][ 'CustomerId' ] ) ) {
|
727 |
+
$payment_preference[ 'payer' ][ 'id' ] = $post_from_form[ 'mercadopago_custom' ][ 'CustomerId' ];
|
728 |
+
}
|
729 |
+
}
|
730 |
+
|
731 |
+
// Do not set IPN url if it is a localhost!
|
732 |
+
$notification_url = $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway';
|
733 |
+
if ( !strrpos( $notification_url, "localhost" ) ) {
|
734 |
+
$payment_preference['notification_url'] = $this->workaroundAmperSandBug( $notification_url );
|
735 |
+
}
|
736 |
+
|
737 |
+
// Discounts features
|
738 |
+
if ( isset( $post_from_form[ 'mercadopago_custom' ][ 'discount' ] ) &&
|
739 |
+
$post_from_form[ 'mercadopago_custom' ][ 'discount' ] != "" &&
|
740 |
+
$post_from_form[ 'mercadopago_custom' ][ 'discount' ] > 0 &&
|
741 |
+
isset( $post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] ) &&
|
742 |
+
$post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] != "" &&
|
743 |
+
WC()->session->chosen_payment_method == "woocommerce-mercadopago-custom-module" ) {
|
744 |
+
$payment_preference[ 'campaign_id' ] = (int) $post_from_form[ 'mercadopago_custom' ][ 'campaign_id' ];
|
745 |
+
$payment_preference[ 'coupon_amount' ] = ( (float) $post_from_form[ 'mercadopago_custom' ][ 'discount' ] );
|
746 |
+
$payment_preference[ 'coupon_code' ] = strtoupper( $post_from_form[ 'mercadopago_custom' ][ 'coupon_code' ] );
|
747 |
+
}
|
748 |
+
|
749 |
+
if ( !$this->isTestUser ) {
|
750 |
+
$preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
|
751 |
+
}
|
752 |
+
|
753 |
+
if ( 'yes' == $this->debug ) {
|
754 |
+
$this->log->add( $this->id, $this->id .
|
755 |
+
': @[createPreferences] - Returning just created [$payment_preference] structure: ' .
|
756 |
+
json_encode( $payment_preference, JSON_PRETTY_PRINT ) );
|
757 |
+
}
|
758 |
+
|
759 |
+
$payment_preference = apply_filters(
|
760 |
+
'woocommerce_mercadopago_module_custom_preferences',
|
761 |
+
$payment_preference, $order
|
762 |
+
);
|
763 |
+
return $payment_preference;
|
764 |
+
}
|
765 |
+
|
766 |
+
public function checkAndSaveCustomerCard( $checkout_info ) {
|
767 |
+
if ( 'yes' == $this->debug ) {
|
768 |
+
$this->log->add( $this->id, $this->id .
|
769 |
+
': @[checkAndSaveCustomerCard] - Checking info to create card: ' .
|
770 |
+
json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
|
771 |
+
}
|
772 |
+
$custId = null;
|
773 |
+
$token = null;
|
774 |
+
$issuer_id = null;
|
775 |
+
$payment_method_id = null;
|
776 |
+
if ( isset( $checkout_info[ 'payer' ][ 'id' ] ) && !empty( $checkout_info[ 'payer' ][ 'id' ] ) ) {
|
777 |
+
$custId = $checkout_info[ 'payer' ][ 'id' ];
|
778 |
+
} else {
|
779 |
+
return;
|
780 |
+
}
|
781 |
+
if ( isset( $checkout_info[ 'metadata' ][ 'token' ] ) && !empty( $checkout_info[ 'metadata' ][ 'token' ] ) ) {
|
782 |
+
$token = $checkout_info[ 'metadata' ][ 'token' ];
|
783 |
+
} else {
|
784 |
+
return;
|
785 |
+
}
|
786 |
+
if ( isset( $checkout_info[ 'issuer_id' ] ) && !empty( $checkout_info[ 'issuer_id' ] ) ) {
|
787 |
+
$issuer_id = (integer)( $checkout_info[ 'issuer_id' ] );
|
788 |
+
}
|
789 |
+
if ( isset( $checkout_info[ 'payment_method_id' ] ) && !empty( $checkout_info[ 'payment_method_id' ] ) ) {
|
790 |
+
$payment_method_id = $checkout_info[ 'payment_method_id' ];
|
791 |
+
}
|
792 |
+
try {
|
793 |
+
$this->mp->create_card_in_customer( $custId, $token, $payment_method_id, $issuer_id );
|
794 |
+
} catch ( MercadoPagoException $e ) {
|
795 |
+
if ( 'yes' == $this->debug ) {
|
796 |
+
$this->log->add( $this->id, $this->id .
|
797 |
+
': @[checkAndSaveCustomerCard] - card creation failed: ' .
|
798 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
799 |
+
}
|
800 |
+
}
|
801 |
+
}
|
802 |
+
|
803 |
+
public function add_discount_custom() {
|
804 |
+
if ( is_admin() && ! defined( 'DOING_AJAX' ) || is_cart() ) {
|
805 |
+
return;
|
806 |
+
}
|
807 |
+
if ( isset( $_POST[ 'mercadopago_custom' ][ 'discount' ] ) &&
|
808 |
+
$_POST[ 'mercadopago_custom' ][ 'discount' ] != "" &&
|
809 |
+
$_POST[ 'mercadopago_custom' ][ 'discount' ] > 0 &&
|
810 |
+
isset( $_POST[ 'mercadopago_custom' ][ 'coupon_code' ] ) &&
|
811 |
+
$_POST[ 'mercadopago_custom' ][ 'coupon_code' ] != "" &&
|
812 |
+
WC()->session->chosen_payment_method == "woocommerce-mercadopago-custom-module" ) {
|
813 |
+
if ( 'yes' == $this->debug ) {
|
814 |
+
$this->log->add( $this->id, $this->id . ': @[add_discount_custom] - Custom checkout trying to apply discount...' );
|
815 |
+
}
|
816 |
+
$value = ( $_POST[ 'mercadopago_custom' ][ 'discount' ] ) /
|
817 |
+
( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 );
|
818 |
+
global $woocommerce;
|
819 |
+
if ( apply_filters( 'wc_mercadopagocustom_module_apply_discount', 0 < $value, $woocommerce->cart ) ) {
|
820 |
+
$woocommerce->cart->add_fee(
|
821 |
+
sprintf( __( 'Discount for %s coupon', 'woocommerce-mercadopago-module' ), esc_attr( $_POST[ 'mercadopago_custom' ][ 'campaign' ] ) ),
|
822 |
+
( $value * -1 ), true
|
823 |
+
);
|
824 |
+
}
|
825 |
+
}
|
826 |
+
}
|
827 |
+
|
828 |
+
/*
|
829 |
+
* ========================================================================
|
830 |
+
* AUXILIARY AND FEEDBACK METHODS
|
831 |
+
* ========================================================================
|
832 |
+
*/
|
833 |
+
|
834 |
+
// Fix to URL Problem : #038; replaces & and breaks the navigation
|
835 |
+
function workaroundAmperSandBug( $link ) {
|
836 |
+
return str_replace('&', '&', $link);
|
837 |
+
}
|
838 |
+
|
839 |
+
// Check if we have valid credentials.
|
840 |
+
public function validateCredentials() {
|
841 |
+
if ( empty( $this->public_key ) ) return false;
|
842 |
+
if ( empty( $this->access_token ) ) return false;
|
843 |
+
if ( strlen( $this->public_key ) > 0 && strlen( $this->access_token ) > 0 ) {
|
844 |
+
try {
|
845 |
+
$this->mp = new MP( $this->access_token );
|
846 |
+
$get_request = $this->mp->get( "/users/me?access_token=" . $this->access_token );
|
847 |
+
if ( isset( $get_request[ 'response' ][ 'site_id' ] ) ) {
|
848 |
+
$this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
|
849 |
+
$this->site_id = $get_request[ 'response' ][ 'site_id' ];
|
850 |
+
// check for auto converstion of currency
|
851 |
+
$this->currency_ratio = -1;
|
852 |
+
if ( $this->currency_conversion == "yes" ) {
|
853 |
+
$currency_obj = MPRestClient::get_ml( array( "uri" =>
|
854 |
+
"/currency_conversions/search?from=" .
|
855 |
+
get_woocommerce_currency() .
|
856 |
+
"&to=" .
|
857 |
+
$this->getCurrencyId( $this->site_id )
|
858 |
+
) );
|
859 |
+
if ( isset( $currency_obj[ 'response' ] ) ) {
|
860 |
+
$currency_obj = $currency_obj[ 'response' ];
|
861 |
+
if ( isset( $currency_obj['ratio'] ) ) {
|
862 |
+
$this->currency_ratio = (float) $currency_obj['ratio'];
|
863 |
+
} else {
|
864 |
+
$this->currency_ratio = -1;
|
865 |
+
}
|
866 |
+
} else {
|
867 |
+
$this->currency_ratio = -1;
|
868 |
+
}
|
869 |
+
}
|
870 |
+
return true;
|
871 |
+
} else return false;
|
872 |
+
} catch ( MercadoPagoException $e ) {
|
873 |
+
return false;
|
874 |
+
}
|
875 |
+
}
|
876 |
+
return false;
|
877 |
+
}
|
878 |
+
|
879 |
+
// Build the string representing the path to the log file
|
880 |
+
protected function buildLogPathString() {
|
881 |
+
return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
|
882 |
+
esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
|
883 |
+
__( 'WooCommerce > System Status > Logs', 'woocommerce-mercadopago-module' ) . '</a>';
|
884 |
+
}
|
885 |
+
|
886 |
+
// Return boolean indicating if currency is supported.
|
887 |
+
protected function isSupportedCurrency() {
|
888 |
+
return get_woocommerce_currency() == $this->getCurrencyId( $this->site_id );
|
889 |
+
}
|
890 |
+
|
891 |
+
// Get currency id for a country
|
892 |
+
protected function getCurrencyId( $site_id ) {
|
893 |
+
switch ( $site_id ) {
|
894 |
+
case 'MLA': return 'ARS';
|
895 |
+
case 'MLB': return 'BRL';
|
896 |
+
case 'MCO': return 'COP';
|
897 |
+
case 'MLC': return 'CLP';
|
898 |
+
case 'MLM': return 'MXN';
|
899 |
+
case 'MLV': return 'VEF';
|
900 |
+
case 'MPE': return 'PEN';
|
901 |
+
default: return '';
|
902 |
+
}
|
903 |
+
}
|
904 |
+
|
905 |
+
public function checkSSLAbsence() {
|
906 |
+
if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
|
907 |
+
if ( 'yes' == $this->settings[ 'enabled' ] ) {
|
908 |
+
echo '<div class="error"><p><strong>' .
|
909 |
+
__( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
|
910 |
+
'</strong>: ' .
|
911 |
+
sprintf(
|
912 |
+
__( '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' )
|
913 |
+
) . '</p></div>';
|
914 |
+
}
|
915 |
+
}
|
916 |
+
}
|
917 |
+
|
918 |
+
// Called automatically by WooCommerce, verify if Module is available to use.
|
919 |
+
public function is_available() {
|
920 |
+
// check SSL connection, as we can't use normal http in custom checkout
|
921 |
+
if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
|
922 |
+
return false;
|
923 |
+
}
|
924 |
+
$available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
|
925 |
+
!empty( $this->public_key ) &&
|
926 |
+
!empty( $this->access_token );
|
927 |
+
return $available;
|
928 |
+
}
|
929 |
+
|
930 |
+
// Get the URL to admin page.
|
931 |
+
protected function admin_url() {
|
932 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
933 |
+
return admin_url(
|
934 |
+
'admin.php?page=wc-settings&tab=checkout§ion=wc_woomercadopagocustom_gateway'
|
935 |
+
);
|
936 |
+
}
|
937 |
+
return admin_url(
|
938 |
+
'admin.php?page=woocommerce_settings&tab=payment_gateways§ion=WC_WooMercadoPagoCustom_Gateway'
|
939 |
+
);
|
940 |
+
}
|
941 |
+
|
942 |
+
// Notify that public_key and/or access_token are not valid.
|
943 |
+
public function credentialsMissingMessage() {
|
944 |
+
echo '<div class="error"><p><strong>' .
|
945 |
+
__( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
|
946 |
+
'</strong>: ' .
|
947 |
+
sprintf(
|
948 |
+
__( 'Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
|
949 |
+
'<a href="' . $this->admin_url() . '">' .
|
950 |
+
__( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
|
951 |
+
'</p></div>';
|
952 |
+
}
|
953 |
+
|
954 |
+
public function getCountryName( $site_id ) {
|
955 |
+
$country = $site_id;
|
956 |
+
switch ( $site_id ) {
|
957 |
+
case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
|
958 |
+
case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
|
959 |
+
case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
|
960 |
+
case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
|
961 |
+
case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
|
962 |
+
case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
|
963 |
+
case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
|
964 |
+
}
|
965 |
+
}
|
966 |
+
|
967 |
+
public function getOrderStatus( $status_detail ) {
|
968 |
+
switch ( $status_detail ) {
|
969 |
+
case 'accredited':
|
970 |
+
return __( 'Done, your payment was accredited!', 'woocommerce-mercadopago-module' );
|
971 |
+
case 'pending_contingency':
|
972 |
+
return __( 'We are processing the payment. In less than an hour we will e-mail you the results.', 'woocommerce-mercadopago-module' );
|
973 |
+
case 'pending_review_manual':
|
974 |
+
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' );
|
975 |
+
case 'cc_rejected_bad_filled_card_number':
|
976 |
+
return __( 'Check the card number.', 'woocommerce-mercadopago-module' );
|
977 |
+
case 'cc_rejected_bad_filled_date':
|
978 |
+
return __( 'Check the expiration date.', 'woocommerce-mercadopago-module' );
|
979 |
+
case 'cc_rejected_bad_filled_other':
|
980 |
+
return __( 'Check the information.', 'woocommerce-mercadopago-module' );
|
981 |
+
case 'cc_rejected_bad_filled_security_code':
|
982 |
+
return __( 'Check the security code.', 'woocommerce-mercadopago-module' );
|
983 |
+
case 'cc_rejected_blacklist':
|
984 |
+
return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
|
985 |
+
case 'cc_rejected_call_for_authorize':
|
986 |
+
return __( 'You must authorize the payment of your orders.', 'woocommerce-mercadopago-module' );
|
987 |
+
case 'cc_rejected_card_disabled':
|
988 |
+
return __( 'Call your card issuer to activate your card. The phone is on the back of your card.', 'woocommerce-mercadopago-module' );
|
989 |
+
case 'cc_rejected_card_error':
|
990 |
+
return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
|
991 |
+
case 'cc_rejected_duplicated_payment':
|
992 |
+
return __( 'You already made a payment for that amount. If you need to repay, use another card or other payment method.', 'woocommerce-mercadopago-module' );
|
993 |
+
case 'cc_rejected_high_risk':
|
994 |
+
return __( 'Your payment was rejected. Choose another payment method. We recommend cash.', 'woocommerce-mercadopago-module' );
|
995 |
+
case 'cc_rejected_insufficient_amount':
|
996 |
+
return __( 'Your payment do not have sufficient funds.', 'woocommerce-mercadopago-module' );
|
997 |
+
case 'cc_rejected_invalid_installments':
|
998 |
+
return __( 'Your payment does not process payments with selected installments.', 'woocommerce-mercadopago-module' );
|
999 |
+
case 'cc_rejected_max_attempts':
|
1000 |
+
return __( 'You have reached the limit of allowed attempts. Choose another card or another payment method.', 'woocommerce-mercadopago-module' );
|
1001 |
+
case 'cc_rejected_other_reason':
|
1002 |
+
return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
|
1003 |
+
default:
|
1004 |
+
return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
|
1005 |
+
}
|
1006 |
+
}
|
1007 |
+
|
1008 |
+
/*
|
1009 |
+
* ========================================================================
|
1010 |
+
* IPN MECHANICS
|
1011 |
+
* ========================================================================
|
1012 |
+
*/
|
1013 |
+
|
1014 |
+
// [Server Side] This call checks any incoming notifications from Mercado Pago server.
|
1015 |
+
public function process_http_request() {
|
1016 |
+
@ob_clean();
|
1017 |
+
if ( 'yes' == $this->debug ) {
|
1018 |
+
$this->log->add( $this->id, $this->id .
|
1019 |
+
': @[process_http_request] - Received _get content: ' .
|
1020 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
1021 |
+
}
|
1022 |
+
if ( isset( $_GET[ 'coupon_id' ] ) && $_GET[ 'coupon_id' ] != '' ) {
|
1023 |
+
// process coupon evaluations
|
1024 |
+
if ( isset( $_GET[ 'payer' ] ) && $_GET[ 'payer' ] != '' ) {
|
1025 |
+
$logged_user_email = $_GET[ 'payer' ];
|
1026 |
+
$coupon_id = $_GET[ 'coupon_id' ];
|
1027 |
+
if ( 'yes' == $this->sandbox )
|
1028 |
+
$this->mp->sandbox_mode( true );
|
1029 |
+
else
|
1030 |
+
$this->mp->sandbox_mode( false );
|
1031 |
+
$response = $this->mp->check_discount_campaigns(
|
1032 |
+
$_GET[ 'amount' ],
|
1033 |
+
$logged_user_email,
|
1034 |
+
$coupon_id
|
1035 |
+
);
|
1036 |
+
header( 'HTTP/1.1 200 OK' );
|
1037 |
+
header( 'Content-Type: application/json' );
|
1038 |
+
echo json_encode( $response );
|
1039 |
+
} else {
|
1040 |
+
$obj = new stdClass();
|
1041 |
+
$obj->status = 404;
|
1042 |
+
$obj->response = array(
|
1043 |
+
'message' => __( 'Please, inform your email in billing address to use this feature', 'woocommerce-mercadopago-module' ),
|
1044 |
+
'error' => 'payer_not_found',
|
1045 |
+
'status' => 404,
|
1046 |
+
'cause' => array()
|
1047 |
+
);
|
1048 |
+
header( 'HTTP/1.1 200 OK' );
|
1049 |
+
header( 'Content-Type: application/json' );
|
1050 |
+
echo json_encode( $obj );
|
1051 |
+
}
|
1052 |
+
exit(0);
|
1053 |
+
} else {
|
1054 |
+
// process IPN messages
|
1055 |
+
$data = $this->check_ipn_request_is_valid( $_GET );
|
1056 |
+
if ( $data ) {
|
1057 |
+
header( 'HTTP/1.1 200 OK' );
|
1058 |
+
do_action( 'valid_mercadopagocustom_ipn_request', $data );
|
1059 |
+
}
|
1060 |
+
}
|
1061 |
+
}
|
1062 |
+
|
1063 |
+
// Get received data from IPN and checks if we have an associated
|
1064 |
+
// payment. If we have these information, we return data to be
|
1065 |
+
// processed by successful_request function.
|
1066 |
+
public function check_ipn_request_is_valid( $data ) {
|
1067 |
+
|
1068 |
+
if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
|
1069 |
+
if ( 'yes' == $this->debug ) {
|
1070 |
+
$this->log->add( $this->id, $this->id .
|
1071 |
+
': @[check_ipn_request_is_valid] - data_id or type not set: ' .
|
1072 |
+
json_encode( $data, JSON_PRETTY_PRINT ) );
|
1073 |
+
}
|
1074 |
+
// at least, check if its a v0 ipn
|
1075 |
+
if ( !isset( $data[ 'id' ] ) || !isset( $data[ 'topic' ] ) ) {
|
1076 |
+
if ( 'yes' == $this->debug ) {
|
1077 |
+
$this->log->add(
|
1078 |
+
$this->id, $this->id .
|
1079 |
+
': @[check_ipn_request_is_valid] - Mercado Pago Request Failure: ' .
|
1080 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
1081 |
+
}
|
1082 |
+
wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
|
1083 |
+
} else {
|
1084 |
+
header( 'HTTP/1.1 200 OK' );
|
1085 |
+
}
|
1086 |
+
// No ID? No process!
|
1087 |
+
return false;
|
1088 |
+
}
|
1089 |
+
|
1090 |
+
if ( 'yes' == $this->sandbox )
|
1091 |
+
$this->mp->sandbox_mode( true );
|
1092 |
+
else
|
1093 |
+
$this->mp->sandbox_mode( false );
|
1094 |
+
try {
|
1095 |
+
$access_token = array( "access_token" => $this->mp->get_access_token() );
|
1096 |
+
if ( $data[ "type" ] == 'payment' ) {
|
1097 |
+
$payment_info = $this->mp->get( "/v1/payments/" . $data[ "data_id" ], $access_token, false );
|
1098 |
+
if ( !is_wp_error( $payment_info ) &&
|
1099 |
+
( $payment_info[ "status" ] == 200 || $payment_info[ "status" ] == 201 ) ) {
|
1100 |
+
return $payment_info[ 'response' ];
|
1101 |
+
} else {
|
1102 |
+
if ( 'yes' == $this->debug ) {
|
1103 |
+
$this->log->add( $this->id, $this->id .
|
1104 |
+
': @[check_ipn_request_is_valid] - error when processing received data: ' .
|
1105 |
+
json_encode( $payment_info, JSON_PRETTY_PRINT ) );
|
1106 |
+
}
|
1107 |
+
return false;
|
1108 |
+
}
|
1109 |
+
}
|
1110 |
+
} catch ( MercadoPagoException $e ) {
|
1111 |
+
if ( 'yes' == $this->debug ) {
|
1112 |
+
$this->log->add( $this->id, $this->id .
|
1113 |
+
': @[check_ipn_request_is_valid] - MercadoPagoException: ' .
|
1114 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
1115 |
+
}
|
1116 |
+
return false;
|
1117 |
+
}
|
1118 |
+
return true;
|
1119 |
+
}
|
1120 |
+
|
1121 |
+
// Properly handles each case of notification, based in payment status.
|
1122 |
+
public function successful_request( $data ) {
|
1123 |
+
if ( 'yes' == $this->debug ) {
|
1124 |
+
$this->log->add( $this->id, $this->id .
|
1125 |
+
': @[successful_request] - starting to process ipn update...' );
|
1126 |
+
}
|
1127 |
+
$order_key = $data[ 'external_reference' ];
|
1128 |
+
if ( !empty( $order_key ) ) {
|
1129 |
+
$order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
|
1130 |
+
$order = new WC_Order( $order_id );
|
1131 |
+
// Checks whether the invoice number matches the order, if true processes the payment
|
1132 |
+
if ( $order->id === $order_id ) {
|
1133 |
+
if ( 'yes' == $this->debug ) {
|
1134 |
+
$this->log->add( $this->id, $this->id .
|
1135 |
+
': @[successful_request] - got order with ID ' . $order->id .
|
1136 |
+
' and data: ' . json_encode( $data, JSON_PRETTY_PRINT ) );
|
1137 |
+
}
|
1138 |
+
// Order details.
|
1139 |
+
if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
|
1140 |
+
update_post_meta(
|
1141 |
+
$order_id,
|
1142 |
+
__( 'Payer email',
|
1143 |
+
'woocommerce-mercadopago-module' ),
|
1144 |
+
$data[ 'payer' ][ 'email' ]
|
1145 |
+
);
|
1146 |
+
}
|
1147 |
+
if ( !empty( $data[ 'payment_type_id' ] ) ) {
|
1148 |
+
update_post_meta(
|
1149 |
+
$order_id,
|
1150 |
+
__( 'Payment type',
|
1151 |
+
'woocommerce-mercadopago-module' ),
|
1152 |
+
$data[ 'payment_type_id' ]
|
1153 |
+
);
|
1154 |
+
}
|
1155 |
+
if ( !empty( $data ) ) {
|
1156 |
+
update_post_meta(
|
1157 |
+
$order_id,
|
1158 |
+
__( 'Mercado Pago Payment ID',
|
1159 |
+
'woocommerce-mercadopago-module' ),
|
1160 |
+
$data[ 'id' ]
|
1161 |
+
);
|
1162 |
+
}
|
1163 |
+
// Switch the status and update in WooCommerce
|
1164 |
+
switch ( $data[ 'status' ] ) {
|
1165 |
+
case 'approved':
|
1166 |
+
$order->add_order_note(
|
1167 |
+
'Mercado Pago: ' . __( 'Payment approved.',
|
1168 |
+
'woocommerce-mercadopago-module' )
|
1169 |
+
);
|
1170 |
+
$this->checkAndSaveCustomerCard( $data );
|
1171 |
+
$order->payment_complete();
|
1172 |
+
break;
|
1173 |
+
case 'pending':
|
1174 |
+
$order->add_order_note(
|
1175 |
+
'Mercado Pago: ' . __( 'Customer haven\'t paid yet.',
|
1176 |
+
'woocommerce-mercadopago-module' )
|
1177 |
+
);
|
1178 |
+
break;
|
1179 |
+
case 'in_process':
|
1180 |
+
$order->update_status(
|
1181 |
+
'on-hold',
|
1182 |
+
'Mercado Pago: ' . __( 'Payment under review.',
|
1183 |
+
'woocommerce-mercadopago-module' )
|
1184 |
+
);
|
1185 |
+
break;
|
1186 |
+
case 'rejected':
|
1187 |
+
$order->update_status(
|
1188 |
+
'failed',
|
1189 |
+
'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.',
|
1190 |
+
'woocommerce-mercadopago-module' )
|
1191 |
+
);
|
1192 |
+
break;
|
1193 |
+
case 'refunded':
|
1194 |
+
$order->update_status(
|
1195 |
+
'refunded',
|
1196 |
+
'Mercado Pago: ' . __( 'The payment was refunded to the customer.',
|
1197 |
+
'woocommerce-mercadopago-module' )
|
1198 |
+
);
|
1199 |
+
break;
|
1200 |
+
case 'cancelled':
|
1201 |
+
$order->update_status(
|
1202 |
+
'cancelled',
|
1203 |
+
'Mercado Pago: ' . __( 'The payment was cancelled.',
|
1204 |
+
'woocommerce-mercadopago-module' )
|
1205 |
+
);
|
1206 |
+
break;
|
1207 |
+
case 'in_mediation':
|
1208 |
+
$order->add_order_note(
|
1209 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
|
1210 |
+
'woocommerce-mercadopago-module' )
|
1211 |
+
);
|
1212 |
+
break;
|
1213 |
+
case 'charged-back':
|
1214 |
+
$order->add_order_note(
|
1215 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
|
1216 |
+
'woocommerce-mercadopago-module' )
|
1217 |
+
);
|
1218 |
+
break;
|
1219 |
+
default:
|
1220 |
+
break;
|
1221 |
+
}
|
1222 |
+
}
|
1223 |
+
}
|
1224 |
+
}
|
1225 |
+
|
1226 |
+
}
|
1227 |
+
|
1228 |
+
new WC_WooMercadoPagoCustom_Gateway();
|
mercadopago/mercadopago-gateway.php
CHANGED
@@ -1,402 +1,464 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
*
|
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 |
-
|
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 $
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
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 |
-
|
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->
|
96 |
-
$this->
|
|
|
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',
|
|
|
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::
|
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 |
-
$
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
}
|
174 |
-
|
175 |
-
|
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 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
} else {
|
221 |
-
$this->
|
222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
}
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
230 |
} else {
|
231 |
-
$this->
|
232 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
);
|
401 |
}
|
402 |
}
|
@@ -404,125 +466,142 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
404 |
|
405 |
// 2. Order page and this generates the form that shows the pay button. This step
|
406 |
// generates the form to proceed to checkout.
|
407 |
-
public function receipt_page($order) {
|
408 |
-
echo $this->renderOrderForm($order);
|
409 |
}
|
410 |
// --------------------------------------------------
|
411 |
-
public function renderOrderForm($order_id) {
|
412 |
-
$order = new WC_Order($order_id);
|
413 |
-
$url = $this->createUrl($order);
|
414 |
-
if ($url) {
|
415 |
// Display checkout.
|
416 |
$html =
|
417 |
-
|
418 |
-
plugins_url('images/' . $this->
|
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 & 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/":"
|
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
|
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($
|
473 |
-
|
474 |
-
'
|
475 |
-
'
|
|
|
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->
|
482 |
-
'category_id' => $this->store_categories_id[$this->category_id],
|
483 |
'quantity' => 1,
|
484 |
-
'unit_price' => (float)$item['line_total']
|
485 |
-
|
|
|
486 |
));
|
487 |
}
|
488 |
}
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
'
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
}
|
499 |
-
|
500 |
// Find excluded payment methods. If 'n/d' is in array index, we should
|
501 |
// disconsider the remaining values.
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
526 |
$preferences = array(
|
527 |
'items' => $items,
|
528 |
// Payer should be filled with billing info because orders can be made with non-logged customers.
|
@@ -542,139 +621,207 @@ 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('&', '&', $order->get_cancel_order_url()),
|
547 |
-
'pending' => esc_url($this->get_return_url($order))
|
548 |
),
|
549 |
-
//'marketplace' =>
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
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 |
-
|
570 |
-
|
571 |
-
|
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(
|
|
|
|
|
|
|
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 .
|
|
|
|
|
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(
|
|
|
|
|
|
|
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 |
-
|
641 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
642 |
return false;
|
643 |
}
|
644 |
}
|
645 |
return false;
|
646 |
}
|
647 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
// Return boolean indicating if currency is supported.
|
649 |
protected function isSupportedCurrency() {
|
650 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
658 |
-
|
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§ion=wc_woomercadopago_gateway'
|
680 |
);
|
@@ -686,217 +833,227 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
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 |
-
__('
|
702 |
'</strong>: ' .
|
703 |
sprintf(
|
704 |
-
__(
|
705 |
-
|
706 |
'</p></div>';
|
707 |
}
|
708 |
-
|
709 |
-
public function getCountryName($site_id) {
|
710 |
-
|
711 |
-
|
712 |
-
case '
|
713 |
-
case '
|
714 |
-
case '
|
715 |
-
case '
|
716 |
-
case 'MLV': return __('
|
717 |
-
case '
|
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 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
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 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
}
|
759 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
760 |
}
|
761 |
-
|
762 |
-
|
763 |
-
|
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)
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
} else {
|
782 |
-
return $merchant_order_info["response"];
|
783 |
}
|
784 |
-
|
785 |
-
|
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 .
|
|
|
|
|
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['
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(
|
866 |
-
'
|
|
|
867 |
);
|
868 |
break;
|
869 |
case 'rejected':
|
870 |
-
$order->update_status(
|
871 |
-
'
|
|
|
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 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
|
7 |
+
* License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
*/
|
9 |
|
10 |
// This include Mercado Pago library SDK
|
11 |
require_once "sdk/lib/mercadopago.php";
|
12 |
|
13 |
+
// Extending from WooCommerce Payment Gateway class.
|
14 |
+
// This class implements Mercado Pago Basic checkout.
|
|
|
|
|
15 |
class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
16 |
+
|
17 |
// This array stores each banner image, depending on the country it belongs to or on
|
18 |
// the type of checkout we use.
|
19 |
+
private $banners_mercadopago_standard = array(
|
20 |
+
"MLA" => 'MLA/standard_mla.jpg',
|
21 |
+
"MLB" => 'MLB/standard_mlb.jpg',
|
22 |
+
"MCO" => 'MCO/standard_mco.jpg',
|
23 |
+
"MLC" => 'MLC/standard_mlc.gif',
|
24 |
+
"MPE" => 'MPE/standard_mpe.png',
|
25 |
+
"MLV" => 'MLV/standard_mlv.jpg',
|
26 |
+
"MLM" => 'MLM/standard_mlm.jpg'
|
27 |
+
);
|
28 |
+
|
29 |
+
// Sponsor ID array by country
|
30 |
+
private $sponsor_id = array(
|
31 |
+
"MLA" => '208682286',
|
32 |
+
"MLB" => '208686191',
|
33 |
+
"MCO" => '208687643',
|
34 |
+
"MLC" => '208690789',
|
35 |
+
"MPE" => '216998692',
|
36 |
+
"MLV" => '208692735',
|
37 |
+
"MLM" => '208692380'
|
|
|
|
|
38 |
);
|
39 |
+
|
40 |
// Required inherited method from WC_Payment_Gateway class: __construct.
|
41 |
// Please check:
|
42 |
// [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
|
43 |
// for documentation and further information.
|
44 |
public function __construct() {
|
|
|
|
|
|
|
45 |
|
46 |
// These fields are declared because we use them dinamically in our gateway class.
|
47 |
+
$this->mp = null;
|
48 |
+
$this->domain = get_site_url() . '/index.php';
|
49 |
+
$this->currency_ratio = -1;
|
50 |
$this->site_id = null;
|
51 |
$this->isTestUser = false;
|
52 |
$this->payment_methods = array();
|
53 |
$this->store_categories_id = array();
|
54 |
+
$this->store_categories_description = array();
|
55 |
+
|
56 |
// Within your constructor, you should define the following variables.
|
57 |
$this->id = 'woocommerce-mercadopago-module';
|
58 |
$this->icon = apply_filters(
|
59 |
'woocommerce_mercadopago_icon',
|
60 |
+
plugins_url( 'images/mercadopago.png', plugin_dir_path( __FILE__ ) )
|
61 |
);
|
62 |
+
$this->method_title = __( 'Mercado Pago - Basic Checkout', 'woocommerce-mercadopago-module' );
|
63 |
$this->method_description = '<img width="200" height="52" src="' .
|
64 |
+
plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
|
65 |
+
wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
|
66 |
'</strong>';
|
67 |
+
|
68 |
// These fields are used in our Mercado Pago Module configuration page.
|
69 |
+
$this->client_id = $this->get_option( 'client_id' );
|
70 |
+
$this->client_secret = $this->get_option( 'client_secret' );
|
71 |
+
$this->title = $this->get_option( 'title' );
|
72 |
+
$this->description = $this->get_option( 'description' );
|
73 |
+
$this->category_id = $this->get_option( 'category_id' );
|
74 |
+
$this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
|
75 |
+
$this->method = $this->get_option( 'method', 'modal' );
|
76 |
+
$this->iframe_width = $this->get_option( 'iframe_width', 640 );
|
77 |
+
$this->iframe_height = $this->get_option( 'iframe_height', 800 );
|
78 |
+
$this->auto_return = $this->get_option( 'auto_return', true );
|
79 |
+
$this->currency_conversion = $this->get_option('currency_conversion', false);
|
80 |
+
$this->installments = $this->get_option( 'installments', '24' );
|
81 |
+
$this->ex_payments = $this->get_option( 'ex_payments', 'n/d' );
|
82 |
$this->sandbox = $this->get_option('sandbox', false);
|
83 |
$this->debug = $this->get_option('debug');
|
84 |
+
|
85 |
// Render our configuration page and init/load fields.
|
86 |
$this->init_form_fields();
|
87 |
$this->init_settings();
|
88 |
+
|
89 |
// Hook actions for WordPress.
|
90 |
add_action( // Used by IPN to receive IPN incomings.
|
91 |
'woocommerce_api_wc_woomercadopago_gateway',
|
92 |
+
array( $this, 'check_ipn_response' )
|
93 |
);
|
94 |
add_action( // Used by IPN to process valid incomings.
|
95 |
'valid_mercadopago_ipn_request',
|
96 |
+
array( $this, 'successful_request' )
|
97 |
);
|
98 |
add_action( // Used by WordPress to render the custom checkout page.
|
99 |
'woocommerce_receipt_' . $this->id,
|
100 |
+
array( $this, 'receipt_page' )
|
101 |
);
|
102 |
add_action( // Used to fix CSS in some older WordPress/WooCommerce versions.
|
103 |
+
'wp_head',
|
104 |
+
array( $this, 'css' )
|
105 |
);
|
106 |
add_action( // Used in settings page to hook "save settings" action.
|
107 |
'woocommerce_update_options_payment_gateways_' . $this->id,
|
108 |
+
array( $this, 'process_admin_options' )
|
109 |
);
|
110 |
+
|
111 |
// Verify if client_id or client_secret is empty.
|
112 |
+
if ( empty( $this->client_id ) || empty( $this->client_secret ) ) {
|
113 |
+
add_action( 'admin_notices', array( $this, 'clientIdOrSecretMissingMessage' ) );
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
|
116 |
// Logging and debug.
|
117 |
+
if ( 'yes' == $this->debug ) {
|
118 |
+
if ( class_exists( 'WC_Logger' ) ) {
|
119 |
$this->log = new WC_Logger();
|
120 |
} else {
|
121 |
+
$this->log = WC_MercadoPago_Module::woocommerceInstance()->logger();
|
122 |
}
|
123 |
}
|
124 |
+
|
125 |
}
|
126 |
+
|
127 |
// Required inherited method from WC_Payment_Gateway class: init_form_fields.
|
128 |
// Initialise Gateway settings form fields with a customized page.
|
129 |
public function init_form_fields() {
|
130 |
+
|
131 |
+
if ( 'yes' == $this->settings[ 'enabled' ] ) {
|
132 |
+
$api_secret_locale = sprintf(
|
133 |
+
'<a href="https://www.mercadopago.com/mla/account/credentials?type=basic" target="_blank">%s</a>, ' .
|
134 |
+
'<a href="https://www.mercadopago.com/mlb/account/credentials?type=basic" target="_blank">%s</a>, ' .
|
135 |
+
'<a href="https://www.mercadopago.com/mlc/account/credentials?type=basic" target="_blank">%s</a>, ' .
|
136 |
+
'<a href="https://www.mercadopago.com/mco/account/credentials?type=basic" target="_blank">%s</a>, ' .
|
137 |
+
'<a href="https://www.mercadopago.com/mlm/account/credentials?type=basic" target="_blank">%s</a>, ' .
|
138 |
+
'<a href="https://www.mercadopago.com/mpe/account/credentials?type=basic" target="_blank">%s</a> %s ' .
|
139 |
+
'<a href="https://www.mercadopago.com/mlv/account/credentials?type=basic" target="_blank">%s</a>',
|
140 |
+
__( 'Argentine', 'woocommerce-mercadopago-module' ),
|
141 |
+
__( 'Brazil', 'woocommerce-mercadopago-module' ),
|
142 |
+
__( 'Chile', 'woocommerce-mercadopago-module' ),
|
143 |
+
__( 'Colombia', 'woocommerce-mercadopago-module' ),
|
144 |
+
__( 'Mexico', 'woocommerce-mercadopago-module' ),
|
145 |
+
__( 'Peru', 'woocommerce-mercadopago-module' ),
|
146 |
+
__( 'or', 'woocommerce-mercadopago-module' ),
|
147 |
+
__( 'Venezuela', 'woocommerce-mercadopago-module' )
|
148 |
+
);
|
149 |
+
|
150 |
+
// Trigger API to get payment methods and site_id, also validates Client_id/Client_secret.
|
151 |
+
if ( $this->validateCredentials() ) {
|
152 |
+
try {
|
153 |
+
// checking the currency
|
154 |
+
$this->currency_message = "";
|
155 |
+
if ( !$this->isSupportedCurrency() && 'yes' == $this->settings[ 'enabled' ] ) {
|
156 |
+
if ( $this->currency_conversion == 'no' ) {
|
157 |
+
$this->currency_ratio = -1;
|
158 |
+
$this->currency_message .= '<img width="12" height="12" src="' .
|
159 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
160 |
+
' ' . __( 'ATTENTION: The currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
|
161 |
+
' ' . __( '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' ) .
|
162 |
+
' ' . $this->getCurrencyId( $this->site_id ) . ' (' . $this->getCountryName( $this->site_id ) . ').' .
|
163 |
+
' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
|
164 |
+
} else if ( $this->currency_conversion == 'yes' && $this->currency_ratio != -1 ) {
|
165 |
+
$this->currency_message .= '<img width="12" height="12" src="' .
|
166 |
+
plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
167 |
+
' ' . __( 'CURRENCY CONVERTED: The currency conversion ratio from', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
|
168 |
+
' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . __( ' is: ', 'woocommerce-mercadopago-module' ) . $this->currency_ratio . ".";
|
169 |
+
} else {
|
170 |
+
$this->currency_ratio = -1;
|
171 |
+
$this->currency_message .= '<img width="12" height="12" src="' .
|
172 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
173 |
+
' ' . __( 'ERROR: It was not possible to convert the unsupported currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
|
174 |
+
' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . '.' .
|
175 |
+
' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
|
176 |
+
}
|
177 |
+
} else {
|
178 |
+
$this->currency_ratio = -1;
|
179 |
+
}
|
180 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
181 |
+
plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
182 |
+
' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
|
183 |
+
': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
|
184 |
+
plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
|
185 |
+
$this->payment_desc =
|
186 |
+
__( 'Select the payment methods that you <strong>don\'t</strong> want to receive with Mercado Pago.', 'woocommerce-mercadopago-module' );
|
187 |
+
} catch ( MercadoPagoException $e ) {
|
188 |
+
array_push( $this->payment_methods, "n/d" );
|
189 |
+
$this->payment_desc = '<img width="12" height="12" src="' .
|
190 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
191 |
+
' ' . __( 'Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module' );
|
192 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
193 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
194 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
195 |
}
|
196 |
+
} else {
|
197 |
+
array_push( $this->payment_methods, "n/d" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
$this->payment_desc = '<img width="12" height="12" src="' .
|
199 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
200 |
+
' ' . __( 'Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module' );
|
201 |
$this->credentials_message = '<img width="12" height="12" src="' .
|
202 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
203 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
204 |
+
}
|
205 |
+
|
206 |
+
// Fills categoy selector. We do not need credentials to make this call.
|
207 |
+
$categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
|
208 |
+
foreach ( $categories[ "response" ] as $category ) {
|
209 |
+
array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
|
210 |
+
array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
|
211 |
+
}
|
212 |
+
|
213 |
+
// Checks validity of iFrame width/height fields.
|
214 |
+
if ( !is_numeric( $this->iframe_width ) ) {
|
215 |
+
$this->iframe_width_desc = '<img width="12" height="12" src="' .
|
216 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
217 |
+
' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
|
218 |
+
} else {
|
219 |
+
$this->iframe_width_desc =
|
220 |
+
__( 'If your integration method is iFrame, please inform the payment iFrame width.', 'woocommerce-mercadopago-module' );
|
221 |
+
}
|
222 |
+
if ( !is_numeric( $this->iframe_height ) ) {
|
223 |
+
$this->iframe_height_desc = '<img width="12" height="12" src="' .
|
224 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
225 |
+
' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
|
226 |
+
} else {
|
227 |
+
$this->iframe_height_desc =
|
228 |
+
__( 'If your integration method is iFrame, please inform the payment iFrame height.', 'woocommerce-mercadopago-module' );
|
229 |
+
}
|
230 |
+
|
231 |
+
// Checks if max installments is a number.
|
232 |
+
if ( !is_numeric( $this->installments ) ) {
|
233 |
+
$this->installments_desc = '<img width="12" height="12" src="' .
|
234 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
235 |
+
' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
|
236 |
+
} else {
|
237 |
+
$this->installments_desc =
|
238 |
+
__( 'Select the max number of installments for your customers.', 'woocommerce-mercadopago-module' );
|
239 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
}
|
241 |
+
|
242 |
+
if ( 'yes' == $this->settings[ 'enabled' ] ) {
|
243 |
+
// This array draws each UI (text, selector, checkbox, label, etc).
|
244 |
+
$this->form_fields = array(
|
245 |
+
'enabled' => array(
|
246 |
+
'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
|
247 |
+
'type' => 'checkbox',
|
248 |
+
'label' => __( 'Enable Basic Checkout', 'woocommerce-mercadopago-module' ),
|
249 |
+
'default' => 'no'
|
250 |
+
),
|
251 |
+
'credentials_title' => array(
|
252 |
+
'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
|
253 |
+
'type' => 'title',
|
254 |
+
'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
|
255 |
+
),
|
256 |
+
'client_id' => array(
|
257 |
+
'title' => 'Client_id',
|
258 |
+
'type' => 'text',
|
259 |
+
'description' => __( 'Insert your Mercado Pago Client_id.', 'woocommerce-mercadopago-module' ),
|
260 |
+
'default' => '',
|
261 |
+
'required' => true
|
262 |
+
),
|
263 |
+
'client_secret' => array(
|
264 |
+
'title' => 'Client_secret',
|
265 |
+
'type' => 'text',
|
266 |
+
'description' => __( 'Insert your Mercado Pago Client_secret.', 'woocommerce-mercadopago-module' ),
|
267 |
+
'default' => '',
|
268 |
+
'required' => true
|
269 |
+
),
|
270 |
+
'ipn_url' => array(
|
271 |
+
'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
|
272 |
+
'type' => 'title',
|
273 |
+
'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>.' )
|
274 |
+
),
|
275 |
+
'checkout_options_title' => array(
|
276 |
+
'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
|
277 |
+
'type' => 'title',
|
278 |
+
'description' => ''
|
279 |
+
),
|
280 |
+
'title' => array(
|
281 |
+
'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
|
282 |
+
'type' => 'text',
|
283 |
+
'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
284 |
+
'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
|
285 |
+
),
|
286 |
+
'description' => array(
|
287 |
+
'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
|
288 |
+
'type' => 'textarea',
|
289 |
+
'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
290 |
+
'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
|
291 |
+
),
|
292 |
+
'category_id' => array(
|
293 |
+
'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
|
294 |
+
'type' => 'select',
|
295 |
+
'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
|
296 |
+
'options' => $this->store_categories_id
|
297 |
+
),
|
298 |
+
'invoice_prefix' => array(
|
299 |
+
'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
|
300 |
+
'type' => 'text',
|
301 |
+
'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' ),
|
302 |
+
'default' => 'WC-'
|
303 |
+
),
|
304 |
+
'method' => array(
|
305 |
+
'title' => __( 'Integration Method', 'woocommerce-mercadopago-module' ),
|
306 |
+
'type' => 'select',
|
307 |
+
'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' ),
|
308 |
+
'default' => 'iframe',
|
309 |
+
'options' => array(
|
310 |
+
'iframe' => __( 'iFrame', 'woocommerce-mercadopago-module' ),
|
311 |
+
'modal' => __( 'Modal Window', 'woocommerce-mercadopago-module' ),
|
312 |
+
'redirect' => __( 'Redirect', 'woocommerce-mercadopago-module' )
|
313 |
+
)
|
314 |
+
),
|
315 |
+
'iframe_width' => array(
|
316 |
+
'title' => __( 'iFrame Width', 'woocommerce-mercadopago-module' ),
|
317 |
+
'type' => 'text',
|
318 |
+
'description' => $this->iframe_width_desc,
|
319 |
+
'default' => '640'
|
320 |
+
),
|
321 |
+
'iframe_height' => array(
|
322 |
+
'title' => __( 'iFrame Height', 'woocommerce-mercadopago-module' ),
|
323 |
+
'type' => 'text',
|
324 |
+
'description' => $this->iframe_height_desc,
|
325 |
+
'default' => '800'
|
326 |
+
),
|
327 |
+
'auto_return' => array(
|
328 |
+
'title' => __( 'Auto Return', 'woocommerce-mercadopago-module' ),
|
329 |
+
'type' => 'checkbox',
|
330 |
+
'label' => __( 'Automatic Return After Payment', 'woocommerce-mercadopago-module' ),
|
331 |
+
'default' => 'yes',
|
332 |
+
'description' => __( 'After the payment, client is automatically redirected.', 'woocommerce-mercadopago-module' ),
|
333 |
+
),
|
334 |
+
'payment_title' => array(
|
335 |
+
'title' => __( 'Payment Options', 'woocommerce-mercadopago-module' ),
|
336 |
+
'type' => 'title',
|
337 |
+
'description' => ''
|
338 |
+
),
|
339 |
+
'currency_conversion' => array(
|
340 |
+
'title' => __( 'Currency Conversion', 'woocommerce-mercadopago-module' ),
|
341 |
+
'type' => 'checkbox',
|
342 |
+
'label' => __( 'If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio', 'woocommerce-mercadopago-module' ),
|
343 |
+
'default' => 'no',
|
344 |
+
'description' => sprintf( '%s', $this->currency_message )
|
345 |
+
),
|
346 |
+
'installments' => array(
|
347 |
+
'title' => __( 'Max installments', 'woocommerce-mercadopago-module' ),
|
348 |
+
'type' => 'text',
|
349 |
+
'description' => $this->installments_desc,
|
350 |
+
'default' => '24'
|
351 |
+
),
|
352 |
+
'ex_payments' => array(
|
353 |
+
'title' => __( 'Exclude Payment Methods', 'woocommerce-mercadopago-module' ),
|
354 |
+
'description' => $this->payment_desc,
|
355 |
+
'type' => 'multiselect',
|
356 |
+
'options' => $this->payment_methods,
|
357 |
+
'default' => ''
|
358 |
+
),
|
359 |
+
'testing' => array(
|
360 |
+
'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
|
361 |
+
'type' => 'title',
|
362 |
+
'description' => ''
|
363 |
+
),
|
364 |
+
'sandbox' => array(
|
365 |
+
'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
|
366 |
+
'type' => 'checkbox',
|
367 |
+
'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
|
368 |
+
'default' => 'no',
|
369 |
+
'description' => __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
|
370 |
+
),
|
371 |
+
'debug' => array(
|
372 |
+
'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
|
373 |
+
'type' => 'checkbox',
|
374 |
+
'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
|
375 |
+
'default' => 'no',
|
376 |
+
'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
|
377 |
+
' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
|
378 |
+
'<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
|
379 |
+
)
|
380 |
+
);
|
381 |
} else {
|
382 |
+
$this->form_fields = array(
|
383 |
+
'enabled' => array(
|
384 |
+
'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
|
385 |
+
'type' => 'checkbox',
|
386 |
+
'label' => __( 'Enable Basic Checkout', 'woocommerce-mercadopago-module' ),
|
387 |
+
'default' => 'no'
|
388 |
+
)
|
389 |
+
);
|
390 |
}
|
391 |
+
|
392 |
+
}
|
393 |
+
|
394 |
+
public function admin_options() {
|
395 |
+
$this->validate_settings_fields();
|
396 |
+
if ( count( $this->errors ) > 0 ) {
|
397 |
+
$this->display_errors();
|
398 |
+
return false;
|
399 |
} else {
|
400 |
+
echo wpautop( $this->method_description );
|
401 |
+
?>
|
402 |
+
<p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
|
403 |
+
<?php esc_html_e( sprintf( __( 'Please, rate us %s on WordPress.org and give your feedback to help improve this module!', 'woocommerce-mercadopago-module' ), '★★★★★' ) ); ?>
|
404 |
+
</a></p>
|
405 |
+
<table class="form-table">
|
406 |
+
<?php $this->generate_settings_html(); ?>
|
407 |
+
</table>
|
408 |
+
<?php
|
409 |
+
return true;
|
410 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
}
|
412 |
+
|
413 |
/*
|
414 |
* ========================================================================
|
415 |
* CHECKOUT BUSINESS RULES
|
416 |
* ========================================================================
|
417 |
*/
|
418 |
+
|
419 |
+
public function payment_fields() {
|
420 |
+
// basic checkout
|
421 |
+
if ($description = $this->get_description() ) {
|
422 |
+
echo wpautop( wptexturize( $description ) );
|
423 |
+
}
|
424 |
+
if ( $this->supports( 'default_credit_card_form' ) ) {
|
425 |
+
$this->credit_card_form();
|
426 |
+
}
|
427 |
+
}
|
428 |
+
|
429 |
// 1. First step occurs when the customer selects Mercado Pago and proceed to
|
430 |
// checkout. This method verify which integration method was selected and
|
431 |
// makes the build for the checkout URL.
|
432 |
+
public function process_payment( $order_id ) {
|
433 |
+
$order = new WC_Order( $order_id );
|
434 |
// Check for the type of integration.
|
435 |
+
if ( 'redirect' == $this->method ) {
|
436 |
+
if ( 'yes' == $this->debug ) {
|
437 |
+
$this->log->add( $this->id, $this->id . ': @[process_payment] - customer being redirected to Mercado Pago environment.' );
|
438 |
}
|
439 |
return array(
|
440 |
'result' => 'success',
|
441 |
+
'redirect' => $this->createUrl( $order )
|
442 |
);
|
443 |
+
} else if ( 'modal' == $this->method || 'iframe' == $this->method ) {
|
444 |
+
if ( 'yes' == $this->debug ) {
|
445 |
+
$this->log->add( $this->id, $this->id . ': @[process_payment] - preparing to render Mercado Pago checkout view.' );
|
446 |
}
|
447 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
448 |
return array(
|
449 |
'result' => 'success',
|
450 |
+
'redirect' => $order->get_checkout_payment_url( true )
|
451 |
);
|
452 |
} else {
|
453 |
return array(
|
454 |
'result' => 'success',
|
455 |
+
'redirect' => add_query_arg(
|
456 |
+
'order', $order->id, add_query_arg(
|
457 |
+
'key',
|
458 |
+
$order->order_key,
|
459 |
+
get_permalink( woocommerce_get_page_id( 'pay' ) )
|
460 |
+
)
|
461 |
+
)
|
462 |
);
|
463 |
}
|
464 |
}
|
466 |
|
467 |
// 2. Order page and this generates the form that shows the pay button. This step
|
468 |
// generates the form to proceed to checkout.
|
469 |
+
public function receipt_page( $order ) {
|
470 |
+
echo $this->renderOrderForm( $order );
|
471 |
}
|
472 |
// --------------------------------------------------
|
473 |
+
public function renderOrderForm( $order_id ) {
|
474 |
+
$order = new WC_Order( $order_id );
|
475 |
+
$url = $this->createUrl( $order );
|
476 |
+
if ( $url ) {
|
477 |
// Display checkout.
|
478 |
$html =
|
479 |
+
'<img width="468" height="60" src="' .
|
480 |
+
plugins_url( 'images/' . $this->banners_mercadopago_standard[ $this->site_id ], plugin_dir_path( __FILE__ ) ) . '">';
|
481 |
+
if ( 'iframe' != $this->method ) {
|
482 |
+
if ( 'yes' == $this->debug ) {
|
483 |
+
$this->log->add( $this->id, $this->id . ': @[renderOrderForm] - rendering Mercado Pago lightbox (modal window).' );
|
484 |
}
|
485 |
$html .= '<p></p><p>' . wordwrap(
|
486 |
+
__( 'Thank you for your order. Please, proceed with your payment clicking in the bellow button.', 'woocommerce-mercadopago-module' ),
|
487 |
60, '<br>') . '</p>';
|
488 |
$html .=
|
489 |
'<a id="submit-payment" href="' . $url . '" name="MP-Checkout" class="button alt" mp-mode="modal">' .
|
490 |
+
__( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' ) .
|
491 |
'</a> ';
|
492 |
$html .=
|
493 |
+
'<a class="button cancel" href="' . esc_url( $order->get_cancel_order_url() ) . '">' .
|
494 |
+
__( 'Cancel order & Clear cart', 'woocommerce-mercadopago-module' ) .
|
495 |
'</a><style type="text/css">#MP-Checkout-dialog #MP-Checkout-IFrame { bottom: -28px !important; height: 590px !important; }</style>';
|
496 |
// Includes javascript.
|
497 |
$html .=
|
498 |
+
'<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>';
|
499 |
} else {
|
500 |
+
if ( 'yes' == $this->debug ) {
|
501 |
+
$this->log->add( $this->id, $this->id . ': @[renderOrderForm] - embedding Mercado Pago iFrame.' );
|
502 |
}
|
503 |
$html .= '<p></p><p>' . wordwrap(
|
504 |
+
__( 'Thank you for your order. Proceed with your payment completing the following information.', 'woocommerce-mercadopago-module' ),
|
505 |
+
60, '<br>' ) . '</p>';
|
506 |
$html .=
|
507 |
'<iframe src="' . $url . '" name="MP-Checkout" ' .
|
508 |
+
'width="' . ( is_numeric( (int) $this->iframe_width ) ? $this->iframe_width : 640 ) . '" ' .
|
509 |
+
'height="' . ( is_numeric( (int) $this->iframe_height ) ? $this->iframe_height : 800 ) . '" ' .
|
510 |
'frameborder="0" scrolling="no" id="checkout_mercadopago"></iframe>';
|
511 |
}
|
512 |
return $html;
|
513 |
} else {
|
514 |
$html =
|
515 |
+
'<p>' . __( 'An error occurred when proccessing your payment. Please try again or contact us for assistence.', 'woocommerce-mercadopago-module' ) . '</p>';
|
516 |
$html .=
|
517 |
+
'<a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
|
518 |
+
__( 'Click to try again', 'woocommerce-mercadopago-module' ) .
|
519 |
'</a>';
|
520 |
return $html;
|
521 |
}
|
522 |
}
|
523 |
+
|
524 |
// 3. Create Mercado Pago preference and get init_point URL based in the
|
525 |
// order options from the cart.
|
526 |
+
public function buildPaymentPreference( $order ) {
|
527 |
+
|
528 |
+
// Using a string to register each item (this is a workaround to deal with API problem that shows only first item)
|
529 |
+
$list_of_items = array();
|
530 |
// Here we build the array that contains ordered itens, from customer cart
|
531 |
$items = array();
|
532 |
+
if ( sizeof( $order->get_items() ) > 0 ) {
|
533 |
+
foreach ( $order->get_items() as $item ) {
|
534 |
+
if ( $item['qty'] ) {
|
535 |
+
$product = new WC_product( $item[ 'product_id' ] );
|
536 |
+
array_push( $list_of_items, $product->post->post_title . ' x ' . $item[ 'qty' ] );
|
537 |
+
array_push( $items, array(
|
538 |
+
'id' => $item[ 'product_id' ],
|
539 |
+
'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
|
540 |
+
'description' => sanitize_file_name( (
|
541 |
// This handles description width limit of Mercado Pago.
|
542 |
+
strlen( $product->post->post_content ) > 230 ?
|
543 |
+
substr( $product->post->post_content, 0, 230 ) . "..." :
|
544 |
$product->post->post_content
|
545 |
+
) ),
|
546 |
+
'picture_url' => wp_get_attachment_url( $product->get_image_id() ),
|
547 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
548 |
'quantity' => 1,
|
549 |
+
'unit_price' => ( ( (float) $item[ 'line_total' ] + (float) $item[ 'line_tax' ] ) ) *
|
550 |
+
( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ),
|
551 |
+
'currency_id' => $this->getCurrencyId($this->site_id)
|
552 |
));
|
553 |
}
|
554 |
}
|
555 |
+
$ship_cost = ((float)$order->get_total_shipping() + (float)$order->get_shipping_tax()) *
|
556 |
+
( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 );
|
557 |
+
if ( $ship_cost > 0 ) {
|
558 |
+
array_push( $list_of_items, __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ) );
|
559 |
+
// shipment cost as an item (workaround to prevent API showing shipment setup again)
|
560 |
+
array_push($items, array(
|
561 |
+
'title' => $this->workaroundAmperSandBug( sanitize_file_name( $order->get_shipping_to_display() ) ),
|
562 |
+
'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
|
563 |
+
'category_id' => $this->store_categories_id[$this->category_id],
|
564 |
+
'quantity' => 1,
|
565 |
+
'unit_price' => $ship_cost,
|
566 |
+
'currency_id' => $this->getCurrencyId( $this->site_id )
|
567 |
+
));
|
568 |
+
}
|
569 |
+
// Using a string to register each item (this is a workaround to deal with API problem that shows only first item)
|
570 |
+
$items[0]['title'] = implode( ', ', $list_of_items );
|
571 |
}
|
572 |
+
|
573 |
// Find excluded payment methods. If 'n/d' is in array index, we should
|
574 |
// disconsider the remaining values.
|
575 |
+
$excluded_payment_methods = array();
|
576 |
+
if ( is_array( $this->ex_payments ) || is_object( $this->ex_payments ) ) {
|
577 |
+
try { // in some PHP versions, $this->ex_payments is interpreted as a not iterable object
|
578 |
+
foreach ( $this->ex_payments as $excluded ) {
|
579 |
+
if ( $excluded == 0 ) // if "n/d" is selected, we just not add any items to the array
|
580 |
+
break;
|
581 |
+
array_push( $excluded_payment_methods, array(
|
582 |
+
"id" => $this->payment_methods[ $excluded ]
|
583 |
+
));
|
584 |
+
}
|
585 |
+
} catch ( MercadoPagoException $e ) {
|
586 |
+
if ( 'yes' == $this->debug ) {
|
587 |
+
$this->log->add(
|
588 |
+
$this->id, $this->id .
|
589 |
+
': @[DEBUG] - excluded payments: exception caught: ' .
|
590 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) )
|
591 |
+
);
|
592 |
+
}
|
593 |
+
}
|
594 |
+
}
|
595 |
+
$payment_methods = array(
|
596 |
+
'installments' => ( is_numeric( (int) $this->installments) ? (int) $this->installments : 24 ),
|
597 |
+
'default_installments' => 1
|
598 |
+
);
|
599 |
+
// Set excluded payment methods.
|
600 |
+
if ( count( $excluded_payment_methods ) > 0 ) {
|
601 |
+
$payment_methods[ 'excluded_payment_methods' ] = $excluded_payment_methods;
|
602 |
+
}
|
603 |
+
|
604 |
+
// Create Mercado Pago preference.
|
605 |
$preferences = array(
|
606 |
'items' => $items,
|
607 |
// Payer should be filled with billing info because orders can be made with non-logged customers.
|
621 |
)
|
622 |
),
|
623 |
'back_urls' => array(
|
624 |
+
'success' => $this->workaroundAmperSandBug( esc_url( $this->get_return_url( $order ) ) ),
|
625 |
+
'failure' => $this->workaroundAmperSandBug( str_replace( '&', '&', $order->get_cancel_order_url() ) ),
|
626 |
+
'pending' => $this->workaroundAmperSandBug( esc_url( $this->get_return_url( $order ) ) )
|
627 |
),
|
628 |
+
//'marketplace' =>
|
629 |
+
//'marketplace_fee' =>
|
630 |
+
'shipments' => array(
|
631 |
+
//'cost' => (float) $order->get_total_shipping(),
|
632 |
+
//'mode' =>
|
633 |
+
'receiver_address' => array(
|
634 |
+
'zip_code' => $order->shipping_postcode,
|
635 |
+
//'street_number' =>
|
636 |
+
'street_name' => $order->shipping_address_1 . ' ' .
|
637 |
+
$order->shipping_city . ' ' .
|
638 |
+
$order->shipping_state . ' ' .
|
639 |
+
$order->shipping_country,
|
640 |
+
//'floor' =>
|
641 |
+
'apartment' => $order->shipping_address_2
|
642 |
+
)
|
643 |
+
),
|
644 |
'payment_methods' => $payment_methods,
|
645 |
+
//'notification_url' => $this->domain . '/' . $this->id . '/?wc-api=WC_WooMercadoPago_Gateway',
|
646 |
'external_reference' => $this->invoice_prefix . $order->id
|
647 |
//'additional_info' => $order->customer_message
|
648 |
+
//'expires' =>
|
649 |
+
//'expiration_date_from' =>
|
650 |
+
//'expiration_date_to' =>
|
651 |
);
|
652 |
+
// Do not set IPN url if it is a localhost!
|
653 |
+
$notification_url = $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPago_Gateway';
|
654 |
+
if ( !strrpos( $notification_url, "localhost" ) ) {
|
655 |
+
$preferences['notification_url'] = $this->workaroundAmperSandBug( $notification_url );
|
656 |
+
}
|
657 |
// Set sponsor ID
|
658 |
+
if ( !$this->isTestUser ) {
|
659 |
+
$preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
|
660 |
}
|
661 |
// Auto return options.
|
662 |
+
if ( 'yes' == $this->auto_return ) {
|
663 |
+
$preferences[ 'auto_return' ] = "approved";
|
664 |
}
|
665 |
+
if ( 'yes' == $this->debug ) {
|
666 |
+
$this->log->add(
|
667 |
+
$this->id, $this->id .
|
668 |
+
': @[buildPaymentPreference] - requesting mercado pago preference creation with following structure: ' .
|
669 |
+
json_encode( $preferences, JSON_PRETTY_PRINT ) );
|
670 |
}
|
671 |
+
$preferences = apply_filters( 'woocommerce_mercadopago_module_preferences', $preferences, $order );
|
672 |
return $preferences;
|
673 |
}
|
674 |
// --------------------------------------------------
|
675 |
+
protected function createUrl( $order ) {
|
676 |
// Creates the order parameters by checking the cart configuration.
|
677 |
+
$preferences = $this->buildPaymentPreference( $order );
|
|
|
678 |
// Checks for sandbox mode.
|
679 |
+
if ( 'yes' == $this->sandbox ) {
|
680 |
+
$this->mp->sandbox_mode( true );
|
681 |
+
if ( 'yes' == $this->debug ) {
|
682 |
+
$this->log->add( $this->id, $this->id . ': @[createUrl] - sandbox mode is enabled' );
|
683 |
}
|
684 |
} else {
|
685 |
+
$this->mp->sandbox_mode( false );
|
686 |
}
|
687 |
// Create order preferences with Mercado Pago API request.
|
688 |
try {
|
689 |
+
$checkout_info = $this->mp->create_preference( json_encode( $preferences ) );
|
690 |
+
if ( is_wp_error( $checkout_info ) || $checkout_info[ 'status' ] < 200 || $checkout_info[ 'status' ] >= 300 ) {
|
691 |
+
if ( 'yes' == $this->debug ) {
|
692 |
+
$this->log->add( $this->id, $this->id . ': @[createUrl] - payment creation failed with error: ' . $checkout_info[ 'response' ][ 'status' ] );
|
693 |
}
|
694 |
return false;
|
695 |
} else {
|
696 |
+
if ( 'yes' == $this->debug ) {
|
697 |
+
$this->log->add( $this->id, $this->id .
|
698 |
+
': @[createUrl] - payment link generated with success from mercado pago, with structure as follow: ' .
|
699 |
+
json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
|
700 |
}
|
701 |
+
if ( 'yes' == $this->sandbox ) {
|
702 |
+
return $checkout_info[ 'response' ][ 'sandbox_init_point' ];
|
703 |
} else {
|
704 |
+
return $checkout_info[ 'response' ][ 'init_point' ];
|
705 |
}
|
706 |
}
|
707 |
+
} catch ( MercadoPagoException $e ) {
|
708 |
+
if ( 'yes' == $this->debug ) {
|
709 |
+
$this->log->add(
|
710 |
+
$this->id, $this->id .
|
711 |
+
': @[createUrl] - payment creation failed with exception: ' .
|
712 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
713 |
}
|
714 |
return false;
|
715 |
}
|
716 |
}
|
717 |
+
|
718 |
/*
|
719 |
* ========================================================================
|
720 |
* AUXILIARY AND FEEDBACK METHODS
|
721 |
* ========================================================================
|
722 |
*/
|
723 |
|
724 |
+
// Fix to URL Problem : #038; replaces & and breaks the navigation
|
725 |
+
function workaroundAmperSandBug( $link ) {
|
726 |
+
return str_replace('&', '&', $link);
|
727 |
+
}
|
728 |
+
|
729 |
// Check if we have valid credentials.
|
730 |
public function validateCredentials() {
|
731 |
+
if ( empty( $this->client_id ) ) return false;
|
732 |
+
if ( empty( $this->client_secret ) ) return false;
|
733 |
+
if ( strlen( $this->client_id ) > 0 && strlen( $this->client_secret ) > 0 ) {
|
734 |
try {
|
735 |
+
$this->mp = new MP( $this->client_id, $this->client_secret );
|
736 |
+
$access_token = $this->mp->get_access_token();
|
737 |
+
$get_request = $this->mp->get( "/users/me?access_token=" . $access_token );
|
738 |
+
if ( isset( $get_request[ 'response' ][ 'site_id' ] ) ) {
|
739 |
+
$this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
|
740 |
+
$this->site_id = $get_request[ 'response' ][ 'site_id' ];
|
741 |
+
$payments = $this->mp->get( "/v1/payment_methods/?access_token=" . $access_token );
|
742 |
+
array_push( $this->payment_methods, "n/d" );
|
743 |
+
foreach ( $payments[ "response" ] as $payment ) {
|
744 |
+
array_push( $this->payment_methods, str_replace( "_", " ", $payment[ 'id' ] ) );
|
745 |
+
}
|
746 |
+
// check for auto converstion of currency (only if it is enabled)
|
747 |
+
$this->currency_ratio = -1;
|
748 |
+
if ( $this->currency_conversion == "yes" ) {
|
749 |
+
$currency_obj = MPRestClient::get_ml( array( "uri" =>
|
750 |
+
"/currency_conversions/search?from=" .
|
751 |
+
get_woocommerce_currency() .
|
752 |
+
"&to=" .
|
753 |
+
$this->getCurrencyId( $this->site_id )
|
754 |
+
) );
|
755 |
+
if ( isset( $currency_obj[ 'response' ] ) ) {
|
756 |
+
$currency_obj = $currency_obj[ 'response' ];
|
757 |
+
if ( isset( $currency_obj['ratio'] ) ) {
|
758 |
+
$this->currency_ratio = (float) $currency_obj['ratio'];
|
759 |
+
} else {
|
760 |
+
$this->currency_ratio = -1;
|
761 |
+
}
|
762 |
+
} else {
|
763 |
+
$this->currency_ratio = -1;
|
764 |
+
}
|
765 |
+
}
|
766 |
+
return true;
|
767 |
+
} else return false;
|
768 |
+
} catch ( MercadoPagoException $e ) {
|
769 |
return false;
|
770 |
}
|
771 |
}
|
772 |
return false;
|
773 |
}
|
774 |
+
|
775 |
+
// Build the string representing the path to the log file
|
776 |
+
protected function buildLogPathString() {
|
777 |
+
return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
|
778 |
+
esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
|
779 |
+
__( 'WooCommerce > System Status > Logs', 'woocommerce-mercadopago-module' ) . '</a>';
|
780 |
+
}
|
781 |
+
|
782 |
// Return boolean indicating if currency is supported.
|
783 |
protected function isSupportedCurrency() {
|
784 |
+
return get_woocommerce_currency() == $this->getCurrencyId( $this->site_id );
|
785 |
+
}
|
786 |
+
|
787 |
+
// Get currency id for a country
|
788 |
+
protected function getCurrencyId( $site_id ) {
|
789 |
+
switch ( $site_id ) {
|
790 |
+
case 'MLA': return 'ARS';
|
791 |
+
case 'MLB': return 'BRL';
|
792 |
+
case 'MCO': return 'COP';
|
793 |
+
case 'MLC': return 'CLP';
|
794 |
+
case 'MLM': return 'MXN';
|
795 |
+
case 'MLV': return 'VEF';
|
796 |
+
case 'MPE': return 'PEN';
|
797 |
+
default: return '';
|
798 |
+
}
|
799 |
}
|
800 |
|
801 |
// Called automatically by WooCommerce, verify if Module is available to use.
|
802 |
public function is_available() {
|
803 |
// Test if is valid for use.
|
804 |
+
$available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
|
805 |
+
! empty( $this->client_id ) &&
|
806 |
+
! empty( $this->client_secret );
|
|
|
807 |
return $available;
|
808 |
}
|
809 |
+
|
810 |
// Fix css for Mercado Pago in specific cases.
|
811 |
public function css() {
|
812 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
813 |
+
$page_id = wc_get_page_id( 'checkout' );
|
814 |
} else {
|
815 |
+
$page_id = woocommerce_get_page_id( 'checkout' );
|
816 |
}
|
817 |
+
if ( is_page($page_id ) ) {
|
818 |
echo '<style type="text/css">#MP-Checkout-dialog { z-index: 9999 !important; }</style>' . PHP_EOL;
|
819 |
}
|
820 |
}
|
821 |
+
|
822 |
// Get the URL to admin page.
|
823 |
protected function admin_url() {
|
824 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
825 |
return admin_url(
|
826 |
'admin.php?page=wc-settings&tab=checkout§ion=wc_woomercadopago_gateway'
|
827 |
);
|
833 |
|
834 |
// Notify that Client_id and/or Client_secret are not valid.
|
835 |
public function clientIdOrSecretMissingMessage() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
836 |
echo '<div class="error"><p><strong>' .
|
837 |
+
__( 'Basic Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
|
838 |
'</strong>: ' .
|
839 |
sprintf(
|
840 |
+
__( 'Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
|
841 |
+
'<a href="' . $this->admin_url() . '">' . __( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
|
842 |
'</p></div>';
|
843 |
}
|
844 |
+
|
845 |
+
public function getCountryName( $site_id ) {
|
846 |
+
switch ( $site_id ) {
|
847 |
+
case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
|
848 |
+
case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
|
849 |
+
case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
|
850 |
+
case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
|
851 |
+
case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
|
852 |
+
case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
|
853 |
+
case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
|
854 |
}
|
855 |
}
|
856 |
+
|
857 |
/*
|
858 |
* ========================================================================
|
859 |
* IPN MECHANICS
|
860 |
* ========================================================================
|
861 |
*/
|
862 |
+
|
863 |
// This call checks any incoming notifications from Mercado Pago server.
|
864 |
public function check_ipn_response() {
|
|
|
|
|
|
|
865 |
@ob_clean();
|
866 |
+
if ( 'yes' == $this->debug ) {
|
867 |
+
$this->log->add( $this->id, $this->id .
|
868 |
+
': @[check_ipn_response] - Received _get content: ' .
|
869 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
870 |
+
}
|
871 |
+
$data = $this->check_ipn_request_is_valid( $_GET );
|
872 |
+
if ( $data ) {
|
873 |
+
header( 'HTTP/1.1 200 OK' );
|
874 |
+
do_action( 'valid_mercadopago_ipn_request', $data );
|
|
|
|
|
|
|
875 |
}
|
876 |
}
|
877 |
+
|
878 |
// Get received data from IPN and checks if we have a merchant_order or
|
879 |
// payment associated. If we have these information, we return data to be
|
880 |
// processed by successful_request function.
|
881 |
+
public function check_ipn_request_is_valid( $data ) {
|
882 |
+
|
883 |
+
if ( !isset( $data[ 'id' ] ) || !isset( $data[ 'topic' ] ) ) {
|
884 |
+
if ( 'yes' == $this->debug ) {
|
885 |
+
$this->log->add( $this->id, $this->id .
|
886 |
+
': @[check_ipn_request_is_valid] - data_id or type not set: ' .
|
887 |
+
json_encode( $data, JSON_PRETTY_PRINT ) );
|
888 |
}
|
889 |
+
// at least, check if its a v0 ipn
|
890 |
+
if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
|
891 |
+
if ( 'yes' == $this->debug ) {
|
892 |
+
$this->log->add(
|
893 |
+
$this->id, $this->id .
|
894 |
+
': @[check_ipn_response] - Mercado Pago Request Failure: ' .
|
895 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
896 |
+
}
|
897 |
+
wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
|
898 |
+
} else {
|
899 |
+
header( 'HTTP/1.1 200 OK' );
|
900 |
+
}
|
901 |
+
// No ID? No process!
|
902 |
+
return false;
|
903 |
}
|
904 |
+
|
905 |
+
if ( 'yes' == $this->sandbox ) {
|
906 |
+
$this->mp->sandbox_mode( true );
|
|
|
907 |
} else {
|
908 |
+
$this->mp->sandbox_mode( false );
|
909 |
}
|
910 |
try { // Get the merchant_order reported by the IPN. Glossary of attributes response in https://developers.mercadopago.com
|
911 |
+
$params = array( "access_token" => $this->mp->get_access_token() );
|
912 |
+
if ( $data[ "topic" ] == 'merchant_order' ) {
|
913 |
+
$merchant_order_info = $this->mp->get( "/merchant_orders/" . $_GET[ "id" ], $params, false );
|
914 |
+
// If the payment's transaction amount is equal (or bigger) than the merchant order's amount you can release your items
|
915 |
+
if ( !is_wp_error( $merchant_order_info ) && ($merchant_order_info[ "status" ] == 200 ) ) {
|
916 |
+
$payments = $merchant_order_info[ "response" ][ "payments" ];
|
917 |
// check if we have more than one payment method
|
918 |
+
if ( sizeof( $payments ) >= 1 ) { // We have payments
|
919 |
+
return $merchant_order_info[ 'response' ];
|
920 |
+
} else { // We have no payments?
|
921 |
+
if ( 'yes' == $this->debug ) {
|
922 |
+
$this->log->add( $this->id, $this->id . ': @[check_ipn_request_is_valid] - order received but has no payment' );
|
|
|
|
|
923 |
}
|
924 |
+
return false;
|
925 |
+
}
|
|
|
926 |
} else {
|
927 |
+
if ( 'yes' == $this->debug ) {
|
928 |
+
$this->log->add( $this->id, $this->id . ': @[check_ipn_request_is_valid] - got status not equal 200 or some error' );
|
929 |
}
|
930 |
return false;
|
931 |
}
|
932 |
}
|
933 |
+
} catch ( MercadoPagoException $e ) {
|
934 |
+
if ( 'yes' == $this->debug ) {
|
935 |
+
$this->log->add( $this->id, $this->id .
|
936 |
+
': @[check_ipn_request_is_valid] - GOT EXCEPTION: ' .
|
937 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
938 |
}
|
939 |
return false;
|
940 |
}
|
941 |
return true;
|
942 |
}
|
943 |
+
|
944 |
// Properly handles each case of notification, based in payment status.
|
945 |
+
public function successful_request( $data ) {
|
946 |
+
if ( 'yes' == $this->debug ) {
|
947 |
+
$this->log->add( $this->id, $this->id . ': @[successful_request] - starting to process ipn update...' );
|
948 |
}
|
949 |
+
$order_key = $data[ 'external_reference' ];
|
950 |
+
if ( !empty( $order_key ) ) {
|
951 |
+
$order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
|
952 |
+
$order = new WC_Order( $order_id );
|
953 |
// Checks whether the invoice number matches the order. If true processes the payment.
|
954 |
+
if ( $order->id === $order_id ) {
|
955 |
if ( 'yes' == $this->debug ) {
|
956 |
+
$this->log->add( $this->id, $this->id . ': @[successful_request] - got order with ID ' . $order->id . ' and status ' . $data[ 'payments' ][ 0 ][ 'status' ] );
|
957 |
}
|
958 |
// Order details.
|
959 |
+
if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
960 |
update_post_meta(
|
961 |
$order_id,
|
962 |
+
__( 'Payer email', 'woocommerce-mercadopago-module' ),
|
963 |
+
$data[ 'payer' ][ 'email' ]
|
964 |
);
|
965 |
}
|
966 |
+
if ( !empty( $data[ 'payment_type' ] ) ) {
|
967 |
update_post_meta(
|
968 |
$order_id,
|
969 |
+
__( 'Payment type', 'woocommerce-mercadopago-module' ),
|
970 |
+
$data[ 'payment_type' ]
|
971 |
);
|
972 |
}
|
973 |
+
if ( !empty( $data[ 'payments' ] ) ) {
|
974 |
$payment_ids = array();
|
975 |
+
foreach ( $data[ 'payments' ] as $payment ) {
|
976 |
+
$payment_ids[] = $payment[ 'id' ];
|
977 |
}
|
978 |
+
if ( sizeof( $payment_ids ) > 0 ) {
|
979 |
update_post_meta(
|
980 |
$order_id,
|
981 |
+
__( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
|
982 |
+
implode( ', ', $payment_ids )
|
983 |
);
|
984 |
}
|
985 |
}
|
986 |
+
// Here, we process the status...
|
987 |
+
$status = 'pending';
|
988 |
+
if ( sizeof( $data[ 'payments' ] ) == 1 ) {
|
989 |
+
// if there's only one payment, then we get its status
|
990 |
+
$status = $data[ 'payments' ][ 0 ][ 'status' ];
|
991 |
+
} else if ( sizeof( $data[ 'payments' ] ) > 1 ) {
|
992 |
+
// otherwise, we check payment sum
|
993 |
+
$total_paid = 0.00;
|
994 |
+
foreach ( $data[ 'payments' ] as $payment ) {
|
995 |
+
if ( $payment[ 'status' ] === 'approved' ) {
|
996 |
+
$total_paid = $total_paid + (float) $payment[ 'total_paid_amount' ];
|
997 |
+
}
|
998 |
+
}
|
999 |
+
$total = $data[ 'shipping_cost' ] + $data[ 'total_amount' ];
|
1000 |
+
if ( $total_paid >= $total ) {
|
1001 |
+
// At this point, the sum of approved payments are above or equal than the total order amount, so it is approved
|
1002 |
+
$status = 'approved';
|
1003 |
+
}
|
1004 |
+
}
|
1005 |
+
// Switch the status and update in WooCommerce
|
1006 |
+
switch ( $status ) {
|
1007 |
case 'approved':
|
1008 |
$order->add_order_note(
|
1009 |
+
'Mercado Pago: ' . __( 'Payment approved.', 'woocommerce-mercadopago-module' )
|
1010 |
);
|
1011 |
$order->payment_complete();
|
1012 |
break;
|
1013 |
case 'pending':
|
1014 |
$order->add_order_note(
|
1015 |
+
'Mercado Pago: ' . __( 'Customer haven\'t paid yet.', 'woocommerce-mercadopago-module' )
|
1016 |
);
|
1017 |
break;
|
1018 |
case 'in_process':
|
1019 |
+
$order->update_status(
|
1020 |
+
'on-hold',
|
1021 |
+
'Mercado Pago: ' . __( 'Payment under review.', 'woocommerce-mercadopago-module' )
|
1022 |
);
|
1023 |
break;
|
1024 |
case 'rejected':
|
1025 |
+
$order->update_status(
|
1026 |
+
'failed',
|
1027 |
+
'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.', 'woocommerce-mercadopago-module' )
|
1028 |
);
|
1029 |
break;
|
1030 |
case 'refunded':
|
1031 |
$order->update_status(
|
1032 |
'refunded',
|
1033 |
+
'Mercado Pago: ' . __( 'The payment was refunded to the customer.', 'woocommerce-mercadopago-module' )
|
1034 |
);
|
1035 |
break;
|
1036 |
case 'cancelled':
|
1037 |
$order->update_status(
|
1038 |
'cancelled',
|
1039 |
+
'Mercado Pago: ' . __( 'The payment was cancelled.', 'woocommerce-mercadopago-module' )
|
1040 |
);
|
1041 |
break;
|
1042 |
case 'in_mediation':
|
1043 |
$order->add_order_note(
|
1044 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
|
1045 |
);
|
1046 |
break;
|
1047 |
case 'charged-back':
|
1048 |
$order->add_order_note(
|
1049 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
|
1050 |
);
|
1051 |
+
break;
|
1052 |
default:
|
1053 |
break;
|
1054 |
}
|
1055 |
}
|
1056 |
}
|
1057 |
}
|
1058 |
+
|
1059 |
}
|
mercadopago/mercadopago-ticket-gateway.php
ADDED
@@ -0,0 +1,1017 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
|
7 |
+
* License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
8 |
+
*/
|
9 |
+
|
10 |
+
// This include Mercado Pago library SDK
|
11 |
+
require_once "sdk/lib/mercadopago.php";
|
12 |
+
|
13 |
+
// Extending from WooCommerce Payment Gateway class.
|
14 |
+
// This extension implements the ticket payment method.
|
15 |
+
class WC_WooMercadoPagoTicket_Gateway extends WC_Payment_Gateway {
|
16 |
+
|
17 |
+
// Sponsor ID array by country
|
18 |
+
private $sponsor_id = array(
|
19 |
+
"MLA" => '208682286',
|
20 |
+
"MLB" => '208686191',
|
21 |
+
"MCO" => '208687643',
|
22 |
+
"MLC" => '208690789',
|
23 |
+
"MPE" => '216998692',
|
24 |
+
"MLV" => '208692735',
|
25 |
+
"MLM" => '208692380'
|
26 |
+
);
|
27 |
+
|
28 |
+
// Required inherited method from WC_Payment_Gateway class: __construct.
|
29 |
+
// Please check:
|
30 |
+
// [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
|
31 |
+
// for documentation and further information.
|
32 |
+
public function __construct() {
|
33 |
+
|
34 |
+
// These fields are declared because we use them dinamically in our gateway class.
|
35 |
+
$this->mp = null;
|
36 |
+
$this->domain = get_site_url() . '/index.php';
|
37 |
+
$this->currency_ratio = -1;
|
38 |
+
$this->site_id = null;
|
39 |
+
$this->isTestUser = false;
|
40 |
+
$this->payment_methods = array();
|
41 |
+
$this->store_categories_id = array();
|
42 |
+
$this->store_categories_description = array();
|
43 |
+
|
44 |
+
// Within your constructor, you should define the following variables.
|
45 |
+
$this->id = 'woocommerce-mercadopago-ticket-module';
|
46 |
+
$this->method_title = __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' );
|
47 |
+
$this->method_description = '<img width="200" height="52" src="' .
|
48 |
+
plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
|
49 |
+
wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
|
50 |
+
'</strong>';
|
51 |
+
|
52 |
+
// These fields are used in our Mercado Pago Module configuration page.
|
53 |
+
$this->access_token = $this->get_option( 'access_token' );
|
54 |
+
$this->title = $this->get_option( 'title' );
|
55 |
+
$this->description = $this->get_option( 'description' );
|
56 |
+
$this->coupon_mode = $this->get_option( 'coupon_mode' );
|
57 |
+
$this->category_id = $this->get_option( 'category_id' );
|
58 |
+
$this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
|
59 |
+
$this->currency_conversion = $this->get_option('currency_conversion', false);
|
60 |
+
$this->debug = $this->get_option( 'debug' );
|
61 |
+
|
62 |
+
// Render our configuration page and init/load fields.
|
63 |
+
$this->init_form_fields();
|
64 |
+
$this->init_settings();
|
65 |
+
|
66 |
+
// Hook actions for WordPress.
|
67 |
+
add_action( // Used by IPN to receive IPN incomings.
|
68 |
+
'woocommerce_api_wc_woomercadopagoticket_gateway',
|
69 |
+
array($this, 'process_http_request')
|
70 |
+
);
|
71 |
+
add_action( // Used by IPN to process valid incomings.
|
72 |
+
'valid_mercadopagoticket_ipn_request',
|
73 |
+
array($this, 'successful_request')
|
74 |
+
);
|
75 |
+
add_action( // Used in settings page to hook "save settings" action.
|
76 |
+
'woocommerce_update_options_payment_gateways_' . $this->id,
|
77 |
+
array( $this, 'process_admin_options' )
|
78 |
+
);
|
79 |
+
add_action( // Scripts for custom checkout
|
80 |
+
'wp_enqueue_scripts',
|
81 |
+
array( $this, 'ticketCheckoutScripts' )
|
82 |
+
);
|
83 |
+
add_action( // Apply the discounts
|
84 |
+
'woocommerce_cart_calculate_fees',
|
85 |
+
array( $this, 'add_discount_ticket' ), 10
|
86 |
+
);
|
87 |
+
|
88 |
+
// Verify if access token is empty.
|
89 |
+
if ( empty( $this->access_token ) && $this->settings[ 'enabled' ] == 'yes' ) {
|
90 |
+
add_action( 'admin_notices', array( $this, 'credentialsMissingMessage' ) );
|
91 |
+
} else {
|
92 |
+
add_action( // Verify if SSL is supported.
|
93 |
+
'admin_notices', array( $this, 'checkSSLAbsence' )
|
94 |
+
);
|
95 |
+
}
|
96 |
+
|
97 |
+
// Logging and debug.
|
98 |
+
if ( 'yes' == $this->debug ) {
|
99 |
+
if ( class_exists( 'WC_Logger' ) ) {
|
100 |
+
$this->log = new WC_Logger();
|
101 |
+
} else {
|
102 |
+
$this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
|
103 |
+
}
|
104 |
+
}
|
105 |
+
|
106 |
+
}
|
107 |
+
|
108 |
+
// Required inherited method from WC_Payment_Gateway class: init_form_fields.
|
109 |
+
// Initialise Gateway settings form fields with a customized page.
|
110 |
+
public function init_form_fields() {
|
111 |
+
|
112 |
+
if ( 'yes' == $this->settings[ 'enabled' ] ) {
|
113 |
+
$api_secret_locale = sprintf(
|
114 |
+
'<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
115 |
+
'<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
116 |
+
'<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
117 |
+
'<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
118 |
+
'<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
119 |
+
'<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a> %s ' .
|
120 |
+
'<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
|
121 |
+
__( 'Argentine', 'woocommerce-mercadopago-module' ),
|
122 |
+
__( 'Brazil', 'woocommerce-mercadopago-module' ),
|
123 |
+
__( 'Chile', 'woocommerce-mercadopago-module' ),
|
124 |
+
__( 'Colombia', 'woocommerce-mercadopago-module' ),
|
125 |
+
__( 'Mexico', 'woocommerce-mercadopago-module' ),
|
126 |
+
__( 'Peru', 'woocommerce-mercadopago-module' ),
|
127 |
+
__( 'or', 'woocommerce-mercadopago-module' ),
|
128 |
+
__( 'Venezuela', 'woocommerce-mercadopago-module' )
|
129 |
+
);
|
130 |
+
|
131 |
+
// Trigger API to get payment methods and site_id, also validates access_token.
|
132 |
+
if ( $this->validateCredentials() ) {
|
133 |
+
try {
|
134 |
+
// checking the currency
|
135 |
+
$this->currency_message = "";
|
136 |
+
if ( !$this->isSupportedCurrency() && 'yes' == $this->settings[ 'enabled' ] ) {
|
137 |
+
if ( $this->currency_conversion == 'no' ) {
|
138 |
+
$this->currency_ratio = -1;
|
139 |
+
$this->currency_message .= '<img width="12" height="12" src="' .
|
140 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
141 |
+
' ' . __( 'ATTENTION: The currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
|
142 |
+
' ' . __( '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' ) .
|
143 |
+
' ' . $this->getCurrencyId( $this->site_id ) . ' (' . $this->getCountryName( $this->site_id ) . ').' .
|
144 |
+
' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
|
145 |
+
} else if ( $this->currency_conversion == 'yes' && $this->currency_ratio != -1 ) {
|
146 |
+
$this->currency_message .= '<img width="12" height="12" src="' .
|
147 |
+
plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
148 |
+
' ' . __( 'CURRENCY CONVERTED: The currency conversion ratio from', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
|
149 |
+
' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . __( ' is: ', 'woocommerce-mercadopago-module' ) . $this->currency_ratio . ".";
|
150 |
+
} else {
|
151 |
+
$this->currency_ratio = -1;
|
152 |
+
$this->currency_message .= '<img width="12" height="12" src="' .
|
153 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
154 |
+
' ' . __( 'ERROR: It was not possible to convert the unsupported currency', 'woocommerce-mercadopago-module' ) . ' ' . get_woocommerce_currency() .
|
155 |
+
' ' . __( 'to', 'woocommerce-mercadopago-module' ) . ' ' . $this->getCurrencyId( $this->site_id ) . '.' .
|
156 |
+
' ' . __( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago-module' );
|
157 |
+
}
|
158 |
+
} else {
|
159 |
+
$this->currency_ratio = -1;
|
160 |
+
}
|
161 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
162 |
+
plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
163 |
+
' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
|
164 |
+
': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
|
165 |
+
plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
|
166 |
+
} catch ( MercadoPagoException $e ) {
|
167 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
168 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
169 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
170 |
+
}
|
171 |
+
} else {
|
172 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
173 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
174 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
175 |
+
}
|
176 |
+
|
177 |
+
// Fills categoy selector. We do not need credentials to make this call.
|
178 |
+
$categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
|
179 |
+
foreach ( $categories[ "response" ] as $category ) {
|
180 |
+
array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
|
181 |
+
array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
|
182 |
+
}
|
183 |
+
}
|
184 |
+
|
185 |
+
if ( 'yes' == $this->settings[ 'enabled' ] ) {
|
186 |
+
// This array draws each UI (text, selector, checkbox, label, etc).
|
187 |
+
$this->form_fields = array(
|
188 |
+
'enabled' => array(
|
189 |
+
'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
|
190 |
+
'type' => 'checkbox',
|
191 |
+
'label' => __( 'Enable Ticket Payment Method', 'woocommerce-mercadopago-module' ),
|
192 |
+
'default' => 'yes'
|
193 |
+
),
|
194 |
+
'credentials_title' => array(
|
195 |
+
'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
|
196 |
+
'type' => 'title',
|
197 |
+
'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
|
198 |
+
),
|
199 |
+
'access_token' => array(
|
200 |
+
'title' => 'Access token',
|
201 |
+
'type' => 'text',
|
202 |
+
'description' => __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
|
203 |
+
'default' => '',
|
204 |
+
'required' => true
|
205 |
+
),
|
206 |
+
'ipn_url' => array(
|
207 |
+
'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
|
208 |
+
'type' => 'title',
|
209 |
+
'description' => sprintf( __( 'Your IPN URL to receive instant payment notifications is', 'woocommerce-mercadopago-module' ) . '<br>%s', '<code>' . $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoTicket_Gateway' . '</code>.' )
|
210 |
+
),
|
211 |
+
'checkout_options_title' => array(
|
212 |
+
'title' => __( 'Ticket Options', 'woocommerce-mercadopago-module' ),
|
213 |
+
'type' => 'title',
|
214 |
+
'description' => ''
|
215 |
+
),
|
216 |
+
'title' => array(
|
217 |
+
'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
|
218 |
+
'type' => 'text',
|
219 |
+
'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
220 |
+
'default' => __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' )
|
221 |
+
),
|
222 |
+
'description' => array(
|
223 |
+
'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
|
224 |
+
'type' => 'textarea',
|
225 |
+
'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
226 |
+
'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
|
227 |
+
),
|
228 |
+
'coupon_mode' => array(
|
229 |
+
'title' => __( 'Coupons', 'woocommerce-mercadopago-module' ),
|
230 |
+
'type' => 'checkbox',
|
231 |
+
'label' => __( 'Enable coupons of discounts', 'woocommerce-mercadopago-module' ),
|
232 |
+
'default' => 'no',
|
233 |
+
'description' => __( 'If there is a Mercado Pago campaign, allow your store to give discounts to customers.', 'woocommerce-mercadopago-module' )
|
234 |
+
),
|
235 |
+
'category_id' => array(
|
236 |
+
'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
|
237 |
+
'type' => 'select',
|
238 |
+
'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
|
239 |
+
'options' => $this->store_categories_id
|
240 |
+
),
|
241 |
+
'invoice_prefix' => array(
|
242 |
+
'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
|
243 |
+
'type' => 'text',
|
244 |
+
'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' ),
|
245 |
+
'default' => 'WC-'
|
246 |
+
),
|
247 |
+
'currency_conversion' => array(
|
248 |
+
'title' => __( 'Currency Conversion', 'woocommerce-mercadopago-module' ),
|
249 |
+
'type' => 'checkbox',
|
250 |
+
'label' => __( 'If the used currency in WooCommerce is different or not supported by Mercado Pago, convert values of your transactions using Mercado Pago currency ratio', 'woocommerce-mercadopago-module' ),
|
251 |
+
'default' => 'no',
|
252 |
+
'description' => sprintf( '%s', $this->currency_message )
|
253 |
+
),
|
254 |
+
'testing' => array(
|
255 |
+
'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
|
256 |
+
'type' => 'title',
|
257 |
+
'description' => ''
|
258 |
+
),
|
259 |
+
'debug' => array(
|
260 |
+
'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
|
261 |
+
'type' => 'checkbox',
|
262 |
+
'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
|
263 |
+
'default' => 'no',
|
264 |
+
'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
|
265 |
+
' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
|
266 |
+
'<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
|
267 |
+
)
|
268 |
+
);
|
269 |
+
} else {
|
270 |
+
$this->form_fields = array(
|
271 |
+
'enabled' => array(
|
272 |
+
'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
|
273 |
+
'type' => 'checkbox',
|
274 |
+
'label' => __( 'Enable Ticket Payment Method', 'woocommerce-mercadopago-module' ),
|
275 |
+
'default' => 'yes'
|
276 |
+
)
|
277 |
+
);
|
278 |
+
}
|
279 |
+
|
280 |
+
}
|
281 |
+
|
282 |
+
public function admin_options() {
|
283 |
+
if ( count( $this->errors ) > 0 ) {
|
284 |
+
$this->display_errors();
|
285 |
+
return false;
|
286 |
+
} else {
|
287 |
+
echo wpautop( $this->method_description );
|
288 |
+
?>
|
289 |
+
<p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
|
290 |
+
<?php esc_html_e( sprintf( __( 'Please, rate us %s on WordPress.org and give your feedback to help improve this module!', 'woocommerce-mercadopago-module' ), '★★★★★' ) ); ?>
|
291 |
+
</a></p>
|
292 |
+
<table class="form-table">
|
293 |
+
<?php $this->generate_settings_html(); ?>
|
294 |
+
</table>
|
295 |
+
<?php
|
296 |
+
return true;
|
297 |
+
}
|
298 |
+
}
|
299 |
+
|
300 |
+
/*
|
301 |
+
* ========================================================================
|
302 |
+
* CHECKOUT BUSINESS RULES
|
303 |
+
* ========================================================================
|
304 |
+
*/
|
305 |
+
|
306 |
+
public function ticketCheckoutScripts() {
|
307 |
+
if ( is_checkout() && $this->is_available() ) {
|
308 |
+
if ( !get_query_var( 'order-received' ) ) {
|
309 |
+
wp_enqueue_style(
|
310 |
+
'woocommerce-mercadopago-style', plugins_url(
|
311 |
+
'assets/css/custom_checkout_mercadopago.css',
|
312 |
+
plugin_dir_path( __FILE__ ) ) );
|
313 |
+
wp_enqueue_script(
|
314 |
+
'woocommerce-mercadopago-v1',
|
315 |
+
'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js' );
|
316 |
+
}
|
317 |
+
}
|
318 |
+
}
|
319 |
+
|
320 |
+
public function payment_fields() {
|
321 |
+
$amount = $this->get_order_total();
|
322 |
+
|
323 |
+
$parameters = array(
|
324 |
+
'payment_methods' => $this->payment_methods,
|
325 |
+
'site_id' => $this->site_id,
|
326 |
+
'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
|
327 |
+
'amount' => $amount * ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ),
|
328 |
+
'coupon_mode' => $this->coupon_mode,
|
329 |
+
'is_currency_conversion' => $this->currency_ratio,
|
330 |
+
'woocommerce_currency' => get_woocommerce_currency(),
|
331 |
+
'account_currency' => $this->getCurrencyId( $this->site_id ),
|
332 |
+
'discount_action_url' => $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoTicket_Gateway',
|
333 |
+
'form_labels' => array(
|
334 |
+
"form" => array(
|
335 |
+
"payment_converted" => __("Payment converted from", "woocommerce-mercadopago-module" ),
|
336 |
+
"to" => __("to", "woocommerce-mercadopago-module" ),
|
337 |
+
"coupon_empty" => __( "Please, inform your coupon code", "woocommerce-mercadopago-module" ),
|
338 |
+
'apply' => __( "Apply", "woocommerce-mercadopago-module" ),
|
339 |
+
'remove' => __( "Remove", "woocommerce-mercadopago-module" ),
|
340 |
+
'discount_info1' => __( "You will save", "woocommerce-mercadopago-module" ),
|
341 |
+
'discount_info2' => __( "with discount from", "woocommerce-mercadopago-module" ),
|
342 |
+
'discount_info3' => __( "Total of your purchase:", "woocommerce-mercadopago-module" ),
|
343 |
+
'discount_info4' => __( "Total of your purchase with discount:", "woocommerce-mercadopago-module" ),
|
344 |
+
'discount_info5' => __( "*Uppon payment approval", "woocommerce-mercadopago-module" ),
|
345 |
+
'discount_info6' => __( "Terms and Conditions of Use", "woocommerce-mercadopago-module" ),
|
346 |
+
'coupon_of_discounts' => __( "Discount Coupon", "woocommerce-mercadopago-module" ),
|
347 |
+
'label_choose' => __( "Choose", "woocommerce-mercadopago-module" ),
|
348 |
+
"issuer_selection" => __( 'Please, select the ticket issuer of your preference.', 'woocommerce-mercadopago-module' ),
|
349 |
+
"payment_instructions" => __( 'Click "Place order" button. The ticket will be generated and you will be redirected to print it.', 'woocommerce-mercadopago-module' ),
|
350 |
+
"ticket_note" => __( 'Important: The order will be confirmed only after the payment approval.', 'woocommerce-mercadopago-module' )
|
351 |
+
)
|
352 |
+
)
|
353 |
+
);
|
354 |
+
|
355 |
+
wc_get_template(
|
356 |
+
'ticket/ticket-form.php',
|
357 |
+
$parameters,
|
358 |
+
'woocommerce/mercadopago/',
|
359 |
+
WC_WooMercadoPago_Module::getTemplatesPath()
|
360 |
+
);
|
361 |
+
}
|
362 |
+
|
363 |
+
// This function is called after we clock on [place_order] button, and each field is passed to this
|
364 |
+
// function through $_POST variable.
|
365 |
+
public function process_payment( $order_id ) {
|
366 |
+
$order = new WC_Order( $order_id );
|
367 |
+
// we have got parameters from checkout page, now its time to charge the card
|
368 |
+
if ( 'yes' == $this->debug ) {
|
369 |
+
$this->log->add( $this->id, $this->id .
|
370 |
+
': @[process_payment] - Received [$_POST] from customer front-end page: ' .
|
371 |
+
json_encode( $_POST, JSON_PRETTY_PRINT ) );
|
372 |
+
}
|
373 |
+
|
374 |
+
if ( isset( $_POST[ 'mercadopago_ticket' ][ 'amount' ] ) && !empty( $_POST[ 'mercadopago_ticket' ][ 'amount' ] ) &&
|
375 |
+
isset( $_POST[ 'mercadopago_ticket' ][ 'paymentMethodId' ] ) && !empty( $_POST[ 'mercadopago_ticket' ][ 'paymentMethodId' ] ) ) {
|
376 |
+
return $this->createUrl( $order, $_POST );
|
377 |
+
} else {
|
378 |
+
// process when fields are imcomplete
|
379 |
+
wc_add_notice(
|
380 |
+
'<p>' . __( 'A problem was occurred when processing your payment. Please, try again.', 'woocommerce-mercadopago-module' ) . '</p>',
|
381 |
+
'error'
|
382 |
+
);
|
383 |
+
return array(
|
384 |
+
'result' => 'fail',
|
385 |
+
'redirect' => '',
|
386 |
+
);
|
387 |
+
}
|
388 |
+
}
|
389 |
+
|
390 |
+
protected function createUrl( $order, $post_from_form ) {
|
391 |
+
|
392 |
+
$this->mp->sandbox_mode( false );
|
393 |
+
|
394 |
+
// Creates the order parameters by checking the cart configuration
|
395 |
+
$preferences = $this->createPreferences( $order, $post_from_form );
|
396 |
+
try {
|
397 |
+
// Create order preferences with Mercado Pago API request
|
398 |
+
$ticket_info = $this->mp->create_payment( json_encode( $preferences ) );
|
399 |
+
if ( 'yes' == $this->debug ) {
|
400 |
+
$this->log->add( $this->id, $this->id .
|
401 |
+
': @[createUrl] - Received [$checkout_info] from Mercado Pago API: ' .
|
402 |
+
json_encode( $ticket_info, JSON_PRETTY_PRINT ) );
|
403 |
+
}
|
404 |
+
if ( is_wp_error( $ticket_info ) ||
|
405 |
+
$ticket_info[ 'status' ] < 200 || $ticket_info[ 'status' ] >= 300 ) {
|
406 |
+
if ( 'yes' == $this->debug ) {
|
407 |
+
$this->log->add( $this->id, $this->id .
|
408 |
+
': @[createUrl] - payment creation failed with error: ' .
|
409 |
+
$ticket_info[ 'response' ][ 'status' ] );
|
410 |
+
}
|
411 |
+
} else {
|
412 |
+
$response = $ticket_info[ 'response' ];
|
413 |
+
if ( array_key_exists( 'status', $response ) ) {
|
414 |
+
if ( $response[ 'status' ] == "pending" && $response[ 'status_detail' ] == "pending_waiting_payment" ) {
|
415 |
+
WC()->cart->empty_cart();
|
416 |
+
$html = '<p></p><p>' . wordwrap(
|
417 |
+
__( 'Thank you for your order. Please, pay the ticket to get your order approved.', 'woocommerce-mercadopago-module'),
|
418 |
+
60, '<br>') . '</p>';
|
419 |
+
$html .=
|
420 |
+
'<a id="submit-payment" target="_blank" href="' . $response[ 'transaction_details' ][ 'external_resource_url' ] . '" class="button alt">' .
|
421 |
+
__( 'Print the Ticket', 'woocommerce-mercadopago-module' ) .
|
422 |
+
'</a> ';
|
423 |
+
wc_add_notice(
|
424 |
+
'<p>' . $html . '</p>',
|
425 |
+
'notice'
|
426 |
+
);
|
427 |
+
$order->add_order_note(
|
428 |
+
'Mercado Pago: ' .
|
429 |
+
__( 'Customer haven\'t paid yet.', 'woocommerce-mercadopago-module' )
|
430 |
+
);
|
431 |
+
$order->add_order_note(
|
432 |
+
'Mercado Pago: ' .
|
433 |
+
__( 'To reprint the ticket click ', 'woocommerce-mercadopago-module' ) .
|
434 |
+
'<a target="_blank" href="' . $response[ 'transaction_details' ][ 'external_resource_url' ] . '">' .
|
435 |
+
__( 'here', 'woocommerce-mercadopago-module' ) .
|
436 |
+
'</a>', 1, false
|
437 |
+
);
|
438 |
+
return array(
|
439 |
+
'result' => 'success',
|
440 |
+
'redirect' => $order->get_checkout_payment_url( true )
|
441 |
+
);
|
442 |
+
}
|
443 |
+
}
|
444 |
+
}
|
445 |
+
} catch ( MercadoPagoException $e ) {
|
446 |
+
if ( 'yes' == $this->debug ) {
|
447 |
+
$this->log->add(
|
448 |
+
$this->id, $this->id .
|
449 |
+
': @[createUrl] - payment creation failed with exception: ' .
|
450 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
451 |
+
}
|
452 |
+
}
|
453 |
+
return false;
|
454 |
+
}
|
455 |
+
|
456 |
+
private function createPreferences( $order, $post_from_form ) {
|
457 |
+
|
458 |
+
// Here we build the array that contains ordered itens, from customer cart
|
459 |
+
$items = array();
|
460 |
+
$purchase_description = "";
|
461 |
+
if ( sizeof( $order->get_items() ) > 0 ) {
|
462 |
+
foreach ( $order->get_items() as $item ) {
|
463 |
+
if ( $item['qty'] ) {
|
464 |
+
$product = new WC_product( $item[ 'product_id' ] );
|
465 |
+
$purchase_description =
|
466 |
+
$purchase_description . ' ' .
|
467 |
+
( $product->post->post_title . ' x ' . $item[ 'qty' ] );
|
468 |
+
array_push( $items, array(
|
469 |
+
'id' => $item[ 'product_id' ],
|
470 |
+
'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
|
471 |
+
'description' => sanitize_file_name( (
|
472 |
+
// This handles description width limit of Mercado Pago
|
473 |
+
strlen( $product->post->post_content ) > 230 ?
|
474 |
+
substr( $product->post->post_content, 0, 230 ) . "..." :
|
475 |
+
$product->post->post_content
|
476 |
+
) ),
|
477 |
+
'picture_url' => wp_get_attachment_url( $product->get_image_id() ),
|
478 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
479 |
+
'quantity' => 1,
|
480 |
+
'unit_price' => floor( ( (float) $item[ 'line_total' ] + (float) $item[ 'line_tax' ] ) *
|
481 |
+
( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ) * 100 ) / 100
|
482 |
+
));
|
483 |
+
}
|
484 |
+
}
|
485 |
+
}
|
486 |
+
|
487 |
+
// Creates the shipment cost structure
|
488 |
+
$shipping_cost = (float) $order->get_total_shipping() + (float) $order->get_shipping_tax();
|
489 |
+
if ( $shipping_cost > 0 ) {
|
490 |
+
$item = array(
|
491 |
+
'title' => $this->workaroundAmperSandBug( $order->get_shipping_to_display() ),
|
492 |
+
'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
|
493 |
+
'quantity' => 1,
|
494 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
495 |
+
'unit_price' => floor( $shipping_cost * ( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 ) * 100 ) / 100
|
496 |
+
);
|
497 |
+
$items[] = $item;
|
498 |
+
}
|
499 |
+
|
500 |
+
// Discounts features
|
501 |
+
if ( isset( $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] ) &&
|
502 |
+
$post_from_form[ 'mercadopago_ticket' ][ 'discount' ] != "" &&
|
503 |
+
$post_from_form[ 'mercadopago_ticket' ][ 'discount' ] > 0 &&
|
504 |
+
isset( $post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] ) &&
|
505 |
+
$post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] != "" &&
|
506 |
+
WC()->session->chosen_payment_method == "woocommerce-mercadopago-ticket-module" ) {
|
507 |
+
$item = array(
|
508 |
+
'title' => __( 'Discount', 'woocommerce-mercadopago-module' ),
|
509 |
+
'description' => __( 'Discount provided by store', 'woocommerce-mercadopago-module' ),
|
510 |
+
'quantity' => 1,
|
511 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
512 |
+
'unit_price' => - ( (float) $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] )
|
513 |
+
);
|
514 |
+
$items[] = $item;
|
515 |
+
}
|
516 |
+
|
517 |
+
// Build additional information from the customer data
|
518 |
+
$payer_additional_info = array(
|
519 |
+
'first_name' => $order->billing_first_name,
|
520 |
+
'last_name' => $order->billing_last_name,
|
521 |
+
//'registration_date' =>
|
522 |
+
'phone' => array(
|
523 |
+
//'area_code' =>
|
524 |
+
'number' => $order->billing_phone
|
525 |
+
),
|
526 |
+
'address' => array(
|
527 |
+
'zip_code' => $order->billing_postcode,
|
528 |
+
//'street_number' =>
|
529 |
+
'street_name' => $order->billing_address_1 . ' / ' .
|
530 |
+
$order->billing_city . ' ' .
|
531 |
+
$order->billing_state . ' ' .
|
532 |
+
$order->billing_country
|
533 |
+
)
|
534 |
+
);
|
535 |
+
|
536 |
+
// Create the shipment address information set
|
537 |
+
$shipments = array(
|
538 |
+
'receiver_address' => array(
|
539 |
+
'zip_code' => $order->shipping_postcode,
|
540 |
+
//'street_number' =>
|
541 |
+
'street_name' => $order->shipping_address_1 . ' ' .
|
542 |
+
$order->shipping_address_2 . ' ' .
|
543 |
+
$order->shipping_city . ' ' .
|
544 |
+
$order->shipping_state . ' ' .
|
545 |
+
$order->shipping_country,
|
546 |
+
//'floor' =>
|
547 |
+
'apartment' => $order->shipping_address_2
|
548 |
+
)
|
549 |
+
);
|
550 |
+
|
551 |
+
// The payment preference
|
552 |
+
$payment_preference = array (
|
553 |
+
'transaction_amount' => floor( ( (float) $post_from_form[ 'mercadopago_ticket' ][ 'amount' ] ) * 100 ) / 100,
|
554 |
+
'description' => $purchase_description,
|
555 |
+
'payment_method_id' => $post_from_form[ 'mercadopago_ticket' ][ 'paymentMethodId' ],
|
556 |
+
'payer' => array(
|
557 |
+
'email' => $order->billing_email
|
558 |
+
),
|
559 |
+
'external_reference' => $this->invoice_prefix . $order->id,
|
560 |
+
'additional_info' => array(
|
561 |
+
'items' => $items,
|
562 |
+
'payer' => $payer_additional_info,
|
563 |
+
'shipments' => $shipments
|
564 |
+
)
|
565 |
+
);
|
566 |
+
|
567 |
+
// Do not set IPN url if it is a localhost!
|
568 |
+
$notification_url = $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoTicket_Gateway';
|
569 |
+
if ( !strrpos( $notification_url, "localhost" ) ) {
|
570 |
+
$payment_preference['notification_url'] = $this->workaroundAmperSandBug( $notification_url );
|
571 |
+
}
|
572 |
+
|
573 |
+
// Discounts features
|
574 |
+
if ( isset( $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] ) &&
|
575 |
+
$post_from_form[ 'mercadopago_ticket' ][ 'discount' ] != "" &&
|
576 |
+
$post_from_form[ 'mercadopago_ticket' ][ 'discount' ] > 0 &&
|
577 |
+
isset( $post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] ) &&
|
578 |
+
$post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] != "" &&
|
579 |
+
WC()->session->chosen_payment_method == "woocommerce-mercadopago-ticket-module" ) {
|
580 |
+
$payment_preference[ 'campaign_id' ] = (int) $post_from_form[ 'mercadopago_ticket' ][ 'campaign_id' ];
|
581 |
+
$payment_preference[ 'coupon_amount' ] = ( (float) $post_from_form[ 'mercadopago_ticket' ][ 'discount' ] );
|
582 |
+
$payment_preference[ 'coupon_code' ] = strtoupper( $post_from_form[ 'mercadopago_ticket' ][ 'coupon_code' ] );
|
583 |
+
}
|
584 |
+
|
585 |
+
if ( !$this->isTestUser ) {
|
586 |
+
$preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
|
587 |
+
}
|
588 |
+
|
589 |
+
if ( 'yes' == $this->debug ) {
|
590 |
+
$this->log->add( $this->id, $this->id .
|
591 |
+
': @[createPreferences] - Returning just created [$payment_preference] structure: ' .
|
592 |
+
json_encode( $payment_preference, JSON_PRETTY_PRINT ) );
|
593 |
+
}
|
594 |
+
|
595 |
+
$payment_preference = apply_filters(
|
596 |
+
'woocommerce_mercadopago_module_ticket_preferences',
|
597 |
+
$payment_preference, $order
|
598 |
+
);
|
599 |
+
return $payment_preference;
|
600 |
+
|
601 |
+
}
|
602 |
+
|
603 |
+
public function add_discount_ticket() {
|
604 |
+
if ( is_admin() && ! defined( 'DOING_AJAX' ) || is_cart() ) {
|
605 |
+
return;
|
606 |
+
}
|
607 |
+
if ( isset( $_POST[ 'mercadopago_ticket' ][ 'discount' ] ) &&
|
608 |
+
$_POST[ 'mercadopago_ticket' ][ 'discount' ] != "" &&
|
609 |
+
$_POST[ 'mercadopago_ticket' ][ 'discount' ] > 0 &&
|
610 |
+
isset( $_POST[ 'mercadopago_ticket' ][ 'coupon_code' ] ) &&
|
611 |
+
$_POST[ 'mercadopago_ticket' ][ 'coupon_code' ] != "" &&
|
612 |
+
WC()->session->chosen_payment_method == "woocommerce-mercadopago-ticket-module" ) {
|
613 |
+
if ( 'yes' == $this->debug ) {
|
614 |
+
$this->log->add( $this->id, $this->id . ': @[add_discount_ticket] - Ticket trying to apply discount...' );
|
615 |
+
}
|
616 |
+
$value = ( $_POST[ 'mercadopago_ticket' ][ 'discount' ] ) /
|
617 |
+
( (float) $this->currency_ratio > 0 ? (float) $this->currency_ratio : 1 );
|
618 |
+
global $woocommerce;
|
619 |
+
if ( apply_filters( 'wc_mercadopagoticket_module_apply_discount', 0 < $value, $woocommerce->cart ) ) {
|
620 |
+
$woocommerce->cart->add_fee(
|
621 |
+
sprintf( __( 'Discount for %s coupon', 'woocommerce-mercadopago-module' ), esc_attr( $_POST[ 'mercadopago_ticket' ][ 'campaign' ] ) ),
|
622 |
+
( $value * -1 ), true
|
623 |
+
);
|
624 |
+
}
|
625 |
+
}
|
626 |
+
}
|
627 |
+
|
628 |
+
/*
|
629 |
+
* ========================================================================
|
630 |
+
* AUXILIARY AND FEEDBACK METHODS
|
631 |
+
* ========================================================================
|
632 |
+
*/
|
633 |
+
|
634 |
+
// Fix to URL Problem : #038; replaces & and breaks the navigation
|
635 |
+
function workaroundAmperSandBug( $link ) {
|
636 |
+
return str_replace('&', '&', $link);
|
637 |
+
}
|
638 |
+
|
639 |
+
// Check if we have valid credentials.
|
640 |
+
public function validateCredentials() {
|
641 |
+
if ( empty( $this->access_token ) ) return false;
|
642 |
+
if ( strlen( $this->access_token ) > 0 ) {
|
643 |
+
try {
|
644 |
+
$this->mp = new MP( $this->access_token );
|
645 |
+
$get_request = $this->mp->get( "/users/me?access_token=" . $this->access_token );
|
646 |
+
if ( isset( $get_request[ 'response' ][ 'site_id' ] ) ) {
|
647 |
+
$this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
|
648 |
+
$this->site_id = $get_request[ 'response' ][ 'site_id' ];
|
649 |
+
// get ticket payments
|
650 |
+
$payments = $this->mp->get( "/v1/payment_methods/?access_token=" . $this->access_token );
|
651 |
+
foreach ( $payments[ "response" ] as $payment ) {
|
652 |
+
if ( $payment[ 'payment_type_id' ] != 'account_money' && $payment[ 'payment_type_id' ] != 'credit_card' &&
|
653 |
+
$payment[ 'payment_type_id' ] != 'debit_card' && $payment[ 'payment_type_id' ] != 'prepaid_card' ) {
|
654 |
+
array_push( $this->payment_methods, $payment );
|
655 |
+
}
|
656 |
+
}
|
657 |
+
// check for auto converstion of currency
|
658 |
+
$this->currency_ratio = -1;
|
659 |
+
if ( $this->currency_conversion == "yes" ) {
|
660 |
+
$currency_obj = MPRestClient::get_ml( array( "uri" =>
|
661 |
+
"/currency_conversions/search?from=" .
|
662 |
+
get_woocommerce_currency() .
|
663 |
+
"&to=" .
|
664 |
+
$this->getCurrencyId( $this->site_id )
|
665 |
+
) );
|
666 |
+
if ( isset( $currency_obj[ 'response' ] ) ) {
|
667 |
+
$currency_obj = $currency_obj[ 'response' ];
|
668 |
+
if ( isset( $currency_obj['ratio'] ) ) {
|
669 |
+
$this->currency_ratio = (float) $currency_obj['ratio'];
|
670 |
+
} else {
|
671 |
+
$this->currency_ratio = -1;
|
672 |
+
}
|
673 |
+
} else {
|
674 |
+
$this->currency_ratio = -1;
|
675 |
+
}
|
676 |
+
}
|
677 |
+
return true;
|
678 |
+
} else return false;
|
679 |
+
} catch ( MercadoPagoException $e ) {
|
680 |
+
return false;
|
681 |
+
}
|
682 |
+
}
|
683 |
+
return false;
|
684 |
+
}
|
685 |
+
|
686 |
+
// Build the string representing the path to the log file
|
687 |
+
protected function buildLogPathString() {
|
688 |
+
return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
|
689 |
+
esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
|
690 |
+
__( 'WooCommerce > System Status > Logs', 'woocommerce-mercadopago-module' ) . '</a>';
|
691 |
+
}
|
692 |
+
|
693 |
+
// Return boolean indicating if currency is supported.
|
694 |
+
protected function isSupportedCurrency() {
|
695 |
+
return get_woocommerce_currency() == $this->getCurrencyId( $this->site_id );
|
696 |
+
}
|
697 |
+
|
698 |
+
// Get currency id for a country
|
699 |
+
protected function getCurrencyId( $site_id ) {
|
700 |
+
switch ( $site_id ) {
|
701 |
+
case 'MLA': return 'ARS';
|
702 |
+
case 'MLB': return 'BRL';
|
703 |
+
case 'MCO': return 'COP';
|
704 |
+
case 'MLC': return 'CLP';
|
705 |
+
case 'MLM': return 'MXN';
|
706 |
+
case 'MLV': return 'VEF';
|
707 |
+
case 'MPE': return 'PEN';
|
708 |
+
default: return '';
|
709 |
+
}
|
710 |
+
}
|
711 |
+
|
712 |
+
public function checkSSLAbsence() {
|
713 |
+
if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
|
714 |
+
if ( 'yes' == $this->settings[ 'enabled' ] ) {
|
715 |
+
echo '<div class="error"><p><strong>' .
|
716 |
+
__( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
|
717 |
+
'</strong>: ' .
|
718 |
+
sprintf(
|
719 |
+
__( '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' )
|
720 |
+
) . '</p></div>';
|
721 |
+
}
|
722 |
+
}
|
723 |
+
}
|
724 |
+
|
725 |
+
// Called automatically by WooCommerce, verify if Module is available to use.
|
726 |
+
public function is_available() {
|
727 |
+
// check SSL connection, as we can't use normal http in custom checkout
|
728 |
+
if ( empty( $_SERVER[ 'HTTPS' ] ) || $_SERVER[ 'HTTPS' ] == 'off' ) {
|
729 |
+
return false;
|
730 |
+
}
|
731 |
+
$available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
|
732 |
+
! empty( $this->access_token );
|
733 |
+
return $available;
|
734 |
+
}
|
735 |
+
|
736 |
+
// Get the URL to admin page.
|
737 |
+
protected function admin_url() {
|
738 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
739 |
+
return admin_url(
|
740 |
+
'admin.php?page=wc-settings&tab=checkout§ion=wc_woomercadopagoticket_gateway'
|
741 |
+
);
|
742 |
+
}
|
743 |
+
return admin_url(
|
744 |
+
'admin.php?page=woocommerce_settings&tab=payment_gateways§ion=WC_WooMercadoPagoTicket_Gateway'
|
745 |
+
);
|
746 |
+
}
|
747 |
+
|
748 |
+
// Notify that access_token are not valid.
|
749 |
+
public function credentialsMissingMessage() {
|
750 |
+
echo '<div class="error"><p><strong>' .
|
751 |
+
__( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
|
752 |
+
'</strong>: ' .
|
753 |
+
sprintf(
|
754 |
+
__( 'Your Mercado Pago credentials Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
|
755 |
+
'<a href="' . $this->admin_url() . '">' .
|
756 |
+
__( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
|
757 |
+
'</p></div>';
|
758 |
+
}
|
759 |
+
|
760 |
+
public function getCountryName( $site_id ) {
|
761 |
+
$country = $site_id;
|
762 |
+
switch ( $site_id ) {
|
763 |
+
case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
|
764 |
+
case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
|
765 |
+
case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
|
766 |
+
case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
|
767 |
+
case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
|
768 |
+
case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
|
769 |
+
case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
|
770 |
+
}
|
771 |
+
}
|
772 |
+
|
773 |
+
/*
|
774 |
+
* ========================================================================
|
775 |
+
* IPN MECHANICS
|
776 |
+
* ========================================================================
|
777 |
+
*/
|
778 |
+
|
779 |
+
// [Server Side] This call checks any incoming notifications from Mercado Pago server.
|
780 |
+
public function process_http_request() {
|
781 |
+
@ob_clean();
|
782 |
+
if ( 'yes' == $this->debug ) {
|
783 |
+
$this->log->add( $this->id, $this->id .
|
784 |
+
': @[process_http_request] - Received _get content: ' .
|
785 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
786 |
+
}
|
787 |
+
if ( isset( $_GET[ 'coupon_id' ] ) && $_GET[ 'coupon_id' ] != '' ) {
|
788 |
+
// process coupon evaluations
|
789 |
+
if ( isset( $_GET[ 'payer' ] ) && $_GET[ 'payer' ] != '' ) {
|
790 |
+
$logged_user_email = $_GET[ 'payer' ];
|
791 |
+
$coupon_id = $_GET[ 'coupon_id' ];
|
792 |
+
if ( 'yes' == $this->sandbox )
|
793 |
+
$this->mp->sandbox_mode( true );
|
794 |
+
else
|
795 |
+
$this->mp->sandbox_mode( false );
|
796 |
+
$response = $this->mp->check_discount_campaigns(
|
797 |
+
$_GET[ 'amount' ],
|
798 |
+
$logged_user_email,
|
799 |
+
$coupon_id
|
800 |
+
);
|
801 |
+
header( 'HTTP/1.1 200 OK' );
|
802 |
+
header( 'Content-Type: application/json' );
|
803 |
+
echo json_encode( $response );
|
804 |
+
} else {
|
805 |
+
$obj = new stdClass();
|
806 |
+
$obj->status = 404;
|
807 |
+
$obj->response = array(
|
808 |
+
'message' => __( 'Please, inform your email in billing address to use this feature', 'woocommerce-mercadopago-module' ),
|
809 |
+
'error' => 'payer_not_found',
|
810 |
+
'status' => 404,
|
811 |
+
'cause' => array()
|
812 |
+
);
|
813 |
+
header( 'HTTP/1.1 200 OK' );
|
814 |
+
header( 'Content-Type: application/json' );
|
815 |
+
echo json_encode( $obj );
|
816 |
+
}
|
817 |
+
exit(0);
|
818 |
+
} else {
|
819 |
+
// process IPN messages
|
820 |
+
$data = $this->check_ipn_request_is_valid( $_GET );
|
821 |
+
if ( $data ) {
|
822 |
+
header( 'HTTP/1.1 200 OK' );
|
823 |
+
do_action( 'valid_mercadopagoticket_ipn_request', $data );
|
824 |
+
}
|
825 |
+
}
|
826 |
+
}
|
827 |
+
|
828 |
+
// Get received data from IPN and checks if we have an associated
|
829 |
+
// payment. If we have these information, we return data to be
|
830 |
+
// processed by successful_request function.
|
831 |
+
public function check_ipn_request_is_valid( $data ) {
|
832 |
+
|
833 |
+
if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
|
834 |
+
if ( 'yes' == $this->debug ) {
|
835 |
+
$this->log->add( $this->id, $this->id .
|
836 |
+
': @[check_ipn_request_is_valid] - data_id or type not set: ' .
|
837 |
+
json_encode( $data, JSON_PRETTY_PRINT ) );
|
838 |
+
}
|
839 |
+
// at least, check if its a v0 ipn
|
840 |
+
if ( !isset( $data[ 'id' ] ) || !isset( $data[ 'topic' ] ) ) {
|
841 |
+
if ( 'yes' == $this->debug ) {
|
842 |
+
$this->log->add(
|
843 |
+
$this->id, $this->id .
|
844 |
+
': @[check_ipn_response] - Mercado Pago Request Failure: ' .
|
845 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
846 |
+
}
|
847 |
+
wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
|
848 |
+
} else {
|
849 |
+
header( 'HTTP/1.1 200 OK' );
|
850 |
+
}
|
851 |
+
// No ID? No process!
|
852 |
+
return false;
|
853 |
+
}
|
854 |
+
|
855 |
+
$this->mp->sandbox_mode( false );
|
856 |
+
try {
|
857 |
+
$access_token = array( "access_token" => $this->mp->get_access_token() );
|
858 |
+
if ( $data[ "type" ] == 'payment' ) {
|
859 |
+
$payment_info = $this->mp->get( "/v1/payments/" . $data[ "data_id" ], $access_token, false );
|
860 |
+
if ( !is_wp_error( $payment_info ) &&
|
861 |
+
( $payment_info[ "status" ] == 200 || $payment_info[ "status" ] == 201 ) ) {
|
862 |
+
return $payment_info[ 'response' ];
|
863 |
+
} else {
|
864 |
+
if ( 'yes' == $this->debug ) {
|
865 |
+
$this->log->add( $this->id, $this->id .
|
866 |
+
': @[check_ipn_request_is_valid] - error when processing received data: ' .
|
867 |
+
json_encode( $payment_info, JSON_PRETTY_PRINT ) );
|
868 |
+
}
|
869 |
+
return false;
|
870 |
+
}
|
871 |
+
}
|
872 |
+
} catch ( MercadoPagoException $e ) {
|
873 |
+
if ( 'yes' == $this->debug ) {
|
874 |
+
$this->log->add(
|
875 |
+
$this->id, $this->id .
|
876 |
+
': @[check_ipn_request_is_valid] - MercadoPagoException: ' .
|
877 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
878 |
+
}
|
879 |
+
return false;
|
880 |
+
}
|
881 |
+
return true;
|
882 |
+
}
|
883 |
+
|
884 |
+
// Properly handles each case of notification, based in payment status.
|
885 |
+
public function successful_request( $data ) {
|
886 |
+
if ( 'yes' == $this->debug ) {
|
887 |
+
$this->log->add( $this->id, $this->id .
|
888 |
+
': @[successful_request] - starting to process ipn update...' );
|
889 |
+
}
|
890 |
+
$order_key = $data[ 'external_reference' ];
|
891 |
+
if ( !empty( $order_key ) ) {
|
892 |
+
$order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
|
893 |
+
$order = new WC_Order( $order_id );
|
894 |
+
// Checks whether the invoice number matches the order, if true processes the payment
|
895 |
+
if ( $order->id === $order_id ) {
|
896 |
+
if ( 'yes' == $this->debug ) {
|
897 |
+
$this->log->add( $this->id, $this->id .
|
898 |
+
': @[successful_request] - got order with ID ' . $order->id .
|
899 |
+
' and data: ' . json_encode( $data, JSON_PRETTY_PRINT ) );
|
900 |
+
}
|
901 |
+
// Order details.
|
902 |
+
if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
|
903 |
+
update_post_meta(
|
904 |
+
$order_id,
|
905 |
+
__( 'Payer email',
|
906 |
+
'woocommerce-mercadopago-module' ),
|
907 |
+
$data[ 'payer' ][ 'email' ]
|
908 |
+
);
|
909 |
+
}
|
910 |
+
if ( !empty( $data[ 'payment_type_id' ] ) ) {
|
911 |
+
update_post_meta(
|
912 |
+
$order_id,
|
913 |
+
__( 'Payment type',
|
914 |
+
'woocommerce-mercadopago-module' ),
|
915 |
+
$data[ 'payment_type_id' ]
|
916 |
+
);
|
917 |
+
}
|
918 |
+
if ( !empty( $data ) ) {
|
919 |
+
update_post_meta(
|
920 |
+
$order_id,
|
921 |
+
__( 'Mercado Pago Payment ID',
|
922 |
+
'woocommerce-mercadopago-module' ),
|
923 |
+
$data[ 'id' ]
|
924 |
+
);
|
925 |
+
}
|
926 |
+
// Switch the status and update in WooCommerce
|
927 |
+
switch ( $data[ 'status' ] ) {
|
928 |
+
case 'approved':
|
929 |
+
$order->add_order_note(
|
930 |
+
'Mercado Pago: ' . __( 'Payment approved.',
|
931 |
+
'woocommerce-mercadopago-module' )
|
932 |
+
);
|
933 |
+
$order->payment_complete();
|
934 |
+
break;
|
935 |
+
case 'pending':
|
936 |
+
// decrease stock if not yet decreased and order not exists
|
937 |
+
$notes = $order->get_customer_order_notes();
|
938 |
+
$has_note = false;
|
939 |
+
if ( sizeof($notes) > 1 ) {
|
940 |
+
$has_note = true;
|
941 |
+
break;
|
942 |
+
}
|
943 |
+
if ( !$has_note ) {
|
944 |
+
// dont have order note
|
945 |
+
/*if ( sizeof( $order->get_items() ) > 0 ) {
|
946 |
+
foreach ( $order->get_items() as $item ) {
|
947 |
+
if ( $item['qty'] ) {
|
948 |
+
$product = new WC_product( $item[ 'product_id' ] );
|
949 |
+
if ( !$product->is_downloadable('yes') ) {
|
950 |
+
wc_update_product_stock(
|
951 |
+
$item[ 'product_id' ],
|
952 |
+
$product->get_stock_quantity()-$item[ 'qty' ]
|
953 |
+
);
|
954 |
+
}
|
955 |
+
}
|
956 |
+
}
|
957 |
+
}*/
|
958 |
+
$order->add_order_note(
|
959 |
+
'Mercado Pago: ' . __( 'Waiting for the ticket payment.',
|
960 |
+
'woocommerce-mercadopago-module' )
|
961 |
+
);
|
962 |
+
$order->add_order_note(
|
963 |
+
'Mercado Pago: ' . __( 'Waiting for the ticket payment.',
|
964 |
+
'woocommerce-mercadopago-module' ), 1, false
|
965 |
+
);
|
966 |
+
}
|
967 |
+
break;
|
968 |
+
case 'in_process':
|
969 |
+
$order->update_status(
|
970 |
+
'on-hold',
|
971 |
+
'Mercado Pago: ' . __( 'Payment under review.',
|
972 |
+
'woocommerce-mercadopago-module' )
|
973 |
+
);
|
974 |
+
break;
|
975 |
+
case 'rejected':
|
976 |
+
$order->update_status(
|
977 |
+
'failed',
|
978 |
+
'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.',
|
979 |
+
'woocommerce-mercadopago-module' )
|
980 |
+
);
|
981 |
+
break;
|
982 |
+
case 'refunded':
|
983 |
+
$order->update_status(
|
984 |
+
'refunded',
|
985 |
+
'Mercado Pago: ' . __( 'The payment was refunded to the customer.',
|
986 |
+
'woocommerce-mercadopago-module' )
|
987 |
+
);
|
988 |
+
break;
|
989 |
+
case 'cancelled':
|
990 |
+
$order->update_status(
|
991 |
+
'cancelled',
|
992 |
+
'Mercado Pago: ' . __( 'The payment was cancelled.',
|
993 |
+
'woocommerce-mercadopago-module' )
|
994 |
+
);
|
995 |
+
break;
|
996 |
+
case 'in_mediation':
|
997 |
+
$order->add_order_note(
|
998 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
|
999 |
+
'woocommerce-mercadopago-module' )
|
1000 |
+
);
|
1001 |
+
break;
|
1002 |
+
case 'charged-back':
|
1003 |
+
$order->add_order_note(
|
1004 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
|
1005 |
+
'woocommerce-mercadopago-module' )
|
1006 |
+
);
|
1007 |
+
break;
|
1008 |
+
default:
|
1009 |
+
break;
|
1010 |
+
}
|
1011 |
+
}
|
1012 |
+
}
|
1013 |
+
}
|
1014 |
+
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
new WC_WooMercadoPagoTicket_Gateway();
|
mercadopago/sdk/lib/cacert.pem
CHANGED
File without changes
|
mercadopago/sdk/lib/mercadopago.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* MercadoPago Integration Library
|
5 |
* Access MercadoPago for payments integration
|
6 |
-
*
|
7 |
* @author hcasatti
|
8 |
*
|
9 |
*/
|
@@ -11,7 +11,7 @@ $GLOBALS["LIB_LOCATION"] = dirname(__FILE__);
|
|
11 |
|
12 |
class MP {
|
13 |
|
14 |
-
const version = "
|
15 |
|
16 |
private $client_id;
|
17 |
private $client_secret;
|
@@ -20,7 +20,7 @@ class MP {
|
|
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");
|
@@ -75,6 +75,97 @@ class MP {
|
|
75 |
return $this->access_data['access_token'];
|
76 |
}
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
/**
|
79 |
* Get information for specific payment
|
80 |
* @param int $id
|
@@ -82,7 +173,7 @@ class MP {
|
|
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(
|
@@ -101,7 +192,7 @@ class MP {
|
|
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}",
|
@@ -186,7 +277,7 @@ class MP {
|
|
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(
|
@@ -203,18 +294,21 @@ class MP {
|
|
203 |
* @param array $preference
|
204 |
* @return array(json)
|
205 |
*/
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
|
|
|
|
|
|
218 |
|
219 |
/**
|
220 |
* Update a checkout preference
|
@@ -252,6 +346,26 @@ class MP {
|
|
252 |
return $preference_result;
|
253 |
}
|
254 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
/**
|
256 |
* Create a preapproval payment
|
257 |
* @param array $preapproval_payment
|
@@ -291,8 +405,8 @@ class MP {
|
|
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}",
|
@@ -416,6 +530,86 @@ class MP {
|
|
416 |
*/
|
417 |
class MPRestClient {
|
418 |
const API_BASE_URL = "https://api.mercadopago.com";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
|
420 |
private static function build_request($request) {
|
421 |
if (!extension_loaded ("curl")) {
|
@@ -457,7 +651,7 @@ class MPRestClient {
|
|
457 |
// Build $connect
|
458 |
$connect = curl_init();
|
459 |
|
460 |
-
curl_setopt($connect, CURLOPT_USERAGENT, "
|
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");
|
@@ -496,6 +690,43 @@ class MPRestClient {
|
|
496 |
return $connect;
|
497 |
}
|
498 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
499 |
private static function exec($request) {
|
500 |
// private static function exec($method, $uri, $data, $content_type) {
|
501 |
|
@@ -513,7 +744,7 @@ class MPRestClient {
|
|
513 |
"response" => json_decode($api_result, true)
|
514 |
);
|
515 |
|
516 |
-
if ($response['status'] >= 400) {
|
517 |
$message = $response['response']['message'];
|
518 |
if (isset ($response['response']['cause'])) {
|
519 |
if (isset ($response['response']['cause']['code']) && isset ($response['response']['cause']['description'])) {
|
@@ -526,7 +757,7 @@ class MPRestClient {
|
|
526 |
}
|
527 |
|
528 |
throw new MercadoPagoException ($message, $response['status']);
|
529 |
-
}
|
530 |
|
531 |
curl_close($connect);
|
532 |
|
@@ -545,6 +776,12 @@ class MPRestClient {
|
|
545 |
}
|
546 |
}
|
547 |
|
|
|
|
|
|
|
|
|
|
|
|
|
548 |
public static function get($request) {
|
549 |
$request["method"] = "GET";
|
550 |
|
@@ -575,4 +812,4 @@ class MercadoPagoException extends Exception {
|
|
575 |
// Default code 500
|
576 |
parent::__construct($message, $code, $previous);
|
577 |
}
|
578 |
-
}
|
3 |
/**
|
4 |
* MercadoPago Integration Library
|
5 |
* Access MercadoPago for payments integration
|
6 |
+
*
|
7 |
* @author hcasatti
|
8 |
*
|
9 |
*/
|
11 |
|
12 |
class MP {
|
13 |
|
14 |
+
const version = "2.1.3";
|
15 |
|
16 |
private $client_id;
|
17 |
private $client_secret;
|
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");
|
75 |
return $this->access_data['access_token'];
|
76 |
}
|
77 |
|
78 |
+
/* APIs v1 */
|
79 |
+
/**
|
80 |
+
* Create a payment v1
|
81 |
+
* @param array $preference
|
82 |
+
* @return array(json)
|
83 |
+
*/
|
84 |
+
public function search_paymentV1($id) {
|
85 |
+
$request = array(
|
86 |
+
"uri" => "/v1/payments/" . $id,
|
87 |
+
"params" => array(
|
88 |
+
"access_token" => $this->get_access_token()
|
89 |
+
)
|
90 |
+
);
|
91 |
+
$payment = MPRestClient::get($request);
|
92 |
+
return $payment;
|
93 |
+
}
|
94 |
+
public function get_or_create_customer($payer_email) {
|
95 |
+
$customer = $this->search_customer($payer_email);
|
96 |
+
if ($customer['status'] == 200 && $customer['response']['paging']['total'] > 0) {
|
97 |
+
$customer = $customer['response']['results'][0];
|
98 |
+
} else {
|
99 |
+
$resp = $this->create_customer($payer_email);
|
100 |
+
$customer = $resp['response'];
|
101 |
+
}
|
102 |
+
return $customer;
|
103 |
+
}
|
104 |
+
public function create_customer($email) {
|
105 |
+
$request = array(
|
106 |
+
"uri" => "/v1/customers",
|
107 |
+
"params" => array(
|
108 |
+
"access_token" => $this->get_access_token()
|
109 |
+
),
|
110 |
+
"data" => array(
|
111 |
+
"email" => $email
|
112 |
+
)
|
113 |
+
);
|
114 |
+
$customer = MPRestClient::post($request);
|
115 |
+
return $customer;
|
116 |
+
}
|
117 |
+
public function search_customer($email) {
|
118 |
+
$request = array(
|
119 |
+
"uri" => "/v1/customers/search",
|
120 |
+
"params" => array(
|
121 |
+
"access_token" => $this->get_access_token(),
|
122 |
+
"email" => $email
|
123 |
+
)
|
124 |
+
);
|
125 |
+
$customer = MPRestClient::get($request);
|
126 |
+
return $customer;
|
127 |
+
}
|
128 |
+
public function create_card_in_customer($customer_id, $token, $payment_method_id = null, $issuer_id = null) {
|
129 |
+
$request = array(
|
130 |
+
"uri" => "/v1/customers/" . $customer_id . "/cards",
|
131 |
+
"params" => array(
|
132 |
+
"access_token" => $this->get_access_token()
|
133 |
+
),
|
134 |
+
"data" => array(
|
135 |
+
"token" => $token,
|
136 |
+
"issuer_id" => $issuer_id,
|
137 |
+
"payment_method_id" => $payment_method_id
|
138 |
+
)
|
139 |
+
);
|
140 |
+
$card = MPRestClient::post($request);
|
141 |
+
return $card;
|
142 |
+
}
|
143 |
+
public function get_all_customer_cards($customer_id, $token) {
|
144 |
+
$request = array(
|
145 |
+
"uri" => "/v1/customers/" . $customer_id . "/cards",
|
146 |
+
"params" => array(
|
147 |
+
"access_token" => $this->get_access_token()
|
148 |
+
)
|
149 |
+
);
|
150 |
+
$cards = MPRestClient::get($request);
|
151 |
+
return $cards;
|
152 |
+
}
|
153 |
+
|
154 |
+
public function check_discount_campaigns($transaction_amount, $payer_email, $coupon_code) {
|
155 |
+
$request = array(
|
156 |
+
"uri" => "/discount_campaigns",
|
157 |
+
"params" => array(
|
158 |
+
"access_token" => $this->get_access_token(),
|
159 |
+
"transaction_amount" => $transaction_amount,
|
160 |
+
"payer_email" => $payer_email,
|
161 |
+
"coupon_code" => $coupon_code
|
162 |
+
)
|
163 |
+
);
|
164 |
+
|
165 |
+
$discount_info = MPRestClient::get($request);
|
166 |
+
return $discount_info;
|
167 |
+
}
|
168 |
+
|
169 |
/**
|
170 |
* Get information for specific payment
|
171 |
* @param int $id
|
173 |
*/
|
174 |
public function get_payment($id) {
|
175 |
$uri_prefix = $this->sandbox ? "/sandbox" : "";
|
176 |
+
|
177 |
$request = array(
|
178 |
"uri" => $uri_prefix."/collections/notifications/{$id}",
|
179 |
"params" => array(
|
192 |
* Get information for specific authorized payment
|
193 |
* @param id
|
194 |
* @return array(json)
|
195 |
+
*/
|
196 |
public function get_authorized_payment($id) {
|
197 |
$request = array(
|
198 |
"uri" => "/authorized_payments/{$id}",
|
277 |
$filters["limit"] = $limit;
|
278 |
|
279 |
$uri_prefix = $this->sandbox ? "/sandbox" : "";
|
280 |
+
|
281 |
$request = array(
|
282 |
"uri" => $uri_prefix."/collections/search",
|
283 |
"params" => array_merge ($filters, array(
|
294 |
* @param array $preference
|
295 |
* @return array(json)
|
296 |
*/
|
297 |
+
public function create_preference($preference) {
|
298 |
+
$request = array(
|
299 |
+
"uri" => "/checkout/preferences",
|
300 |
+
"params" => array(
|
301 |
+
"access_token" => $this->get_access_token()
|
302 |
+
),
|
303 |
+
"headers" => array(
|
304 |
+
"user-agent" => "platform:desktop,type:woocommerce,so:" . MP::version
|
305 |
+
),
|
306 |
+
"data" => $preference
|
307 |
+
);
|
308 |
+
|
309 |
+
$preference_result = MPRestClient::post($request);
|
310 |
+
return $preference_result;
|
311 |
+
}
|
312 |
|
313 |
/**
|
314 |
* Update a checkout preference
|
346 |
return $preference_result;
|
347 |
}
|
348 |
|
349 |
+
/**
|
350 |
+
* Create a checkout preference
|
351 |
+
* @param array $preference
|
352 |
+
* @return array(json)
|
353 |
+
*/
|
354 |
+
public function create_payment($preference) {
|
355 |
+
$request = array(
|
356 |
+
"uri" => "/v1/payments",
|
357 |
+
"params" => array(
|
358 |
+
"access_token" => $this->get_access_token()
|
359 |
+
),
|
360 |
+
"headers" => array(
|
361 |
+
"X-Tracking-Id" => "platform:v1-whitelabel,type:woocommerce,so:" . MP::version
|
362 |
+
),
|
363 |
+
"data" => $preference
|
364 |
+
);
|
365 |
+
$payment = MPRestClient::post($request);
|
366 |
+
return $payment;
|
367 |
+
}
|
368 |
+
|
369 |
/**
|
370 |
* Create a preapproval payment
|
371 |
* @param array $preapproval_payment
|
405 |
* Update a preapproval payment
|
406 |
* @param string $preapproval_payment, $id
|
407 |
* @return array(json)
|
408 |
+
*/
|
409 |
+
|
410 |
public function update_preapproval_payment($id, $preapproval_payment) {
|
411 |
$request = array(
|
412 |
"uri" => "/preapproval/{$id}",
|
530 |
*/
|
531 |
class MPRestClient {
|
532 |
const API_BASE_URL = "https://api.mercadopago.com";
|
533 |
+
const API_BASE_ML_URL = "https://api.mercadolibre.com";
|
534 |
+
|
535 |
+
private static function build_request_ml($request) {
|
536 |
+
if (!extension_loaded ("curl")) {
|
537 |
+
throw new MercadoPagoException("cURL extension not found. You need to enable cURL in your php.ini or another configuration you have.");
|
538 |
+
}
|
539 |
+
|
540 |
+
if (!isset($request["method"])) {
|
541 |
+
throw new MercadoPagoException("No HTTP METHOD specified");
|
542 |
+
}
|
543 |
+
|
544 |
+
if (!isset($request["uri"])) {
|
545 |
+
throw new MercadoPagoException("No URI specified");
|
546 |
+
}
|
547 |
+
|
548 |
+
// Set headers
|
549 |
+
$headers = array("accept: application/json");
|
550 |
+
$json_content = true;
|
551 |
+
$form_content = false;
|
552 |
+
$default_content_type = true;
|
553 |
+
|
554 |
+
if (isset($request["headers"]) && is_array($request["headers"])) {
|
555 |
+
foreach ($request["headers"] as $h => $v) {
|
556 |
+
$h = strtolower($h);
|
557 |
+
$v = strtolower($v);
|
558 |
+
|
559 |
+
if ($h == "content-type") {
|
560 |
+
$default_content_type = false;
|
561 |
+
$json_content = $v == "application/json";
|
562 |
+
$form_content = $v == "application/x-www-form-urlencoded";
|
563 |
+
}
|
564 |
+
|
565 |
+
array_push ($headers, $h.": ".$v);
|
566 |
+
}
|
567 |
+
}
|
568 |
+
if ($default_content_type) {
|
569 |
+
array_push($headers, "content-type: application/json");
|
570 |
+
}
|
571 |
+
|
572 |
+
// Build $connect
|
573 |
+
$connect = curl_init();
|
574 |
+
|
575 |
+
curl_setopt($connect, CURLOPT_USERAGENT, "platform:v1-whitelabel,type:woocommerce,so:" . MP::version);
|
576 |
+
curl_setopt($connect, CURLOPT_RETURNTRANSFER, true);
|
577 |
+
curl_setopt($connect, CURLOPT_SSL_VERIFYPEER, true);
|
578 |
+
curl_setopt($connect, CURLOPT_CAINFO, $GLOBALS["LIB_LOCATION"] . "/cacert.pem");
|
579 |
+
curl_setopt($connect, CURLOPT_CUSTOMREQUEST, $request["method"]);
|
580 |
+
curl_setopt($connect, CURLOPT_HTTPHEADER, $headers);
|
581 |
+
|
582 |
+
// Set parameters and url
|
583 |
+
if (isset ($request["params"]) && is_array($request["params"]) && count($request["params"]) > 0) {
|
584 |
+
$request["uri"] .= (strpos($request["uri"], "?") === false) ? "?" : "&";
|
585 |
+
$request["uri"] .= self::build_query($request["params"]);
|
586 |
+
}
|
587 |
+
curl_setopt($connect, CURLOPT_URL, self::API_BASE_ML_URL . $request["uri"]);
|
588 |
+
|
589 |
+
// Set data
|
590 |
+
if (isset($request["data"])) {
|
591 |
+
if ($json_content) {
|
592 |
+
if (gettype($request["data"]) == "string") {
|
593 |
+
json_decode($request["data"], true);
|
594 |
+
} else {
|
595 |
+
$request["data"] = json_encode($request["data"]);
|
596 |
+
}
|
597 |
+
|
598 |
+
if(function_exists('json_last_error')) {
|
599 |
+
$json_error = json_last_error();
|
600 |
+
if ($json_error != JSON_ERROR_NONE) {
|
601 |
+
throw new MercadoPagoException("JSON Error [{$json_error}] - Data: ".$request["data"]);
|
602 |
+
}
|
603 |
+
}
|
604 |
+
} else if ($form_content) {
|
605 |
+
$request["data"] = self::build_query($request["data"]);
|
606 |
+
}
|
607 |
+
|
608 |
+
curl_setopt($connect, CURLOPT_POSTFIELDS, $request["data"]);
|
609 |
+
}
|
610 |
+
|
611 |
+
return $connect;
|
612 |
+
}
|
613 |
|
614 |
private static function build_request($request) {
|
615 |
if (!extension_loaded ("curl")) {
|
651 |
// Build $connect
|
652 |
$connect = curl_init();
|
653 |
|
654 |
+
curl_setopt($connect, CURLOPT_USERAGENT, "platform:v1-whitelabel,type:woocommerce,so:" . MP::version);
|
655 |
curl_setopt($connect, CURLOPT_RETURNTRANSFER, true);
|
656 |
curl_setopt($connect, CURLOPT_SSL_VERIFYPEER, true);
|
657 |
curl_setopt($connect, CURLOPT_CAINFO, $GLOBALS["LIB_LOCATION"] . "/cacert.pem");
|
690 |
return $connect;
|
691 |
}
|
692 |
|
693 |
+
private static function exec_ml($request) {
|
694 |
+
// private static function exec($method, $uri, $data, $content_type) {
|
695 |
+
|
696 |
+
$connect = self::build_request_ml($request);
|
697 |
+
|
698 |
+
$api_result = curl_exec($connect);
|
699 |
+
$api_http_code = curl_getinfo($connect, CURLINFO_HTTP_CODE);
|
700 |
+
|
701 |
+
if ($api_result === FALSE) {
|
702 |
+
throw new MercadoPagoException (curl_error ($connect));
|
703 |
+
}
|
704 |
+
|
705 |
+
$response = array(
|
706 |
+
"status" => $api_http_code,
|
707 |
+
"response" => json_decode($api_result, true)
|
708 |
+
);
|
709 |
+
|
710 |
+
/*if ($response['status'] >= 400) {
|
711 |
+
$message = $response['response']['message'];
|
712 |
+
if (isset ($response['response']['cause'])) {
|
713 |
+
if (isset ($response['response']['cause']['code']) && isset ($response['response']['cause']['description'])) {
|
714 |
+
$message .= " - ".$response['response']['cause']['code'].': '.$response['response']['cause']['description'];
|
715 |
+
} else if (is_array ($response['response']['cause'])) {
|
716 |
+
foreach ($response['response']['cause'] as $cause) {
|
717 |
+
$message .= " - ".$cause['code'].': '.$cause['description'];
|
718 |
+
}
|
719 |
+
}
|
720 |
+
}
|
721 |
+
|
722 |
+
throw new MercadoPagoException ($message, $response['status']);
|
723 |
+
}*/
|
724 |
+
|
725 |
+
curl_close($connect);
|
726 |
+
|
727 |
+
return $response;
|
728 |
+
}
|
729 |
+
|
730 |
private static function exec($request) {
|
731 |
// private static function exec($method, $uri, $data, $content_type) {
|
732 |
|
744 |
"response" => json_decode($api_result, true)
|
745 |
);
|
746 |
|
747 |
+
/*if ($response['status'] >= 400) {
|
748 |
$message = $response['response']['message'];
|
749 |
if (isset ($response['response']['cause'])) {
|
750 |
if (isset ($response['response']['cause']['code']) && isset ($response['response']['cause']['description'])) {
|
757 |
}
|
758 |
|
759 |
throw new MercadoPagoException ($message, $response['status']);
|
760 |
+
}*/
|
761 |
|
762 |
curl_close($connect);
|
763 |
|
776 |
}
|
777 |
}
|
778 |
|
779 |
+
public static function get_ml($request) {
|
780 |
+
$request["method"] = "GET";
|
781 |
+
|
782 |
+
return self::exec_ml($request);
|
783 |
+
}
|
784 |
+
|
785 |
public static function get($request) {
|
786 |
$request["method"] = "GET";
|
787 |
|
812 |
// Default code 500
|
813 |
parent::__construct($message, $code, $previous);
|
814 |
}
|
815 |
+
}
|
templates/credit-card/payment-form.php
ADDED
@@ -0,0 +1,1137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
|
7 |
+
* License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( !defined( 'ABSPATH' ) ) {
|
11 |
+
exit;
|
12 |
+
}
|
13 |
+
?>
|
14 |
+
|
15 |
+
<div width="100%" style="margin:1px; padding:36px 36px 16px 36px; background:white; ">
|
16 |
+
<img class="logo" src="<?php echo ( $images_path . 'mplogo.png' ); ?>" width="156" height="40" />
|
17 |
+
<?php if ( !empty( $banner_path ) ) { ?>
|
18 |
+
<img class="mp-creditcard-banner" src="<?php echo $banner_path; ?>" width="312" height="40" />
|
19 |
+
<?php } ?>
|
20 |
+
</div>
|
21 |
+
<fieldset style="background:white; ">
|
22 |
+
|
23 |
+
<div class="mp-box-inputs mp-line" id="mercadopago-form-coupon" style="padding:0px 36px 16px 36px;">
|
24 |
+
<label for="couponCodeLabel"><?php echo $form_labels['form']['coupon_of_discounts']; ?></label>
|
25 |
+
<div class="mp-box-inputs mp-col-65">
|
26 |
+
<input type="text" id="couponCode" name="mercadopago_custom[coupon_code]" autocomplete="off" maxlength="24" />
|
27 |
+
<span class="mp-discount" id="mpCouponApplyed" ></span>
|
28 |
+
<span class="mp-error" id="mpCouponError" ></span>
|
29 |
+
</div>
|
30 |
+
<div class="mp-box-inputs mp-col-10">
|
31 |
+
<div id="mp-separete-date"></div>
|
32 |
+
</div>
|
33 |
+
<div class="mp-box-inputs mp-col-25">
|
34 |
+
<input type="button" class="button" id="applyCoupon" value="<?php echo $form_labels['form']['apply']; ?>" >
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
|
38 |
+
<!-- payment method -->
|
39 |
+
<div id="mercadopago-form-customer-and-card" style="padding:0px 36px 0px 36px;">
|
40 |
+
<div class="mp-box-inputs mp-line">
|
41 |
+
<label for="paymentMethodIdSelector"><?php echo $form_labels['form']['payment_method']; ?> <em>*</em></label>
|
42 |
+
<select id="paymentMethodSelector" name="mercadopago_custom[paymentMethodSelector]" data-checkout='cardId'>
|
43 |
+
<optgroup label=<?php echo $form_labels['form']['your_card']; ?> id="payment-methods-for-customer-and-cards">
|
44 |
+
<?php foreach ( $customer_cards as $card) { ?>
|
45 |
+
<option value=<?php echo $card["id"]; ?>
|
46 |
+
first_six_digits=<?php echo $card["first_six_digits"]; ?>
|
47 |
+
last_four_digits=<?php echo $card["last_four_digits"]; ?>
|
48 |
+
security_code_length=<?php echo $card["security_code"]["length"]; ?>
|
49 |
+
type_checkout="customer_and_card"
|
50 |
+
payment_method_id=<?php echo $card["payment_method"]["id"]; ?>>
|
51 |
+
<?php echo ucfirst($card["payment_method"]["name"]); ?> <?php echo $form_labels['form']['ended_in']; ?> <?php echo $card["last_four_digits"]; ?>
|
52 |
+
</option>
|
53 |
+
<?php } ?>
|
54 |
+
</optgroup>
|
55 |
+
<optgroup label="<?php echo $form_labels['form']['other_cards']; ?>" id="payment-methods-list-other-cards">
|
56 |
+
<option value="-1"><?php echo $form_labels['form']['other_card']; ?></option>
|
57 |
+
</optgroup>
|
58 |
+
</select>
|
59 |
+
</div>
|
60 |
+
<div class="mp-box-inputs mp-line" id="mp-securityCode-customer-and-card">
|
61 |
+
<div class="mp-box-inputs mp-col-45">
|
62 |
+
<label for="customer-and-card-securityCode"><?php echo $form_labels['form']['security_code']; ?> <em>*</em></label>
|
63 |
+
<input type="text" id="customer-and-card-securityCode" data-checkout="securityCode" autocomplete="off" maxlength="4"
|
64 |
+
style="padding: 8px; background: url( <?php echo ( $images_path . 'cvv.png' ); ?> ) 98% 50% no-repeat;"/>
|
65 |
+
<span class="mp-error" id="mp-error-224" data-main="#customer-and-card-securityCode"> <?php echo $form_labels['error']['224']; ?> </span>
|
66 |
+
<span class="mp-error" id="mp-error-E302" data-main="#customer-and-card-securityCode"> <?php echo $form_labels['error']['E302']; ?> </span>
|
67 |
+
<span class="mp-error" id="mp-error-E203" data-main="#customer-and-card-securityCode"> <?php echo $form_labels['error']['E203']; ?> </span>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
</div> <!-- end mercadopago-form-osc -->
|
71 |
+
|
72 |
+
<div id="mercadopago-form" style="padding:0px 36px 0px 36px;">
|
73 |
+
<!-- Card Number -->
|
74 |
+
<div class="mp-box-inputs mp-col-100">
|
75 |
+
<label for="cardNumber"><?php echo $form_labels['form']['credit_card_number']; ?> <em>*</em></label>
|
76 |
+
<input type="text" id="cardNumber" data-checkout="cardNumber" autocomplete="off" maxlength="19"/>
|
77 |
+
<span class="mp-error" id="mp-error-205" data-main="#cardNumber"> <?php echo $form_labels['error']['205']; ?> </span>
|
78 |
+
<span class="mp-error" id="mp-error-E301" data-main="#cardNumber"> <?php echo $form_labels['error']['E301']; ?> </span>
|
79 |
+
</div>
|
80 |
+
<!-- Expiry Date -->
|
81 |
+
<div class="mp-box-inputs mp-line">
|
82 |
+
<div class="mp-box-inputs mp-col-45">
|
83 |
+
<label for="cardExpirationMonth"><?php echo $form_labels['form']['expiration_month']; ?> <em>*</em></label>
|
84 |
+
<select id="cardExpirationMonth" data-checkout="cardExpirationMonth" name="mercadopago_custom[cardExpirationMonth]">
|
85 |
+
<option value="-1"> <?php echo $form_labels['form']['month']; ?> </option>
|
86 |
+
<?php for ($x=1; $x<=12; $x++): ?>
|
87 |
+
<option value="<?php echo $x; ?>"> <?php echo $x; ?></option>
|
88 |
+
<?php endfor; ?>
|
89 |
+
</select>
|
90 |
+
</div>
|
91 |
+
<div class="mp-box-inputs mp-col-10">
|
92 |
+
<div id="mp-separete-date">
|
93 |
+
/
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
<div class="mp-box-inputs mp-col-45">
|
97 |
+
<label for="cardExpirationYear"><?php echo $form_labels['form']['expiration_year']; ?> <em>*</em></label>
|
98 |
+
<select id="cardExpirationYear" data-checkout="cardExpirationYear" name="mercadopago_custom[cardExpirationYear]">
|
99 |
+
<option value="-1"> <?php echo $form_labels['form']['year']; ?> </option>
|
100 |
+
<?php for ($x=date("Y"); $x<= date("Y") + 10; $x++): ?>
|
101 |
+
<option value="<?php echo $x; ?>"> <?php echo $x; ?> </option>
|
102 |
+
<?php endfor; ?>
|
103 |
+
</select>
|
104 |
+
</div>
|
105 |
+
<span class="mp-error" id="mp-error-208" data-main="#cardExpirationMonth"> <?php echo $form_labels['error']['208']; ?> </span>
|
106 |
+
<span class="mp-error" id="mp-error-209" data-main="#cardExpirationYear"> </span>
|
107 |
+
<span class="mp-error" id="mp-error-325" data-main="#cardExpirationMonth"> <?php echo $form_labels['error']['325']; ?> </span>
|
108 |
+
<span class="mp-error" id="mp-error-326" data-main="#cardExpirationYear"> </span>
|
109 |
+
</div>
|
110 |
+
<!-- Card Holder Name -->
|
111 |
+
<div class="mp-box-inputs mp-col-100">
|
112 |
+
<label for="cardholderName"><?php echo $form_labels['form']['card_holder_name']; ?> <em>*</em></label>
|
113 |
+
<input type="text" id="cardholderName" name="mercadopago_custom[cardholderName]" data-checkout="cardholderName" autocomplete="off" />
|
114 |
+
<span class="mp-error" id="mp-error-221" data-main="#cardholderName"> <?php echo $form_labels['error']['221']; ?> </span>
|
115 |
+
<span class="mp-error" id="mp-error-316" data-main="#cardholderName"> <?php echo $form_labels['error']['316']; ?> </span>
|
116 |
+
</div>
|
117 |
+
<!-- CVV -->
|
118 |
+
<div class="mp-box-inputs mp-line">
|
119 |
+
<div class="mp-box-inputs mp-col-45">
|
120 |
+
<label for="securityCode"><?php echo $form_labels['form']['security_code']; ?> <em>*</em></label>
|
121 |
+
<input type="text" id="securityCode" data-checkout="securityCode" autocomplete="off" maxlength="4" style="padding: 8px; background: url( <?php echo ( $images_path . 'cvv.png' ); ?> ) 98% 50% no-repeat;" />
|
122 |
+
<span class="mp-error" id="mp-error-224" data-main="#securityCode"> <?php echo $form_labels['error']['224']; ?> </span>
|
123 |
+
<span class="mp-error" id="mp-error-E302" data-main="#securityCode"> <?php echo $form_labels['error']['E302']; ?> </span>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
<!-- Document Type -->
|
127 |
+
<div class="mp-box-inputs mp-col-100 mp-doc">
|
128 |
+
<div class="mp-box-inputs mp-col-35 mp-docType">
|
129 |
+
<label for="docType"><?php echo $form_labels['form']['document_type']; ?> <em>*</em></label>
|
130 |
+
<select id="docType" data-checkout="docType" name="mercadopago_custom[docType]"></select>
|
131 |
+
<span class="mp-error" id="mp-error-212" data-main="#docType"> <?php echo $form_labels['error']['212']; ?> </span>
|
132 |
+
<span class="mp-error" id="mp-error-322" data-main="#docType"> <?php echo $form_labels['error']['322']; ?> </span>
|
133 |
+
</div>
|
134 |
+
<div class="mp-box-inputs mp-col-65 mp-docNumber">
|
135 |
+
<label for="docNumber"><?php echo $form_labels['form']['document_number']; ?> <em>*</em></label>
|
136 |
+
<input type="text" id="docNumber" data-checkout="docNumber" name="mercadopago_custom[docNumber]" autocomplete="off" />
|
137 |
+
<span class="mp-error" id="mp-error-214" data-main="#docNumber"> <?php echo $form_labels['error']['214']; ?> </span>
|
138 |
+
<span class="mp-error" id="mp-error-324" data-main="#docNumber"> <?php echo $form_labels['error']['324']; ?> </span>
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
<!-- Issuer -->
|
142 |
+
<div class="mp-box-inputs mp-col-100 mp-issuer">
|
143 |
+
<label for="issuer"><?php echo $form_labels['form']['issuer']; ?> <em>*</em></label>
|
144 |
+
<select id="issuer" data-checkout="issuer" name="mercadopago_custom[issuer]"></select>
|
145 |
+
<span class="mp-error" id="mp-error-220" data-main="#issuer"> <?php echo $form_labels['error']['220']; ?> </span>
|
146 |
+
</div>
|
147 |
+
</div> <!-- end #mercadopago-form -->
|
148 |
+
|
149 |
+
<div class="mp-box-inputs mp-col-100" style="padding:0px 36px 0px 36px;">
|
150 |
+
<label for="installments">
|
151 |
+
<?php echo $form_labels['form']['installments']; ?>
|
152 |
+
<?php if ($is_currency_conversion > 0) { ?>
|
153 |
+
<?php echo "(" . $form_labels['form']['payment_converted'] . " " . $woocommerce_currency . " " . $form_labels['form']['to'] . " " . $account_currency . ")"; ?>
|
154 |
+
<?php } ?>
|
155 |
+
<em>*</em>
|
156 |
+
</label>
|
157 |
+
<select id="installments" data-checkout="installments" name="mercadopago_custom[installments]"></select>
|
158 |
+
</div>
|
159 |
+
<div class="mp-box-inputs mp-line" style="padding:0px 36px 0px 36px;">
|
160 |
+
<!-- <div class="mp-box-inputs mp-col-50">
|
161 |
+
<input type="submit" id="submit" value="Pay">
|
162 |
+
</div> -->
|
163 |
+
<!-- NOT DELETE LOADING-->
|
164 |
+
<div class="mp-box-inputs mp-col-25">
|
165 |
+
<div id="mp-box-loading"></div>
|
166 |
+
</div>
|
167 |
+
</div>
|
168 |
+
<div class="mp-box-inputs mp-col-100" id="mercadopago-utilities" style="padding:0px 36px 0px 36px;">
|
169 |
+
<input type="hidden" id="site_id" name="mercadopago_custom[site_id]"/>
|
170 |
+
<input type="hidden" id="amount" value='<?php echo $amount; ?>' name="mercadopago_custom[amount]"/>
|
171 |
+
<input type="hidden" id="campaign_id" name="mercadopago_custom[campaign_id]"/>
|
172 |
+
<input type="hidden" id="campaign" name="mercadopago_custom[campaign]"/>
|
173 |
+
<input type="hidden" id="discount" name="mercadopago_custom[discount]"/>
|
174 |
+
<input type="hidden" id="paymentMethodId" name="mercadopago_custom[paymentMethodId]"/>
|
175 |
+
<input type="hidden" id="token" name="mercadopago_custom[token]"/>
|
176 |
+
<input type="hidden" id="cardTruncated" name="mercadopago_custom[cardTruncated]"/>
|
177 |
+
<input type="hidden" id="CustomerAndCard" name="mercadopago_custom[CustomerAndCard]"/>
|
178 |
+
<input type="hidden" id="CustomerId" value='<?php echo $customerId; ?>' name="mercadopago_custom[CustomerId]"/>
|
179 |
+
</div>
|
180 |
+
|
181 |
+
</fieldset>
|
182 |
+
|
183 |
+
<script type="text/javascript">
|
184 |
+
|
185 |
+
(function() {
|
186 |
+
|
187 |
+
var MPv1 = {
|
188 |
+
debug: true,
|
189 |
+
add_truncated_card: true,
|
190 |
+
site_id: '',
|
191 |
+
public_key: '',
|
192 |
+
coupon_of_discounts: {
|
193 |
+
discount_action_url: '',
|
194 |
+
default: true,
|
195 |
+
status: false
|
196 |
+
},
|
197 |
+
customer_and_card: {
|
198 |
+
default: true,
|
199 |
+
status: true
|
200 |
+
},
|
201 |
+
create_token_on: {
|
202 |
+
event: true, //if true create token on event, if false create on click and ignore others events. eg: paste or keyup
|
203 |
+
keyup: false,
|
204 |
+
paste: true
|
205 |
+
},
|
206 |
+
|
207 |
+
inputs_to_create_discount: [
|
208 |
+
"couponCode",
|
209 |
+
"applyCoupon"
|
210 |
+
],
|
211 |
+
|
212 |
+
inputs_to_create_token: [
|
213 |
+
"cardNumber",
|
214 |
+
"cardExpirationMonth",
|
215 |
+
"cardExpirationYear",
|
216 |
+
"cardholderName",
|
217 |
+
"securityCode",
|
218 |
+
"docType",
|
219 |
+
"docNumber"
|
220 |
+
],
|
221 |
+
|
222 |
+
inputs_to_create_token_customer_and_card: [
|
223 |
+
"paymentMethodSelector",
|
224 |
+
"securityCode"
|
225 |
+
],
|
226 |
+
|
227 |
+
selectors: {
|
228 |
+
|
229 |
+
couponCode: "#couponCode",
|
230 |
+
applyCoupon: "#applyCoupon",
|
231 |
+
mpCouponApplyed: "#mpCouponApplyed",
|
232 |
+
mpCouponError: "#mpCouponError",
|
233 |
+
|
234 |
+
paymentMethodSelector: "#paymentMethodSelector",
|
235 |
+
pmCustomerAndCards: "#payment-methods-for-customer-and-cards",
|
236 |
+
pmListOtherCards: "#payment-methods-list-other-cards",
|
237 |
+
mpSecurityCodeCustomerAndCard: "#mp-securityCode-customer-and-card",
|
238 |
+
|
239 |
+
cardNumber: "#cardNumber",
|
240 |
+
cardExpirationMonth: "#cardExpirationMonth",
|
241 |
+
cardExpirationYear: "#cardExpirationYear",
|
242 |
+
cardholderName: "#cardholderName",
|
243 |
+
securityCode: "#securityCode",
|
244 |
+
docType: "#docType",
|
245 |
+
docNumber: "#docNumber",
|
246 |
+
issuer: "#issuer",
|
247 |
+
installments: "#installments",
|
248 |
+
|
249 |
+
mpDoc: ".mp-doc",
|
250 |
+
mpIssuer: ".mp-issuer",
|
251 |
+
mpDocType: ".mp-docType",
|
252 |
+
mpDocNumber: ".mp-docNumber",
|
253 |
+
// mpPaymentMethodSelector: ".mp-paymentMethodsSelector",
|
254 |
+
|
255 |
+
paymentMethodId: "#paymentMethodId",
|
256 |
+
amount: "#amount",
|
257 |
+
token: "#token",
|
258 |
+
campaign_id: "#campaign_id",
|
259 |
+
campaign: "#campaign",
|
260 |
+
discount: "#discount",
|
261 |
+
cardTruncated: "#cardTruncated",
|
262 |
+
site_id: "#site_id",
|
263 |
+
CustomerAndCard: '#CustomerAndCard',
|
264 |
+
|
265 |
+
box_loading: "#mp-box-loading",
|
266 |
+
submit: "#submit",
|
267 |
+
form: '#mercadopago-form',
|
268 |
+
formCoupon: '#mercadopago-form-coupon',
|
269 |
+
formCustomerAndCard: '#mercadopago-form-customer-and-card',
|
270 |
+
utilities_fields: "#mercadopago-utilities"
|
271 |
+
},
|
272 |
+
text: {
|
273 |
+
choose: "Choose",
|
274 |
+
other_bank: "Other Bank",
|
275 |
+
discount_info1: "You will save",
|
276 |
+
discount_info2: "with discount from",
|
277 |
+
discount_info3: "Total of your purchase:",
|
278 |
+
discount_info4: "Total of your purchase with discount:",
|
279 |
+
discount_info5: "*Uppon payment approval",
|
280 |
+
discount_info6: "Terms and Conditions of Use",
|
281 |
+
coupon_empty: "Please, inform your coupon code",
|
282 |
+
apply: "Apply",
|
283 |
+
remove: "Remove"
|
284 |
+
},
|
285 |
+
paths: {
|
286 |
+
loading: "images/loading.gif",
|
287 |
+
check: "images/check.png",
|
288 |
+
error: "images/error.png"
|
289 |
+
}
|
290 |
+
}
|
291 |
+
|
292 |
+
/*
|
293 |
+
* Coupon of Discounts
|
294 |
+
*/
|
295 |
+
|
296 |
+
MPv1.currencyIdToCurrency = function (currency_id) {
|
297 |
+
if ( currency_id == 'ARS' ) {
|
298 |
+
return '$';
|
299 |
+
} else if ( currency_id == 'BRL' ) {
|
300 |
+
return 'R$';
|
301 |
+
} else if ( currency_id == 'COP' ) {
|
302 |
+
return '$';
|
303 |
+
} else if ( currency_id == 'CLP' ) {
|
304 |
+
return '$';
|
305 |
+
} else if ( currency_id == 'MXN' ) {
|
306 |
+
return '$';
|
307 |
+
} else if ( currency_id == 'VEF' ) {
|
308 |
+
return 'Bs';
|
309 |
+
} else if ( currency_id == 'PEN' ) {
|
310 |
+
return 'S/';
|
311 |
+
} else {
|
312 |
+
return '$';
|
313 |
+
}
|
314 |
+
}
|
315 |
+
|
316 |
+
MPv1.checkCouponEligibility = function () {
|
317 |
+
if ( document.querySelector(MPv1.selectors.couponCode).value == "" ) {
|
318 |
+
// coupon code is empty
|
319 |
+
document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
|
320 |
+
document.querySelector(MPv1.selectors.mpCouponError).style.display = 'block';
|
321 |
+
document.querySelector(MPv1.selectors.mpCouponError).innerHTML = MPv1.text.coupon_empty;
|
322 |
+
MPv1.coupon_of_discounts.status = false;
|
323 |
+
document.querySelector(MPv1.selectors.couponCode).style.background = null;
|
324 |
+
document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.apply;
|
325 |
+
document.querySelector(MPv1.selectors.discount).value = 0;
|
326 |
+
MPv1.cardsHandler();
|
327 |
+
} else if ( MPv1.coupon_of_discounts.status ) {
|
328 |
+
// we already have a coupon set, so we remove it
|
329 |
+
document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
|
330 |
+
document.querySelector(MPv1.selectors.mpCouponError).style.display = 'none';
|
331 |
+
MPv1.coupon_of_discounts.status = false;
|
332 |
+
document.querySelector(MPv1.selectors.applyCoupon).style.background = null;
|
333 |
+
document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.apply;
|
334 |
+
document.querySelector(MPv1.selectors.couponCode).value = "";
|
335 |
+
document.querySelector(MPv1.selectors.couponCode).style.background = null;
|
336 |
+
document.querySelector(MPv1.selectors.discount).value = 0;
|
337 |
+
MPv1.cardsHandler();
|
338 |
+
} else {
|
339 |
+
// set loading
|
340 |
+
document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
|
341 |
+
document.querySelector(MPv1.selectors.mpCouponError).style.display = 'none';
|
342 |
+
document.querySelector(MPv1.selectors.couponCode).style.background = "url("+MPv1.paths.loading+") 98% 50% no-repeat #fff";
|
343 |
+
document.querySelector(MPv1.selectors.applyCoupon).disabled = true;
|
344 |
+
var request = new XMLHttpRequest();
|
345 |
+
request.open(
|
346 |
+
'GET',
|
347 |
+
MPv1.coupon_of_discounts.discount_action_url +
|
348 |
+
"&coupon_id=" + document.querySelector(MPv1.selectors.couponCode).value +
|
349 |
+
"&amount=" + document.querySelector(MPv1.selectors.amount).value +
|
350 |
+
"&payer=" + document.getElementById("billing_email").value,
|
351 |
+
true
|
352 |
+
);
|
353 |
+
request.onreadystatechange = function() {
|
354 |
+
if (request.readyState == 4) {
|
355 |
+
if (request.status == 200) {
|
356 |
+
var response = JSON.parse(request.responseText);
|
357 |
+
if (response.status == 200) {
|
358 |
+
document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'block';
|
359 |
+
document.querySelector(MPv1.selectors.discount).value = response.response.coupon_amount;
|
360 |
+
document.querySelector(MPv1.selectors.mpCouponApplyed).innerHTML =
|
361 |
+
"<div style='border-style: solid; border-width:thin; border-color: #009EE3; padding: 8px 8px 8px 8px; margin-top: 4px;'>" +
|
362 |
+
MPv1.text.discount_info1 + " <strong>" + MPv1.currencyIdToCurrency(response.response.currency_id) + " " +
|
363 |
+
Math.round(response.response.coupon_amount*100)/100 + "</strong> " + MPv1.text.discount_info2 + " " + response.response.name + ".<br>" +
|
364 |
+
MPv1.text.discount_info3 + " <strong>" + MPv1.currencyIdToCurrency(response.response.currency_id) +
|
365 |
+
" " + Math.round(MPv1.getAmountWithoutDiscount()*100)/100 + "</strong><br>" +
|
366 |
+
MPv1.text.discount_info4 + " <strong>" + MPv1.currencyIdToCurrency(response.response.currency_id) +
|
367 |
+
" " + Math.round(MPv1.getAmount()*100)/100 + "*</strong><br>" +
|
368 |
+
"<i>" + MPv1.text.discount_info5 + "</i><br>" +
|
369 |
+
"<a href='https://api.mercadolibre.com/campaigns/" + response.response.id + "/terms_and_conditions?format_type=html' target='_blank'>" +
|
370 |
+
MPv1.text.discount_info6 + "</a></div>";
|
371 |
+
document.querySelector(MPv1.selectors.mpCouponError).style.display = 'none';
|
372 |
+
MPv1.coupon_of_discounts.status = true;
|
373 |
+
document.querySelector(MPv1.selectors.couponCode).style.background = null;
|
374 |
+
document.querySelector(MPv1.selectors.couponCode).style.background = "url("+MPv1.paths.check+") 98% 50% no-repeat #fff";
|
375 |
+
document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.remove;
|
376 |
+
MPv1.cardsHandler();
|
377 |
+
document.querySelector(MPv1.selectors.campaign_id).value = response.response.id;
|
378 |
+
document.querySelector(MPv1.selectors.campaign).value = response.response.name;
|
379 |
+
} else if (response.status == 400 || response.status == 404) {
|
380 |
+
document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
|
381 |
+
document.querySelector(MPv1.selectors.mpCouponError).style.display = 'block';
|
382 |
+
document.querySelector(MPv1.selectors.mpCouponError).innerHTML = response.response.message;
|
383 |
+
MPv1.coupon_of_discounts.status = false;
|
384 |
+
document.querySelector(MPv1.selectors.couponCode).style.background = null;
|
385 |
+
document.querySelector(MPv1.selectors.couponCode).style.background = "url("+MPv1.paths.error+") 98% 50% no-repeat #fff";
|
386 |
+
document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.apply;
|
387 |
+
document.querySelector(MPv1.selectors.discount).value = 0;
|
388 |
+
MPv1.cardsHandler();
|
389 |
+
}
|
390 |
+
} else {
|
391 |
+
// request failed
|
392 |
+
document.querySelector(MPv1.selectors.mpCouponApplyed).style.display = 'none';
|
393 |
+
document.querySelector(MPv1.selectors.mpCouponError).style.display = 'none';
|
394 |
+
MPv1.coupon_of_discounts.status = false;
|
395 |
+
document.querySelector(MPv1.selectors.applyCoupon).style.background = null;
|
396 |
+
document.querySelector(MPv1.selectors.applyCoupon).value = MPv1.text.apply;
|
397 |
+
document.querySelector(MPv1.selectors.couponCode).value = "";
|
398 |
+
document.querySelector(MPv1.selectors.couponCode).style.background = null;
|
399 |
+
document.querySelector(MPv1.selectors.discount).value = 0;
|
400 |
+
MPv1.cardsHandler();
|
401 |
+
}
|
402 |
+
document.querySelector(MPv1.selectors.applyCoupon).disabled = false;
|
403 |
+
}
|
404 |
+
};
|
405 |
+
request.send(null);
|
406 |
+
}
|
407 |
+
}
|
408 |
+
|
409 |
+
MPv1.getBin = function() {
|
410 |
+
var cardSelector = document.querySelector(MPv1.selectors.paymentMethodSelector);
|
411 |
+
if (cardSelector && cardSelector[cardSelector.options.selectedIndex].value != "-1") {
|
412 |
+
return cardSelector[cardSelector.options.selectedIndex].getAttribute('first_six_digits');
|
413 |
+
}
|
414 |
+
|
415 |
+
var ccNumber = document.querySelector(MPv1.selectors.cardNumber);
|
416 |
+
return ccNumber.value.replace(/[ .-]/g, '').slice(0, 6);
|
417 |
+
}
|
418 |
+
|
419 |
+
MPv1.clearOptions = function() {
|
420 |
+
var bin = MPv1.getBin();
|
421 |
+
|
422 |
+
if (bin.length == 0) {
|
423 |
+
MPv1.hideIssuer();
|
424 |
+
|
425 |
+
var selectorInstallments = document.querySelector(MPv1.selectors.installments),
|
426 |
+
fragment = document.createDocumentFragment(),
|
427 |
+
option = new Option(MPv1.text.choose + "...", '-1');
|
428 |
+
|
429 |
+
selectorInstallments.options.length = 0;
|
430 |
+
fragment.appendChild(option);
|
431 |
+
selectorInstallments.appendChild(fragment);
|
432 |
+
selectorInstallments.setAttribute('disabled', 'disabled');
|
433 |
+
}
|
434 |
+
}
|
435 |
+
|
436 |
+
MPv1.guessingPaymentMethod = function(event) {
|
437 |
+
|
438 |
+
var bin = MPv1.getBin();
|
439 |
+
var amount = MPv1.getAmount();
|
440 |
+
|
441 |
+
if (event.type == "keyup") {
|
442 |
+
if (bin != null && bin.length == 6) {
|
443 |
+
Mercadopago.getPaymentMethod({
|
444 |
+
"bin": bin
|
445 |
+
}, MPv1.setPaymentMethodInfo);
|
446 |
+
}
|
447 |
+
} else {
|
448 |
+
setTimeout(function() {
|
449 |
+
if (bin.length >= 6) {
|
450 |
+
Mercadopago.getPaymentMethod({
|
451 |
+
"bin": bin
|
452 |
+
}, MPv1.setPaymentMethodInfo);
|
453 |
+
}
|
454 |
+
}, 100);
|
455 |
+
}
|
456 |
+
};
|
457 |
+
|
458 |
+
MPv1.setPaymentMethodInfo = function(status, response) {
|
459 |
+
|
460 |
+
if (status == 200) {
|
461 |
+
|
462 |
+
if (MPv1.site_id != "MLM") {
|
463 |
+
//guessing
|
464 |
+
document.querySelector(MPv1.selectors.paymentMethodId).value = response[0].id;
|
465 |
+
|
466 |
+
if (MPv1.customer_and_card.status) {
|
467 |
+
document.querySelector(MPv1.selectors.paymentMethodSelector).style.background = "url(" + response[0].secure_thumbnail + ") 95% 50% no-repeat #fff";
|
468 |
+
} else {
|
469 |
+
document.querySelector(MPv1.selectors.cardNumber).style.background = "url(" + response[0].secure_thumbnail + ") 98% 50% no-repeat #fff";
|
470 |
+
}
|
471 |
+
|
472 |
+
}
|
473 |
+
|
474 |
+
// check if the security code (ex: Tarshop) is required
|
475 |
+
var cardConfiguration = response[0].settings;
|
476 |
+
var bin = MPv1.getBin();
|
477 |
+
var amount = MPv1.getAmount();
|
478 |
+
|
479 |
+
Mercadopago.getInstallments({
|
480 |
+
"bin": bin,
|
481 |
+
"amount": amount
|
482 |
+
}, MPv1.setInstallmentInfo);
|
483 |
+
|
484 |
+
// check if the issuer is necessary to pay
|
485 |
+
var issuerMandatory = false,
|
486 |
+
additionalInfo = response[0].additional_info_needed;
|
487 |
+
|
488 |
+
for (var i = 0; i < additionalInfo.length; i++) {
|
489 |
+
if (additionalInfo[i] == "issuer_id") {
|
490 |
+
issuerMandatory = true;
|
491 |
+
}
|
492 |
+
};
|
493 |
+
if (issuerMandatory && MPv1.site_id != "MLM") {
|
494 |
+
var payment_method_id = response[0].id;
|
495 |
+
MPv1.getIssuersPaymentMethod(payment_method_id);
|
496 |
+
} else {
|
497 |
+
MPv1.hideIssuer();
|
498 |
+
}
|
499 |
+
}
|
500 |
+
}
|
501 |
+
|
502 |
+
|
503 |
+
MPv1.changePaymetMethodSelector = function() {
|
504 |
+
var payment_method_id = document.querySelector(MPv1.selectors.paymentMethodSelector).value;
|
505 |
+
MPv1.getIssuersPaymentMethod(payment_method_id);
|
506 |
+
|
507 |
+
}
|
508 |
+
|
509 |
+
|
510 |
+
/*
|
511 |
+
*
|
512 |
+
*
|
513 |
+
* Issuers
|
514 |
+
*
|
515 |
+
*/
|
516 |
+
|
517 |
+
MPv1.getIssuersPaymentMethod = function(payment_method_id) {
|
518 |
+
var amount = MPv1.getAmount();
|
519 |
+
|
520 |
+
//flow: MLM mercadopagocard
|
521 |
+
if (payment_method_id == 'mercadopagocard') {
|
522 |
+
Mercadopago.getInstallments({
|
523 |
+
"payment_method_id": payment_method_id,
|
524 |
+
"amount": amount
|
525 |
+
}, MPv1.setInstallmentInfo);
|
526 |
+
}
|
527 |
+
|
528 |
+
Mercadopago.getIssuers(payment_method_id, MPv1.showCardIssuers);
|
529 |
+
MPv1.addListenerEvent(document.querySelector(MPv1.selectors.issuer), 'change', MPv1.setInstallmentsByIssuerId);
|
530 |
+
}
|
531 |
+
|
532 |
+
|
533 |
+
MPv1.showCardIssuers = function(status, issuers) {
|
534 |
+
|
535 |
+
//if the API does not return any bank
|
536 |
+
if (issuers.length > 0) {
|
537 |
+
var issuersSelector = document.querySelector(MPv1.selectors.issuer),
|
538 |
+
fragment = document.createDocumentFragment();
|
539 |
+
|
540 |
+
issuersSelector.options.length = 0;
|
541 |
+
var option = new Option(MPv1.text.choose + "...", '-1');
|
542 |
+
fragment.appendChild(option);
|
543 |
+
|
544 |
+
for (var i = 0; i < issuers.length; i++) {
|
545 |
+
if (issuers[i].name != "default") {
|
546 |
+
option = new Option(issuers[i].name, issuers[i].id);
|
547 |
+
} else {
|
548 |
+
option = new Option("Otro", issuers[i].id);
|
549 |
+
}
|
550 |
+
fragment.appendChild(option);
|
551 |
+
}
|
552 |
+
issuersSelector.appendChild(fragment);
|
553 |
+
issuersSelector.removeAttribute('disabled');
|
554 |
+
//document.querySelector(MPv1.selectors.issuer).removeAttribute('style');
|
555 |
+
} else {
|
556 |
+
MPv1.hideIssuer();
|
557 |
+
}
|
558 |
+
}
|
559 |
+
|
560 |
+
MPv1.setInstallmentsByIssuerId = function(status, response) {
|
561 |
+
var issuerId = document.querySelector(MPv1.selectors.issuer).value;
|
562 |
+
var amount = MPv1.getAmount();
|
563 |
+
|
564 |
+
if (issuerId === '-1') {
|
565 |
+
return;
|
566 |
+
}
|
567 |
+
|
568 |
+
var params_installments = {
|
569 |
+
"bin": MPv1.getBin(),
|
570 |
+
"amount": amount,
|
571 |
+
"issuer_id": issuerId
|
572 |
+
}
|
573 |
+
|
574 |
+
if (MPv1.site_id == "MLM") {
|
575 |
+
params_installments = {
|
576 |
+
"payment_method_id": document.querySelector(MPv1.selectors.paymentMethodSelector).value,
|
577 |
+
"amount": amount,
|
578 |
+
"issuer_id": issuerId
|
579 |
+
}
|
580 |
+
}
|
581 |
+
|
582 |
+
Mercadopago.getInstallments(params_installments, MPv1.setInstallmentInfo);
|
583 |
+
}
|
584 |
+
|
585 |
+
MPv1.hideIssuer = function() {
|
586 |
+
var $issuer = document.querySelector(MPv1.selectors.issuer);
|
587 |
+
var opt = document.createElement('option');
|
588 |
+
opt.value = "-1";
|
589 |
+
opt.innerHTML = MPv1.text.other_bank;
|
590 |
+
|
591 |
+
$issuer.innerHTML = "";
|
592 |
+
$issuer.appendChild(opt);
|
593 |
+
$issuer.setAttribute('disabled', 'disabled');
|
594 |
+
}
|
595 |
+
|
596 |
+
/*
|
597 |
+
*
|
598 |
+
*
|
599 |
+
* Installments
|
600 |
+
*
|
601 |
+
*/
|
602 |
+
|
603 |
+
MPv1.setInstallmentInfo = function(status, response) {
|
604 |
+
var selectorInstallments = document.querySelector(MPv1.selectors.installments);
|
605 |
+
|
606 |
+
if (response.length > 0) {
|
607 |
+
|
608 |
+
var html_option = '<option value="-1">' + MPv1.text.choose + '...</option>';
|
609 |
+
payerCosts = response[0].payer_costs;
|
610 |
+
|
611 |
+
// fragment.appendChild(option);
|
612 |
+
for (var i = 0; i < payerCosts.length; i++) {
|
613 |
+
html_option += '<option value="' + payerCosts[i].installments + '">' + (payerCosts[i].recommended_message || payerCosts[i].installments) + '</option>';
|
614 |
+
}
|
615 |
+
|
616 |
+
// not take the user's selection if equal
|
617 |
+
if (selectorInstallments.innerHTML != html_option) {
|
618 |
+
selectorInstallments.innerHTML = html_option;
|
619 |
+
}
|
620 |
+
|
621 |
+
selectorInstallments.removeAttribute('disabled');
|
622 |
+
}
|
623 |
+
}
|
624 |
+
|
625 |
+
|
626 |
+
/*
|
627 |
+
*
|
628 |
+
*
|
629 |
+
* Customer & Cards
|
630 |
+
*
|
631 |
+
*/
|
632 |
+
|
633 |
+
MPv1.cardsHandler = function() {
|
634 |
+
|
635 |
+
var cardSelector = document.querySelector(MPv1.selectors.paymentMethodSelector);
|
636 |
+
var type_checkout = cardSelector[cardSelector.options.selectedIndex].getAttribute("type_checkout");
|
637 |
+
var amount = MPv1.getAmount();
|
638 |
+
|
639 |
+
|
640 |
+
if (MPv1.customer_and_card.default) {
|
641 |
+
|
642 |
+
if (cardSelector &&
|
643 |
+
cardSelector[cardSelector.options.selectedIndex].value != "-1" &&
|
644 |
+
type_checkout == "customer_and_card") {
|
645 |
+
|
646 |
+
document.querySelector(MPv1.selectors.paymentMethodId).value = cardSelector[cardSelector.options.selectedIndex].getAttribute('payment_method_id');
|
647 |
+
|
648 |
+
MPv1.clearOptions();
|
649 |
+
|
650 |
+
MPv1.customer_and_card.status = true;
|
651 |
+
|
652 |
+
var _bin = cardSelector[cardSelector.options.selectedIndex].getAttribute("first_six_digits");
|
653 |
+
|
654 |
+
Mercadopago.getPaymentMethod({
|
655 |
+
"bin": _bin
|
656 |
+
}, MPv1.setPaymentMethodInfo);
|
657 |
+
|
658 |
+
} else {
|
659 |
+
document.querySelector(MPv1.selectors.paymentMethodId).value = cardSelector.value != -1 ? cardSelector.value : "";
|
660 |
+
MPv1.customer_and_card.status = false;
|
661 |
+
MPv1.resetBackgroundCard();
|
662 |
+
MPv1.guessingPaymentMethod({
|
663 |
+
type: "keyup"
|
664 |
+
});
|
665 |
+
}
|
666 |
+
|
667 |
+
MPv1.setForm();
|
668 |
+
}
|
669 |
+
}
|
670 |
+
|
671 |
+
/*
|
672 |
+
* Payment Methods
|
673 |
+
*
|
674 |
+
*/
|
675 |
+
|
676 |
+
MPv1.getPaymentMethods = function() {
|
677 |
+
var fragment = document.createDocumentFragment();
|
678 |
+
var paymentMethodsSelector = document.querySelector(MPv1.selectors.paymentMethodSelector)
|
679 |
+
var mainPaymentMethodSelector = document.querySelector(MPv1.selectors.paymentMethodSelector)
|
680 |
+
|
681 |
+
//set loading
|
682 |
+
mainPaymentMethodSelector.style.background = "url(" + MPv1.paths.loading + ") 95% 50% no-repeat #fff";
|
683 |
+
|
684 |
+
//if customer and card
|
685 |
+
if (MPv1.customer_and_card.status) {
|
686 |
+
paymentMethodsSelector = document.querySelector(MPv1.selectors.pmListOtherCards)
|
687 |
+
|
688 |
+
//clean payment methods
|
689 |
+
paymentMethodsSelector.innerHTML = "";
|
690 |
+
} else {
|
691 |
+
paymentMethodsSelector.innerHTML = "";
|
692 |
+
option = new Option(MPv1.text.choose + "...", '-1');
|
693 |
+
fragment.appendChild(option);
|
694 |
+
}
|
695 |
+
|
696 |
+
Mercadopago.getAllPaymentMethods(function(code, payment_methods) {
|
697 |
+
|
698 |
+
for (var x = 0; x < payment_methods.length; x++) {
|
699 |
+
var pm = payment_methods[x];
|
700 |
+
|
701 |
+
if ((pm.payment_type_id == "credit_card" ||
|
702 |
+
pm.payment_type_id == "debit_card" ||
|
703 |
+
pm.payment_type_id == "prepaid_card") &&
|
704 |
+
pm.status == "active") {
|
705 |
+
|
706 |
+
option = new Option(pm.name, pm.id);
|
707 |
+
option.setAttribute("type_checkout", "custom");
|
708 |
+
fragment.appendChild(option);
|
709 |
+
|
710 |
+
} //end if
|
711 |
+
|
712 |
+
} //end for
|
713 |
+
|
714 |
+
paymentMethodsSelector.appendChild(fragment);
|
715 |
+
mainPaymentMethodSelector.style.background = "#fff";
|
716 |
+
});
|
717 |
+
}
|
718 |
+
|
719 |
+
/*
|
720 |
+
*
|
721 |
+
* Functions related to Create Tokens
|
722 |
+
*
|
723 |
+
*/
|
724 |
+
|
725 |
+
|
726 |
+
MPv1.createTokenByEvent = function() {
|
727 |
+
|
728 |
+
var $inputs = MPv1.getForm().querySelectorAll('[data-checkout]');
|
729 |
+
var $inputs_to_create_token = MPv1.getInputsToCreateToken();
|
730 |
+
|
731 |
+
console.log("createTokenByEvent", $inputs_to_create_token);
|
732 |
+
|
733 |
+
for (var x = 0; x < $inputs.length; x++) {
|
734 |
+
var element = $inputs[x];
|
735 |
+
|
736 |
+
//add events only in the required fields
|
737 |
+
if ($inputs_to_create_token.indexOf(element.getAttribute("data-checkout")) > -1) {
|
738 |
+
|
739 |
+
var event = "focusout";
|
740 |
+
|
741 |
+
if (element.nodeName == "SELECT") {
|
742 |
+
event = "change";
|
743 |
+
}
|
744 |
+
|
745 |
+
MPv1.addListenerEvent(element, event, MPv1.validateInputsCreateToken);
|
746 |
+
|
747 |
+
//for firefox
|
748 |
+
MPv1.addListenerEvent(element, "blur", MPv1.validateInputsCreateToken);
|
749 |
+
|
750 |
+
if (MPv1.create_token_on.keyup) {
|
751 |
+
MPv1.addListenerEvent(element, "keyup", MPv1.validateInputsCreateToken);
|
752 |
+
}
|
753 |
+
|
754 |
+
if (MPv1.create_token_on.paste) {
|
755 |
+
MPv1.addListenerEvent(element, "paste", MPv1.validateInputsCreateToken);
|
756 |
+
}
|
757 |
+
|
758 |
+
}
|
759 |
+
}
|
760 |
+
}
|
761 |
+
|
762 |
+
MPv1.createTokenBySubmit = function() {
|
763 |
+
addListenerEvent(document.querySelector(MPv1.selectors.form), 'submit', MPv1.doPay);
|
764 |
+
}
|
765 |
+
|
766 |
+
var doSubmit = false;
|
767 |
+
|
768 |
+
MPv1.doPay = function(event) {
|
769 |
+
event.preventDefault();
|
770 |
+
if (!doSubmit) {
|
771 |
+
MPv1.createToken();
|
772 |
+
return false;
|
773 |
+
}
|
774 |
+
}
|
775 |
+
|
776 |
+
|
777 |
+
MPv1.validateInputsCreateToken = function() {
|
778 |
+
var valid_to_create_token = true;
|
779 |
+
var $inputs = MPv1.getForm().querySelectorAll('[data-checkout]');
|
780 |
+
var $inputs_to_create_token = MPv1.getInputsToCreateToken();
|
781 |
+
|
782 |
+
for (var x = 0; x < $inputs.length; x++) {
|
783 |
+
var element = $inputs[x];
|
784 |
+
|
785 |
+
//check is a input to create token
|
786 |
+
if ($inputs_to_create_token.indexOf(element.getAttribute("data-checkout")) > -1) {
|
787 |
+
if (element.value == -1 || element.value == "") {
|
788 |
+
valid_to_create_token = false;
|
789 |
+
} //end if check values
|
790 |
+
} //end if check data-checkout
|
791 |
+
} //end for
|
792 |
+
|
793 |
+
if (valid_to_create_token) {
|
794 |
+
MPv1.createToken();
|
795 |
+
}
|
796 |
+
}
|
797 |
+
|
798 |
+
MPv1.createToken = function() {
|
799 |
+
MPv1.hideErrors();
|
800 |
+
|
801 |
+
//show loading
|
802 |
+
document.querySelector(MPv1.selectors.box_loading).style.background = "url(" + MPv1.paths.loading + ") 0 50% no-repeat #fff";
|
803 |
+
|
804 |
+
//form
|
805 |
+
var $form = MPv1.getForm();
|
806 |
+
|
807 |
+
Mercadopago.createToken($form, MPv1.sdkResponseHandler);
|
808 |
+
|
809 |
+
return false;
|
810 |
+
}
|
811 |
+
|
812 |
+
MPv1.sdkResponseHandler = function(status, response) {
|
813 |
+
//hide loading
|
814 |
+
document.querySelector(MPv1.selectors.box_loading).style.background = "";
|
815 |
+
|
816 |
+
if (status != 200 && status != 201) {
|
817 |
+
MPv1.showErrors(response);
|
818 |
+
} else {
|
819 |
+
var token = document.querySelector(MPv1.selectors.token);
|
820 |
+
token.value = response.id;
|
821 |
+
|
822 |
+
if (MPv1.add_truncated_card) {
|
823 |
+
var card = MPv1.truncateCard(response);
|
824 |
+
document.querySelector(MPv1.selectors.cardTruncated).value = card;
|
825 |
+
}
|
826 |
+
|
827 |
+
if (!MPv1.create_token_on.event) {
|
828 |
+
doSubmit = true;
|
829 |
+
btn = document.querySelector(MPv1.selectors.form);
|
830 |
+
btn.submit();
|
831 |
+
}
|
832 |
+
}
|
833 |
+
}
|
834 |
+
|
835 |
+
/*
|
836 |
+
*
|
837 |
+
*
|
838 |
+
* useful functions
|
839 |
+
*
|
840 |
+
*/
|
841 |
+
|
842 |
+
|
843 |
+
MPv1.resetBackgroundCard = function() {
|
844 |
+
document.querySelector(MPv1.selectors.paymentMethodSelector).style.background = "no-repeat #fff";
|
845 |
+
document.querySelector(MPv1.selectors.cardNumber).style.background = "no-repeat #fff";
|
846 |
+
}
|
847 |
+
|
848 |
+
|
849 |
+
MPv1.setForm = function() {
|
850 |
+
if (MPv1.customer_and_card.status) {
|
851 |
+
document.querySelector(MPv1.selectors.form).style.display = 'none';
|
852 |
+
document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).removeAttribute('style');
|
853 |
+
} else {
|
854 |
+
document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).style.display = 'none';
|
855 |
+
document.querySelector(MPv1.selectors.form).removeAttribute('style');
|
856 |
+
}
|
857 |
+
|
858 |
+
Mercadopago.clearSession();
|
859 |
+
|
860 |
+
if (MPv1.create_token_on.event) {
|
861 |
+
MPv1.createTokenByEvent();
|
862 |
+
MPv1.validateInputsCreateToken();
|
863 |
+
}
|
864 |
+
|
865 |
+
document.querySelector(MPv1.selectors.CustomerAndCard).value = MPv1.customer_and_card.status;
|
866 |
+
}
|
867 |
+
|
868 |
+
MPv1.getForm = function() {
|
869 |
+
if (MPv1.customer_and_card.status) {
|
870 |
+
return document.querySelector(MPv1.selectors.formCustomerAndCard);
|
871 |
+
} else {
|
872 |
+
return document.querySelector(MPv1.selectors.form);
|
873 |
+
}
|
874 |
+
}
|
875 |
+
|
876 |
+
MPv1.getInputsToCreateToken = function() {
|
877 |
+
if (MPv1.customer_and_card.status) {
|
878 |
+
return MPv1.inputs_to_create_token_customer_and_card;
|
879 |
+
} else {
|
880 |
+
return MPv1.inputs_to_create_token;
|
881 |
+
}
|
882 |
+
}
|
883 |
+
|
884 |
+
MPv1.truncateCard = function(response_card_token) {
|
885 |
+
var first_six_digits;
|
886 |
+
var last_four_digits;
|
887 |
+
|
888 |
+
if (MPv1.customer_and_card.status) {
|
889 |
+
var cardSelector = document.querySelector(MPv1.selectors.paymentMethodSelector);
|
890 |
+
first_six_digits = cardSelector[cardSelector.options.selectedIndex].getAttribute("first_six_digits").match(/.{1,4}/g)
|
891 |
+
last_four_digits = cardSelector[cardSelector.options.selectedIndex].getAttribute("last_four_digits")
|
892 |
+
} else {
|
893 |
+
first_six_digits = response_card_token.first_six_digits.match(/.{1,4}/g)
|
894 |
+
last_four_digits = response_card_token.last_four_digits
|
895 |
+
}
|
896 |
+
|
897 |
+
var card = first_six_digits[0] + " " + first_six_digits[1] + "** **** " + last_four_digits;
|
898 |
+
return card;
|
899 |
+
|
900 |
+
}
|
901 |
+
|
902 |
+
MPv1.getAmount = function() {
|
903 |
+
return document.querySelector(MPv1.selectors.amount).value;
|
904 |
+
}
|
905 |
+
|
906 |
+
/*
|
907 |
+
*
|
908 |
+
*
|
909 |
+
* Show errors
|
910 |
+
*
|
911 |
+
*/
|
912 |
+
|
913 |
+
MPv1.showErrors = function(response) {
|
914 |
+
var $form = MPv1.getForm();
|
915 |
+
|
916 |
+
for (var x = 0; x < response.cause.length; x++) {
|
917 |
+
var error = response.cause[x];
|
918 |
+
var $span = $form.querySelector('#mp-error-' + error.code);
|
919 |
+
var $input = $form.querySelector($span.getAttribute("data-main"));
|
920 |
+
|
921 |
+
$span.style.display = 'inline-block';
|
922 |
+
$input.classList.add("mp-error-input");
|
923 |
+
|
924 |
+
}
|
925 |
+
|
926 |
+
return;
|
927 |
+
}
|
928 |
+
|
929 |
+
MPv1.hideErrors = function() {
|
930 |
+
|
931 |
+
for (var x = 0; x < document.querySelectorAll('[data-checkout]').length; x++) {
|
932 |
+
var $field = document.querySelectorAll('[data-checkout]')[x];
|
933 |
+
$field.classList.remove("mp-error-input");
|
934 |
+
|
935 |
+
} //end for
|
936 |
+
|
937 |
+
for (var x = 0; x < document.querySelectorAll('.mp-error').length; x++) {
|
938 |
+
var $span = document.querySelectorAll('.mp-error')[x];
|
939 |
+
$span.style.display = 'none';
|
940 |
+
|
941 |
+
}
|
942 |
+
|
943 |
+
return;
|
944 |
+
}
|
945 |
+
|
946 |
+
/*
|
947 |
+
*
|
948 |
+
* Add events to guessing
|
949 |
+
*
|
950 |
+
*/
|
951 |
+
|
952 |
+
|
953 |
+
MPv1.addListenerEvent = function(el, eventName, handler) {
|
954 |
+
if (el.addEventListener) {
|
955 |
+
el.addEventListener(eventName, handler);
|
956 |
+
} else {
|
957 |
+
el.attachEvent('on' + eventName, function() {
|
958 |
+
handler.call(el);
|
959 |
+
});
|
960 |
+
}
|
961 |
+
};
|
962 |
+
|
963 |
+
MPv1.addListenerEvent(document.querySelector(MPv1.selectors.cardNumber), 'keyup', MPv1.guessingPaymentMethod);
|
964 |
+
MPv1.addListenerEvent(document.querySelector(MPv1.selectors.cardNumber), 'keyup', MPv1.clearOptions);
|
965 |
+
MPv1.addListenerEvent(document.querySelector(MPv1.selectors.cardNumber), 'change', MPv1.guessingPaymentMethod);
|
966 |
+
|
967 |
+
|
968 |
+
// MPv1.cardsHandler();
|
969 |
+
|
970 |
+
|
971 |
+
|
972 |
+
|
973 |
+
/*
|
974 |
+
*
|
975 |
+
*
|
976 |
+
* Initialization function
|
977 |
+
*
|
978 |
+
*/
|
979 |
+
|
980 |
+
MPv1.Initialize = function(site_id, public_key, coupon_mode, discount_action_url) {
|
981 |
+
|
982 |
+
//sets
|
983 |
+
MPv1.site_id = site_id
|
984 |
+
MPv1.public_key = public_key
|
985 |
+
MPv1.coupon_of_discounts.default = coupon_mode
|
986 |
+
MPv1.coupon_of_discounts.discount_action_url = discount_action_url
|
987 |
+
|
988 |
+
Mercadopago.setPublishableKey(MPv1.public_key);
|
989 |
+
|
990 |
+
// flow coupon of discounts
|
991 |
+
if (MPv1.coupon_of_discounts.default) {
|
992 |
+
MPv1.addListenerEvent(document.querySelector(MPv1.selectors.applyCoupon), 'click', MPv1.checkCouponEligibility);
|
993 |
+
} else {
|
994 |
+
document.querySelector(MPv1.selectors.formCoupon).style.display = 'none';
|
995 |
+
}
|
996 |
+
|
997 |
+
//flow: customer & cards
|
998 |
+
var selectorPmCustomerAndCards = document.querySelector(MPv1.selectors.pmCustomerAndCards);
|
999 |
+
if (MPv1.customer_and_card.default && selectorPmCustomerAndCards.childElementCount > 0) {
|
1000 |
+
MPv1.addListenerEvent(document.querySelector(MPv1.selectors.paymentMethodSelector), 'change', MPv1.cardsHandler);
|
1001 |
+
MPv1.cardsHandler();
|
1002 |
+
} else {
|
1003 |
+
//if customer & cards is disabled
|
1004 |
+
//or customer does not have cards
|
1005 |
+
MPv1.customer_and_card.status = false;
|
1006 |
+
document.querySelector(MPv1.selectors.formCustomerAndCard).style.display = 'none';
|
1007 |
+
}
|
1008 |
+
|
1009 |
+
if (MPv1.create_token_on.event) {
|
1010 |
+
MPv1.createTokenByEvent();
|
1011 |
+
} else {
|
1012 |
+
MPv1.createTokenBySubmit()
|
1013 |
+
}
|
1014 |
+
|
1015 |
+
//flow: MLM
|
1016 |
+
if (MPv1.site_id != "MLM") {
|
1017 |
+
Mercadopago.getIdentificationTypes();
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
if (MPv1.site_id == "MLM") {
|
1021 |
+
|
1022 |
+
//hide documento for mex
|
1023 |
+
document.querySelector(MPv1.selectors.mpDoc).style.display = 'none';
|
1024 |
+
// document.querySelector(MPv1.selectors.mpPaymentMethodSelector).removeAttribute('style');
|
1025 |
+
|
1026 |
+
// I've added this trying to fix paymentMethodSelector that not appear... by mhama
|
1027 |
+
document.querySelector(MPv1.selectors.formCustomerAndCard).removeAttribute('style');
|
1028 |
+
document.querySelector(MPv1.selectors.formCustomerAndCard).style.padding = "36px 36px 16px 36px";
|
1029 |
+
document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).style.display = 'none';
|
1030 |
+
|
1031 |
+
//removing not used fields for this country
|
1032 |
+
MPv1.inputs_to_create_token.splice(MPv1.inputs_to_create_token.indexOf("docType"), 1);
|
1033 |
+
MPv1.inputs_to_create_token.splice(MPv1.inputs_to_create_token.indexOf("docNumber"), 1);
|
1034 |
+
|
1035 |
+
MPv1.addListenerEvent(document.querySelector(MPv1.selectors.paymentMethodSelector), 'change', MPv1.changePaymetMethodSelector);
|
1036 |
+
|
1037 |
+
//get payment methods and populate selector
|
1038 |
+
MPv1.getPaymentMethods();
|
1039 |
+
}
|
1040 |
+
|
1041 |
+
//flow: MLB AND MCO
|
1042 |
+
if (MPv1.site_id == "MLB") {
|
1043 |
+
|
1044 |
+
document.querySelector(MPv1.selectors.mpDocType).style.display = 'none';
|
1045 |
+
document.querySelector(MPv1.selectors.mpIssuer).style.display = 'none';
|
1046 |
+
//ajust css
|
1047 |
+
document.querySelector(MPv1.selectors.docNumber).classList.remove("mp-col-75");
|
1048 |
+
document.querySelector(MPv1.selectors.docNumber).classList.add("mp-col-100");
|
1049 |
+
|
1050 |
+
} else if (MPv1.site_id == "MCO") {
|
1051 |
+
document.querySelector(MPv1.selectors.mpIssuer).style.display = 'none';
|
1052 |
+
}
|
1053 |
+
|
1054 |
+
if (MPv1.debug) {
|
1055 |
+
document.querySelector(MPv1.selectors.utilities_fields).style.display = 'inline-block';
|
1056 |
+
console.log(MPv1);
|
1057 |
+
}
|
1058 |
+
|
1059 |
+
document.querySelector(MPv1.selectors.site_id).value = MPv1.site_id;
|
1060 |
+
|
1061 |
+
//set form for basic ou customer & cards
|
1062 |
+
// MPv1.setForm();
|
1063 |
+
|
1064 |
+
return;
|
1065 |
+
}
|
1066 |
+
|
1067 |
+
|
1068 |
+
this.MPv1 = MPv1;
|
1069 |
+
|
1070 |
+
}).call();
|
1071 |
+
|
1072 |
+
// === Instantiation
|
1073 |
+
|
1074 |
+
var mercadopago_site_id = '<?php echo $site_id; ?>';
|
1075 |
+
var mercadopago_public_key = '<?php echo $public_key; ?>';
|
1076 |
+
var mercadopago_coupon_mode = '<?php echo $coupon_mode; ?>';
|
1077 |
+
var mercadopago_discount_action_url = '<?php echo $discount_action_url; ?>';
|
1078 |
+
|
1079 |
+
MPv1.text.choose = '<?php echo $form_labels["form"]["label_choose"]; ?>';
|
1080 |
+
MPv1.text.other_bank = '<?php echo $form_labels["form"]["label_other_bank"]; ?>';
|
1081 |
+
MPv1.text.discount_info1 = '<?php echo $form_labels["form"]["discount_info1"]; ?>';
|
1082 |
+
MPv1.text.discount_info2 = '<?php echo $form_labels["form"]["discount_info2"]; ?>';
|
1083 |
+
MPv1.text.discount_info3 = '<?php echo $form_labels["form"]["discount_info3"]; ?>';
|
1084 |
+
MPv1.text.discount_info4 = '<?php echo $form_labels["form"]["discount_info4"]; ?>';
|
1085 |
+
MPv1.text.discount_info5 = '<?php echo $form_labels["form"]["discount_info5"]; ?>';
|
1086 |
+
MPv1.text.discount_info6 = '<?php echo $form_labels["form"]["discount_info6"]; ?>';
|
1087 |
+
MPv1.text.apply = '<?php echo $form_labels["form"]["apply"]; ?>';
|
1088 |
+
MPv1.text.remove = '<?php echo $form_labels["form"]["remove"]; ?>';
|
1089 |
+
MPv1.text.coupon_empty = '<?php echo $form_labels["form"]["coupon_empty"]; ?>';
|
1090 |
+
MPv1.paths.loading = '<?php echo ( $images_path . "loading.gif" ); ?>';
|
1091 |
+
MPv1.paths.check = '<?php echo ( $images_path . "check.png" ); ?>';
|
1092 |
+
MPv1.paths.error = '<?php echo ( $images_path . "error.png" ); ?>';
|
1093 |
+
|
1094 |
+
// overriding this function to give form padding attribute
|
1095 |
+
MPv1.setForm = function() {
|
1096 |
+
if (MPv1.customer_and_card.status) {
|
1097 |
+
document.querySelector(MPv1.selectors.form).style.display = 'none';
|
1098 |
+
document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).removeAttribute('style');
|
1099 |
+
} else {
|
1100 |
+
document.querySelector(MPv1.selectors.mpSecurityCodeCustomerAndCard).style.display = 'none';
|
1101 |
+
document.querySelector(MPv1.selectors.form).removeAttribute('style');
|
1102 |
+
document.querySelector(MPv1.selectors.form).style.padding = '0px 36px 0px 36px';
|
1103 |
+
}
|
1104 |
+
Mercadopago.clearSession();
|
1105 |
+
if (MPv1.create_token_on.event) {
|
1106 |
+
MPv1.createTokenByEvent();
|
1107 |
+
MPv1.validateInputsCreateToken();
|
1108 |
+
}
|
1109 |
+
document.querySelector(MPv1.selectors.CustomerAndCard).value = MPv1.customer_and_card.status;
|
1110 |
+
}
|
1111 |
+
|
1112 |
+
MPv1.getAmount = function() {
|
1113 |
+
return document.querySelector(MPv1.selectors.amount).value - document.querySelector(MPv1.selectors.discount).value;
|
1114 |
+
}
|
1115 |
+
|
1116 |
+
MPv1.getAmountWithoutDiscount = function() {
|
1117 |
+
return document.querySelector(MPv1.selectors.amount).value;
|
1118 |
+
}
|
1119 |
+
|
1120 |
+
MPv1.showErrors = function(response) {
|
1121 |
+
var $form = MPv1.getForm();
|
1122 |
+
for (var x = 0; x < response.cause.length; x++) {
|
1123 |
+
var error = response.cause[x];
|
1124 |
+
var $span = $form.querySelector('#mp-error-' + error.code);
|
1125 |
+
var $input = $form.querySelector($span.getAttribute("data-main"));
|
1126 |
+
$span.style.display = 'inline-block';
|
1127 |
+
$input.classList.add("mp-error-input");
|
1128 |
+
}
|
1129 |
+
return;
|
1130 |
+
}
|
1131 |
+
MPv1.Initialize(
|
1132 |
+
mercadopago_site_id,
|
1133 |
+
mercadopago_public_key,
|
1134 |
+
mercadopago_coupon_mode == 'yes',
|
1135 |
+
mercadopago_discount_action_url);
|
1136 |
+
|
1137 |
+
</script>
|
templates/ticket/ticket-form.php
ADDED
@@ -0,0 +1,347 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [https://www.mercadopago.com]
|
7 |
+
* License - https://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
+
exit;
|
12 |
+
}
|
13 |
+
?>
|
14 |
+
|
15 |
+
<div width="100%" style="margin:1px; padding:36px 36px 16px 36px; background:white; ">
|
16 |
+
<img class="logo" src="<?php echo ( $images_path . 'mplogo.png' ); ?>" width="156" height="40" />
|
17 |
+
<?php if ( count( $payment_methods ) > 1 ) { ?>
|
18 |
+
<img class="logo" src="<?php echo ( $images_path . 'boleto.png' ); ?>" width="90" height="40" style="float:right;"/>
|
19 |
+
<?php } else { ?>
|
20 |
+
<?php foreach ( $payment_methods as $payment ) { ?>
|
21 |
+
<img class="logo" src="<?php echo $payment[ 'thumbnail' ]; ?>" width="90" height="40" style="float:right;"/>
|
22 |
+
<?php } ?>
|
23 |
+
<?php } ?>
|
24 |
+
</div>
|
25 |
+
<fieldset id="mercadopago-form" style="background:white; ">
|
26 |
+
|
27 |
+
<div class="mp-box-inputs mp-line" id="mercadopago-form-coupon-ticket" style="padding:0px 36px 16px 36px;">
|
28 |
+
<label for="couponCodeLabel"><?php echo $form_labels['form']['coupon_of_discounts']; ?></label>
|
29 |
+
<div class="mp-box-inputs mp-col-65">
|
30 |
+
<input type="text" id="couponCodeTicket" name="mercadopago_ticket[coupon_code]" autocomplete="off" maxlength="24" />
|
31 |
+
<span class="mp-discount" id="mpCouponApplyedTicket" ></span>
|
32 |
+
<span class="mp-error" id="mpCouponErrorTicket" ></span>
|
33 |
+
</div>
|
34 |
+
<div class="mp-box-inputs mp-col-10">
|
35 |
+
<div id="mp-separete-date"></div>
|
36 |
+
</div>
|
37 |
+
<div class="mp-box-inputs mp-col-25">
|
38 |
+
<input type="button" class="button" id="applyCouponTicket" value="<?php echo $form_labels['form']['apply']; ?>" >
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
|
42 |
+
<div style="padding:0px 36px 0px 36px;">
|
43 |
+
<p>
|
44 |
+
<?php if ( count( $payment_methods ) > 1 ) { ?>
|
45 |
+
<?php echo $form_labels[ 'form' ][ 'issuer_selection' ] ?>
|
46 |
+
<?php } ?>
|
47 |
+
<?php echo $form_labels[ 'form' ][ 'payment_instructions' ] ?>
|
48 |
+
<br />
|
49 |
+
<?php echo $form_labels[ 'form' ][ 'ticket_note' ] ?>
|
50 |
+
<?php if ($is_currency_conversion > 0) { ?>
|
51 |
+
<?php echo " (" . $form_labels['form']['payment_converted'] . " " . $woocommerce_currency . " " . $form_labels['form']['to'] . " " . $account_currency . ")"; ?>
|
52 |
+
<?php } ?>
|
53 |
+
</p>
|
54 |
+
<?php if ( count( $payment_methods ) > 1 ) { ?>
|
55 |
+
<div class="mp-box-inputs mp-col-100">
|
56 |
+
<!--<select id="paymentMethodId" name="mercadopago_ticket[paymentMethodId]">
|
57 |
+
<option value="-1"> <?php /*echo $form_labels[ 'form' ][ 'label_choose' ] . " ...";*/ ?> </option>-->
|
58 |
+
<?php $atFirst = true; ?>
|
59 |
+
<?php foreach ( $payment_methods as $payment ) { ?>
|
60 |
+
<!--<option value="<?php /*echo $payment[ 'id' ];*/ ?>"> <?php /*echo $payment[ 'name' ];*/ ?></option>-->
|
61 |
+
<div class="mp-box-inputs mp-line">
|
62 |
+
<div id="paymentMethodId" class="mp-box-inputs mp-col-5">
|
63 |
+
<input type="radio" class="input-radio" name="mercadopago_ticket[paymentMethodId]"
|
64 |
+
style="height:16px; width:16px;" value="<?php echo $payment[ 'id' ]; ?>"
|
65 |
+
<?php if ( $atFirst ) { ?> checked="checked" } <?php } ?> />
|
66 |
+
</div>
|
67 |
+
<div class="mp-box-inputs mp-col-45">
|
68 |
+
<label>
|
69 |
+
<img src="<?php echo $payment[ 'thumbnail' ]; ?>" alt="<?php echo $payment[ 'name' ]; ?>" />
|
70 |
+
(<?php echo $payment[ 'name' ]; ?>)
|
71 |
+
</label>
|
72 |
+
</div>
|
73 |
+
</div>
|
74 |
+
<?php $atFirst = false; ?>
|
75 |
+
<?php } ?>
|
76 |
+
<!--</select>-->
|
77 |
+
</div>
|
78 |
+
<?php } else { ?>
|
79 |
+
<div class="mp-box-inputs mp-col-100" style="display:none;">
|
80 |
+
<select id="paymentMethodId" name="mercadopago_ticket[paymentMethodId]">
|
81 |
+
<?php foreach ( $payment_methods as $payment ) { ?>
|
82 |
+
<option value="<?php echo $payment[ 'id' ]; ?>"
|
83 |
+
style="padding: 8px; background: url( 'https://img.mlstatic.com/org-img/MP3/API/logos/bapropagos.gif' ); ?> ) 98% 50% no-repeat;"> <?php echo $payment[ 'name' ]; ?></option>
|
84 |
+
<?php } ?>
|
85 |
+
</select>
|
86 |
+
</div>
|
87 |
+
<?php } ?>
|
88 |
+
|
89 |
+
<div class="mp-box-inputs mp-line">
|
90 |
+
<!-- <div class="mp-box-inputs mp-col-50">
|
91 |
+
<input type="submit" value="Pay" id="submit"/>
|
92 |
+
</div> -->
|
93 |
+
<div class="mp-box-inputs mp-col-25">
|
94 |
+
<div id="mp-box-loading">
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
|
99 |
+
<!-- utilities -->
|
100 |
+
<div class="mp-box-inputs mp-col-100" id="mercadopago-utilities">
|
101 |
+
<input type="hidden" id="site_id" value="<?php echo $site_id; ?>" name="mercadopago_ticket[site_id]"/>
|
102 |
+
<input type="hidden" id="amountTicket" value="<?php echo $amount; ?>" name="mercadopago_ticket[amount]"/>
|
103 |
+
<input type="hidden" id="campaign_idTicket" name="mercadopago_ticket[campaign_id]"/>
|
104 |
+
<input type="hidden" id="campaignTicket" name="mercadopago_ticket[campaign]"/>
|
105 |
+
<input type="hidden" id="discountTicket" name="mercadopago_ticket[discount]"/>
|
106 |
+
</div>
|
107 |
+
|
108 |
+
</div>
|
109 |
+
</fieldset>
|
110 |
+
|
111 |
+
<script type="text/javascript">
|
112 |
+
|
113 |
+
(function() {
|
114 |
+
|
115 |
+
var MPv1Ticket = {
|
116 |
+
site_id: '',
|
117 |
+
coupon_of_discounts: {
|
118 |
+
discount_action_url: '',
|
119 |
+
default: true,
|
120 |
+
status: false
|
121 |
+
},
|
122 |
+
|
123 |
+
inputs_to_create_discount: [
|
124 |
+
"couponCodeTicket",
|
125 |
+
"applyCouponTicket"
|
126 |
+
],
|
127 |
+
|
128 |
+
selectors: {
|
129 |
+
couponCode: "#couponCodeTicket",
|
130 |
+
applyCoupon: "#applyCouponTicket",
|
131 |
+
mpCouponApplyed: "#mpCouponApplyedTicket",
|
132 |
+
mpCouponError: "#mpCouponErrorTicket",
|
133 |
+
|
134 |
+
paymentMethodId: "#paymentMethodId",
|
135 |
+
amount: "#amountTicket",
|
136 |
+
campaign_id: "#campaign_idTicket",
|
137 |
+
campaign: "#campaignTicket",
|
138 |
+
discount: "#discountTicket",
|
139 |
+
|
140 |
+
formCoupon: '#mercadopago-form-coupon-ticket'
|
141 |
+
},
|
142 |
+
text: {
|
143 |
+
discount_info1: "You will save",
|
144 |
+
discount_info2: "with discount from",
|
145 |
+
discount_info3: "Total of your purchase:",
|
146 |
+
discount_info4: "Total of your purchase with discount:",
|
147 |
+
discount_info5: "*Uppon payment approval",
|
148 |
+
discount_info6: "Terms and Conditions of Use",
|
149 |
+
coupon_empty: "Please, inform your coupon code",
|
150 |
+
apply: "Apply",
|
151 |
+
remove: "Remove"
|
152 |
+
},
|
153 |
+
paths: {
|
154 |
+
loading: "images/loading.gif",
|
155 |
+
check: "images/check.png",
|
156 |
+
error: "images/error.png"
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
/*
|
161 |
+
* Coupon of Discounts
|
162 |
+
*/
|
163 |
+
|
164 |
+
MPv1Ticket.currencyIdToCurrency = function (currency_id) {
|
165 |
+
if ( currency_id == 'ARS' ) {
|
166 |
+
return '$';
|
167 |
+
} else if ( currency_id == 'BRL' ) {
|
168 |
+
return 'R$';
|
169 |
+
} else if ( currency_id == 'COP' ) {
|
170 |
+
return '$';
|
171 |
+
} else if ( currency_id == 'CLP' ) {
|
172 |
+
return '$';
|
173 |
+
} else if ( currency_id == 'MXN' ) {
|
174 |
+
return '$';
|
175 |
+
} else if ( currency_id == 'VEF' ) {
|
176 |
+
return 'Bs';
|
177 |
+
} else if ( currency_id == 'PEN' ) {
|
178 |
+
return 'S/';
|
179 |
+
} else {
|
180 |
+
return '$';
|
181 |
+
}
|
182 |
+
}
|
183 |
+
|
184 |
+
MPv1Ticket.checkCouponEligibility = function () {
|
185 |
+
if ( document.querySelector(MPv1Ticket.selectors.couponCode).value == "" ) {
|
186 |
+
// coupon code is empty
|
187 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
|
188 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'block';
|
189 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponError).innerHTML = MPv1Ticket.text.coupon_empty;
|
190 |
+
MPv1Ticket.coupon_of_discounts.status = false;
|
191 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
|
192 |
+
document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.apply;
|
193 |
+
document.querySelector(MPv1.selectors.discount).value = 0;
|
194 |
+
//MPv1.cardsHandler();
|
195 |
+
} else if ( MPv1Ticket.coupon_of_discounts.status ) {
|
196 |
+
// we already have a coupon set, so we remove it
|
197 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
|
198 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'none';
|
199 |
+
MPv1Ticket.coupon_of_discounts.status = false;
|
200 |
+
document.querySelector(MPv1Ticket.selectors.applyCoupon).style.background = null;
|
201 |
+
document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.apply;
|
202 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).value = "";
|
203 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
|
204 |
+
document.querySelector(MPv1.selectors.discount).value = 0;
|
205 |
+
//MPv1.cardsHandler();
|
206 |
+
} else {
|
207 |
+
// set loading
|
208 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
|
209 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'none';
|
210 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).style.background = "url("+MPv1Ticket.paths.loading+") 98% 50% no-repeat #fff";
|
211 |
+
document.querySelector(MPv1Ticket.selectors.applyCoupon).disabled = true;
|
212 |
+
var request = new XMLHttpRequest();
|
213 |
+
request.open(
|
214 |
+
'GET',
|
215 |
+
MPv1Ticket.coupon_of_discounts.discount_action_url +
|
216 |
+
"&coupon_id=" + document.querySelector(MPv1Ticket.selectors.couponCode).value +
|
217 |
+
"&amount=" + document.querySelector(MPv1Ticket.selectors.amount).value +
|
218 |
+
"&payer=" + document.getElementById("billing_email").value,
|
219 |
+
true
|
220 |
+
);
|
221 |
+
request.onreadystatechange = function() {
|
222 |
+
if (request.readyState == 4) {
|
223 |
+
if (request.status == 200) {
|
224 |
+
var response = JSON.parse(request.responseText);
|
225 |
+
if (response.status == 200) {
|
226 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'block';
|
227 |
+
document.querySelector(MPv1Ticket.selectors.discount).value = response.response.coupon_amount;
|
228 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).innerHTML =
|
229 |
+
"<div style='border-style: solid; border-width:thin; border-color: #009EE3; padding: 8px 8px 8px 8px; margin-top: 4px;'>" +
|
230 |
+
MPv1Ticket.text.discount_info1 + " <strong>" + MPv1Ticket.currencyIdToCurrency(response.response.currency_id) + " " +
|
231 |
+
Math.round(response.response.coupon_amount*100)/100 + "</strong> " + MPv1Ticket.text.discount_info2 + " " + response.response.name + ".<br>" +
|
232 |
+
MPv1Ticket.text.discount_info3 + " <strong>" + MPv1Ticket.currencyIdToCurrency(response.response.currency_id) +
|
233 |
+
" " + Math.round(MPv1Ticket.getAmountWithoutDiscount()*100)/100 + "</strong><br>" +
|
234 |
+
MPv1Ticket.text.discount_info4 + " <strong>" + MPv1Ticket.currencyIdToCurrency(response.response.currency_id) +
|
235 |
+
" " + Math.round(MPv1Ticket.getAmount()*100)/100 + "*</strong><br>" +
|
236 |
+
"<i>" + MPv1Ticket.text.discount_info5 + "</i><br>" +
|
237 |
+
"<a href='https://api.mercadolibre.com/campaigns/" + response.response.id + "/terms_and_conditions?format_type=html' target='_blank'>" +
|
238 |
+
MPv1Ticket.text.discount_info6 + "</a></div>";
|
239 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'none';
|
240 |
+
MPv1Ticket.coupon_of_discounts.status = true;
|
241 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
|
242 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).style.background = "url("+MPv1Ticket.paths.check+") 98% 50% no-repeat #fff";
|
243 |
+
document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.remove;
|
244 |
+
//MPv1.cardsHandler();
|
245 |
+
document.querySelector(MPv1Ticket.selectors.campaign_id).value = response.response.id;
|
246 |
+
document.querySelector(MPv1Ticket.selectors.campaign).value = response.response.name;
|
247 |
+
} else if (response.status == 400 || response.status == 404) {
|
248 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
|
249 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'block';
|
250 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponError).innerHTML = response.response.message;
|
251 |
+
MPv1Ticket.coupon_of_discounts.status = false;
|
252 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
|
253 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).style.background = "url("+MPv1Ticket.paths.error+") 98% 50% no-repeat #fff";
|
254 |
+
document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.apply;
|
255 |
+
document.querySelector(MPv1.selectors.discount).value = 0;
|
256 |
+
//MPv1.cardsHandler();
|
257 |
+
}
|
258 |
+
} else {
|
259 |
+
// request failed
|
260 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponApplyed).style.display = 'none';
|
261 |
+
document.querySelector(MPv1Ticket.selectors.mpCouponError).style.display = 'none';
|
262 |
+
MPv1Ticket.coupon_of_discounts.status = false;
|
263 |
+
document.querySelector(MPv1Ticket.selectors.applyCoupon).style.background = null;
|
264 |
+
document.querySelector(MPv1Ticket.selectors.applyCoupon).value = MPv1Ticket.text.apply;
|
265 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).value = "";
|
266 |
+
document.querySelector(MPv1Ticket.selectors.couponCode).style.background = null;
|
267 |
+
document.querySelector(MPv1.selectors.discount).value = 0;
|
268 |
+
//MPv1.cardsHandler();
|
269 |
+
}
|
270 |
+
document.querySelector(MPv1Ticket.selectors.applyCoupon).disabled = false;
|
271 |
+
}
|
272 |
+
};
|
273 |
+
request.send(null);
|
274 |
+
}
|
275 |
+
}
|
276 |
+
|
277 |
+
/*
|
278 |
+
*
|
279 |
+
*
|
280 |
+
* Initialization function
|
281 |
+
*
|
282 |
+
*/
|
283 |
+
|
284 |
+
MPv1Ticket.addListenerEvent = function(el, eventName, handler) {
|
285 |
+
if (el.addEventListener) {
|
286 |
+
el.addEventListener(eventName, handler);
|
287 |
+
} else {
|
288 |
+
el.attachEvent('on' + eventName, function() {
|
289 |
+
handler.call(el);
|
290 |
+
});
|
291 |
+
}
|
292 |
+
};
|
293 |
+
|
294 |
+
MPv1Ticket.Initialize = function(site_id, coupon_mode, discount_action_url) {
|
295 |
+
|
296 |
+
//sets
|
297 |
+
MPv1Ticket.site_id = site_id
|
298 |
+
MPv1Ticket.coupon_of_discounts.default = coupon_mode
|
299 |
+
MPv1Ticket.coupon_of_discounts.discount_action_url = discount_action_url
|
300 |
+
|
301 |
+
// flow coupon of discounts
|
302 |
+
if (MPv1Ticket.coupon_of_discounts.default) {
|
303 |
+
MPv1Ticket.addListenerEvent(document.querySelector(MPv1Ticket.selectors.applyCoupon), 'click', MPv1Ticket.checkCouponEligibility);
|
304 |
+
} else {
|
305 |
+
document.querySelector(MPv1Ticket.selectors.formCoupon).style.display = 'none';
|
306 |
+
}
|
307 |
+
|
308 |
+
return;
|
309 |
+
}
|
310 |
+
|
311 |
+
this.MPv1Ticket = MPv1Ticket;
|
312 |
+
|
313 |
+
}).call();
|
314 |
+
|
315 |
+
// === Instantiation
|
316 |
+
|
317 |
+
var mercadopago_site_id = '<?php echo $site_id; ?>';
|
318 |
+
var mercadopago_coupon_mode = '<?php echo $coupon_mode; ?>';
|
319 |
+
var mercadopago_discount_action_url = '<?php echo $discount_action_url; ?>';
|
320 |
+
|
321 |
+
MPv1Ticket.text.discount_info1 = '<?php echo $form_labels["form"]["discount_info1"]; ?>';
|
322 |
+
MPv1Ticket.text.discount_info2 = '<?php echo $form_labels["form"]["discount_info2"]; ?>';
|
323 |
+
MPv1Ticket.text.discount_info3 = '<?php echo $form_labels["form"]["discount_info3"]; ?>';
|
324 |
+
MPv1Ticket.text.discount_info4 = '<?php echo $form_labels["form"]["discount_info4"]; ?>';
|
325 |
+
MPv1Ticket.text.discount_info5 = '<?php echo $form_labels["form"]["discount_info5"]; ?>';
|
326 |
+
MPv1Ticket.text.discount_info6 = '<?php echo $form_labels["form"]["discount_info6"]; ?>';
|
327 |
+
MPv1Ticket.text.apply = '<?php echo $form_labels["form"]["apply"]; ?>';
|
328 |
+
MPv1Ticket.text.remove = '<?php echo $form_labels["form"]["remove"]; ?>';
|
329 |
+
MPv1Ticket.text.coupon_empty = '<?php echo $form_labels["form"]["coupon_empty"]; ?>';
|
330 |
+
MPv1Ticket.paths.loading = '<?php echo ( $images_path . "loading.gif" ); ?>';
|
331 |
+
MPv1Ticket.paths.check = '<?php echo ( $images_path . "check.png" ); ?>';
|
332 |
+
MPv1Ticket.paths.error = '<?php echo ( $images_path . "error.png" ); ?>';
|
333 |
+
|
334 |
+
MPv1Ticket.getAmount = function() {
|
335 |
+
return document.querySelector(MPv1Ticket.selectors.amount).value - document.querySelector(MPv1Ticket.selectors.discount).value;
|
336 |
+
}
|
337 |
+
|
338 |
+
MPv1Ticket.getAmountWithoutDiscount = function() {
|
339 |
+
return document.querySelector(MPv1Ticket.selectors.amount).value;
|
340 |
+
}
|
341 |
+
|
342 |
+
MPv1Ticket.Initialize(
|
343 |
+
mercadopago_site_id,
|
344 |
+
mercadopago_coupon_mode == 'yes',
|
345 |
+
mercadopago_discount_action_url);
|
346 |
+
|
347 |
+
</script>
|