Version Description
Download this release
Release Info
Developer | mercadopago |
Plugin | WooCommerce MercadoPago |
Version | old.2.0.0 |
Comparing to | |
See all releases |
Code changes from version old.1.0.3 to old.2.0.0
- README.txt +123 -52
- assets/css/custom_checkout_mercadopago.css +159 -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/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 +521 -178
- languages/woocommerce-mercadopago-module-es_CL.mo +0 -0
- languages/woocommerce-mercadopago-module-es_CL.po +521 -178
- languages/woocommerce-mercadopago-module-es_CO.mo +0 -0
- languages/woocommerce-mercadopago-module-es_CO.po +521 -185
- languages/woocommerce-mercadopago-module-es_ES.mo +0 -0
- languages/woocommerce-mercadopago-module-es_ES.po +691 -0
- languages/woocommerce-mercadopago-module-es_MX.mo +0 -0
- languages/woocommerce-mercadopago-module-es_MX.po +521 -178
- languages/woocommerce-mercadopago-module-es_VE.mo +0 -0
- languages/woocommerce-mercadopago-module-es_VE.po +521 -178
- languages/woocommerce-mercadopago-module-pt_BR.mo +0 -0
- languages/woocommerce-mercadopago-module-pt_BR.po +517 -246
- languages/woocommerce-mercadopago-module.pot +163 -1
- mercadopago-module.php +50 -32
- mercadopago/mercadopago-custom-gateway.php +1011 -0
- mercadopago/mercadopago-gateway.php +429 -368
- mercadopago/mercadopago-ticket-gateway.php +807 -0
- mercadopago/sdk/lib/cacert.pem +0 -0
- mercadopago/sdk/lib/mercadopago.php +35 -12
- templates/credit-card/payment-form.php +676 -0
- templates/ticket/ticket-form.php +80 -0
README.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Woo Mercado Pago Module ===
|
2 |
Contributors: mercadopago, mercadolivre
|
3 |
Donate link: https://www.mercadopago.com.br/developers/
|
4 |
-
Tags:
|
5 |
Requires at least: WooCommerce 2.1.x
|
6 |
Tested up to: WooCommerce 2.5.x
|
7 |
-
Stable tag:
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -14,64 +14,143 @@ This is the oficial module of Mercado Pago for WooCommerce plugin.
|
|
14 |
|
15 |
This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
== Installation ==
|
18 |
|
19 |
-
|
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. Go to **WooCommerce > Configuration > Checkout Tab > Mercado Pago**. <br />
|
33 |
-
Fist of all, you need to configure your client credentials. To make it, fill your **Client_id**, **Client_secret** in Mercado Pago Credentials section.
|
34 |
-
|
35 |
-
You can obtain your **Client_id** and **Client_secret**, accordingly to your country, in the following links:
|
36 |
-
|
37 |
-
* Argentina: https://www.mercadopago.com/mla/herramientas/aplicaciones
|
38 |
-
* Brazil: https://www.mercadopago.com/mlb/ferramentas/aplicacoes
|
39 |
-
* Chile: https://www.mercadopago.com/mlc/herramientas/aplicaciones
|
40 |
-
* Colombia: https://www.mercadopago.com/mco/herramientas/aplicaciones
|
41 |
-
* Mexico: https://www.mercadopago.com/mlm/herramientas/aplicaciones
|
42 |
-
* Venezuela: https://www.mercadopago.com/mlv/herramientas/aplicaciones
|
43 |
-
|
44 |
-
2. Other general configurations. <br />
|
45 |
-
* **Instant Payment Notification (IPN) URL**
|
46 |
-
The highlighted URL is where you will get notified about payment updates.<br /><br />
|
47 |
-
* **Checkout Options**
|
48 |
-
**Title**: This is the title of the payment option that will be shown to your customers;<br />
|
49 |
-
**Description**: This is the description of the payment option that will be shown to your customers;<br />
|
50 |
-
**Store Category**: Sets up the category of the store;<br />
|
51 |
-
**Store Identificator**: A prefix to identify your store, when you have multiple stores for only one Mercado Pago account;<br />
|
52 |
-
**Integration Method**: How your customers will interact with Mercado Pago to pay their orders;<br />
|
53 |
-
**iFrame Width**: The width, in pixels, of the iFrame (used only with iFrame Integration Method);<br />
|
54 |
-
**iFrame Height**: The height, in pixels, of the iFrame (used only with iFrame Integration Method);<br />
|
55 |
-
**Auto Return**: If set, the platform will return to your store when the payment is approved.<br /><br />
|
56 |
-
* **Payment Options**
|
57 |
-
**Max Installments**: The maximum installments allowed for your customers;<br />
|
58 |
-
**Exclude Payment Methods**: Select the payment methods that you want to not work with Mercado Pago.<br /><br />
|
59 |
-
* **Test and Debug Options**
|
60 |
-
**Mercado Pago Sandboxs**: Test your payments in Mercado Pago sandbox environment;<br />
|
61 |
-
**Debug and Log**: Enables/disables system logs.<br />
|
62 |
-
|
63 |
== Frequently Asked Questions ==
|
64 |
|
65 |
-
=
|
|
|
|
|
|
|
66 |
|
|
|
67 |
Please, check our FAQ at: https://www.mercadopago.com.br/ajuda/
|
68 |
|
69 |
== Screenshots ==
|
70 |
|
71 |
-
1.
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
= v1.0.0 (16/03/2016) =
|
76 |
* LatAm support;
|
77 |
* Title, description, category, and external reference customizations;
|
@@ -79,14 +158,6 @@ Please, check our FAQ at: https://www.mercadopago.com.br/ajuda/
|
|
79 |
* Max installments and payment method exclusion setup;
|
80 |
* Sandbox and debug options.
|
81 |
|
82 |
-
|
83 |
-
* Added payment ID in order custom fields information;
|
84 |
-
* Removed some unused files/code;
|
85 |
-
* Redesign of the logic of preferences when creating cart, separating items;
|
86 |
-
* Proper information of shipment cost
|
87 |
-
|
88 |
-
= v1.0.2 (23/03/2016) =
|
89 |
-
* IPN URL wasn’t triggered when topic=payment
|
90 |
|
91 |
-
|
92 |
-
* Improving algorithm when processing IPN
|
1 |
=== Woo Mercado Pago Module ===
|
2 |
Contributors: mercadopago, mercadolivre
|
3 |
Donate link: https://www.mercadopago.com.br/developers/
|
4 |
+
Tags: ecommerce, mercadopago, woocommerce
|
5 |
Requires at least: WooCommerce 2.1.x
|
6 |
Tested up to: WooCommerce 2.5.x
|
7 |
+
Stable tag: 2.0.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
14 |
|
15 |
This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
|
16 |
|
17 |
+
<br /><br />
|
18 |
+
|
19 |
+
= Why chose Mercado Pago =
|
20 |
+
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.
|
21 |
+
|
22 |
+
<br /><br />
|
23 |
+
|
24 |
+
= Mercado Pago Main Features =
|
25 |
+
* Online and real-time processment through IPN mechanism;
|
26 |
+
* High approval rate with a robust fraud analysis;
|
27 |
+
* Potential new customers with a base of more than 120 millions of users in Latin America;
|
28 |
+
* PCI Level 1 Certification;
|
29 |
+
* Support to major credit card brands;
|
30 |
+
* Payment installments;
|
31 |
+
* Anticipation of receivables in D+2 or D+14 (According to Mercado Pago terms and conditions);
|
32 |
+
* Payment in one click with Mercado Pago standard and custom checkouts;
|
33 |
+
* Payment via tickets;
|
34 |
+
* Seller's Protection Program.
|
35 |
+
|
36 |
== Installation ==
|
37 |
|
38 |
+
You have two way to install this module: from your WordPress Store, or by downloading and manually copying the module directory.
|
39 |
|
40 |
+
= Install from WordPress =
|
41 |
+
1. On your store administration, go to **Plugins** option in sidebar;
|
42 |
+
2. Click in **Add New** button and type "Woo Mercado Pago Module" in the **Search Plugins** text field. Press Enter;
|
43 |
+
3. You should find the module read to be installed. Click install.
|
44 |
|
45 |
+
<br /><br />
|
|
|
46 |
|
47 |
+
= Manual Download =
|
48 |
+
1. Get the module sources from a repository (<a href="https://github.com/mercadopago/cart-woocommerce/archive/master.zip">Github</a> or <a href="https://downloads.wordpress.org/plugin/woo-mercado-pago-module.2.0.0.zip">WordPress Plugin Directory</a>);
|
49 |
+
2. Unzip the folder and find "woo-mercado-pago-module" directory;
|
50 |
+
3. Copy "woo-mercado-pago-module" directory to **[WordPressRootDirectory]/wp-content/plugins/** directory.
|
51 |
|
52 |
+
<br /><br />
|
53 |
|
54 |
+
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.
|
55 |
+
|
56 |
+
<br /><br />
|
57 |
+
|
58 |
+
= Configuration =
|
59 |
+
1. On your store administration, go to **WooCommerce > Settings > Checkout** tab. In **Checkout Options**, you can find configurations for **Mercado Pago - Standard Checkout**, **Mercado Pago - Custom Checkout**, and **Mercado Pago - Ticket**.
|
60 |
+
|
61 |
+
<br /><br />
|
62 |
+
|
63 |
+
To find you **Client_id** and **Client_secret**, go to:
|
64 |
+
* Argentina: https://www.mercadopago.com/mla/herramientas/aplicaciones
|
65 |
+
* Brazil: https://www.mercadopago.com/mlb/ferramentas/aplicacoes
|
66 |
+
* Chile: https://www.mercadopago.com/mlc/herramientas/aplicaciones
|
67 |
+
* Colombia: https://www.mercadopago.com/mco/herramientas/aplicaciones
|
68 |
+
* Mexico: https://www.mercadopago.com/mlm/herramientas/aplicaciones
|
69 |
+
* Venezuela: https://www.mercadopago.com/mlv/herramientas/aplicaciones
|
70 |
+
|
71 |
+
<br /><br />
|
72 |
+
|
73 |
+
And to get your **Public Key**/**Access Token** you can go to:
|
74 |
+
* Argentina: https://www.mercadopago.com/mla/account/credentials?type=custom
|
75 |
+
* Brazil: https://www.mercadopago.com/mlb/account/credentials?type=custom
|
76 |
+
* Chile: https://www.mercadopago.com/mlc/account/credentials?type=custom
|
77 |
+
* Colombia: https://www.mercadopago.com/mco/account/credentials?type=custom
|
78 |
+
* Mexico: https://www.mercadopago.com/mlm/account/credentials?type=custom
|
79 |
+
* Venezuela: https://www.mercadopago.com/mlv/account/credentials?type=custom
|
80 |
+
|
81 |
+
<br /><br />
|
82 |
+
|
83 |
+
2. For the solutions **Mercado Pago - Standard Checkout**, **Mercado Pago - Custom Checkout**, and **Mercado Pago - Ticket**, you can:
|
84 |
+
* Enable/Disable you plugin (for all solutions);
|
85 |
+
* Set up your credentials (Client_id/Client_secret for Standard, Public Key/Access Token for Custom and Ticket);
|
86 |
+
* Check your IPN URL, where you will get notified about payment updates (for all solutions);
|
87 |
+
* Set the title of the payment option that will be shown to your customers (for all solutions);
|
88 |
+
* Set the description of the payment option that will be shown to your customers (for all solutions);
|
89 |
+
* Set the description that will be shown in your customer's invoice (for Custom and Ticket);
|
90 |
+
* Set binary mode that when charging a credit card, only [approved] or [reject] status will be taken (only for Custom);
|
91 |
+
* Set the category of your store (for all solutions);
|
92 |
+
* Set a prefix to identify your store, when you have multiple stores for only one Mercado Pago account (for all solutions);
|
93 |
+
* Define how your customers will interact with Mercado Pago to pay their orders (only for Standard);
|
94 |
+
* Configure the after-pay return behavior (only for Standard);
|
95 |
+
* Configure the maximum installments allowed for your customers (only for Standard);
|
96 |
+
* Configure the payment methods that you want to not work with Mercado Pago (only for Standard);
|
97 |
+
* Enable/disable sandbox mode, where you can test your payments in Mercado Pago sandbox environment (for all solutions);
|
98 |
+
* Enables/disable system logs (for all solutions).
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
== Frequently Asked Questions ==
|
101 |
|
102 |
+
= What is Mercado Pago? =
|
103 |
+
Please, take a look: https://vimeo.com/125253122
|
104 |
+
|
105 |
+
<br /><br />
|
106 |
|
107 |
+
= Any questions? =
|
108 |
Please, check our FAQ at: https://www.mercadopago.com.br/ajuda/
|
109 |
|
110 |
== Screenshots ==
|
111 |
|
112 |
+
1. `Configuration of Standard Checkout`
|
113 |
+
|
114 |
+
2. `Custom Checkout`
|
115 |
+
|
116 |
+
3. `One Click Payment`
|
117 |
+
|
118 |
+
4. `Tickets`
|
119 |
|
120 |
== Changelog ==
|
121 |
|
122 |
+
= v2.0.1 (09/06/2016) =
|
123 |
+
* Customer Cards (One Click Payment)
|
124 |
+
* SSL verifications for custom checkout and ticket;
|
125 |
+
* Enabling any type of currency without disabling module (now, error message from API).
|
126 |
+
|
127 |
+
= v2.0.0 (01/06/2016) =
|
128 |
+
* Custom Checkout for LatAm;
|
129 |
+
* Ticket for LatAm;
|
130 |
+
* Removed possibility to setting supportable but invalid currency.
|
131 |
+
|
132 |
+
= v1.0.5 (29/04/2016) =
|
133 |
+
* Removal of extra shipment setup in checkout view;
|
134 |
+
* Translation to es_ES;
|
135 |
+
* Some bug fixes and code improvements.
|
136 |
+
|
137 |
+
= v1.0.4 (15/04/2016) =
|
138 |
+
* Added a link to module settings page in plugin page;
|
139 |
+
* Several bug fixes;
|
140 |
+
* Fixed status change when processing with two cards.
|
141 |
+
|
142 |
+
= v1.0.3 (23/03/2016) =
|
143 |
+
* Improving algorithm when processing IPN.
|
144 |
+
|
145 |
+
= v1.0.2 (23/03/2016) =
|
146 |
+
* IPN URL wasn’t triggered when topic=payment.
|
147 |
+
|
148 |
+
= v1.0.1 (23/03/2016) =
|
149 |
+
* Added payment ID in order custom fields information;
|
150 |
+
* Removed some unused files/code;
|
151 |
+
* Redesign of the logic of preferences when creating cart, separating items;
|
152 |
+
* Proper information of shipment cost.
|
153 |
+
|
154 |
= v1.0.0 (16/03/2016) =
|
155 |
* LatAm support;
|
156 |
* Title, description, category, and external reference customizations;
|
158 |
* Max installments and payment method exclusion setup;
|
159 |
* Sandbox and debug options.
|
160 |
|
161 |
+
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
+
If you're migrating from version 1.x.x to 2.x.x, please be sure to make a backup of your site and database, as there are many additional features and modifications between these versions.
|
|
assets/css/custom_checkout_mercadopago.css
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body{
|
2 |
+
background-color: #F5F5F5;
|
3 |
+
padding: 0;
|
4 |
+
margin: 0;
|
5 |
+
}
|
6 |
+
|
7 |
+
#mp-box-form{
|
8 |
+
padding: 15px 10px;
|
9 |
+
margin: 30px auto;
|
10 |
+
width: 320px;
|
11 |
+
background-color: #fff;
|
12 |
+
overflow: auto;
|
13 |
+
border-radius: 5px;
|
14 |
+
}
|
15 |
+
|
16 |
+
.mp-box-inputs{
|
17 |
+
float: left;
|
18 |
+
}
|
19 |
+
|
20 |
+
.mp-col-10{
|
21 |
+
width: 10%;
|
22 |
+
}
|
23 |
+
|
24 |
+
.mp-col-20{
|
25 |
+
width: 20%;
|
26 |
+
}
|
27 |
+
|
28 |
+
.mp-col-25{
|
29 |
+
width: 25%;
|
30 |
+
}
|
31 |
+
|
32 |
+
.mp-col-30{
|
33 |
+
width: 30%;
|
34 |
+
}
|
35 |
+
|
36 |
+
.mp-col-35{
|
37 |
+
width: 35%;
|
38 |
+
}
|
39 |
+
|
40 |
+
.mp-col-45{
|
41 |
+
width: 45%;
|
42 |
+
}
|
43 |
+
|
44 |
+
.mp-col-50{
|
45 |
+
width: 50%;
|
46 |
+
}
|
47 |
+
|
48 |
+
.mp-col-55{
|
49 |
+
width: 55%;
|
50 |
+
}
|
51 |
+
|
52 |
+
.mp-col-65{
|
53 |
+
width: 65%;
|
54 |
+
}
|
55 |
+
|
56 |
+
.mp-col-75{
|
57 |
+
width: 75%;
|
58 |
+
}
|
59 |
+
|
60 |
+
.mp-col-100{
|
61 |
+
width: 100%;
|
62 |
+
margin: 5px 0;
|
63 |
+
}
|
64 |
+
|
65 |
+
.mp-line{
|
66 |
+
width: 100%;
|
67 |
+
margin: 5px 0;
|
68 |
+
}
|
69 |
+
|
70 |
+
.mp-box-inputs label{
|
71 |
+
text-transform: uppercase;
|
72 |
+
font-size: 14px;
|
73 |
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
74 |
+
margin: 0 0 5px 0;
|
75 |
+
display: block;
|
76 |
+
}
|
77 |
+
|
78 |
+
.mp-box-inputs label em{
|
79 |
+
color: red;
|
80 |
+
}
|
81 |
+
|
82 |
+
.mp-box-inputs input, .mp-box-inputs select{
|
83 |
+
width: 100%;
|
84 |
+
background-color: #fff;
|
85 |
+
border: 1px solid #cecece;
|
86 |
+
padding: 5px;
|
87 |
+
border-radius: 3px;
|
88 |
+
color: #666;
|
89 |
+
height: 40px;
|
90 |
+
font-size: 20px;
|
91 |
+
}
|
92 |
+
|
93 |
+
.mp-box-inputs input:focus, .mp-box-inputs select:focus{
|
94 |
+
border: 1px solid #999;
|
95 |
+
outline: 0;
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
+
.mp-box-inputs input.mp-error-input, .mp-box-inputs select.mp-error-input{
|
100 |
+
border: 1px solid red;
|
101 |
+
}
|
102 |
+
|
103 |
+
#mp-box-loading{
|
104 |
+
width: 30px;
|
105 |
+
height: 30px;
|
106 |
+
display: inline-block;
|
107 |
+
margin: -10px 0px;
|
108 |
+
}
|
109 |
+
|
110 |
+
#mp-separete-date{
|
111 |
+
vertical-align: middle;
|
112 |
+
line-height: 65px;
|
113 |
+
text-align: center;
|
114 |
+
height: 48px;
|
115 |
+
font-size: 24px;
|
116 |
+
font-weight: 100;
|
117 |
+
}
|
118 |
+
|
119 |
+
#mercadopago-utilities{
|
120 |
+
display: none;
|
121 |
+
}
|
122 |
+
|
123 |
+
#submit{
|
124 |
+
color: #fff;
|
125 |
+
background-color: #337ab7;
|
126 |
+
border-color: #2e6da4;
|
127 |
+
padding: 6px 12px;
|
128 |
+
border: 1px solid transparent;
|
129 |
+
border-radius: 4px;
|
130 |
+
text-align: center;
|
131 |
+
font-size: 14px;
|
132 |
+
font-weight: 400;
|
133 |
+
}
|
134 |
+
|
135 |
+
#submit:hover {
|
136 |
+
color: #fff;
|
137 |
+
background-color: #286090;
|
138 |
+
border-color: #204d74;
|
139 |
+
}
|
140 |
+
|
141 |
+
|
142 |
+
/*
|
143 |
+
*
|
144 |
+
*
|
145 |
+
* Error
|
146 |
+
*
|
147 |
+
*
|
148 |
+
*/
|
149 |
+
|
150 |
+
.mp-error{
|
151 |
+
text-transform: uppercase;
|
152 |
+
font-size: 10px;
|
153 |
+
color: red;
|
154 |
+
font-weight: bold;
|
155 |
+
display: none;
|
156 |
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
157 |
+
clear: both;
|
158 |
+
float: left;
|
159 |
+
}
|
images/MCO/CUPOM_MCO.jpg
ADDED
Binary file
|
images/{MCO.png → MCO/MCO.png}
RENAMED
File without changes
|
images/MCO/banner_all_methods.png
ADDED
Binary file
|
images/{MCO.jpg → MCO/credit_card.png}
RENAMED
File without changes
|
images/MCO/standard_mco.jpg
ADDED
Binary file
|
images/MLA/CUPOM_MLA.jpg
ADDED
Binary file
|
images/{MLA.png → MLA/MLA.png}
RENAMED
File without changes
|
images/MLA/banner_all_methods.png
ADDED
Binary file
|
images/MLA/credit_card.png
ADDED
Binary file
|
images/{MLA.jpg → MLA/standard_mla.jpg}
RENAMED
File without changes
|
images/MLB/CUPOM_MLB.jpg
ADDED
Binary file
|
images/{MLB.png → MLB/MLB.png}
RENAMED
File without changes
|
images/MLB/banner_all_methods.png
ADDED
Binary file
|
images/{MLB.jpg → MLB/credit_card.png}
RENAMED
File without changes
|
images/MLB/cupom1.jpg
ADDED
Binary file
|
images/MLB/cupom2.jpg
ADDED
Binary file
|
images/MLB/cupom3.jpg
ADDED
Binary file
|
images/MLB/desconto_MLB.jpg
ADDED
Binary file
|
images/MLB/standard_mlb.jpg
ADDED
Binary file
|
images/MLC/CUPOM_MLC.jpg
ADDED
Binary file
|
images/{MLC.png → MLC/MLC.png}
RENAMED
File without changes
|
images/MLC/banner_all_methods.png
ADDED
Binary file
|
images/{MLC.gif → MLC/credit_card.png}
RENAMED
File without changes
|
images/MLC/standard_mlc.gif
ADDED
Binary file
|
images/MLM/CUPOM_MLM.jpg
ADDED
Binary file
|
images/{MLM.png → MLM/MLM.png}
RENAMED
File without changes
|
images/MLM/banner_all_methods.png
ADDED
Binary file
|
images/MLM/credit_card.png
ADDED
Binary file
|
images/{MLM.jpg → MLM/standard_mlm.jpg}
RENAMED
File without changes
|
images/MLV/CUPOM_MLV.jpg
ADDED
Binary file
|
images/{MLV.png → MLV/MLV.png}
RENAMED
File without changes
|
images/MLV/banner_all_methods.png
ADDED
Binary file
|
images/{MLV.jpg → MLV/credit_card.png}
RENAMED
File without changes
|
images/MLV/standard_mlv.jpg
ADDED
Binary file
|
images/MPE/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,335 +14,678 @@ 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 método de pago para compras realizadas en su tienda virtual."
|
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 método de pago para compras realizadas en su tienda virtual."
|
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:235
|
122 |
-
msgid "Mercado Pago Client_secret"
|
123 |
-
msgstr "Client_secret de Mercado Pago"
|
124 |
|
125 |
-
#: mercadopago/mercadopago-gateway.php:
|
126 |
-
msgid "Insert your Mercado Pago
|
127 |
-
msgstr "Inserte su
|
128 |
|
129 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
174 |
-
msgid "
|
175 |
-
msgstr "
|
176 |
|
177 |
-
#: mercadopago/mercadopago-gateway.php:
|
178 |
-
msgid "
|
179 |
-
msgstr "
|
180 |
|
181 |
-
#: mercadopago/mercadopago-gateway.php:
|
182 |
-
msgid "
|
183 |
-
msgstr "
|
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:287
|
202 |
-
msgid "iFrame Width"
|
203 |
-
msgstr "Ancho del iFrame"
|
204 |
-
|
205 |
-
#: mercadopago/mercadopago-gateway.php:293
|
206 |
-
msgid "iFrame Height"
|
207 |
-
msgstr "Alto del iFrame"
|
208 |
-
|
209 |
-
#: mercadopago/mercadopago-gateway.php:299
|
210 |
-
msgid "Auto Return"
|
211 |
-
msgstr "Redirección automática"
|
212 |
|
213 |
-
#: mercadopago/mercadopago-gateway.php:
|
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-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 "Método de pago"
|
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\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
#. Description of the plugin/theme
|
26 |
msgid "This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store."
|
27 |
msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
28 |
|
29 |
+
#: mercadopago-module.php:69
|
30 |
#, php-format
|
31 |
msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
|
32 |
msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
|
33 |
|
34 |
+
#: mercadopago-module.php:109
|
35 |
+
msgid "Standard Checkout"
|
36 |
+
msgstr "Checkout Estándar"
|
37 |
+
|
38 |
+
#: mercadopago-module.php:113
|
39 |
+
msgid "Custom Checkout"
|
40 |
+
msgstr "Checkout Custom"
|
41 |
+
|
42 |
+
#: mercadopago/mercadopago-custom-gateway.php:48
|
43 |
+
msgid "Mercado Pago - Custom Checkout"
|
44 |
+
msgstr "Mercado Pago - Checkout Custom"
|
45 |
+
|
46 |
+
#: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
|
47 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
48 |
msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
49 |
|
50 |
+
#: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
|
51 |
+
#: mercadopago/mercadopago-gateway.php:716
|
52 |
msgid "Argentine"
|
53 |
msgstr "Argentina"
|
54 |
|
55 |
+
#: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
|
56 |
+
#: mercadopago/mercadopago-gateway.php:717
|
57 |
msgid "Brazil"
|
58 |
msgstr "Brasil"
|
59 |
|
60 |
+
#: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
|
61 |
+
#: mercadopago/mercadopago-gateway.php:719
|
62 |
msgid "Chile"
|
63 |
msgstr "Chile"
|
64 |
|
65 |
+
#: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
|
66 |
+
#: mercadopago/mercadopago-gateway.php:718
|
67 |
msgid "Colombia"
|
68 |
msgstr "Colombia"
|
69 |
|
70 |
+
#: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
|
71 |
+
#: mercadopago/mercadopago-gateway.php:720
|
72 |
msgid "Mexico"
|
73 |
msgstr "México"
|
74 |
|
75 |
+
#: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
|
76 |
msgid "or"
|
77 |
msgstr "o"
|
78 |
|
79 |
+
#: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
|
80 |
+
#: mercadopago/mercadopago-gateway.php:721
|
81 |
msgid "Venezuela"
|
82 |
msgstr "Venezuela"
|
83 |
|
84 |
+
#: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
|
|
|
|
|
|
|
|
|
85 |
msgid "Your credentials are <strong>valid</strong> for"
|
86 |
msgstr "Sus credenciales <strong>son válidas</strong> para"
|
87 |
|
88 |
+
#: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
|
89 |
+
#: mercadopago/mercadopago-gateway.php:170
|
|
|
|
|
|
|
90 |
msgid "Your credentials are <strong>not valid</strong>!"
|
91 |
msgstr "Sus credenciales <strong>no son válidas</strong>!"
|
92 |
|
93 |
+
#: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
msgid "Enable/Disable"
|
95 |
msgstr "Habilitar/Deshabilitar"
|
96 |
|
97 |
+
#: mercadopago/mercadopago-custom-gateway.php:171
|
98 |
+
msgid "Enable Custom Checkout"
|
99 |
+
msgstr "Habilitar Checkout Custom"
|
100 |
|
101 |
+
#: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
|
102 |
msgid "Mercado Pago Credentials"
|
103 |
msgstr "Credenciales de Mercado Pago"
|
104 |
|
105 |
+
#: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
|
106 |
msgid "You can obtain your credentials for"
|
107 |
msgstr "Puedes obtener tus credenciales para"
|
108 |
|
109 |
+
#: mercadopago/mercadopago-custom-gateway.php:182
|
110 |
+
msgid "Insert your Mercado Pago Public key."
|
111 |
+
msgstr "Inserte su Public Key de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
+
#: mercadopago/mercadopago-custom-gateway.php:189
|
114 |
+
msgid "Insert your Mercado Pago Access token."
|
115 |
+
msgstr "Inserte su Access Token de Mercado Pago."
|
116 |
|
117 |
+
#: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
|
118 |
msgid "Instant Payment Notification (IPN) URL"
|
119 |
msgstr "URL da Notificación Instantanea de Pago (IPN)"
|
120 |
|
121 |
+
#: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
|
122 |
msgid "Your IPN URL to receive instant payment notifications is"
|
123 |
msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
|
124 |
|
125 |
+
#: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
|
126 |
msgid "Checkout Options"
|
127 |
msgstr "Opciones de Checkout"
|
128 |
|
129 |
+
#: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
|
130 |
msgid "Title"
|
131 |
msgstr "Título"
|
132 |
|
133 |
+
#: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
|
134 |
msgid "Title shown to the client in the checkout."
|
135 |
msgstr "Título mostrado al cliente en el checkout."
|
136 |
|
137 |
+
#: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
|
138 |
+
msgid "Mercado Pago"
|
139 |
+
msgstr "Mercado Pago"
|
140 |
+
|
141 |
+
#: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
|
142 |
msgid "Description"
|
143 |
msgstr "Descripción"
|
144 |
|
145 |
+
#: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
|
146 |
msgid "Description shown to the client in the checkout."
|
147 |
msgstr "Descripción mostrada al cliente en el checkout."
|
148 |
|
149 |
+
#: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
|
150 |
msgid "Pay with Mercado Pago"
|
151 |
msgstr "Pagar con Mercado Pago"
|
152 |
|
153 |
+
#: mercadopago/mercadopago-custom-gateway.php:216
|
154 |
+
msgid "Statement Descriptor"
|
155 |
+
msgstr "Descripción de la Factura"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
+
#: mercadopago/mercadopago-custom-gateway.php:218
|
158 |
+
msgid "The description that will be shown in your customer's invoice."
|
159 |
+
msgstr "La descripción que se muestra en la factura de su cliente."
|
160 |
|
161 |
+
#: mercadopago/mercadopago-custom-gateway.php:222
|
162 |
+
msgid "Binary Mode"
|
163 |
+
msgstr "Modo binario"
|
164 |
|
165 |
+
#: mercadopago/mercadopago-custom-gateway.php:224
|
166 |
+
msgid "Enable binary mode for checkout status"
|
167 |
+
msgstr "Activar el modo binario para el estado del checkout"
|
168 |
|
169 |
+
#: mercadopago/mercadopago-custom-gateway.php:226
|
170 |
+
msgid "When charging a credit card, only [approved] or [reject] status will be taken."
|
171 |
+
msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
|
172 |
|
173 |
+
#: mercadopago/mercadopago-custom-gateway.php:229
|
174 |
+
msgid "Ticket"
|
175 |
+
msgstr "Ticket"
|
176 |
|
177 |
+
#: mercadopago/mercadopago-custom-gateway.php:231
|
178 |
+
msgid "Enable Ticket for Custom Checkout"
|
179 |
+
msgstr "Habilitar Ticket para Checkout Custom"
|
180 |
|
181 |
+
#: mercadopago/mercadopago-custom-gateway.php:233
|
182 |
+
msgid "Let your customer pay you with tickets"
|
183 |
+
msgstr "Deje que su cliente le paga con tickets"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
|
185 |
+
#: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
|
186 |
+
msgid "Store Category"
|
187 |
+
msgstr "Categoría de la tienda"
|
188 |
|
189 |
+
#: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
|
190 |
+
msgid "Define which type of products your store sells."
|
191 |
+
msgstr "Defina el tipo de productos que su tienda vende."
|
192 |
|
193 |
+
#: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
|
194 |
+
msgid "Store Identificator"
|
195 |
+
msgstr "Identificador de la tienda"
|
196 |
|
197 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
198 |
+
msgid "Please, inform a prefix to your store."
|
199 |
+
msgstr "Por favor, informe un prefijo para su tienda."
|
200 |
|
201 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
202 |
+
msgid ""
|
203 |
+
"If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
|
204 |
+
"identificators."
|
205 |
+
msgstr ""
|
206 |
+
"Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
|
207 |
|
208 |
+
#: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
|
209 |
msgid "Test and Debug Options"
|
210 |
msgstr "Opciones de Prueba y Debug"
|
211 |
|
212 |
+
#: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
|
213 |
msgid "Mercado Pago Sandbox"
|
214 |
msgstr "Sandbox Mercado Pago"
|
215 |
|
216 |
+
#: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
|
217 |
msgid "Enable Mercado Pago Sandbox"
|
218 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
219 |
|
220 |
+
#: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
|
221 |
+
msgid "This option allows you to test payments inside a sandbox environment."
|
222 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
223 |
|
224 |
+
#: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
|
225 |
msgid "Debug and Log"
|
226 |
msgstr "Debug y Log"
|
227 |
|
228 |
+
#: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
|
229 |
msgid "Enable log"
|
230 |
msgstr "Habilitar Log"
|
231 |
|
232 |
+
#: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
|
|
|
233 |
msgid "Register event logs of Mercado Pago, such as API requests, in the file"
|
234 |
msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
|
235 |
|
236 |
+
#: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
|
237 |
+
msgid "File location: "
|
238 |
+
msgstr "Local del archivo: "
|
239 |
|
240 |
+
#: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
|
241 |
+
#, php-format
|
242 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
243 |
+
msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
|
244 |
|
245 |
+
#: mercadopago/mercadopago-custom-gateway.php:332
|
246 |
+
msgid "Payment Method"
|
247 |
+
msgstr "Excluir métodos de pago"
|
248 |
|
249 |
+
#: mercadopago/mercadopago-custom-gateway.php:333
|
250 |
+
msgid "Credit card number"
|
251 |
+
msgstr "Número de tarjeta de crédito"
|
252 |
+
|
253 |
+
#: mercadopago/mercadopago-custom-gateway.php:334
|
254 |
+
msgid "Expiration month"
|
255 |
+
msgstr "Mes de expiración"
|
256 |
+
|
257 |
+
#: mercadopago/mercadopago-custom-gateway.php:335
|
258 |
+
msgid "Expiration year"
|
259 |
+
msgstr "Año de expiración"
|
260 |
+
|
261 |
+
#: mercadopago/mercadopago-custom-gateway.php:336
|
262 |
+
msgid "Year"
|
263 |
+
msgstr "Año"
|
264 |
+
|
265 |
+
#: mercadopago/mercadopago-custom-gateway.php:337
|
266 |
+
msgid "Month"
|
267 |
+
msgstr "Mes"
|
268 |
+
|
269 |
+
#: mercadopago/mercadopago-custom-gateway.php:338
|
270 |
+
msgid "Card holder name"
|
271 |
+
msgstr "Nombre del titular de la tarjeta"
|
272 |
+
|
273 |
+
#: mercadopago/mercadopago-custom-gateway.php:339
|
274 |
+
msgid "Security code"
|
275 |
+
msgstr "Código de seguridad"
|
276 |
|
277 |
+
#: mercadopago/mercadopago-custom-gateway.php:340
|
278 |
+
msgid "Document Type"
|
279 |
+
msgstr "Tipo de Documento"
|
280 |
+
|
281 |
+
#: mercadopago/mercadopago-custom-gateway.php:341
|
282 |
+
msgid "Document number"
|
283 |
+
msgstr "Número del Documento"
|
284 |
+
|
285 |
+
#: mercadopago/mercadopago-custom-gateway.php:342
|
286 |
+
msgid "Issuer"
|
287 |
+
msgstr "Emisor"
|
288 |
+
|
289 |
+
#: mercadopago/mercadopago-custom-gateway.php:343
|
290 |
+
msgid "Installments"
|
291 |
+
msgstr "Cuotas"
|
292 |
+
|
293 |
+
#: mercadopago/mercadopago-custom-gateway.php:347
|
294 |
+
msgid "Parameter cardNumber can not be null/empty"
|
295 |
+
msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
|
296 |
+
|
297 |
+
#: mercadopago/mercadopago-custom-gateway.php:348
|
298 |
+
msgid "Invalid Card Number"
|
299 |
+
msgstr "Numero de tarjeta invalido"
|
300 |
+
|
301 |
+
#: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
|
302 |
+
#: mercadopago/mercadopago-custom-gateway.php:353
|
303 |
+
msgid "Invalid Expiration Date"
|
304 |
+
msgstr "Fecha de vencimiento inválida"
|
305 |
+
|
306 |
+
#: mercadopago/mercadopago-custom-gateway.php:355
|
307 |
+
msgid "Parameter cardholderName can not be null/empty"
|
308 |
+
msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
|
309 |
+
|
310 |
+
#: mercadopago/mercadopago-custom-gateway.php:356
|
311 |
+
msgid "Invalid Card Holder Name"
|
312 |
+
msgstr "Nombre del titular de la tarjeta invalido"
|
313 |
+
|
314 |
+
#: mercadopago/mercadopago-custom-gateway.php:358
|
315 |
+
msgid "Parameter securityCode can not be null/empty"
|
316 |
+
msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
|
317 |
+
|
318 |
+
#: mercadopago/mercadopago-custom-gateway.php:359
|
319 |
+
msgid "Invalid Security Code"
|
320 |
+
msgstr "Código de seguridad invalido"
|
321 |
+
|
322 |
+
#: mercadopago/mercadopago-custom-gateway.php:361
|
323 |
+
msgid "Parameter docType can not be null/empty"
|
324 |
+
msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
|
325 |
+
|
326 |
+
#: mercadopago/mercadopago-custom-gateway.php:362
|
327 |
+
msgid "Invalid Document Type"
|
328 |
+
msgstr "Tipo de Documento invalido"
|
329 |
+
|
330 |
+
#: mercadopago/mercadopago-custom-gateway.php:364
|
331 |
+
msgid "Parameter docNumber can not be null/empty"
|
332 |
+
msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
|
333 |
+
|
334 |
+
#: mercadopago/mercadopago-custom-gateway.php:365
|
335 |
+
msgid "Invalid Document Number"
|
336 |
+
msgstr "Número del Documento invalido"
|
337 |
+
|
338 |
+
#: mercadopago/mercadopago-custom-gateway.php:367
|
339 |
+
msgid "The parameter cardholder.document.subtype can not be null or empty"
|
340 |
+
msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
|
341 |
+
|
342 |
+
#: mercadopago/mercadopago-custom-gateway.php:368
|
343 |
+
msgid "Invalid Document Sub Type"
|
344 |
+
msgstr "Subtipo del documento invalido"
|
345 |
+
|
346 |
+
#: mercadopago/mercadopago-custom-gateway.php:370
|
347 |
+
msgid "Parameter cardIssuerId can not be null/empty"
|
348 |
+
msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
|
349 |
+
|
350 |
+
#: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
|
351 |
+
msgid "Payment approved."
|
352 |
+
msgstr "Pago aprobado."
|
353 |
+
|
354 |
+
#: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
|
355 |
+
msgid "Your payment is under review. In less than 1h, you should be notified by email."
|
356 |
+
msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
|
357 |
+
|
358 |
+
#: mercadopago/mercadopago-custom-gateway.php:418
|
359 |
+
msgid "Check your order resume"
|
360 |
+
msgstr "Ver su hoja de pedido"
|
361 |
+
|
362 |
+
#: mercadopago/mercadopago-custom-gateway.php:431
|
363 |
+
msgid "Your payment was refused. You can try again."
|
364 |
+
msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
|
365 |
+
|
366 |
+
#: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
|
367 |
msgid "Click to try again"
|
368 |
+
msgstr "Haga clic para Inténtalo de nuevo"
|
369 |
+
|
370 |
+
#: mercadopago/mercadopago-custom-gateway.php:455
|
371 |
+
msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
|
372 |
+
msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
|
373 |
|
374 |
+
#: mercadopago/mercadopago-custom-gateway.php:544
|
375 |
+
msgid "Shipping"
|
376 |
+
msgstr "Envío"
|
377 |
+
|
378 |
+
#: mercadopago/mercadopago-custom-gateway.php:545
|
379 |
+
msgid "Shipping service used by store"
|
380 |
+
msgstr "Servicio de envío utilizado por el almacén"
|
381 |
+
|
382 |
+
#: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
|
383 |
+
msgid "WooCommerce > 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, VEF."
|
405 |
+
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
|
406 |
+
|
407 |
+
#: mercadopago/mercadopago-custom-gateway.php:797
|
408 |
+
msgid "Peru"
|
409 |
+
msgstr "Peru"
|
410 |
+
|
411 |
+
#: mercadopago/mercadopago-custom-gateway.php:809
|
412 |
+
msgid "Click to check your order"
|
413 |
+
msgstr "Haga clic para comprobar su pedido"
|
414 |
+
|
415 |
+
#: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
|
416 |
+
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
417 |
+
msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
|
418 |
+
|
419 |
+
#: mercadopago/mercadopago-custom-gateway.php:816
|
420 |
+
msgid "Reason is: "
|
421 |
+
msgstr "La razón es:"
|
422 |
|
423 |
+
#: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
|
424 |
msgid "Mercado Pago Request Failure"
|
425 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
426 |
|
427 |
+
#: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
|
|
|
|
|
|
|
|
|
428 |
msgid "Payer email"
|
429 |
msgstr "Email del comprador"
|
430 |
|
431 |
+
#: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
|
432 |
msgid "Payment type"
|
433 |
msgstr "Método de pago"
|
434 |
|
435 |
+
#: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
|
436 |
+
msgid "Mercado Pago Payment ID"
|
437 |
+
msgstr "ID de pago de Mercado Pago"
|
438 |
|
439 |
+
#: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
|
440 |
msgid "Customer haven't paid yet."
|
441 |
msgstr "El cliente todavía no efectuó el pago."
|
442 |
|
443 |
+
#: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
|
444 |
msgid "Payment under review."
|
445 |
msgstr "El pago está pendiente de revisión."
|
446 |
|
447 |
+
#: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
|
448 |
msgid "The payment was refused. The customer can try again."
|
449 |
msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
|
450 |
|
451 |
+
#: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
|
452 |
msgid "The payment was refunded to the customer."
|
453 |
msgstr "El pago fue devuelto al cliente."
|
454 |
|
455 |
+
#: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
|
456 |
msgid "The payment was cancelled."
|
457 |
msgstr "El pago fue cancelado."
|
458 |
|
459 |
+
#: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
|
460 |
+
#: mercadopago/mercadopago-gateway.php:909
|
|
|
|
|
|
|
461 |
msgid "The payment is under mediation or it was charged-back."
|
462 |
msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
|
463 |
+
|
464 |
+
#: mercadopago/mercadopago-gateway.php:51
|
465 |
+
msgid "Mercado Pago - Standard Checkout"
|
466 |
+
msgstr "Mercado Pago - Checkout Estándar"
|
467 |
+
|
468 |
+
#: mercadopago/mercadopago-gateway.php:148
|
469 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
470 |
+
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
471 |
+
|
472 |
+
#: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
|
473 |
+
msgid "Configure your Client_id and Client_secret to have access to more options."
|
474 |
+
msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
|
475 |
+
|
476 |
+
#: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
|
477 |
+
msgid "This field should be an integer."
|
478 |
+
msgstr "Este campo debe ser un número."
|
479 |
+
|
480 |
+
#: mercadopago/mercadopago-gateway.php:187
|
481 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame width."
|
482 |
+
msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
|
483 |
+
|
484 |
+
#: mercadopago/mercadopago-gateway.php:195
|
485 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame height."
|
486 |
+
msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
|
487 |
+
|
488 |
+
#: mercadopago/mercadopago-gateway.php:205
|
489 |
+
msgid "Select the max number of installments for your customers."
|
490 |
+
msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
|
491 |
+
|
492 |
+
#: mercadopago/mercadopago-gateway.php:213
|
493 |
+
msgid "Enable Standard Checkout"
|
494 |
+
msgstr "Habilitar el Checkout Estándar"
|
495 |
+
|
496 |
+
#: mercadopago/mercadopago-gateway.php:224
|
497 |
+
msgid "Insert your Mercado Pago Client_id."
|
498 |
+
msgstr "Inserte su Client_id de Mercado Pago."
|
499 |
+
|
500 |
+
#: mercadopago/mercadopago-gateway.php:231
|
501 |
+
msgid "Insert your Mercado Pago Client_secret."
|
502 |
+
msgstr "Inserte su Client_secret de Mercado Pago."
|
503 |
+
|
504 |
+
#: mercadopago/mercadopago-gateway.php:270
|
505 |
+
msgid "Integration Method"
|
506 |
+
msgstr "Método de integración"
|
507 |
+
|
508 |
+
#: mercadopago/mercadopago-gateway.php:272
|
509 |
+
msgid ""
|
510 |
+
"Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
|
511 |
+
"internal window is embedded to the page layout)."
|
512 |
+
msgstr ""
|
513 |
+
"Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
|
514 |
+
"redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
|
515 |
+
|
516 |
+
#: mercadopago/mercadopago-gateway.php:275
|
517 |
+
msgid "iFrame"
|
518 |
+
msgstr "iFrame"
|
519 |
+
|
520 |
+
#: mercadopago/mercadopago-gateway.php:276
|
521 |
+
msgid "Modal Window"
|
522 |
+
msgstr "Ventana modal"
|
523 |
+
|
524 |
+
#: mercadopago/mercadopago-gateway.php:277
|
525 |
+
msgid "Redirect"
|
526 |
+
msgstr "Redireccionamiento"
|
527 |
+
|
528 |
+
#: mercadopago/mercadopago-gateway.php:281
|
529 |
+
msgid "iFrame Width"
|
530 |
+
msgstr "Ancho del iFrame"
|
531 |
+
|
532 |
+
#: mercadopago/mercadopago-gateway.php:287
|
533 |
+
msgid "iFrame Height"
|
534 |
+
msgstr "Alto del iFrame"
|
535 |
+
|
536 |
+
#: mercadopago/mercadopago-gateway.php:293
|
537 |
+
msgid "Auto Return"
|
538 |
+
msgstr "Redirección automática"
|
539 |
+
|
540 |
+
#: mercadopago/mercadopago-gateway.php:295
|
541 |
+
msgid "Automatic Return After Payment"
|
542 |
+
msgstr "Redirección Automática Luego del Pago"
|
543 |
+
|
544 |
+
#: mercadopago/mercadopago-gateway.php:297
|
545 |
+
msgid "After the payment, client is automatically redirected."
|
546 |
+
msgstr "Después del pago, el cliente será redireccionado automáticamente."
|
547 |
+
|
548 |
+
#: mercadopago/mercadopago-gateway.php:300
|
549 |
+
msgid "Payment Options"
|
550 |
+
msgstr "Opciones de Pago"
|
551 |
+
|
552 |
+
#: mercadopago/mercadopago-gateway.php:305
|
553 |
+
msgid "Max installments"
|
554 |
+
msgstr "Número máximo de cuotas"
|
555 |
+
|
556 |
+
#: mercadopago/mercadopago-gateway.php:311
|
557 |
+
msgid "Exclude Payment Methods"
|
558 |
+
msgstr "Excluir métodos de pago"
|
559 |
+
|
560 |
+
#: mercadopago/mercadopago-gateway.php:428
|
561 |
+
msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
|
562 |
+
msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
|
563 |
+
|
564 |
+
#: mercadopago/mercadopago-gateway.php:436
|
565 |
+
msgid "Cancel order & 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 se le notificará por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta forma de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Custom Inactivo"
|
665 |
+
|
666 |
+
msgid "Standard Checkout is Inactive"
|
667 |
+
msgstr "Checkout Estándar Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
674 |
+
|
675 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
676 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
677 |
+
|
678 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
679 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
|
680 |
+
|
681 |
+
msgid "Your Card"
|
682 |
+
msgstr "Sus Tarjetas"
|
683 |
+
|
684 |
+
msgid "Other Cards"
|
685 |
+
msgstr "Otras Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Card"
|
688 |
+
msgstr "Otra Tarjeta"
|
689 |
+
|
690 |
+
msgid "ended in"
|
691 |
+
msgstr "terminado en"
|
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,678 @@ 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 método de pago para compras realizadas en su tienda virtual."
|
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 método de pago para compras realizadas en su tienda virtual."
|
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:235
|
122 |
-
msgid "Mercado Pago Client_secret"
|
123 |
-
msgstr "Client_secret de Mercado Pago"
|
124 |
|
125 |
-
#: mercadopago/mercadopago-gateway.php:
|
126 |
-
msgid "Insert your Mercado Pago
|
127 |
-
msgstr "Inserte su
|
128 |
|
129 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
174 |
-
msgid "
|
175 |
-
msgstr "
|
176 |
|
177 |
-
#: mercadopago/mercadopago-gateway.php:
|
178 |
-
msgid "
|
179 |
-
msgstr "
|
180 |
|
181 |
-
#: mercadopago/mercadopago-gateway.php:
|
182 |
-
msgid "
|
183 |
-
msgstr "
|
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:287
|
202 |
-
msgid "iFrame Width"
|
203 |
-
msgstr "Ancho del iFrame"
|
204 |
-
|
205 |
-
#: mercadopago/mercadopago-gateway.php:293
|
206 |
-
msgid "iFrame Height"
|
207 |
-
msgstr "Alto del iFrame"
|
208 |
-
|
209 |
-
#: mercadopago/mercadopago-gateway.php:299
|
210 |
-
msgid "Auto Return"
|
211 |
-
msgstr "Redirección automática"
|
212 |
|
213 |
-
#: mercadopago/mercadopago-gateway.php:
|
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-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 "Método de pago"
|
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\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
#. Description of the plugin/theme
|
26 |
msgid "This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store."
|
27 |
msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
28 |
|
29 |
+
#: mercadopago-module.php:69
|
30 |
#, php-format
|
31 |
msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
|
32 |
msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
|
33 |
|
34 |
+
#: mercadopago-module.php:109
|
35 |
+
msgid "Standard Checkout"
|
36 |
+
msgstr "Checkout Estándar"
|
37 |
+
|
38 |
+
#: mercadopago-module.php:113
|
39 |
+
msgid "Custom Checkout"
|
40 |
+
msgstr "Checkout Custom"
|
41 |
+
|
42 |
+
#: mercadopago/mercadopago-custom-gateway.php:48
|
43 |
+
msgid "Mercado Pago - Custom Checkout"
|
44 |
+
msgstr "Mercado Pago - Checkout Custom"
|
45 |
+
|
46 |
+
#: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
|
47 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
48 |
msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
49 |
|
50 |
+
#: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
|
51 |
+
#: mercadopago/mercadopago-gateway.php:716
|
52 |
msgid "Argentine"
|
53 |
msgstr "Argentina"
|
54 |
|
55 |
+
#: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
|
56 |
+
#: mercadopago/mercadopago-gateway.php:717
|
57 |
msgid "Brazil"
|
58 |
msgstr "Brasil"
|
59 |
|
60 |
+
#: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
|
61 |
+
#: mercadopago/mercadopago-gateway.php:719
|
62 |
msgid "Chile"
|
63 |
msgstr "Chile"
|
64 |
|
65 |
+
#: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
|
66 |
+
#: mercadopago/mercadopago-gateway.php:718
|
67 |
msgid "Colombia"
|
68 |
msgstr "Colombia"
|
69 |
|
70 |
+
#: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
|
71 |
+
#: mercadopago/mercadopago-gateway.php:720
|
72 |
msgid "Mexico"
|
73 |
msgstr "México"
|
74 |
|
75 |
+
#: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
|
76 |
msgid "or"
|
77 |
msgstr "o"
|
78 |
|
79 |
+
#: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
|
80 |
+
#: mercadopago/mercadopago-gateway.php:721
|
81 |
msgid "Venezuela"
|
82 |
msgstr "Venezuela"
|
83 |
|
84 |
+
#: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
|
|
|
|
|
|
|
|
|
85 |
msgid "Your credentials are <strong>valid</strong> for"
|
86 |
msgstr "Sus credenciales <strong>son válidas</strong> para"
|
87 |
|
88 |
+
#: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
|
89 |
+
#: mercadopago/mercadopago-gateway.php:170
|
|
|
|
|
|
|
90 |
msgid "Your credentials are <strong>not valid</strong>!"
|
91 |
msgstr "Sus credenciales <strong>no son válidas</strong>!"
|
92 |
|
93 |
+
#: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
msgid "Enable/Disable"
|
95 |
msgstr "Habilitar/Deshabilitar"
|
96 |
|
97 |
+
#: mercadopago/mercadopago-custom-gateway.php:171
|
98 |
+
msgid "Enable Custom Checkout"
|
99 |
+
msgstr "Habilitar Checkout Custom"
|
100 |
|
101 |
+
#: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
|
102 |
msgid "Mercado Pago Credentials"
|
103 |
msgstr "Credenciales de Mercado Pago"
|
104 |
|
105 |
+
#: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
|
106 |
msgid "You can obtain your credentials for"
|
107 |
msgstr "Puedes obtener tus credenciales para"
|
108 |
|
109 |
+
#: mercadopago/mercadopago-custom-gateway.php:182
|
110 |
+
msgid "Insert your Mercado Pago Public key."
|
111 |
+
msgstr "Inserte su Public Key de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
+
#: mercadopago/mercadopago-custom-gateway.php:189
|
114 |
+
msgid "Insert your Mercado Pago Access token."
|
115 |
+
msgstr "Inserte su Access Token de Mercado Pago."
|
116 |
|
117 |
+
#: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
|
118 |
msgid "Instant Payment Notification (IPN) URL"
|
119 |
msgstr "URL da Notificación Instantanea de Pago (IPN)"
|
120 |
|
121 |
+
#: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
|
122 |
msgid "Your IPN URL to receive instant payment notifications is"
|
123 |
msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
|
124 |
|
125 |
+
#: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
|
126 |
msgid "Checkout Options"
|
127 |
msgstr "Opciones de Checkout"
|
128 |
|
129 |
+
#: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
|
130 |
msgid "Title"
|
131 |
msgstr "Título"
|
132 |
|
133 |
+
#: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
|
134 |
msgid "Title shown to the client in the checkout."
|
135 |
msgstr "Título mostrado al cliente en el checkout."
|
136 |
|
137 |
+
#: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
|
138 |
+
msgid "Mercado Pago"
|
139 |
+
msgstr "Mercado Pago"
|
140 |
+
|
141 |
+
#: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
|
142 |
msgid "Description"
|
143 |
msgstr "Descripción"
|
144 |
|
145 |
+
#: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
|
146 |
msgid "Description shown to the client in the checkout."
|
147 |
msgstr "Descripción mostrada al cliente en el checkout."
|
148 |
|
149 |
+
#: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
|
150 |
msgid "Pay with Mercado Pago"
|
151 |
msgstr "Pagar con Mercado Pago"
|
152 |
|
153 |
+
#: mercadopago/mercadopago-custom-gateway.php:216
|
154 |
+
msgid "Statement Descriptor"
|
155 |
+
msgstr "Descripción de la Factura"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
+
#: mercadopago/mercadopago-custom-gateway.php:218
|
158 |
+
msgid "The description that will be shown in your customer's invoice."
|
159 |
+
msgstr "La descripción que se muestra en la factura de su cliente."
|
160 |
|
161 |
+
#: mercadopago/mercadopago-custom-gateway.php:222
|
162 |
+
msgid "Binary Mode"
|
163 |
+
msgstr "Modo binario"
|
164 |
|
165 |
+
#: mercadopago/mercadopago-custom-gateway.php:224
|
166 |
+
msgid "Enable binary mode for checkout status"
|
167 |
+
msgstr "Activar el modo binario para el estado del checkout"
|
168 |
|
169 |
+
#: mercadopago/mercadopago-custom-gateway.php:226
|
170 |
+
msgid "When charging a credit card, only [approved] or [reject] status will be taken."
|
171 |
+
msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
|
172 |
|
173 |
+
#: mercadopago/mercadopago-custom-gateway.php:229
|
174 |
+
msgid "Ticket"
|
175 |
+
msgstr "Ticket"
|
176 |
|
177 |
+
#: mercadopago/mercadopago-custom-gateway.php:231
|
178 |
+
msgid "Enable Ticket for Custom Checkout"
|
179 |
+
msgstr "Habilitar Ticket para Checkout Custom"
|
180 |
|
181 |
+
#: mercadopago/mercadopago-custom-gateway.php:233
|
182 |
+
msgid "Let your customer pay you with tickets"
|
183 |
+
msgstr "Deje que su cliente le paga con tickets"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
|
185 |
+
#: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
|
186 |
+
msgid "Store Category"
|
187 |
+
msgstr "Categoría de la tienda"
|
188 |
|
189 |
+
#: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
|
190 |
+
msgid "Define which type of products your store sells."
|
191 |
+
msgstr "Defina el tipo de productos que su tienda vende."
|
192 |
|
193 |
+
#: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
|
194 |
+
msgid "Store Identificator"
|
195 |
+
msgstr "Identificador de la tienda"
|
196 |
|
197 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
198 |
+
msgid "Please, inform a prefix to your store."
|
199 |
+
msgstr "Por favor, informe un prefijo para su tienda."
|
200 |
|
201 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
202 |
+
msgid ""
|
203 |
+
"If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
|
204 |
+
"identificators."
|
205 |
+
msgstr ""
|
206 |
+
"Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
|
207 |
|
208 |
+
#: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
|
209 |
msgid "Test and Debug Options"
|
210 |
msgstr "Opciones de Prueba y Debug"
|
211 |
|
212 |
+
#: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
|
213 |
msgid "Mercado Pago Sandbox"
|
214 |
msgstr "Sandbox Mercado Pago"
|
215 |
|
216 |
+
#: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
|
217 |
msgid "Enable Mercado Pago Sandbox"
|
218 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
219 |
|
220 |
+
#: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
|
221 |
+
msgid "This option allows you to test payments inside a sandbox environment."
|
222 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
223 |
|
224 |
+
#: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
|
225 |
msgid "Debug and Log"
|
226 |
msgstr "Debug y Log"
|
227 |
|
228 |
+
#: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
|
229 |
msgid "Enable log"
|
230 |
msgstr "Habilitar Log"
|
231 |
|
232 |
+
#: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
|
|
|
233 |
msgid "Register event logs of Mercado Pago, such as API requests, in the file"
|
234 |
msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
|
235 |
|
236 |
+
#: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
|
237 |
+
msgid "File location: "
|
238 |
+
msgstr "Local del archivo: "
|
239 |
|
240 |
+
#: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
|
241 |
+
#, php-format
|
242 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
243 |
+
msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
|
244 |
|
245 |
+
#: mercadopago/mercadopago-custom-gateway.php:332
|
246 |
+
msgid "Payment Method"
|
247 |
+
msgstr "Excluir métodos de pago"
|
248 |
|
249 |
+
#: mercadopago/mercadopago-custom-gateway.php:333
|
250 |
+
msgid "Credit card number"
|
251 |
+
msgstr "Número de tarjeta de crédito"
|
252 |
+
|
253 |
+
#: mercadopago/mercadopago-custom-gateway.php:334
|
254 |
+
msgid "Expiration month"
|
255 |
+
msgstr "Mes de expiración"
|
256 |
+
|
257 |
+
#: mercadopago/mercadopago-custom-gateway.php:335
|
258 |
+
msgid "Expiration year"
|
259 |
+
msgstr "Año de expiración"
|
260 |
+
|
261 |
+
#: mercadopago/mercadopago-custom-gateway.php:336
|
262 |
+
msgid "Year"
|
263 |
+
msgstr "Año"
|
264 |
+
|
265 |
+
#: mercadopago/mercadopago-custom-gateway.php:337
|
266 |
+
msgid "Month"
|
267 |
+
msgstr "Mes"
|
268 |
+
|
269 |
+
#: mercadopago/mercadopago-custom-gateway.php:338
|
270 |
+
msgid "Card holder name"
|
271 |
+
msgstr "Nombre del titular de la tarjeta"
|
272 |
+
|
273 |
+
#: mercadopago/mercadopago-custom-gateway.php:339
|
274 |
+
msgid "Security code"
|
275 |
+
msgstr "Código de seguridad"
|
276 |
|
277 |
+
#: mercadopago/mercadopago-custom-gateway.php:340
|
278 |
+
msgid "Document Type"
|
279 |
+
msgstr "Tipo de Documento"
|
280 |
+
|
281 |
+
#: mercadopago/mercadopago-custom-gateway.php:341
|
282 |
+
msgid "Document number"
|
283 |
+
msgstr "Número del Documento"
|
284 |
+
|
285 |
+
#: mercadopago/mercadopago-custom-gateway.php:342
|
286 |
+
msgid "Issuer"
|
287 |
+
msgstr "Emisor"
|
288 |
+
|
289 |
+
#: mercadopago/mercadopago-custom-gateway.php:343
|
290 |
+
msgid "Installments"
|
291 |
+
msgstr "Cuotas"
|
292 |
+
|
293 |
+
#: mercadopago/mercadopago-custom-gateway.php:347
|
294 |
+
msgid "Parameter cardNumber can not be null/empty"
|
295 |
+
msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
|
296 |
+
|
297 |
+
#: mercadopago/mercadopago-custom-gateway.php:348
|
298 |
+
msgid "Invalid Card Number"
|
299 |
+
msgstr "Numero de tarjeta invalido"
|
300 |
+
|
301 |
+
#: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
|
302 |
+
#: mercadopago/mercadopago-custom-gateway.php:353
|
303 |
+
msgid "Invalid Expiration Date"
|
304 |
+
msgstr "Fecha de vencimiento inválida"
|
305 |
+
|
306 |
+
#: mercadopago/mercadopago-custom-gateway.php:355
|
307 |
+
msgid "Parameter cardholderName can not be null/empty"
|
308 |
+
msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
|
309 |
+
|
310 |
+
#: mercadopago/mercadopago-custom-gateway.php:356
|
311 |
+
msgid "Invalid Card Holder Name"
|
312 |
+
msgstr "Nombre del titular de la tarjeta invalido"
|
313 |
+
|
314 |
+
#: mercadopago/mercadopago-custom-gateway.php:358
|
315 |
+
msgid "Parameter securityCode can not be null/empty"
|
316 |
+
msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
|
317 |
+
|
318 |
+
#: mercadopago/mercadopago-custom-gateway.php:359
|
319 |
+
msgid "Invalid Security Code"
|
320 |
+
msgstr "Código de seguridad invalido"
|
321 |
+
|
322 |
+
#: mercadopago/mercadopago-custom-gateway.php:361
|
323 |
+
msgid "Parameter docType can not be null/empty"
|
324 |
+
msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
|
325 |
+
|
326 |
+
#: mercadopago/mercadopago-custom-gateway.php:362
|
327 |
+
msgid "Invalid Document Type"
|
328 |
+
msgstr "Tipo de Documento invalido"
|
329 |
+
|
330 |
+
#: mercadopago/mercadopago-custom-gateway.php:364
|
331 |
+
msgid "Parameter docNumber can not be null/empty"
|
332 |
+
msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
|
333 |
+
|
334 |
+
#: mercadopago/mercadopago-custom-gateway.php:365
|
335 |
+
msgid "Invalid Document Number"
|
336 |
+
msgstr "Número del Documento invalido"
|
337 |
+
|
338 |
+
#: mercadopago/mercadopago-custom-gateway.php:367
|
339 |
+
msgid "The parameter cardholder.document.subtype can not be null or empty"
|
340 |
+
msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
|
341 |
+
|
342 |
+
#: mercadopago/mercadopago-custom-gateway.php:368
|
343 |
+
msgid "Invalid Document Sub Type"
|
344 |
+
msgstr "Subtipo del documento invalido"
|
345 |
+
|
346 |
+
#: mercadopago/mercadopago-custom-gateway.php:370
|
347 |
+
msgid "Parameter cardIssuerId can not be null/empty"
|
348 |
+
msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
|
349 |
+
|
350 |
+
#: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
|
351 |
+
msgid "Payment approved."
|
352 |
+
msgstr "Pago aprobado."
|
353 |
+
|
354 |
+
#: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
|
355 |
+
msgid "Your payment is under review. In less than 1h, you should be notified by email."
|
356 |
+
msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
|
357 |
+
|
358 |
+
#: mercadopago/mercadopago-custom-gateway.php:418
|
359 |
+
msgid "Check your order resume"
|
360 |
+
msgstr "Ver su hoja de pedido"
|
361 |
+
|
362 |
+
#: mercadopago/mercadopago-custom-gateway.php:431
|
363 |
+
msgid "Your payment was refused. You can try again."
|
364 |
+
msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
|
365 |
+
|
366 |
+
#: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
|
367 |
msgid "Click to try again"
|
368 |
+
msgstr "Haga clic para Inténtalo de nuevo"
|
369 |
+
|
370 |
+
#: mercadopago/mercadopago-custom-gateway.php:455
|
371 |
+
msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
|
372 |
+
msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
|
373 |
|
374 |
+
#: mercadopago/mercadopago-custom-gateway.php:544
|
375 |
+
msgid "Shipping"
|
376 |
+
msgstr "Envío"
|
377 |
+
|
378 |
+
#: mercadopago/mercadopago-custom-gateway.php:545
|
379 |
+
msgid "Shipping service used by store"
|
380 |
+
msgstr "Servicio de envío utilizado por el almacén"
|
381 |
+
|
382 |
+
#: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
|
383 |
+
msgid "WooCommerce > 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, VEF."
|
405 |
+
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
|
406 |
+
|
407 |
+
#: mercadopago/mercadopago-custom-gateway.php:797
|
408 |
+
msgid "Peru"
|
409 |
+
msgstr "Peru"
|
410 |
+
|
411 |
+
#: mercadopago/mercadopago-custom-gateway.php:809
|
412 |
+
msgid "Click to check your order"
|
413 |
+
msgstr "Haga clic para comprobar su pedido"
|
414 |
+
|
415 |
+
#: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
|
416 |
+
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
417 |
+
msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
|
418 |
+
|
419 |
+
#: mercadopago/mercadopago-custom-gateway.php:816
|
420 |
+
msgid "Reason is: "
|
421 |
+
msgstr "La razón es:"
|
422 |
|
423 |
+
#: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
|
424 |
msgid "Mercado Pago Request Failure"
|
425 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
426 |
|
427 |
+
#: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
|
|
|
|
|
|
|
|
|
428 |
msgid "Payer email"
|
429 |
msgstr "Email del comprador"
|
430 |
|
431 |
+
#: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
|
432 |
msgid "Payment type"
|
433 |
msgstr "Método de pago"
|
434 |
|
435 |
+
#: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
|
436 |
+
msgid "Mercado Pago Payment ID"
|
437 |
+
msgstr "ID de pago de Mercado Pago"
|
438 |
|
439 |
+
#: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
|
440 |
msgid "Customer haven't paid yet."
|
441 |
msgstr "El cliente todavía no efectuó el pago."
|
442 |
|
443 |
+
#: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
|
444 |
msgid "Payment under review."
|
445 |
msgstr "El pago está pendiente de revisión."
|
446 |
|
447 |
+
#: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
|
448 |
msgid "The payment was refused. The customer can try again."
|
449 |
msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
|
450 |
|
451 |
+
#: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
|
452 |
msgid "The payment was refunded to the customer."
|
453 |
msgstr "El pago fue devuelto al cliente."
|
454 |
|
455 |
+
#: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
|
456 |
msgid "The payment was cancelled."
|
457 |
msgstr "El pago fue cancelado."
|
458 |
|
459 |
+
#: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
|
460 |
+
#: mercadopago/mercadopago-gateway.php:909
|
|
|
|
|
|
|
461 |
msgid "The payment is under mediation or it was charged-back."
|
462 |
msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
|
463 |
+
|
464 |
+
#: mercadopago/mercadopago-gateway.php:51
|
465 |
+
msgid "Mercado Pago - Standard Checkout"
|
466 |
+
msgstr "Mercado Pago - Checkout Estándar"
|
467 |
+
|
468 |
+
#: mercadopago/mercadopago-gateway.php:148
|
469 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
470 |
+
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
471 |
+
|
472 |
+
#: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
|
473 |
+
msgid "Configure your Client_id and Client_secret to have access to more options."
|
474 |
+
msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
|
475 |
+
|
476 |
+
#: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
|
477 |
+
msgid "This field should be an integer."
|
478 |
+
msgstr "Este campo debe ser un número."
|
479 |
+
|
480 |
+
#: mercadopago/mercadopago-gateway.php:187
|
481 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame width."
|
482 |
+
msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
|
483 |
+
|
484 |
+
#: mercadopago/mercadopago-gateway.php:195
|
485 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame height."
|
486 |
+
msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
|
487 |
+
|
488 |
+
#: mercadopago/mercadopago-gateway.php:205
|
489 |
+
msgid "Select the max number of installments for your customers."
|
490 |
+
msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
|
491 |
+
|
492 |
+
#: mercadopago/mercadopago-gateway.php:213
|
493 |
+
msgid "Enable Standard Checkout"
|
494 |
+
msgstr "Habilitar el Checkout Estándar"
|
495 |
+
|
496 |
+
#: mercadopago/mercadopago-gateway.php:224
|
497 |
+
msgid "Insert your Mercado Pago Client_id."
|
498 |
+
msgstr "Inserte su Client_id de Mercado Pago."
|
499 |
+
|
500 |
+
#: mercadopago/mercadopago-gateway.php:231
|
501 |
+
msgid "Insert your Mercado Pago Client_secret."
|
502 |
+
msgstr "Inserte su Client_secret de Mercado Pago."
|
503 |
+
|
504 |
+
#: mercadopago/mercadopago-gateway.php:270
|
505 |
+
msgid "Integration Method"
|
506 |
+
msgstr "Método de integración"
|
507 |
+
|
508 |
+
#: mercadopago/mercadopago-gateway.php:272
|
509 |
+
msgid ""
|
510 |
+
"Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
|
511 |
+
"internal window is embedded to the page layout)."
|
512 |
+
msgstr ""
|
513 |
+
"Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
|
514 |
+
"redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
|
515 |
+
|
516 |
+
#: mercadopago/mercadopago-gateway.php:275
|
517 |
+
msgid "iFrame"
|
518 |
+
msgstr "iFrame"
|
519 |
+
|
520 |
+
#: mercadopago/mercadopago-gateway.php:276
|
521 |
+
msgid "Modal Window"
|
522 |
+
msgstr "Ventana modal"
|
523 |
+
|
524 |
+
#: mercadopago/mercadopago-gateway.php:277
|
525 |
+
msgid "Redirect"
|
526 |
+
msgstr "Redireccionamiento"
|
527 |
+
|
528 |
+
#: mercadopago/mercadopago-gateway.php:281
|
529 |
+
msgid "iFrame Width"
|
530 |
+
msgstr "Ancho del iFrame"
|
531 |
+
|
532 |
+
#: mercadopago/mercadopago-gateway.php:287
|
533 |
+
msgid "iFrame Height"
|
534 |
+
msgstr "Alto del iFrame"
|
535 |
+
|
536 |
+
#: mercadopago/mercadopago-gateway.php:293
|
537 |
+
msgid "Auto Return"
|
538 |
+
msgstr "Redirección automática"
|
539 |
+
|
540 |
+
#: mercadopago/mercadopago-gateway.php:295
|
541 |
+
msgid "Automatic Return After Payment"
|
542 |
+
msgstr "Redirección Automática Luego del Pago"
|
543 |
+
|
544 |
+
#: mercadopago/mercadopago-gateway.php:297
|
545 |
+
msgid "After the payment, client is automatically redirected."
|
546 |
+
msgstr "Después del pago, el cliente será redireccionado automáticamente."
|
547 |
+
|
548 |
+
#: mercadopago/mercadopago-gateway.php:300
|
549 |
+
msgid "Payment Options"
|
550 |
+
msgstr "Opciones de Pago"
|
551 |
+
|
552 |
+
#: mercadopago/mercadopago-gateway.php:305
|
553 |
+
msgid "Max installments"
|
554 |
+
msgstr "Número máximo de cuotas"
|
555 |
+
|
556 |
+
#: mercadopago/mercadopago-gateway.php:311
|
557 |
+
msgid "Exclude Payment Methods"
|
558 |
+
msgstr "Excluir métodos de pago"
|
559 |
+
|
560 |
+
#: mercadopago/mercadopago-gateway.php:428
|
561 |
+
msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
|
562 |
+
msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
|
563 |
+
|
564 |
+
#: mercadopago/mercadopago-gateway.php:436
|
565 |
+
msgid "Cancel order & 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 se le notificará por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta forma de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Custom Inactivo"
|
665 |
+
|
666 |
+
msgid "Standard Checkout is Inactive"
|
667 |
+
msgstr "Checkout Estándar Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
674 |
+
|
675 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
676 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
677 |
+
|
678 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
679 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
|
680 |
+
|
681 |
+
msgid "Your Card"
|
682 |
+
msgstr "Sus Tarjetas"
|
683 |
+
|
684 |
+
msgid "Other Cards"
|
685 |
+
msgstr "Otras Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Card"
|
688 |
+
msgstr "Otra Tarjeta"
|
689 |
+
|
690 |
+
msgid "ended in"
|
691 |
+
msgstr "terminado en"
|
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,678 @@ 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 método de pago para compras realizadas en su tienda virtual."
|
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 método de pago para compras realizadas en su tienda virtual."
|
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:235
|
126 |
-
msgid "Mercado Pago Client_secret"
|
127 |
-
msgstr "Client_secret de Mercado Pago"
|
128 |
|
129 |
-
#: mercadopago/mercadopago-gateway.php:
|
130 |
-
msgid "Insert your Mercado Pago
|
131 |
-
msgstr "Inserte su
|
132 |
|
133 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
179 |
-
msgid "
|
180 |
-
msgstr "
|
181 |
|
182 |
-
#: mercadopago/mercadopago-gateway.php:
|
183 |
-
msgid "
|
184 |
-
msgstr "
|
185 |
|
186 |
-
#: mercadopago/mercadopago-gateway.php:
|
187 |
-
msgid "
|
188 |
-
msgstr "
|
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:287
|
207 |
-
msgid "iFrame Width"
|
208 |
-
msgstr "Ancho del iFrame"
|
209 |
-
|
210 |
-
#: mercadopago/mercadopago-gateway.php:293
|
211 |
-
msgid "iFrame Height"
|
212 |
-
msgstr "Alto del iFrame"
|
213 |
-
|
214 |
-
#: mercadopago/mercadopago-gateway.php:299
|
215 |
-
msgid "Auto Return"
|
216 |
-
msgstr "Redirección automática"
|
217 |
|
218 |
-
#: mercadopago/mercadopago-gateway.php:
|
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 "Método de pago"
|
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\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
#. Description of the plugin/theme
|
26 |
msgid "This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store."
|
27 |
msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
28 |
|
29 |
+
#: mercadopago-module.php:69
|
30 |
#, php-format
|
31 |
msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
|
32 |
msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
|
33 |
|
34 |
+
#: mercadopago-module.php:109
|
35 |
+
msgid "Standard Checkout"
|
36 |
+
msgstr "Checkout Estándar"
|
37 |
+
|
38 |
+
#: mercadopago-module.php:113
|
39 |
+
msgid "Custom Checkout"
|
40 |
+
msgstr "Checkout Custom"
|
41 |
+
|
42 |
+
#: mercadopago/mercadopago-custom-gateway.php:48
|
43 |
+
msgid "Mercado Pago - Custom Checkout"
|
44 |
+
msgstr "Mercado Pago - Checkout Custom"
|
45 |
+
|
46 |
+
#: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
|
47 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
48 |
msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
49 |
|
50 |
+
#: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
|
51 |
+
#: mercadopago/mercadopago-gateway.php:716
|
52 |
msgid "Argentine"
|
53 |
msgstr "Argentina"
|
54 |
|
55 |
+
#: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
|
56 |
+
#: mercadopago/mercadopago-gateway.php:717
|
57 |
msgid "Brazil"
|
58 |
msgstr "Brasil"
|
59 |
|
60 |
+
#: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
|
61 |
+
#: mercadopago/mercadopago-gateway.php:719
|
62 |
msgid "Chile"
|
63 |
msgstr "Chile"
|
64 |
|
65 |
+
#: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
|
66 |
+
#: mercadopago/mercadopago-gateway.php:718
|
67 |
msgid "Colombia"
|
68 |
msgstr "Colombia"
|
69 |
|
70 |
+
#: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
|
71 |
+
#: mercadopago/mercadopago-gateway.php:720
|
72 |
msgid "Mexico"
|
73 |
msgstr "México"
|
74 |
|
75 |
+
#: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
|
76 |
msgid "or"
|
77 |
msgstr "o"
|
78 |
|
79 |
+
#: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
|
80 |
+
#: mercadopago/mercadopago-gateway.php:721
|
81 |
msgid "Venezuela"
|
82 |
msgstr "Venezuela"
|
83 |
|
84 |
+
#: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
|
|
|
|
|
|
|
|
|
85 |
msgid "Your credentials are <strong>valid</strong> for"
|
86 |
msgstr "Sus credenciales <strong>son válidas</strong> para"
|
87 |
|
88 |
+
#: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
|
89 |
+
#: mercadopago/mercadopago-gateway.php:170
|
|
|
|
|
|
|
|
|
|
|
90 |
msgid "Your credentials are <strong>not valid</strong>!"
|
91 |
msgstr "Sus credenciales <strong>no son válidas</strong>!"
|
92 |
|
93 |
+
#: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
msgid "Enable/Disable"
|
95 |
msgstr "Habilitar/Deshabilitar"
|
96 |
|
97 |
+
#: mercadopago/mercadopago-custom-gateway.php:171
|
98 |
+
msgid "Enable Custom Checkout"
|
99 |
+
msgstr "Habilitar Checkout Custom"
|
100 |
|
101 |
+
#: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
|
102 |
msgid "Mercado Pago Credentials"
|
103 |
msgstr "Credenciales de Mercado Pago"
|
104 |
|
105 |
+
#: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
|
106 |
msgid "You can obtain your credentials for"
|
107 |
msgstr "Puedes obtener tus credenciales para"
|
108 |
|
109 |
+
#: mercadopago/mercadopago-custom-gateway.php:182
|
110 |
+
msgid "Insert your Mercado Pago Public key."
|
111 |
+
msgstr "Inserte su Public Key de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
+
#: mercadopago/mercadopago-custom-gateway.php:189
|
114 |
+
msgid "Insert your Mercado Pago Access token."
|
115 |
+
msgstr "Inserte su Access Token de Mercado Pago."
|
116 |
|
117 |
+
#: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
|
118 |
msgid "Instant Payment Notification (IPN) URL"
|
119 |
msgstr "URL da Notificación Instantanea de Pago (IPN)"
|
120 |
|
121 |
+
#: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
|
122 |
msgid "Your IPN URL to receive instant payment notifications is"
|
123 |
msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
|
124 |
|
125 |
+
#: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
|
126 |
msgid "Checkout Options"
|
127 |
msgstr "Opciones de Checkout"
|
128 |
|
129 |
+
#: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
|
130 |
msgid "Title"
|
131 |
msgstr "Título"
|
132 |
|
133 |
+
#: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
|
134 |
msgid "Title shown to the client in the checkout."
|
135 |
msgstr "Título mostrado al cliente en el checkout."
|
136 |
|
137 |
+
#: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
|
138 |
+
msgid "Mercado Pago"
|
139 |
+
msgstr "Mercado Pago"
|
140 |
+
|
141 |
+
#: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
|
142 |
msgid "Description"
|
143 |
msgstr "Descripción"
|
144 |
|
145 |
+
#: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
|
146 |
msgid "Description shown to the client in the checkout."
|
147 |
msgstr "Descripción mostrada al cliente en el checkout."
|
148 |
|
149 |
+
#: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
|
|
|
150 |
msgid "Pay with Mercado Pago"
|
151 |
msgstr "Pagar con Mercado Pago"
|
152 |
|
153 |
+
#: mercadopago/mercadopago-custom-gateway.php:216
|
154 |
+
msgid "Statement Descriptor"
|
155 |
+
msgstr "Descripción de la Factura"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
+
#: mercadopago/mercadopago-custom-gateway.php:218
|
158 |
+
msgid "The description that will be shown in your customer's invoice."
|
159 |
+
msgstr "La descripción que se muestra en la factura de su cliente."
|
160 |
|
161 |
+
#: mercadopago/mercadopago-custom-gateway.php:222
|
162 |
+
msgid "Binary Mode"
|
163 |
+
msgstr "Modo binario"
|
164 |
|
165 |
+
#: mercadopago/mercadopago-custom-gateway.php:224
|
166 |
+
msgid "Enable binary mode for checkout status"
|
167 |
+
msgstr "Activar el modo binario para el estado del checkout"
|
168 |
|
169 |
+
#: mercadopago/mercadopago-custom-gateway.php:226
|
170 |
+
msgid "When charging a credit card, only [approved] or [reject] status will be taken."
|
171 |
+
msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
|
172 |
|
173 |
+
#: mercadopago/mercadopago-custom-gateway.php:229
|
174 |
+
msgid "Ticket"
|
175 |
+
msgstr "Ticket"
|
176 |
|
177 |
+
#: mercadopago/mercadopago-custom-gateway.php:231
|
178 |
+
msgid "Enable Ticket for Custom Checkout"
|
179 |
+
msgstr "Habilitar Ticket para Checkout Custom"
|
180 |
|
181 |
+
#: mercadopago/mercadopago-custom-gateway.php:233
|
182 |
+
msgid "Let your customer pay you with tickets"
|
183 |
+
msgstr "Deje que su cliente le paga con tickets"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
|
185 |
+
#: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
|
186 |
+
msgid "Store Category"
|
187 |
+
msgstr "Categoría de la tienda"
|
188 |
|
189 |
+
#: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
|
190 |
+
msgid "Define which type of products your store sells."
|
191 |
+
msgstr "Defina el tipo de productos que su tienda vende."
|
192 |
|
193 |
+
#: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
|
194 |
+
msgid "Store Identificator"
|
195 |
+
msgstr "Identificador de la tienda"
|
196 |
|
197 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
198 |
+
msgid "Please, inform a prefix to your store."
|
199 |
+
msgstr "Por favor, informe un prefijo para su tienda."
|
200 |
|
201 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
202 |
+
msgid ""
|
203 |
+
"If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
|
204 |
+
"identificators."
|
205 |
+
msgstr ""
|
206 |
+
"Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
|
207 |
|
208 |
+
#: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
|
209 |
msgid "Test and Debug Options"
|
210 |
msgstr "Opciones de Prueba y Debug"
|
211 |
|
212 |
+
#: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
|
213 |
msgid "Mercado Pago Sandbox"
|
214 |
msgstr "Sandbox Mercado Pago"
|
215 |
|
216 |
+
#: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
|
217 |
msgid "Enable Mercado Pago Sandbox"
|
218 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
219 |
|
220 |
+
#: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
|
221 |
+
msgid "This option allows you to test payments inside a sandbox environment."
|
222 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
223 |
|
224 |
+
#: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
|
225 |
msgid "Debug and Log"
|
226 |
msgstr "Debug y Log"
|
227 |
|
228 |
+
#: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
|
229 |
msgid "Enable log"
|
230 |
msgstr "Habilitar Log"
|
231 |
|
232 |
+
#: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
|
|
|
233 |
msgid "Register event logs of Mercado Pago, such as API requests, in the file"
|
234 |
msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
|
235 |
|
236 |
+
#: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
|
237 |
+
msgid "File location: "
|
238 |
+
msgstr "Local del archivo: "
|
239 |
|
240 |
+
#: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
|
241 |
+
#, php-format
|
242 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
243 |
+
msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
|
244 |
|
245 |
+
#: mercadopago/mercadopago-custom-gateway.php:332
|
246 |
+
msgid "Payment Method"
|
247 |
+
msgstr "Excluir métodos de pago"
|
248 |
|
249 |
+
#: mercadopago/mercadopago-custom-gateway.php:333
|
250 |
+
msgid "Credit card number"
|
251 |
+
msgstr "Número de tarjeta de crédito"
|
252 |
+
|
253 |
+
#: mercadopago/mercadopago-custom-gateway.php:334
|
254 |
+
msgid "Expiration month"
|
255 |
+
msgstr "Mes de expiración"
|
256 |
+
|
257 |
+
#: mercadopago/mercadopago-custom-gateway.php:335
|
258 |
+
msgid "Expiration year"
|
259 |
+
msgstr "Año de expiración"
|
260 |
+
|
261 |
+
#: mercadopago/mercadopago-custom-gateway.php:336
|
262 |
+
msgid "Year"
|
263 |
+
msgstr "Año"
|
264 |
+
|
265 |
+
#: mercadopago/mercadopago-custom-gateway.php:337
|
266 |
+
msgid "Month"
|
267 |
+
msgstr "Mes"
|
268 |
+
|
269 |
+
#: mercadopago/mercadopago-custom-gateway.php:338
|
270 |
+
msgid "Card holder name"
|
271 |
+
msgstr "Nombre del titular de la tarjeta"
|
272 |
+
|
273 |
+
#: mercadopago/mercadopago-custom-gateway.php:339
|
274 |
+
msgid "Security code"
|
275 |
+
msgstr "Código de seguridad"
|
276 |
|
277 |
+
#: mercadopago/mercadopago-custom-gateway.php:340
|
278 |
+
msgid "Document Type"
|
279 |
+
msgstr "Tipo de Documento"
|
280 |
+
|
281 |
+
#: mercadopago/mercadopago-custom-gateway.php:341
|
282 |
+
msgid "Document number"
|
283 |
+
msgstr "Número del Documento"
|
284 |
+
|
285 |
+
#: mercadopago/mercadopago-custom-gateway.php:342
|
286 |
+
msgid "Issuer"
|
287 |
+
msgstr "Emisor"
|
288 |
+
|
289 |
+
#: mercadopago/mercadopago-custom-gateway.php:343
|
290 |
+
msgid "Installments"
|
291 |
+
msgstr "Cuotas"
|
292 |
+
|
293 |
+
#: mercadopago/mercadopago-custom-gateway.php:347
|
294 |
+
msgid "Parameter cardNumber can not be null/empty"
|
295 |
+
msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
|
296 |
+
|
297 |
+
#: mercadopago/mercadopago-custom-gateway.php:348
|
298 |
+
msgid "Invalid Card Number"
|
299 |
+
msgstr "Numero de tarjeta invalido"
|
300 |
+
|
301 |
+
#: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
|
302 |
+
#: mercadopago/mercadopago-custom-gateway.php:353
|
303 |
+
msgid "Invalid Expiration Date"
|
304 |
+
msgstr "Fecha de vencimiento inválida"
|
305 |
+
|
306 |
+
#: mercadopago/mercadopago-custom-gateway.php:355
|
307 |
+
msgid "Parameter cardholderName can not be null/empty"
|
308 |
+
msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
|
309 |
+
|
310 |
+
#: mercadopago/mercadopago-custom-gateway.php:356
|
311 |
+
msgid "Invalid Card Holder Name"
|
312 |
+
msgstr "Nombre del titular de la tarjeta invalido"
|
313 |
+
|
314 |
+
#: mercadopago/mercadopago-custom-gateway.php:358
|
315 |
+
msgid "Parameter securityCode can not be null/empty"
|
316 |
+
msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
|
317 |
+
|
318 |
+
#: mercadopago/mercadopago-custom-gateway.php:359
|
319 |
+
msgid "Invalid Security Code"
|
320 |
+
msgstr "Código de seguridad invalido"
|
321 |
+
|
322 |
+
#: mercadopago/mercadopago-custom-gateway.php:361
|
323 |
+
msgid "Parameter docType can not be null/empty"
|
324 |
+
msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
|
325 |
+
|
326 |
+
#: mercadopago/mercadopago-custom-gateway.php:362
|
327 |
+
msgid "Invalid Document Type"
|
328 |
+
msgstr "Tipo de Documento invalido"
|
329 |
+
|
330 |
+
#: mercadopago/mercadopago-custom-gateway.php:364
|
331 |
+
msgid "Parameter docNumber can not be null/empty"
|
332 |
+
msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
|
333 |
+
|
334 |
+
#: mercadopago/mercadopago-custom-gateway.php:365
|
335 |
+
msgid "Invalid Document Number"
|
336 |
+
msgstr "Número del Documento invalido"
|
337 |
+
|
338 |
+
#: mercadopago/mercadopago-custom-gateway.php:367
|
339 |
+
msgid "The parameter cardholder.document.subtype can not be null or empty"
|
340 |
+
msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
|
341 |
+
|
342 |
+
#: mercadopago/mercadopago-custom-gateway.php:368
|
343 |
+
msgid "Invalid Document Sub Type"
|
344 |
+
msgstr "Subtipo del documento invalido"
|
345 |
+
|
346 |
+
#: mercadopago/mercadopago-custom-gateway.php:370
|
347 |
+
msgid "Parameter cardIssuerId can not be null/empty"
|
348 |
+
msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
|
349 |
+
|
350 |
+
#: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
|
351 |
+
msgid "Payment approved."
|
352 |
+
msgstr "Pago aprobado."
|
353 |
+
|
354 |
+
#: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
|
355 |
+
msgid "Your payment is under review. In less than 1h, you should be notified by email."
|
356 |
+
msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
|
357 |
+
|
358 |
+
#: mercadopago/mercadopago-custom-gateway.php:418
|
359 |
+
msgid "Check your order resume"
|
360 |
+
msgstr "Ver su hoja de pedido"
|
361 |
+
|
362 |
+
#: mercadopago/mercadopago-custom-gateway.php:431
|
363 |
+
msgid "Your payment was refused. You can try again."
|
364 |
+
msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
|
365 |
+
|
366 |
+
#: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
|
367 |
msgid "Click to try again"
|
368 |
+
msgstr "Haga clic para Inténtalo de nuevo"
|
369 |
+
|
370 |
+
#: mercadopago/mercadopago-custom-gateway.php:455
|
371 |
+
msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
|
372 |
+
msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
|
373 |
|
374 |
+
#: mercadopago/mercadopago-custom-gateway.php:544
|
375 |
+
msgid "Shipping"
|
376 |
+
msgstr "Envío"
|
377 |
+
|
378 |
+
#: mercadopago/mercadopago-custom-gateway.php:545
|
379 |
+
msgid "Shipping service used by store"
|
380 |
+
msgstr "Servicio de envío utilizado por el almacén"
|
381 |
+
|
382 |
+
#: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
|
383 |
+
msgid "WooCommerce > 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, VEF."
|
405 |
+
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
|
406 |
+
|
407 |
+
#: mercadopago/mercadopago-custom-gateway.php:797
|
408 |
+
msgid "Peru"
|
409 |
+
msgstr "Peru"
|
410 |
+
|
411 |
+
#: mercadopago/mercadopago-custom-gateway.php:809
|
412 |
+
msgid "Click to check your order"
|
413 |
+
msgstr "Haga clic para comprobar su pedido"
|
414 |
+
|
415 |
+
#: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
|
416 |
+
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
417 |
+
msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
|
418 |
+
|
419 |
+
#: mercadopago/mercadopago-custom-gateway.php:816
|
420 |
+
msgid "Reason is: "
|
421 |
+
msgstr "La razón es:"
|
422 |
|
423 |
+
#: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
|
424 |
msgid "Mercado Pago Request Failure"
|
425 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
426 |
|
427 |
+
#: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
|
|
|
|
|
|
|
|
|
428 |
msgid "Payer email"
|
429 |
msgstr "Email del comprador"
|
430 |
|
431 |
+
#: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
|
432 |
msgid "Payment type"
|
433 |
msgstr "Método de pago"
|
434 |
|
435 |
+
#: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
|
436 |
+
msgid "Mercado Pago Payment ID"
|
437 |
+
msgstr "ID de pago de Mercado Pago"
|
438 |
|
439 |
+
#: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
|
440 |
msgid "Customer haven't paid yet."
|
441 |
msgstr "El cliente todavía no efectuó el pago."
|
442 |
|
443 |
+
#: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
|
444 |
msgid "Payment under review."
|
445 |
msgstr "El pago está pendiente de revisión."
|
446 |
|
447 |
+
#: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
|
448 |
msgid "The payment was refused. The customer can try again."
|
449 |
msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
|
450 |
|
451 |
+
#: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
|
452 |
msgid "The payment was refunded to the customer."
|
453 |
msgstr "El pago fue devuelto al cliente."
|
454 |
|
455 |
+
#: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
|
456 |
msgid "The payment was cancelled."
|
457 |
msgstr "El pago fue cancelado."
|
458 |
|
459 |
+
#: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
|
460 |
+
#: mercadopago/mercadopago-gateway.php:909
|
|
|
|
|
|
|
|
|
461 |
msgid "The payment is under mediation or it was charged-back."
|
462 |
msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
|
463 |
+
|
464 |
+
#: mercadopago/mercadopago-gateway.php:51
|
465 |
+
msgid "Mercado Pago - Standard Checkout"
|
466 |
+
msgstr "Mercado Pago - Checkout Estándar"
|
467 |
+
|
468 |
+
#: mercadopago/mercadopago-gateway.php:148
|
469 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
470 |
+
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
471 |
+
|
472 |
+
#: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
|
473 |
+
msgid "Configure your Client_id and Client_secret to have access to more options."
|
474 |
+
msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
|
475 |
+
|
476 |
+
#: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
|
477 |
+
msgid "This field should be an integer."
|
478 |
+
msgstr "Este campo debe ser un número."
|
479 |
+
|
480 |
+
#: mercadopago/mercadopago-gateway.php:187
|
481 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame width."
|
482 |
+
msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
|
483 |
+
|
484 |
+
#: mercadopago/mercadopago-gateway.php:195
|
485 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame height."
|
486 |
+
msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
|
487 |
+
|
488 |
+
#: mercadopago/mercadopago-gateway.php:205
|
489 |
+
msgid "Select the max number of installments for your customers."
|
490 |
+
msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
|
491 |
+
|
492 |
+
#: mercadopago/mercadopago-gateway.php:213
|
493 |
+
msgid "Enable Standard Checkout"
|
494 |
+
msgstr "Habilitar el Checkout Estándar"
|
495 |
+
|
496 |
+
#: mercadopago/mercadopago-gateway.php:224
|
497 |
+
msgid "Insert your Mercado Pago Client_id."
|
498 |
+
msgstr "Inserte su Client_id de Mercado Pago."
|
499 |
+
|
500 |
+
#: mercadopago/mercadopago-gateway.php:231
|
501 |
+
msgid "Insert your Mercado Pago Client_secret."
|
502 |
+
msgstr "Inserte su Client_secret de Mercado Pago."
|
503 |
+
|
504 |
+
#: mercadopago/mercadopago-gateway.php:270
|
505 |
+
msgid "Integration Method"
|
506 |
+
msgstr "Método de integración"
|
507 |
+
|
508 |
+
#: mercadopago/mercadopago-gateway.php:272
|
509 |
+
msgid ""
|
510 |
+
"Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
|
511 |
+
"internal window is embedded to the page layout)."
|
512 |
+
msgstr ""
|
513 |
+
"Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
|
514 |
+
"redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
|
515 |
+
|
516 |
+
#: mercadopago/mercadopago-gateway.php:275
|
517 |
+
msgid "iFrame"
|
518 |
+
msgstr "iFrame"
|
519 |
+
|
520 |
+
#: mercadopago/mercadopago-gateway.php:276
|
521 |
+
msgid "Modal Window"
|
522 |
+
msgstr "Ventana modal"
|
523 |
+
|
524 |
+
#: mercadopago/mercadopago-gateway.php:277
|
525 |
+
msgid "Redirect"
|
526 |
+
msgstr "Redireccionamiento"
|
527 |
+
|
528 |
+
#: mercadopago/mercadopago-gateway.php:281
|
529 |
+
msgid "iFrame Width"
|
530 |
+
msgstr "Ancho del iFrame"
|
531 |
+
|
532 |
+
#: mercadopago/mercadopago-gateway.php:287
|
533 |
+
msgid "iFrame Height"
|
534 |
+
msgstr "Alto del iFrame"
|
535 |
+
|
536 |
+
#: mercadopago/mercadopago-gateway.php:293
|
537 |
+
msgid "Auto Return"
|
538 |
+
msgstr "Redirección automática"
|
539 |
+
|
540 |
+
#: mercadopago/mercadopago-gateway.php:295
|
541 |
+
msgid "Automatic Return After Payment"
|
542 |
+
msgstr "Redirección Automática Luego del Pago"
|
543 |
+
|
544 |
+
#: mercadopago/mercadopago-gateway.php:297
|
545 |
+
msgid "After the payment, client is automatically redirected."
|
546 |
+
msgstr "Después del pago, el cliente será redireccionado automáticamente."
|
547 |
+
|
548 |
+
#: mercadopago/mercadopago-gateway.php:300
|
549 |
+
msgid "Payment Options"
|
550 |
+
msgstr "Opciones de Pago"
|
551 |
+
|
552 |
+
#: mercadopago/mercadopago-gateway.php:305
|
553 |
+
msgid "Max installments"
|
554 |
+
msgstr "Número máximo de cuotas"
|
555 |
+
|
556 |
+
#: mercadopago/mercadopago-gateway.php:311
|
557 |
+
msgid "Exclude Payment Methods"
|
558 |
+
msgstr "Excluir métodos de pago"
|
559 |
+
|
560 |
+
#: mercadopago/mercadopago-gateway.php:428
|
561 |
+
msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
|
562 |
+
msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
|
563 |
+
|
564 |
+
#: mercadopago/mercadopago-gateway.php:436
|
565 |
+
msgid "Cancel order & 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 se le notificará por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta forma de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Custom Inactivo"
|
665 |
+
|
666 |
+
msgid "Standard Checkout is Inactive"
|
667 |
+
msgstr "Checkout Estándar Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
674 |
+
|
675 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
676 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
677 |
+
|
678 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
679 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
|
680 |
+
|
681 |
+
msgid "Your Card"
|
682 |
+
msgstr "Sus Tarjetas"
|
683 |
+
|
684 |
+
msgid "Other Cards"
|
685 |
+
msgstr "Otras Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Card"
|
688 |
+
msgstr "Otra Tarjeta"
|
689 |
+
|
690 |
+
msgid "ended in"
|
691 |
+
msgstr "terminado en"
|
languages/woocommerce-mercadopago-module-es_ES.mo
ADDED
Binary file
|
languages/woocommerce-mercadopago-module-es_ES.po
ADDED
@@ -0,0 +1,691 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# WordPress Blank Pot
|
2 |
+
# Copyright (C) 2014 ...
|
3 |
+
# This file is distributed under the GNU General Public License v2 or later.
|
4 |
+
msgid ""
|
5 |
+
msgstr ""
|
6 |
+
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
7 |
+
"POT-Creation-Date: 2016-05-23 14:52-0300\n"
|
8 |
+
"PO-Revision-Date: \n"
|
9 |
+
"Language-Team: Product Development <translations@example.com>\n"
|
10 |
+
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
11 |
+
"MIME-Version: 1.0\n"
|
12 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
+
"Content-Transfer-Encoding: 8bit\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
18 |
+
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
19 |
+
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
20 |
+
"X-Generator: Poedit 1.8.7\n"
|
21 |
+
"Last-Translator: \n"
|
22 |
+
"Language: es\n"
|
23 |
+
"X-Poedit-SearchPath-0: .\n"
|
24 |
+
|
25 |
+
#. Description of the plugin/theme
|
26 |
+
msgid "This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store."
|
27 |
+
msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
28 |
+
|
29 |
+
#: mercadopago-module.php:69
|
30 |
+
#, php-format
|
31 |
+
msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
|
32 |
+
msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
|
33 |
+
|
34 |
+
#: mercadopago-module.php:109
|
35 |
+
msgid "Standard Checkout"
|
36 |
+
msgstr "Checkout Estándar"
|
37 |
+
|
38 |
+
#: mercadopago-module.php:113
|
39 |
+
msgid "Custom Checkout"
|
40 |
+
msgstr "Checkout Custom"
|
41 |
+
|
42 |
+
#: mercadopago/mercadopago-custom-gateway.php:48
|
43 |
+
msgid "Mercado Pago - Custom Checkout"
|
44 |
+
msgstr "Mercado Pago - Checkout Custom"
|
45 |
+
|
46 |
+
#: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
|
47 |
+
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
48 |
+
msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
49 |
+
|
50 |
+
#: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
|
51 |
+
#: mercadopago/mercadopago-gateway.php:716
|
52 |
+
msgid "Argentine"
|
53 |
+
msgstr "Argentina"
|
54 |
+
|
55 |
+
#: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
|
56 |
+
#: mercadopago/mercadopago-gateway.php:717
|
57 |
+
msgid "Brazil"
|
58 |
+
msgstr "Brasil"
|
59 |
+
|
60 |
+
#: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
|
61 |
+
#: mercadopago/mercadopago-gateway.php:719
|
62 |
+
msgid "Chile"
|
63 |
+
msgstr "Chile"
|
64 |
+
|
65 |
+
#: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
|
66 |
+
#: mercadopago/mercadopago-gateway.php:718
|
67 |
+
msgid "Colombia"
|
68 |
+
msgstr "Colombia"
|
69 |
+
|
70 |
+
#: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
|
71 |
+
#: mercadopago/mercadopago-gateway.php:720
|
72 |
+
msgid "Mexico"
|
73 |
+
msgstr "México"
|
74 |
+
|
75 |
+
#: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
|
76 |
+
msgid "or"
|
77 |
+
msgstr "o"
|
78 |
+
|
79 |
+
#: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
|
80 |
+
#: mercadopago/mercadopago-gateway.php:721
|
81 |
+
msgid "Venezuela"
|
82 |
+
msgstr "Venezuela"
|
83 |
+
|
84 |
+
#: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
|
85 |
+
msgid "Your credentials are <strong>valid</strong> for"
|
86 |
+
msgstr "Sus credenciales <strong>son válidas</strong> para"
|
87 |
+
|
88 |
+
#: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
|
89 |
+
#: mercadopago/mercadopago-gateway.php:170
|
90 |
+
msgid "Your credentials are <strong>not valid</strong>!"
|
91 |
+
msgstr "Sus credenciales <strong>no son válidas</strong>!"
|
92 |
+
|
93 |
+
#: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
|
94 |
+
msgid "Enable/Disable"
|
95 |
+
msgstr "Habilitar/Deshabilitar"
|
96 |
+
|
97 |
+
#: mercadopago/mercadopago-custom-gateway.php:171
|
98 |
+
msgid "Enable Custom Checkout"
|
99 |
+
msgstr "Habilitar Checkout Custom"
|
100 |
+
|
101 |
+
#: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
|
102 |
+
msgid "Mercado Pago Credentials"
|
103 |
+
msgstr "Credenciales de Mercado Pago"
|
104 |
+
|
105 |
+
#: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
|
106 |
+
msgid "You can obtain your credentials for"
|
107 |
+
msgstr "Puedes obtener tus credenciales para"
|
108 |
+
|
109 |
+
#: mercadopago/mercadopago-custom-gateway.php:182
|
110 |
+
msgid "Insert your Mercado Pago Public key."
|
111 |
+
msgstr "Inserte su Public Key de Mercado Pago."
|
112 |
+
|
113 |
+
#: mercadopago/mercadopago-custom-gateway.php:189
|
114 |
+
msgid "Insert your Mercado Pago Access token."
|
115 |
+
msgstr "Inserte su Access Token de Mercado Pago."
|
116 |
+
|
117 |
+
#: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
|
118 |
+
msgid "Instant Payment Notification (IPN) URL"
|
119 |
+
msgstr "URL da Notificación Instantanea de Pago (IPN)"
|
120 |
+
|
121 |
+
#: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
|
122 |
+
msgid "Your IPN URL to receive instant payment notifications is"
|
123 |
+
msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
|
124 |
+
|
125 |
+
#: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
|
126 |
+
msgid "Checkout Options"
|
127 |
+
msgstr "Opciones de Checkout"
|
128 |
+
|
129 |
+
#: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
|
130 |
+
msgid "Title"
|
131 |
+
msgstr "Título"
|
132 |
+
|
133 |
+
#: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
|
134 |
+
msgid "Title shown to the client in the checkout."
|
135 |
+
msgstr "Título mostrado al cliente en el checkout."
|
136 |
+
|
137 |
+
#: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
|
138 |
+
msgid "Mercado Pago"
|
139 |
+
msgstr "Mercado Pago"
|
140 |
+
|
141 |
+
#: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
|
142 |
+
msgid "Description"
|
143 |
+
msgstr "Descripción"
|
144 |
+
|
145 |
+
#: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
|
146 |
+
msgid "Description shown to the client in the checkout."
|
147 |
+
msgstr "Descripción mostrada al cliente en el checkout."
|
148 |
+
|
149 |
+
#: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
|
150 |
+
msgid "Pay with Mercado Pago"
|
151 |
+
msgstr "Pagar con Mercado Pago"
|
152 |
+
|
153 |
+
#: mercadopago/mercadopago-custom-gateway.php:216
|
154 |
+
msgid "Statement Descriptor"
|
155 |
+
msgstr "Descripción de la Factura"
|
156 |
+
|
157 |
+
#: mercadopago/mercadopago-custom-gateway.php:218
|
158 |
+
msgid "The description that will be shown in your customer's invoice."
|
159 |
+
msgstr "La descripción que se muestra en la factura de su cliente."
|
160 |
+
|
161 |
+
#: mercadopago/mercadopago-custom-gateway.php:222
|
162 |
+
msgid "Binary Mode"
|
163 |
+
msgstr "Modo binario"
|
164 |
+
|
165 |
+
#: mercadopago/mercadopago-custom-gateway.php:224
|
166 |
+
msgid "Enable binary mode for checkout status"
|
167 |
+
msgstr "Activar el modo binario para el estado del checkout"
|
168 |
+
|
169 |
+
#: mercadopago/mercadopago-custom-gateway.php:226
|
170 |
+
msgid "When charging a credit card, only [approved] or [reject] status will be taken."
|
171 |
+
msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
|
172 |
+
|
173 |
+
#: mercadopago/mercadopago-custom-gateway.php:229
|
174 |
+
msgid "Ticket"
|
175 |
+
msgstr "Ticket"
|
176 |
+
|
177 |
+
#: mercadopago/mercadopago-custom-gateway.php:231
|
178 |
+
msgid "Enable Ticket for Custom Checkout"
|
179 |
+
msgstr "Habilitar Ticket para Checkout Custom"
|
180 |
+
|
181 |
+
#: mercadopago/mercadopago-custom-gateway.php:233
|
182 |
+
msgid "Let your customer pay you with tickets"
|
183 |
+
msgstr "Deje que su cliente le paga con tickets"
|
184 |
+
|
185 |
+
#: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
|
186 |
+
msgid "Store Category"
|
187 |
+
msgstr "Categoría de la tienda"
|
188 |
+
|
189 |
+
#: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
|
190 |
+
msgid "Define which type of products your store sells."
|
191 |
+
msgstr "Defina el tipo de productos que su tienda vende."
|
192 |
+
|
193 |
+
#: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
|
194 |
+
msgid "Store Identificator"
|
195 |
+
msgstr "Identificador de la tienda"
|
196 |
+
|
197 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
198 |
+
msgid "Please, inform a prefix to your store."
|
199 |
+
msgstr "Por favor, informe un prefijo para su tienda."
|
200 |
+
|
201 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
202 |
+
msgid ""
|
203 |
+
"If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
|
204 |
+
"identificators."
|
205 |
+
msgstr ""
|
206 |
+
"Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
|
207 |
+
|
208 |
+
#: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
|
209 |
+
msgid "Test and Debug Options"
|
210 |
+
msgstr "Opciones de Prueba y Debug"
|
211 |
+
|
212 |
+
#: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
|
213 |
+
msgid "Mercado Pago Sandbox"
|
214 |
+
msgstr "Sandbox Mercado Pago"
|
215 |
+
|
216 |
+
#: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
|
217 |
+
msgid "Enable Mercado Pago Sandbox"
|
218 |
+
msgstr "Habilitar el sandbox de Mercado Pago"
|
219 |
+
|
220 |
+
#: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
|
221 |
+
msgid "This option allows you to test payments inside a sandbox environment."
|
222 |
+
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
223 |
+
|
224 |
+
#: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
|
225 |
+
msgid "Debug and Log"
|
226 |
+
msgstr "Debug y Log"
|
227 |
+
|
228 |
+
#: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
|
229 |
+
msgid "Enable log"
|
230 |
+
msgstr "Habilitar Log"
|
231 |
+
|
232 |
+
#: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
|
233 |
+
msgid "Register event logs of Mercado Pago, such as API requests, in the file"
|
234 |
+
msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
|
235 |
+
|
236 |
+
#: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
|
237 |
+
msgid "File location: "
|
238 |
+
msgstr "Local del archivo: "
|
239 |
+
|
240 |
+
#: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
|
241 |
+
#, php-format
|
242 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
243 |
+
msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
|
244 |
+
|
245 |
+
#: mercadopago/mercadopago-custom-gateway.php:332
|
246 |
+
msgid "Payment Method"
|
247 |
+
msgstr "Excluir métodos de pago"
|
248 |
+
|
249 |
+
#: mercadopago/mercadopago-custom-gateway.php:333
|
250 |
+
msgid "Credit card number"
|
251 |
+
msgstr "Número de tarjeta de crédito"
|
252 |
+
|
253 |
+
#: mercadopago/mercadopago-custom-gateway.php:334
|
254 |
+
msgid "Expiration month"
|
255 |
+
msgstr "Mes de expiración"
|
256 |
+
|
257 |
+
#: mercadopago/mercadopago-custom-gateway.php:335
|
258 |
+
msgid "Expiration year"
|
259 |
+
msgstr "Año de expiración"
|
260 |
+
|
261 |
+
#: mercadopago/mercadopago-custom-gateway.php:336
|
262 |
+
msgid "Year"
|
263 |
+
msgstr "Año"
|
264 |
+
|
265 |
+
#: mercadopago/mercadopago-custom-gateway.php:337
|
266 |
+
msgid "Month"
|
267 |
+
msgstr "Mes"
|
268 |
+
|
269 |
+
#: mercadopago/mercadopago-custom-gateway.php:338
|
270 |
+
msgid "Card holder name"
|
271 |
+
msgstr "Nombre del titular de la tarjeta"
|
272 |
+
|
273 |
+
#: mercadopago/mercadopago-custom-gateway.php:339
|
274 |
+
msgid "Security code"
|
275 |
+
msgstr "Código de seguridad"
|
276 |
+
|
277 |
+
#: mercadopago/mercadopago-custom-gateway.php:340
|
278 |
+
msgid "Document Type"
|
279 |
+
msgstr "Tipo de Documento"
|
280 |
+
|
281 |
+
#: mercadopago/mercadopago-custom-gateway.php:341
|
282 |
+
msgid "Document number"
|
283 |
+
msgstr "Número del Documento"
|
284 |
+
|
285 |
+
#: mercadopago/mercadopago-custom-gateway.php:342
|
286 |
+
msgid "Issuer"
|
287 |
+
msgstr "Emisor"
|
288 |
+
|
289 |
+
#: mercadopago/mercadopago-custom-gateway.php:343
|
290 |
+
msgid "Installments"
|
291 |
+
msgstr "Cuotas"
|
292 |
+
|
293 |
+
#: mercadopago/mercadopago-custom-gateway.php:347
|
294 |
+
msgid "Parameter cardNumber can not be null/empty"
|
295 |
+
msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
|
296 |
+
|
297 |
+
#: mercadopago/mercadopago-custom-gateway.php:348
|
298 |
+
msgid "Invalid Card Number"
|
299 |
+
msgstr "Numero de tarjeta invalido"
|
300 |
+
|
301 |
+
#: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
|
302 |
+
#: mercadopago/mercadopago-custom-gateway.php:353
|
303 |
+
msgid "Invalid Expiration Date"
|
304 |
+
msgstr "Fecha de vencimiento inválida"
|
305 |
+
|
306 |
+
#: mercadopago/mercadopago-custom-gateway.php:355
|
307 |
+
msgid "Parameter cardholderName can not be null/empty"
|
308 |
+
msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
|
309 |
+
|
310 |
+
#: mercadopago/mercadopago-custom-gateway.php:356
|
311 |
+
msgid "Invalid Card Holder Name"
|
312 |
+
msgstr "Nombre del titular de la tarjeta invalido"
|
313 |
+
|
314 |
+
#: mercadopago/mercadopago-custom-gateway.php:358
|
315 |
+
msgid "Parameter securityCode can not be null/empty"
|
316 |
+
msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
|
317 |
+
|
318 |
+
#: mercadopago/mercadopago-custom-gateway.php:359
|
319 |
+
msgid "Invalid Security Code"
|
320 |
+
msgstr "Código de seguridad invalido"
|
321 |
+
|
322 |
+
#: mercadopago/mercadopago-custom-gateway.php:361
|
323 |
+
msgid "Parameter docType can not be null/empty"
|
324 |
+
msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
|
325 |
+
|
326 |
+
#: mercadopago/mercadopago-custom-gateway.php:362
|
327 |
+
msgid "Invalid Document Type"
|
328 |
+
msgstr "Tipo de Documento invalido"
|
329 |
+
|
330 |
+
#: mercadopago/mercadopago-custom-gateway.php:364
|
331 |
+
msgid "Parameter docNumber can not be null/empty"
|
332 |
+
msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
|
333 |
+
|
334 |
+
#: mercadopago/mercadopago-custom-gateway.php:365
|
335 |
+
msgid "Invalid Document Number"
|
336 |
+
msgstr "Número del Documento invalido"
|
337 |
+
|
338 |
+
#: mercadopago/mercadopago-custom-gateway.php:367
|
339 |
+
msgid "The parameter cardholder.document.subtype can not be null or empty"
|
340 |
+
msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
|
341 |
+
|
342 |
+
#: mercadopago/mercadopago-custom-gateway.php:368
|
343 |
+
msgid "Invalid Document Sub Type"
|
344 |
+
msgstr "Subtipo del documento invalido"
|
345 |
+
|
346 |
+
#: mercadopago/mercadopago-custom-gateway.php:370
|
347 |
+
msgid "Parameter cardIssuerId can not be null/empty"
|
348 |
+
msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
|
349 |
+
|
350 |
+
#: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
|
351 |
+
msgid "Payment approved."
|
352 |
+
msgstr "Pago aprobado."
|
353 |
+
|
354 |
+
#: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
|
355 |
+
msgid "Your payment is under review. In less than 1h, you should be notified by email."
|
356 |
+
msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
|
357 |
+
|
358 |
+
#: mercadopago/mercadopago-custom-gateway.php:418
|
359 |
+
msgid "Check your order resume"
|
360 |
+
msgstr "Ver su hoja de pedido"
|
361 |
+
|
362 |
+
#: mercadopago/mercadopago-custom-gateway.php:431
|
363 |
+
msgid "Your payment was refused. You can try again."
|
364 |
+
msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
|
365 |
+
|
366 |
+
#: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
|
367 |
+
msgid "Click to try again"
|
368 |
+
msgstr "Haga clic para Inténtalo de nuevo"
|
369 |
+
|
370 |
+
#: mercadopago/mercadopago-custom-gateway.php:455
|
371 |
+
msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
|
372 |
+
msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
|
373 |
+
|
374 |
+
#: mercadopago/mercadopago-custom-gateway.php:544
|
375 |
+
msgid "Shipping"
|
376 |
+
msgstr "Envío"
|
377 |
+
|
378 |
+
#: mercadopago/mercadopago-custom-gateway.php:545
|
379 |
+
msgid "Shipping service used by store"
|
380 |
+
msgstr "Servicio de envío utilizado por el almacén"
|
381 |
+
|
382 |
+
#: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
|
383 |
+
msgid "WooCommerce > 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, VEF."
|
405 |
+
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
|
406 |
+
|
407 |
+
#: mercadopago/mercadopago-custom-gateway.php:797
|
408 |
+
msgid "Peru"
|
409 |
+
msgstr "Peru"
|
410 |
+
|
411 |
+
#: mercadopago/mercadopago-custom-gateway.php:809
|
412 |
+
msgid "Click to check your order"
|
413 |
+
msgstr "Haga clic para comprobar su pedido"
|
414 |
+
|
415 |
+
#: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
|
416 |
+
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
417 |
+
msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
|
418 |
+
|
419 |
+
#: mercadopago/mercadopago-custom-gateway.php:816
|
420 |
+
msgid "Reason is: "
|
421 |
+
msgstr "La razón es:"
|
422 |
+
|
423 |
+
#: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
|
424 |
+
msgid "Mercado Pago Request Failure"
|
425 |
+
msgstr "La solicitud de Mercado Pago ha fallado."
|
426 |
+
|
427 |
+
#: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
|
428 |
+
msgid "Payer email"
|
429 |
+
msgstr "Email del comprador"
|
430 |
+
|
431 |
+
#: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
|
432 |
+
msgid "Payment type"
|
433 |
+
msgstr "Método de pago"
|
434 |
+
|
435 |
+
#: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
|
436 |
+
msgid "Mercado Pago Payment ID"
|
437 |
+
msgstr "ID de pago de Mercado Pago"
|
438 |
+
|
439 |
+
#: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
|
440 |
+
msgid "Customer haven't paid yet."
|
441 |
+
msgstr "El cliente todavía no efectuó el pago."
|
442 |
+
|
443 |
+
#: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
|
444 |
+
msgid "Payment under review."
|
445 |
+
msgstr "El pago está pendiente de revisión."
|
446 |
+
|
447 |
+
#: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
|
448 |
+
msgid "The payment was refused. The customer can try again."
|
449 |
+
msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
|
450 |
+
|
451 |
+
#: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
|
452 |
+
msgid "The payment was refunded to the customer."
|
453 |
+
msgstr "El pago fue devuelto al cliente."
|
454 |
+
|
455 |
+
#: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
|
456 |
+
msgid "The payment was cancelled."
|
457 |
+
msgstr "El pago fue cancelado."
|
458 |
+
|
459 |
+
#: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
|
460 |
+
#: mercadopago/mercadopago-gateway.php:909
|
461 |
+
msgid "The payment is under mediation or it was charged-back."
|
462 |
+
msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
|
463 |
+
|
464 |
+
#: mercadopago/mercadopago-gateway.php:51
|
465 |
+
msgid "Mercado Pago - Standard Checkout"
|
466 |
+
msgstr "Mercado Pago - Checkout Estándar"
|
467 |
+
|
468 |
+
#: mercadopago/mercadopago-gateway.php:148
|
469 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
470 |
+
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
471 |
+
|
472 |
+
#: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
|
473 |
+
msgid "Configure your Client_id and Client_secret to have access to more options."
|
474 |
+
msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
|
475 |
+
|
476 |
+
#: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
|
477 |
+
msgid "This field should be an integer."
|
478 |
+
msgstr "Este campo debe ser un número."
|
479 |
+
|
480 |
+
#: mercadopago/mercadopago-gateway.php:187
|
481 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame width."
|
482 |
+
msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
|
483 |
+
|
484 |
+
#: mercadopago/mercadopago-gateway.php:195
|
485 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame height."
|
486 |
+
msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
|
487 |
+
|
488 |
+
#: mercadopago/mercadopago-gateway.php:205
|
489 |
+
msgid "Select the max number of installments for your customers."
|
490 |
+
msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
|
491 |
+
|
492 |
+
#: mercadopago/mercadopago-gateway.php:213
|
493 |
+
msgid "Enable Standard Checkout"
|
494 |
+
msgstr "Habilitar el Checkout Estándar"
|
495 |
+
|
496 |
+
#: mercadopago/mercadopago-gateway.php:224
|
497 |
+
msgid "Insert your Mercado Pago Client_id."
|
498 |
+
msgstr "Inserte su Client_id de Mercado Pago."
|
499 |
+
|
500 |
+
#: mercadopago/mercadopago-gateway.php:231
|
501 |
+
msgid "Insert your Mercado Pago Client_secret."
|
502 |
+
msgstr "Inserte su Client_secret de Mercado Pago."
|
503 |
+
|
504 |
+
#: mercadopago/mercadopago-gateway.php:270
|
505 |
+
msgid "Integration Method"
|
506 |
+
msgstr "Método de integración"
|
507 |
+
|
508 |
+
#: mercadopago/mercadopago-gateway.php:272
|
509 |
+
msgid ""
|
510 |
+
"Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
|
511 |
+
"internal window is embedded to the page layout)."
|
512 |
+
msgstr ""
|
513 |
+
"Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
|
514 |
+
"redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
|
515 |
+
|
516 |
+
#: mercadopago/mercadopago-gateway.php:275
|
517 |
+
msgid "iFrame"
|
518 |
+
msgstr "iFrame"
|
519 |
+
|
520 |
+
#: mercadopago/mercadopago-gateway.php:276
|
521 |
+
msgid "Modal Window"
|
522 |
+
msgstr "Ventana modal"
|
523 |
+
|
524 |
+
#: mercadopago/mercadopago-gateway.php:277
|
525 |
+
msgid "Redirect"
|
526 |
+
msgstr "Redireccionamiento"
|
527 |
+
|
528 |
+
#: mercadopago/mercadopago-gateway.php:281
|
529 |
+
msgid "iFrame Width"
|
530 |
+
msgstr "Ancho del iFrame"
|
531 |
+
|
532 |
+
#: mercadopago/mercadopago-gateway.php:287
|
533 |
+
msgid "iFrame Height"
|
534 |
+
msgstr "Alto del iFrame"
|
535 |
+
|
536 |
+
#: mercadopago/mercadopago-gateway.php:293
|
537 |
+
msgid "Auto Return"
|
538 |
+
msgstr "Redirección automática"
|
539 |
+
|
540 |
+
#: mercadopago/mercadopago-gateway.php:295
|
541 |
+
msgid "Automatic Return After Payment"
|
542 |
+
msgstr "Redirección Automática Luego del Pago"
|
543 |
+
|
544 |
+
#: mercadopago/mercadopago-gateway.php:297
|
545 |
+
msgid "After the payment, client is automatically redirected."
|
546 |
+
msgstr "Después del pago, el cliente será redireccionado automáticamente."
|
547 |
+
|
548 |
+
#: mercadopago/mercadopago-gateway.php:300
|
549 |
+
msgid "Payment Options"
|
550 |
+
msgstr "Opciones de Pago"
|
551 |
+
|
552 |
+
#: mercadopago/mercadopago-gateway.php:305
|
553 |
+
msgid "Max installments"
|
554 |
+
msgstr "Número máximo de cuotas"
|
555 |
+
|
556 |
+
#: mercadopago/mercadopago-gateway.php:311
|
557 |
+
msgid "Exclude Payment Methods"
|
558 |
+
msgstr "Excluir métodos de pago"
|
559 |
+
|
560 |
+
#: mercadopago/mercadopago-gateway.php:428
|
561 |
+
msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
|
562 |
+
msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
|
563 |
+
|
564 |
+
#: mercadopago/mercadopago-gateway.php:436
|
565 |
+
msgid "Cancel order & 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 se le notificará por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta forma de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Custom Inactivo"
|
665 |
+
|
666 |
+
msgid "Standard Checkout is Inactive"
|
667 |
+
msgstr "Checkout Estándar Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
674 |
+
|
675 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
676 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
677 |
+
|
678 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
679 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
|
680 |
+
|
681 |
+
msgid "Your Card"
|
682 |
+
msgstr "Sus Tarjetas"
|
683 |
+
|
684 |
+
msgid "Other Cards"
|
685 |
+
msgstr "Otras Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Card"
|
688 |
+
msgstr "Otra Tarjeta"
|
689 |
+
|
690 |
+
msgid "ended in"
|
691 |
+
msgstr "terminado en"
|
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,678 @@ 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 método de pago para compras realizadas en su tienda virtual."
|
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 método de pago para compras realizadas en su tienda virtual."
|
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:235
|
122 |
-
msgid "Mercado Pago Client_secret"
|
123 |
-
msgstr "Client_secret de Mercado Pago"
|
124 |
|
125 |
-
#: mercadopago/mercadopago-gateway.php:
|
126 |
-
msgid "Insert your Mercado Pago
|
127 |
-
msgstr "Inserte su
|
128 |
|
129 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
174 |
-
msgid "
|
175 |
-
msgstr "
|
176 |
|
177 |
-
#: mercadopago/mercadopago-gateway.php:
|
178 |
-
msgid "
|
179 |
-
msgstr "
|
180 |
|
181 |
-
#: mercadopago/mercadopago-gateway.php:
|
182 |
-
msgid "
|
183 |
-
msgstr "
|
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:287
|
202 |
-
msgid "iFrame Width"
|
203 |
-
msgstr "Ancho del iFrame"
|
204 |
-
|
205 |
-
#: mercadopago/mercadopago-gateway.php:293
|
206 |
-
msgid "iFrame Height"
|
207 |
-
msgstr "Alto del iFrame"
|
208 |
-
|
209 |
-
#: mercadopago/mercadopago-gateway.php:299
|
210 |
-
msgid "Auto Return"
|
211 |
-
msgstr "Redirección automática"
|
212 |
|
213 |
-
#: mercadopago/mercadopago-gateway.php:
|
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-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 "Método de pago"
|
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\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
#. Description of the plugin/theme
|
26 |
msgid "This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store."
|
27 |
msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
28 |
|
29 |
+
#: mercadopago-module.php:69
|
30 |
#, php-format
|
31 |
msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
|
32 |
msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
|
33 |
|
34 |
+
#: mercadopago-module.php:109
|
35 |
+
msgid "Standard Checkout"
|
36 |
+
msgstr "Checkout Estándar"
|
37 |
+
|
38 |
+
#: mercadopago-module.php:113
|
39 |
+
msgid "Custom Checkout"
|
40 |
+
msgstr "Checkout Custom"
|
41 |
+
|
42 |
+
#: mercadopago/mercadopago-custom-gateway.php:48
|
43 |
+
msgid "Mercado Pago - Custom Checkout"
|
44 |
+
msgstr "Mercado Pago - Checkout Custom"
|
45 |
+
|
46 |
+
#: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
|
47 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
48 |
msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
49 |
|
50 |
+
#: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
|
51 |
+
#: mercadopago/mercadopago-gateway.php:716
|
52 |
msgid "Argentine"
|
53 |
msgstr "Argentina"
|
54 |
|
55 |
+
#: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
|
56 |
+
#: mercadopago/mercadopago-gateway.php:717
|
57 |
msgid "Brazil"
|
58 |
msgstr "Brasil"
|
59 |
|
60 |
+
#: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
|
61 |
+
#: mercadopago/mercadopago-gateway.php:719
|
62 |
msgid "Chile"
|
63 |
msgstr "Chile"
|
64 |
|
65 |
+
#: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
|
66 |
+
#: mercadopago/mercadopago-gateway.php:718
|
67 |
msgid "Colombia"
|
68 |
msgstr "Colombia"
|
69 |
|
70 |
+
#: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
|
71 |
+
#: mercadopago/mercadopago-gateway.php:720
|
72 |
msgid "Mexico"
|
73 |
msgstr "México"
|
74 |
|
75 |
+
#: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
|
76 |
msgid "or"
|
77 |
msgstr "o"
|
78 |
|
79 |
+
#: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
|
80 |
+
#: mercadopago/mercadopago-gateway.php:721
|
81 |
msgid "Venezuela"
|
82 |
msgstr "Venezuela"
|
83 |
|
84 |
+
#: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
|
|
|
|
|
|
|
|
|
85 |
msgid "Your credentials are <strong>valid</strong> for"
|
86 |
msgstr "Sus credenciales <strong>son válidas</strong> para"
|
87 |
|
88 |
+
#: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
|
89 |
+
#: mercadopago/mercadopago-gateway.php:170
|
|
|
|
|
|
|
90 |
msgid "Your credentials are <strong>not valid</strong>!"
|
91 |
msgstr "Sus credenciales <strong>no son válidas</strong>!"
|
92 |
|
93 |
+
#: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
msgid "Enable/Disable"
|
95 |
msgstr "Habilitar/Deshabilitar"
|
96 |
|
97 |
+
#: mercadopago/mercadopago-custom-gateway.php:171
|
98 |
+
msgid "Enable Custom Checkout"
|
99 |
+
msgstr "Habilitar Checkout Custom"
|
100 |
|
101 |
+
#: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
|
102 |
msgid "Mercado Pago Credentials"
|
103 |
msgstr "Credenciales de Mercado Pago"
|
104 |
|
105 |
+
#: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
|
106 |
msgid "You can obtain your credentials for"
|
107 |
msgstr "Puedes obtener tus credenciales para"
|
108 |
|
109 |
+
#: mercadopago/mercadopago-custom-gateway.php:182
|
110 |
+
msgid "Insert your Mercado Pago Public key."
|
111 |
+
msgstr "Inserte su Public Key de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
+
#: mercadopago/mercadopago-custom-gateway.php:189
|
114 |
+
msgid "Insert your Mercado Pago Access token."
|
115 |
+
msgstr "Inserte su Access Token de Mercado Pago."
|
116 |
|
117 |
+
#: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
|
118 |
msgid "Instant Payment Notification (IPN) URL"
|
119 |
msgstr "URL da Notificación Instantanea de Pago (IPN)"
|
120 |
|
121 |
+
#: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
|
122 |
msgid "Your IPN URL to receive instant payment notifications is"
|
123 |
msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
|
124 |
|
125 |
+
#: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
|
126 |
msgid "Checkout Options"
|
127 |
msgstr "Opciones de Checkout"
|
128 |
|
129 |
+
#: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
|
130 |
msgid "Title"
|
131 |
msgstr "Título"
|
132 |
|
133 |
+
#: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
|
134 |
msgid "Title shown to the client in the checkout."
|
135 |
msgstr "Título mostrado al cliente en el checkout."
|
136 |
|
137 |
+
#: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
|
138 |
+
msgid "Mercado Pago"
|
139 |
+
msgstr "Mercado Pago"
|
140 |
+
|
141 |
+
#: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
|
142 |
msgid "Description"
|
143 |
msgstr "Descripción"
|
144 |
|
145 |
+
#: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
|
146 |
msgid "Description shown to the client in the checkout."
|
147 |
msgstr "Descripción mostrada al cliente en el checkout."
|
148 |
|
149 |
+
#: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
|
150 |
msgid "Pay with Mercado Pago"
|
151 |
msgstr "Pagar con Mercado Pago"
|
152 |
|
153 |
+
#: mercadopago/mercadopago-custom-gateway.php:216
|
154 |
+
msgid "Statement Descriptor"
|
155 |
+
msgstr "Descripción de la Factura"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
+
#: mercadopago/mercadopago-custom-gateway.php:218
|
158 |
+
msgid "The description that will be shown in your customer's invoice."
|
159 |
+
msgstr "La descripción que se muestra en la factura de su cliente."
|
160 |
|
161 |
+
#: mercadopago/mercadopago-custom-gateway.php:222
|
162 |
+
msgid "Binary Mode"
|
163 |
+
msgstr "Modo binario"
|
164 |
|
165 |
+
#: mercadopago/mercadopago-custom-gateway.php:224
|
166 |
+
msgid "Enable binary mode for checkout status"
|
167 |
+
msgstr "Activar el modo binario para el estado del checkout"
|
168 |
|
169 |
+
#: mercadopago/mercadopago-custom-gateway.php:226
|
170 |
+
msgid "When charging a credit card, only [approved] or [reject] status will be taken."
|
171 |
+
msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
|
172 |
|
173 |
+
#: mercadopago/mercadopago-custom-gateway.php:229
|
174 |
+
msgid "Ticket"
|
175 |
+
msgstr "Ticket"
|
176 |
|
177 |
+
#: mercadopago/mercadopago-custom-gateway.php:231
|
178 |
+
msgid "Enable Ticket for Custom Checkout"
|
179 |
+
msgstr "Habilitar Ticket para Checkout Custom"
|
180 |
|
181 |
+
#: mercadopago/mercadopago-custom-gateway.php:233
|
182 |
+
msgid "Let your customer pay you with tickets"
|
183 |
+
msgstr "Deje que su cliente le paga con tickets"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
|
185 |
+
#: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
|
186 |
+
msgid "Store Category"
|
187 |
+
msgstr "Categoría de la tienda"
|
188 |
|
189 |
+
#: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
|
190 |
+
msgid "Define which type of products your store sells."
|
191 |
+
msgstr "Defina el tipo de productos que su tienda vende."
|
192 |
|
193 |
+
#: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
|
194 |
+
msgid "Store Identificator"
|
195 |
+
msgstr "Identificador de la tienda"
|
196 |
|
197 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
198 |
+
msgid "Please, inform a prefix to your store."
|
199 |
+
msgstr "Por favor, informe un prefijo para su tienda."
|
200 |
|
201 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
202 |
+
msgid ""
|
203 |
+
"If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
|
204 |
+
"identificators."
|
205 |
+
msgstr ""
|
206 |
+
"Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
|
207 |
|
208 |
+
#: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
|
209 |
msgid "Test and Debug Options"
|
210 |
msgstr "Opciones de Prueba y Debug"
|
211 |
|
212 |
+
#: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
|
213 |
msgid "Mercado Pago Sandbox"
|
214 |
msgstr "Sandbox Mercado Pago"
|
215 |
|
216 |
+
#: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
|
217 |
msgid "Enable Mercado Pago Sandbox"
|
218 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
219 |
|
220 |
+
#: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
|
221 |
+
msgid "This option allows you to test payments inside a sandbox environment."
|
222 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
223 |
|
224 |
+
#: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
|
225 |
msgid "Debug and Log"
|
226 |
msgstr "Debug y Log"
|
227 |
|
228 |
+
#: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
|
229 |
msgid "Enable log"
|
230 |
msgstr "Habilitar Log"
|
231 |
|
232 |
+
#: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
|
|
|
233 |
msgid "Register event logs of Mercado Pago, such as API requests, in the file"
|
234 |
msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
|
235 |
|
236 |
+
#: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
|
237 |
+
msgid "File location: "
|
238 |
+
msgstr "Local del archivo: "
|
239 |
|
240 |
+
#: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
|
241 |
+
#, php-format
|
242 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
243 |
+
msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
|
244 |
|
245 |
+
#: mercadopago/mercadopago-custom-gateway.php:332
|
246 |
+
msgid "Payment Method"
|
247 |
+
msgstr "Excluir métodos de pago"
|
248 |
|
249 |
+
#: mercadopago/mercadopago-custom-gateway.php:333
|
250 |
+
msgid "Credit card number"
|
251 |
+
msgstr "Número de tarjeta de crédito"
|
252 |
+
|
253 |
+
#: mercadopago/mercadopago-custom-gateway.php:334
|
254 |
+
msgid "Expiration month"
|
255 |
+
msgstr "Mes de expiración"
|
256 |
+
|
257 |
+
#: mercadopago/mercadopago-custom-gateway.php:335
|
258 |
+
msgid "Expiration year"
|
259 |
+
msgstr "Año de expiración"
|
260 |
+
|
261 |
+
#: mercadopago/mercadopago-custom-gateway.php:336
|
262 |
+
msgid "Year"
|
263 |
+
msgstr "Año"
|
264 |
+
|
265 |
+
#: mercadopago/mercadopago-custom-gateway.php:337
|
266 |
+
msgid "Month"
|
267 |
+
msgstr "Mes"
|
268 |
+
|
269 |
+
#: mercadopago/mercadopago-custom-gateway.php:338
|
270 |
+
msgid "Card holder name"
|
271 |
+
msgstr "Nombre del titular de la tarjeta"
|
272 |
+
|
273 |
+
#: mercadopago/mercadopago-custom-gateway.php:339
|
274 |
+
msgid "Security code"
|
275 |
+
msgstr "Código de seguridad"
|
276 |
|
277 |
+
#: mercadopago/mercadopago-custom-gateway.php:340
|
278 |
+
msgid "Document Type"
|
279 |
+
msgstr "Tipo de Documento"
|
280 |
+
|
281 |
+
#: mercadopago/mercadopago-custom-gateway.php:341
|
282 |
+
msgid "Document number"
|
283 |
+
msgstr "Número del Documento"
|
284 |
+
|
285 |
+
#: mercadopago/mercadopago-custom-gateway.php:342
|
286 |
+
msgid "Issuer"
|
287 |
+
msgstr "Emisor"
|
288 |
+
|
289 |
+
#: mercadopago/mercadopago-custom-gateway.php:343
|
290 |
+
msgid "Installments"
|
291 |
+
msgstr "Mensualidades"
|
292 |
+
|
293 |
+
#: mercadopago/mercadopago-custom-gateway.php:347
|
294 |
+
msgid "Parameter cardNumber can not be null/empty"
|
295 |
+
msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
|
296 |
+
|
297 |
+
#: mercadopago/mercadopago-custom-gateway.php:348
|
298 |
+
msgid "Invalid Card Number"
|
299 |
+
msgstr "Numero de tarjeta invalido"
|
300 |
+
|
301 |
+
#: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
|
302 |
+
#: mercadopago/mercadopago-custom-gateway.php:353
|
303 |
+
msgid "Invalid Expiration Date"
|
304 |
+
msgstr "Fecha de vencimiento inválida"
|
305 |
+
|
306 |
+
#: mercadopago/mercadopago-custom-gateway.php:355
|
307 |
+
msgid "Parameter cardholderName can not be null/empty"
|
308 |
+
msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
|
309 |
+
|
310 |
+
#: mercadopago/mercadopago-custom-gateway.php:356
|
311 |
+
msgid "Invalid Card Holder Name"
|
312 |
+
msgstr "Nombre del titular de la tarjeta invalido"
|
313 |
+
|
314 |
+
#: mercadopago/mercadopago-custom-gateway.php:358
|
315 |
+
msgid "Parameter securityCode can not be null/empty"
|
316 |
+
msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
|
317 |
+
|
318 |
+
#: mercadopago/mercadopago-custom-gateway.php:359
|
319 |
+
msgid "Invalid Security Code"
|
320 |
+
msgstr "Código de seguridad invalido"
|
321 |
+
|
322 |
+
#: mercadopago/mercadopago-custom-gateway.php:361
|
323 |
+
msgid "Parameter docType can not be null/empty"
|
324 |
+
msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
|
325 |
+
|
326 |
+
#: mercadopago/mercadopago-custom-gateway.php:362
|
327 |
+
msgid "Invalid Document Type"
|
328 |
+
msgstr "Tipo de Documento invalido"
|
329 |
+
|
330 |
+
#: mercadopago/mercadopago-custom-gateway.php:364
|
331 |
+
msgid "Parameter docNumber can not be null/empty"
|
332 |
+
msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
|
333 |
+
|
334 |
+
#: mercadopago/mercadopago-custom-gateway.php:365
|
335 |
+
msgid "Invalid Document Number"
|
336 |
+
msgstr "Número del Documento invalido"
|
337 |
+
|
338 |
+
#: mercadopago/mercadopago-custom-gateway.php:367
|
339 |
+
msgid "The parameter cardholder.document.subtype can not be null or empty"
|
340 |
+
msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
|
341 |
+
|
342 |
+
#: mercadopago/mercadopago-custom-gateway.php:368
|
343 |
+
msgid "Invalid Document Sub Type"
|
344 |
+
msgstr "Subtipo del documento invalido"
|
345 |
+
|
346 |
+
#: mercadopago/mercadopago-custom-gateway.php:370
|
347 |
+
msgid "Parameter cardIssuerId can not be null/empty"
|
348 |
+
msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
|
349 |
+
|
350 |
+
#: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
|
351 |
+
msgid "Payment approved."
|
352 |
+
msgstr "Pago aprobado."
|
353 |
+
|
354 |
+
#: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
|
355 |
+
msgid "Your payment is under review. In less than 1h, you should be notified by email."
|
356 |
+
msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
|
357 |
+
|
358 |
+
#: mercadopago/mercadopago-custom-gateway.php:418
|
359 |
+
msgid "Check your order resume"
|
360 |
+
msgstr "Ver su hoja de pedido"
|
361 |
+
|
362 |
+
#: mercadopago/mercadopago-custom-gateway.php:431
|
363 |
+
msgid "Your payment was refused. You can try again."
|
364 |
+
msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
|
365 |
+
|
366 |
+
#: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
|
367 |
msgid "Click to try again"
|
368 |
+
msgstr "Haga clic para Inténtalo de nuevo"
|
369 |
+
|
370 |
+
#: mercadopago/mercadopago-custom-gateway.php:455
|
371 |
+
msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
|
372 |
+
msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
|
373 |
|
374 |
+
#: mercadopago/mercadopago-custom-gateway.php:544
|
375 |
+
msgid "Shipping"
|
376 |
+
msgstr "Envío"
|
377 |
+
|
378 |
+
#: mercadopago/mercadopago-custom-gateway.php:545
|
379 |
+
msgid "Shipping service used by store"
|
380 |
+
msgstr "Servicio de envío utilizado por el almacén"
|
381 |
+
|
382 |
+
#: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
|
383 |
+
msgid "WooCommerce > 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, VEF."
|
405 |
+
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
|
406 |
+
|
407 |
+
#: mercadopago/mercadopago-custom-gateway.php:797
|
408 |
+
msgid "Peru"
|
409 |
+
msgstr "Peru"
|
410 |
+
|
411 |
+
#: mercadopago/mercadopago-custom-gateway.php:809
|
412 |
+
msgid "Click to check your order"
|
413 |
+
msgstr "Haga clic para comprobar su pedido"
|
414 |
+
|
415 |
+
#: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
|
416 |
+
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
417 |
+
msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
|
418 |
+
|
419 |
+
#: mercadopago/mercadopago-custom-gateway.php:816
|
420 |
+
msgid "Reason is: "
|
421 |
+
msgstr "La razón es:"
|
422 |
|
423 |
+
#: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
|
424 |
msgid "Mercado Pago Request Failure"
|
425 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
426 |
|
427 |
+
#: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
|
|
|
|
|
|
|
|
|
428 |
msgid "Payer email"
|
429 |
msgstr "Email del comprador"
|
430 |
|
431 |
+
#: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
|
432 |
msgid "Payment type"
|
433 |
msgstr "Método de pago"
|
434 |
|
435 |
+
#: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
|
436 |
+
msgid "Mercado Pago Payment ID"
|
437 |
+
msgstr "ID de pago de Mercado Pago"
|
438 |
|
439 |
+
#: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
|
440 |
msgid "Customer haven't paid yet."
|
441 |
msgstr "El cliente todavía no efectuó el pago."
|
442 |
|
443 |
+
#: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
|
444 |
msgid "Payment under review."
|
445 |
msgstr "El pago está pendiente de revisión."
|
446 |
|
447 |
+
#: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
|
448 |
msgid "The payment was refused. The customer can try again."
|
449 |
msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
|
450 |
|
451 |
+
#: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
|
452 |
msgid "The payment was refunded to the customer."
|
453 |
msgstr "El pago fue devuelto al cliente."
|
454 |
|
455 |
+
#: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
|
456 |
msgid "The payment was cancelled."
|
457 |
msgstr "El pago fue cancelado."
|
458 |
|
459 |
+
#: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
|
460 |
+
#: mercadopago/mercadopago-gateway.php:909
|
|
|
|
|
|
|
461 |
msgid "The payment is under mediation or it was charged-back."
|
462 |
msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
|
463 |
+
|
464 |
+
#: mercadopago/mercadopago-gateway.php:51
|
465 |
+
msgid "Mercado Pago - Standard Checkout"
|
466 |
+
msgstr "Mercado Pago - Checkout Estándar"
|
467 |
+
|
468 |
+
#: mercadopago/mercadopago-gateway.php:148
|
469 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
470 |
+
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
471 |
+
|
472 |
+
#: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
|
473 |
+
msgid "Configure your Client_id and Client_secret to have access to more options."
|
474 |
+
msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
|
475 |
+
|
476 |
+
#: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
|
477 |
+
msgid "This field should be an integer."
|
478 |
+
msgstr "Este campo debe ser un número."
|
479 |
+
|
480 |
+
#: mercadopago/mercadopago-gateway.php:187
|
481 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame width."
|
482 |
+
msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
|
483 |
+
|
484 |
+
#: mercadopago/mercadopago-gateway.php:195
|
485 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame height."
|
486 |
+
msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
|
487 |
+
|
488 |
+
#: mercadopago/mercadopago-gateway.php:205
|
489 |
+
msgid "Select the max number of installments for your customers."
|
490 |
+
msgstr "Seleccione el número máximo de mensualidades posibles para sus clientes."
|
491 |
+
|
492 |
+
#: mercadopago/mercadopago-gateway.php:213
|
493 |
+
msgid "Enable Standard Checkout"
|
494 |
+
msgstr "Habilitar el Checkout Estándar"
|
495 |
+
|
496 |
+
#: mercadopago/mercadopago-gateway.php:224
|
497 |
+
msgid "Insert your Mercado Pago Client_id."
|
498 |
+
msgstr "Inserte su Client_id de Mercado Pago."
|
499 |
+
|
500 |
+
#: mercadopago/mercadopago-gateway.php:231
|
501 |
+
msgid "Insert your Mercado Pago Client_secret."
|
502 |
+
msgstr "Inserte su Client_secret de Mercado Pago."
|
503 |
+
|
504 |
+
#: mercadopago/mercadopago-gateway.php:270
|
505 |
+
msgid "Integration Method"
|
506 |
+
msgstr "Método de integración"
|
507 |
+
|
508 |
+
#: mercadopago/mercadopago-gateway.php:272
|
509 |
+
msgid ""
|
510 |
+
"Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
|
511 |
+
"internal window is embedded to the page layout)."
|
512 |
+
msgstr ""
|
513 |
+
"Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
|
514 |
+
"redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
|
515 |
+
|
516 |
+
#: mercadopago/mercadopago-gateway.php:275
|
517 |
+
msgid "iFrame"
|
518 |
+
msgstr "iFrame"
|
519 |
+
|
520 |
+
#: mercadopago/mercadopago-gateway.php:276
|
521 |
+
msgid "Modal Window"
|
522 |
+
msgstr "Ventana modal"
|
523 |
+
|
524 |
+
#: mercadopago/mercadopago-gateway.php:277
|
525 |
+
msgid "Redirect"
|
526 |
+
msgstr "Redireccionamiento"
|
527 |
+
|
528 |
+
#: mercadopago/mercadopago-gateway.php:281
|
529 |
+
msgid "iFrame Width"
|
530 |
+
msgstr "Ancho del iFrame"
|
531 |
+
|
532 |
+
#: mercadopago/mercadopago-gateway.php:287
|
533 |
+
msgid "iFrame Height"
|
534 |
+
msgstr "Alto del iFrame"
|
535 |
+
|
536 |
+
#: mercadopago/mercadopago-gateway.php:293
|
537 |
+
msgid "Auto Return"
|
538 |
+
msgstr "Redirección automática"
|
539 |
+
|
540 |
+
#: mercadopago/mercadopago-gateway.php:295
|
541 |
+
msgid "Automatic Return After Payment"
|
542 |
+
msgstr "Redirección Automática Luego del Pago"
|
543 |
+
|
544 |
+
#: mercadopago/mercadopago-gateway.php:297
|
545 |
+
msgid "After the payment, client is automatically redirected."
|
546 |
+
msgstr "Después del pago, el cliente será redireccionado automáticamente."
|
547 |
+
|
548 |
+
#: mercadopago/mercadopago-gateway.php:300
|
549 |
+
msgid "Payment Options"
|
550 |
+
msgstr "Opciones de Pago"
|
551 |
+
|
552 |
+
#: mercadopago/mercadopago-gateway.php:305
|
553 |
+
msgid "Max installments"
|
554 |
+
msgstr "Número máximo de mensualidades"
|
555 |
+
|
556 |
+
#: mercadopago/mercadopago-gateway.php:311
|
557 |
+
msgid "Exclude Payment Methods"
|
558 |
+
msgstr "Excluir métodos de pago"
|
559 |
+
|
560 |
+
#: mercadopago/mercadopago-gateway.php:428
|
561 |
+
msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
|
562 |
+
msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
|
563 |
+
|
564 |
+
#: mercadopago/mercadopago-gateway.php:436
|
565 |
+
msgid "Cancel order & 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 se le notificará por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la mensualidade seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta forma de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Custom Inactivo"
|
665 |
+
|
666 |
+
msgid "Standard Checkout is Inactive"
|
667 |
+
msgstr "Checkout Estándar Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
674 |
+
|
675 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
676 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
677 |
+
|
678 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
679 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
|
680 |
+
|
681 |
+
msgid "Your Card"
|
682 |
+
msgstr "Sus Tarjetas"
|
683 |
+
|
684 |
+
msgid "Other Cards"
|
685 |
+
msgstr "Otras Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Card"
|
688 |
+
msgstr "Otra Tarjeta"
|
689 |
+
|
690 |
+
msgid "ended in"
|
691 |
+
msgstr "terminado en"
|
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,678 @@ 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 método de pago para compras realizadas en su tienda virtual."
|
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 método de pago para compras realizadas en su tienda virtual."
|
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:235
|
122 |
-
msgid "Mercado Pago Client_secret"
|
123 |
-
msgstr "Client_secret de Mercado Pago"
|
124 |
|
125 |
-
#: mercadopago/mercadopago-gateway.php:
|
126 |
-
msgid "Insert your Mercado Pago
|
127 |
-
msgstr "Inserte su
|
128 |
|
129 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:
|
174 |
-
msgid "
|
175 |
-
msgstr "
|
176 |
|
177 |
-
#: mercadopago/mercadopago-gateway.php:
|
178 |
-
msgid "
|
179 |
-
msgstr "
|
180 |
|
181 |
-
#: mercadopago/mercadopago-gateway.php:
|
182 |
-
msgid "
|
183 |
-
msgstr "
|
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:287
|
202 |
-
msgid "iFrame Width"
|
203 |
-
msgstr "Ancho del iFrame"
|
204 |
-
|
205 |
-
#: mercadopago/mercadopago-gateway.php:293
|
206 |
-
msgid "iFrame Height"
|
207 |
-
msgstr "Alto del iFrame"
|
208 |
-
|
209 |
-
#: mercadopago/mercadopago-gateway.php:299
|
210 |
-
msgid "Auto Return"
|
211 |
-
msgstr "Redirección automática"
|
212 |
|
213 |
-
#: mercadopago/mercadopago-gateway.php:
|
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-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 "Método de pago"
|
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\n"
|
23 |
"X-Poedit-SearchPath-0: .\n"
|
24 |
|
25 |
#. Description of the plugin/theme
|
26 |
msgid "This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store."
|
27 |
msgstr "Este es el módulo <strong>oficial</strong> de Mercado Pago para el plugin WooCommerce. Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
28 |
|
29 |
+
#: mercadopago-module.php:69
|
30 |
#, php-format
|
31 |
msgid "Woo Mercado Pago Module depends on the last version of %s to execute!"
|
32 |
msgstr "Woo Mercado Pago Module depende de la última versión de %s para ejecutarse!"
|
33 |
|
34 |
+
#: mercadopago-module.php:109
|
35 |
+
msgid "Standard Checkout"
|
36 |
+
msgstr "Checkout Estándar"
|
37 |
+
|
38 |
+
#: mercadopago-module.php:113
|
39 |
+
msgid "Custom Checkout"
|
40 |
+
msgstr "Checkout Custom"
|
41 |
+
|
42 |
+
#: mercadopago/mercadopago-custom-gateway.php:48
|
43 |
+
msgid "Mercado Pago - Custom Checkout"
|
44 |
+
msgstr "Mercado Pago - Checkout Custom"
|
45 |
+
|
46 |
+
#: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
|
47 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
48 |
msgstr "Este módulo habilita el uso de Mercado Pago en WooCommerce como método de pago para compras realizadas en su tienda virtual."
|
49 |
|
50 |
+
#: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
|
51 |
+
#: mercadopago/mercadopago-gateway.php:716
|
52 |
msgid "Argentine"
|
53 |
msgstr "Argentina"
|
54 |
|
55 |
+
#: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
|
56 |
+
#: mercadopago/mercadopago-gateway.php:717
|
57 |
msgid "Brazil"
|
58 |
msgstr "Brasil"
|
59 |
|
60 |
+
#: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
|
61 |
+
#: mercadopago/mercadopago-gateway.php:719
|
62 |
msgid "Chile"
|
63 |
msgstr "Chile"
|
64 |
|
65 |
+
#: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
|
66 |
+
#: mercadopago/mercadopago-gateway.php:718
|
67 |
msgid "Colombia"
|
68 |
msgstr "Colombia"
|
69 |
|
70 |
+
#: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
|
71 |
+
#: mercadopago/mercadopago-gateway.php:720
|
72 |
msgid "Mexico"
|
73 |
msgstr "México"
|
74 |
|
75 |
+
#: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
|
76 |
msgid "or"
|
77 |
msgstr "o"
|
78 |
|
79 |
+
#: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
|
80 |
+
#: mercadopago/mercadopago-gateway.php:721
|
81 |
msgid "Venezuela"
|
82 |
msgstr "Venezuela"
|
83 |
|
84 |
+
#: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
|
|
|
|
|
|
|
|
|
85 |
msgid "Your credentials are <strong>valid</strong> for"
|
86 |
msgstr "Sus credenciales <strong>son válidas</strong> para"
|
87 |
|
88 |
+
#: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
|
89 |
+
#: mercadopago/mercadopago-gateway.php:170
|
|
|
|
|
|
|
90 |
msgid "Your credentials are <strong>not valid</strong>!"
|
91 |
msgstr "Sus credenciales <strong>no son válidas</strong>!"
|
92 |
|
93 |
+
#: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
msgid "Enable/Disable"
|
95 |
msgstr "Habilitar/Deshabilitar"
|
96 |
|
97 |
+
#: mercadopago/mercadopago-custom-gateway.php:171
|
98 |
+
msgid "Enable Custom Checkout"
|
99 |
+
msgstr "Habilitar Checkout Custom"
|
100 |
|
101 |
+
#: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
|
102 |
msgid "Mercado Pago Credentials"
|
103 |
msgstr "Credenciales de Mercado Pago"
|
104 |
|
105 |
+
#: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
|
106 |
msgid "You can obtain your credentials for"
|
107 |
msgstr "Puedes obtener tus credenciales para"
|
108 |
|
109 |
+
#: mercadopago/mercadopago-custom-gateway.php:182
|
110 |
+
msgid "Insert your Mercado Pago Public key."
|
111 |
+
msgstr "Inserte su Public Key de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
+
#: mercadopago/mercadopago-custom-gateway.php:189
|
114 |
+
msgid "Insert your Mercado Pago Access token."
|
115 |
+
msgstr "Inserte su Access Token de Mercado Pago."
|
116 |
|
117 |
+
#: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
|
118 |
msgid "Instant Payment Notification (IPN) URL"
|
119 |
msgstr "URL da Notificación Instantanea de Pago (IPN)"
|
120 |
|
121 |
+
#: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
|
122 |
msgid "Your IPN URL to receive instant payment notifications is"
|
123 |
msgstr "Su URL de IPN para recibir notificaciones instantáneas de pago es"
|
124 |
|
125 |
+
#: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
|
126 |
msgid "Checkout Options"
|
127 |
msgstr "Opciones de Checkout"
|
128 |
|
129 |
+
#: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
|
130 |
msgid "Title"
|
131 |
msgstr "Título"
|
132 |
|
133 |
+
#: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
|
134 |
msgid "Title shown to the client in the checkout."
|
135 |
msgstr "Título mostrado al cliente en el checkout."
|
136 |
|
137 |
+
#: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
|
138 |
+
msgid "Mercado Pago"
|
139 |
+
msgstr "Mercado Pago"
|
140 |
+
|
141 |
+
#: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
|
142 |
msgid "Description"
|
143 |
msgstr "Descripción"
|
144 |
|
145 |
+
#: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
|
146 |
msgid "Description shown to the client in the checkout."
|
147 |
msgstr "Descripción mostrada al cliente en el checkout."
|
148 |
|
149 |
+
#: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
|
150 |
msgid "Pay with Mercado Pago"
|
151 |
msgstr "Pagar con Mercado Pago"
|
152 |
|
153 |
+
#: mercadopago/mercadopago-custom-gateway.php:216
|
154 |
+
msgid "Statement Descriptor"
|
155 |
+
msgstr "Descripción de la Factura"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
+
#: mercadopago/mercadopago-custom-gateway.php:218
|
158 |
+
msgid "The description that will be shown in your customer's invoice."
|
159 |
+
msgstr "La descripción que se muestra en la factura de su cliente."
|
160 |
|
161 |
+
#: mercadopago/mercadopago-custom-gateway.php:222
|
162 |
+
msgid "Binary Mode"
|
163 |
+
msgstr "Modo binario"
|
164 |
|
165 |
+
#: mercadopago/mercadopago-custom-gateway.php:224
|
166 |
+
msgid "Enable binary mode for checkout status"
|
167 |
+
msgstr "Activar el modo binario para el estado del checkout"
|
168 |
|
169 |
+
#: mercadopago/mercadopago-custom-gateway.php:226
|
170 |
+
msgid "When charging a credit card, only [approved] or [reject] status will be taken."
|
171 |
+
msgstr "Al cargar una tarjeta de crédito, sólo los estados [aprobado] o [rechazar] seran tomados."
|
172 |
|
173 |
+
#: mercadopago/mercadopago-custom-gateway.php:229
|
174 |
+
msgid "Ticket"
|
175 |
+
msgstr "Ticket"
|
176 |
|
177 |
+
#: mercadopago/mercadopago-custom-gateway.php:231
|
178 |
+
msgid "Enable Ticket for Custom Checkout"
|
179 |
+
msgstr "Habilitar Ticket para Checkout Custom"
|
180 |
|
181 |
+
#: mercadopago/mercadopago-custom-gateway.php:233
|
182 |
+
msgid "Let your customer pay you with tickets"
|
183 |
+
msgstr "Deje que su cliente le paga con tickets"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
|
185 |
+
#: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
|
186 |
+
msgid "Store Category"
|
187 |
+
msgstr "Categoría de la tienda"
|
188 |
|
189 |
+
#: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
|
190 |
+
msgid "Define which type of products your store sells."
|
191 |
+
msgstr "Defina el tipo de productos que su tienda vende."
|
192 |
|
193 |
+
#: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
|
194 |
+
msgid "Store Identificator"
|
195 |
+
msgstr "Identificador de la tienda"
|
196 |
|
197 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
198 |
+
msgid "Please, inform a prefix to your store."
|
199 |
+
msgstr "Por favor, informe un prefijo para su tienda."
|
200 |
|
201 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
202 |
+
msgid ""
|
203 |
+
"If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same "
|
204 |
+
"identificators."
|
205 |
+
msgstr ""
|
206 |
+
"Si esta utilizando su cuenta Mercado Pago para múltiples tiendas, asegúrese que este prefijo sea único para no generar pedidos con el mismo identificador."
|
207 |
|
208 |
+
#: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
|
209 |
msgid "Test and Debug Options"
|
210 |
msgstr "Opciones de Prueba y Debug"
|
211 |
|
212 |
+
#: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
|
213 |
msgid "Mercado Pago Sandbox"
|
214 |
msgstr "Sandbox Mercado Pago"
|
215 |
|
216 |
+
#: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
|
217 |
msgid "Enable Mercado Pago Sandbox"
|
218 |
msgstr "Habilitar el sandbox de Mercado Pago"
|
219 |
|
220 |
+
#: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
|
221 |
+
msgid "This option allows you to test payments inside a sandbox environment."
|
222 |
msgstr "Esta opción permite simular un flujo de pagos completo en nuestro entorno Sandbox."
|
223 |
|
224 |
+
#: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
|
225 |
msgid "Debug and Log"
|
226 |
msgstr "Debug y Log"
|
227 |
|
228 |
+
#: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
|
229 |
msgid "Enable log"
|
230 |
msgstr "Habilitar Log"
|
231 |
|
232 |
+
#: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
|
|
|
233 |
msgid "Register event logs of Mercado Pago, such as API requests, in the file"
|
234 |
msgstr "Registrar logs de eventos de Mercado Pago, como llamadas a la API, dentro del archivo"
|
235 |
|
236 |
+
#: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
|
237 |
+
msgid "File location: "
|
238 |
+
msgstr "Local del archivo: "
|
239 |
|
240 |
+
#: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
|
241 |
+
#, php-format
|
242 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
243 |
+
msgstr "Por favor, da tu evaluación con %s en WordPress.org y da su feedback para ayudar a mejorar este módulo!"
|
244 |
|
245 |
+
#: mercadopago/mercadopago-custom-gateway.php:332
|
246 |
+
msgid "Payment Method"
|
247 |
+
msgstr "Excluir métodos de pago"
|
248 |
|
249 |
+
#: mercadopago/mercadopago-custom-gateway.php:333
|
250 |
+
msgid "Credit card number"
|
251 |
+
msgstr "Número de tarjeta de crédito"
|
252 |
+
|
253 |
+
#: mercadopago/mercadopago-custom-gateway.php:334
|
254 |
+
msgid "Expiration month"
|
255 |
+
msgstr "Mes de expiración"
|
256 |
+
|
257 |
+
#: mercadopago/mercadopago-custom-gateway.php:335
|
258 |
+
msgid "Expiration year"
|
259 |
+
msgstr "Año de expiración"
|
260 |
+
|
261 |
+
#: mercadopago/mercadopago-custom-gateway.php:336
|
262 |
+
msgid "Year"
|
263 |
+
msgstr "Año"
|
264 |
+
|
265 |
+
#: mercadopago/mercadopago-custom-gateway.php:337
|
266 |
+
msgid "Month"
|
267 |
+
msgstr "Mes"
|
268 |
+
|
269 |
+
#: mercadopago/mercadopago-custom-gateway.php:338
|
270 |
+
msgid "Card holder name"
|
271 |
+
msgstr "Nombre del titular de la tarjeta"
|
272 |
+
|
273 |
+
#: mercadopago/mercadopago-custom-gateway.php:339
|
274 |
+
msgid "Security code"
|
275 |
+
msgstr "Código de seguridad"
|
276 |
|
277 |
+
#: mercadopago/mercadopago-custom-gateway.php:340
|
278 |
+
msgid "Document Type"
|
279 |
+
msgstr "Tipo de Documento"
|
280 |
+
|
281 |
+
#: mercadopago/mercadopago-custom-gateway.php:341
|
282 |
+
msgid "Document number"
|
283 |
+
msgstr "Número del Documento"
|
284 |
+
|
285 |
+
#: mercadopago/mercadopago-custom-gateway.php:342
|
286 |
+
msgid "Issuer"
|
287 |
+
msgstr "Emisor"
|
288 |
+
|
289 |
+
#: mercadopago/mercadopago-custom-gateway.php:343
|
290 |
+
msgid "Installments"
|
291 |
+
msgstr "Cuotas"
|
292 |
+
|
293 |
+
#: mercadopago/mercadopago-custom-gateway.php:347
|
294 |
+
msgid "Parameter cardNumber can not be null/empty"
|
295 |
+
msgstr "Parámetro [Numero de tarjeta] no puede ser nulo/vacío"
|
296 |
+
|
297 |
+
#: mercadopago/mercadopago-custom-gateway.php:348
|
298 |
+
msgid "Invalid Card Number"
|
299 |
+
msgstr "Numero de tarjeta invalido"
|
300 |
+
|
301 |
+
#: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
|
302 |
+
#: mercadopago/mercadopago-custom-gateway.php:353
|
303 |
+
msgid "Invalid Expiration Date"
|
304 |
+
msgstr "Fecha de vencimiento inválida"
|
305 |
+
|
306 |
+
#: mercadopago/mercadopago-custom-gateway.php:355
|
307 |
+
msgid "Parameter cardholderName can not be null/empty"
|
308 |
+
msgstr "Parámetro [Nombre del titular] no puede ser nulo/vacío"
|
309 |
+
|
310 |
+
#: mercadopago/mercadopago-custom-gateway.php:356
|
311 |
+
msgid "Invalid Card Holder Name"
|
312 |
+
msgstr "Nombre del titular de la tarjeta invalido"
|
313 |
+
|
314 |
+
#: mercadopago/mercadopago-custom-gateway.php:358
|
315 |
+
msgid "Parameter securityCode can not be null/empty"
|
316 |
+
msgstr "Parámetro [Código de seguridad] no puede ser nulo/vacío"
|
317 |
+
|
318 |
+
#: mercadopago/mercadopago-custom-gateway.php:359
|
319 |
+
msgid "Invalid Security Code"
|
320 |
+
msgstr "Código de seguridad invalido"
|
321 |
+
|
322 |
+
#: mercadopago/mercadopago-custom-gateway.php:361
|
323 |
+
msgid "Parameter docType can not be null/empty"
|
324 |
+
msgstr "Parámetro [Tipo de Documento] no puede ser nulo/vacío"
|
325 |
+
|
326 |
+
#: mercadopago/mercadopago-custom-gateway.php:362
|
327 |
+
msgid "Invalid Document Type"
|
328 |
+
msgstr "Tipo de Documento invalido"
|
329 |
+
|
330 |
+
#: mercadopago/mercadopago-custom-gateway.php:364
|
331 |
+
msgid "Parameter docNumber can not be null/empty"
|
332 |
+
msgstr "Parámetro [Número del Documento] no puede ser nulo/vacío"
|
333 |
+
|
334 |
+
#: mercadopago/mercadopago-custom-gateway.php:365
|
335 |
+
msgid "Invalid Document Number"
|
336 |
+
msgstr "Número del Documento invalido"
|
337 |
+
|
338 |
+
#: mercadopago/mercadopago-custom-gateway.php:367
|
339 |
+
msgid "The parameter cardholder.document.subtype can not be null or empty"
|
340 |
+
msgstr "Parámetro [Subtipo del documento] no puede ser nulo/vacío"
|
341 |
+
|
342 |
+
#: mercadopago/mercadopago-custom-gateway.php:368
|
343 |
+
msgid "Invalid Document Sub Type"
|
344 |
+
msgstr "Subtipo del documento invalido"
|
345 |
+
|
346 |
+
#: mercadopago/mercadopago-custom-gateway.php:370
|
347 |
+
msgid "Parameter cardIssuerId can not be null/empty"
|
348 |
+
msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
|
349 |
+
|
350 |
+
#: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
|
351 |
+
msgid "Payment approved."
|
352 |
+
msgstr "Pago aprobado."
|
353 |
+
|
354 |
+
#: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
|
355 |
+
msgid "Your payment is under review. In less than 1h, you should be notified by email."
|
356 |
+
msgstr "Su pago está en revisión. En menos de 1 hora, usted debe ser notificado por correo electrónico."
|
357 |
+
|
358 |
+
#: mercadopago/mercadopago-custom-gateway.php:418
|
359 |
+
msgid "Check your order resume"
|
360 |
+
msgstr "Ver su hoja de pedido"
|
361 |
+
|
362 |
+
#: mercadopago/mercadopago-custom-gateway.php:431
|
363 |
+
msgid "Your payment was refused. You can try again."
|
364 |
+
msgstr "Su pago fue rechazado. Puede intentarlo de nuevo."
|
365 |
+
|
366 |
+
#: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
|
367 |
msgid "Click to try again"
|
368 |
+
msgstr "Haga clic para Inténtalo de nuevo"
|
369 |
+
|
370 |
+
#: mercadopago/mercadopago-custom-gateway.php:455
|
371 |
+
msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
|
372 |
+
msgstr "Un problema se produjo al procesar su pago. Usted esta seguro de que ha rellenado correctamente toda la información en la forma de checkout?"
|
373 |
|
374 |
+
#: mercadopago/mercadopago-custom-gateway.php:544
|
375 |
+
msgid "Shipping"
|
376 |
+
msgstr "Envío"
|
377 |
+
|
378 |
+
#: mercadopago/mercadopago-custom-gateway.php:545
|
379 |
+
msgid "Shipping service used by store"
|
380 |
+
msgstr "Servicio de envío utilizado por el almacén"
|
381 |
+
|
382 |
+
#: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
|
383 |
+
msgid "WooCommerce > 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, VEF."
|
405 |
+
msgstr "no es soportada. Las monedas soportadas son: ARS, BRL, CLP, COP, MXN, VEF."
|
406 |
+
|
407 |
+
#: mercadopago/mercadopago-custom-gateway.php:797
|
408 |
+
msgid "Peru"
|
409 |
+
msgstr "Peru"
|
410 |
+
|
411 |
+
#: mercadopago/mercadopago-custom-gateway.php:809
|
412 |
+
msgid "Click to check your order"
|
413 |
+
msgstr "Haga clic para comprobar su pedido"
|
414 |
+
|
415 |
+
#: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
|
416 |
+
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
417 |
+
msgstr "Se ha producido un error en el procesamiento de su pago. Por favor, inténtelo de nuevo o póngase en contacto con nosotros para Asistencia."
|
418 |
+
|
419 |
+
#: mercadopago/mercadopago-custom-gateway.php:816
|
420 |
+
msgid "Reason is: "
|
421 |
+
msgstr "La razón es:"
|
422 |
|
423 |
+
#: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
|
424 |
msgid "Mercado Pago Request Failure"
|
425 |
msgstr "La solicitud de Mercado Pago ha fallado."
|
426 |
|
427 |
+
#: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
|
|
|
|
|
|
|
|
|
428 |
msgid "Payer email"
|
429 |
msgstr "Email del comprador"
|
430 |
|
431 |
+
#: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
|
432 |
msgid "Payment type"
|
433 |
msgstr "Método de pago"
|
434 |
|
435 |
+
#: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
|
436 |
+
msgid "Mercado Pago Payment ID"
|
437 |
+
msgstr "ID de pago de Mercado Pago"
|
438 |
|
439 |
+
#: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
|
440 |
msgid "Customer haven't paid yet."
|
441 |
msgstr "El cliente todavía no efectuó el pago."
|
442 |
|
443 |
+
#: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
|
444 |
msgid "Payment under review."
|
445 |
msgstr "El pago está pendiente de revisión."
|
446 |
|
447 |
+
#: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
|
448 |
msgid "The payment was refused. The customer can try again."
|
449 |
msgstr "El pago fue rechazado. El cliente puede intentar nuevamente."
|
450 |
|
451 |
+
#: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
|
452 |
msgid "The payment was refunded to the customer."
|
453 |
msgstr "El pago fue devuelto al cliente."
|
454 |
|
455 |
+
#: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
|
456 |
msgid "The payment was cancelled."
|
457 |
msgstr "El pago fue cancelado."
|
458 |
|
459 |
+
#: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
|
460 |
+
#: mercadopago/mercadopago-gateway.php:909
|
|
|
|
|
|
|
461 |
msgid "The payment is under mediation or it was charged-back."
|
462 |
msgstr "El pago esta en mediación o la compra fue desconocida por el cliente."
|
463 |
+
|
464 |
+
#: mercadopago/mercadopago-gateway.php:51
|
465 |
+
msgid "Mercado Pago - Standard Checkout"
|
466 |
+
msgstr "Mercado Pago - Checkout Estándar"
|
467 |
+
|
468 |
+
#: mercadopago/mercadopago-gateway.php:148
|
469 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
470 |
+
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
471 |
+
|
472 |
+
#: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
|
473 |
+
msgid "Configure your Client_id and Client_secret to have access to more options."
|
474 |
+
msgstr "Configure su Client_id y Client_secret para tener acceso a más opciones."
|
475 |
+
|
476 |
+
#: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
|
477 |
+
msgid "This field should be an integer."
|
478 |
+
msgstr "Este campo debe ser un número."
|
479 |
+
|
480 |
+
#: mercadopago/mercadopago-gateway.php:187
|
481 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame width."
|
482 |
+
msgstr "Si su modo de apertura es iFrame, indique el ancho del iFrame."
|
483 |
+
|
484 |
+
#: mercadopago/mercadopago-gateway.php:195
|
485 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame height."
|
486 |
+
msgstr "Si su modo de apertura es iFrame, indique el alto del iFrame."
|
487 |
+
|
488 |
+
#: mercadopago/mercadopago-gateway.php:205
|
489 |
+
msgid "Select the max number of installments for your customers."
|
490 |
+
msgstr "Seleccione el número máximo de cuotas posibles para sus clientes."
|
491 |
+
|
492 |
+
#: mercadopago/mercadopago-gateway.php:213
|
493 |
+
msgid "Enable Standard Checkout"
|
494 |
+
msgstr "Habilitar el Checkout Estándar"
|
495 |
+
|
496 |
+
#: mercadopago/mercadopago-gateway.php:224
|
497 |
+
msgid "Insert your Mercado Pago Client_id."
|
498 |
+
msgstr "Inserte su Client_id de Mercado Pago."
|
499 |
+
|
500 |
+
#: mercadopago/mercadopago-gateway.php:231
|
501 |
+
msgid "Insert your Mercado Pago Client_secret."
|
502 |
+
msgstr "Inserte su Client_secret de Mercado Pago."
|
503 |
+
|
504 |
+
#: mercadopago/mercadopago-gateway.php:270
|
505 |
+
msgid "Integration Method"
|
506 |
+
msgstr "Método de integración"
|
507 |
+
|
508 |
+
#: mercadopago/mercadopago-gateway.php:272
|
509 |
+
msgid ""
|
510 |
+
"Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an "
|
511 |
+
"internal window is embedded to the page layout)."
|
512 |
+
msgstr ""
|
513 |
+
"Seleccione la forma en que sus clientes deben interactuar con Mercado Pago. Ventana Modal (Dentro de su tienda), Redireccionamiento (El cliente es "
|
514 |
+
"redireccionado a Mercado Pago), o iFrame (Ventana de pago incorporada a su página)."
|
515 |
+
|
516 |
+
#: mercadopago/mercadopago-gateway.php:275
|
517 |
+
msgid "iFrame"
|
518 |
+
msgstr "iFrame"
|
519 |
+
|
520 |
+
#: mercadopago/mercadopago-gateway.php:276
|
521 |
+
msgid "Modal Window"
|
522 |
+
msgstr "Ventana modal"
|
523 |
+
|
524 |
+
#: mercadopago/mercadopago-gateway.php:277
|
525 |
+
msgid "Redirect"
|
526 |
+
msgstr "Redireccionamiento"
|
527 |
+
|
528 |
+
#: mercadopago/mercadopago-gateway.php:281
|
529 |
+
msgid "iFrame Width"
|
530 |
+
msgstr "Ancho del iFrame"
|
531 |
+
|
532 |
+
#: mercadopago/mercadopago-gateway.php:287
|
533 |
+
msgid "iFrame Height"
|
534 |
+
msgstr "Alto del iFrame"
|
535 |
+
|
536 |
+
#: mercadopago/mercadopago-gateway.php:293
|
537 |
+
msgid "Auto Return"
|
538 |
+
msgstr "Redirección automática"
|
539 |
+
|
540 |
+
#: mercadopago/mercadopago-gateway.php:295
|
541 |
+
msgid "Automatic Return After Payment"
|
542 |
+
msgstr "Redirección Automática Luego del Pago"
|
543 |
+
|
544 |
+
#: mercadopago/mercadopago-gateway.php:297
|
545 |
+
msgid "After the payment, client is automatically redirected."
|
546 |
+
msgstr "Después del pago, el cliente será redireccionado automáticamente."
|
547 |
+
|
548 |
+
#: mercadopago/mercadopago-gateway.php:300
|
549 |
+
msgid "Payment Options"
|
550 |
+
msgstr "Opciones de Pago"
|
551 |
+
|
552 |
+
#: mercadopago/mercadopago-gateway.php:305
|
553 |
+
msgid "Max installments"
|
554 |
+
msgstr "Número máximo de cuotas"
|
555 |
+
|
556 |
+
#: mercadopago/mercadopago-gateway.php:311
|
557 |
+
msgid "Exclude Payment Methods"
|
558 |
+
msgstr "Excluir métodos de pago"
|
559 |
+
|
560 |
+
#: mercadopago/mercadopago-gateway.php:428
|
561 |
+
msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
|
562 |
+
msgstr "Gracias por su compra. Por favor, prosiga a la página de pago haciendo click en el botón de abajo."
|
563 |
+
|
564 |
+
#: mercadopago/mercadopago-gateway.php:436
|
565 |
+
msgid "Cancel order & 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 se le notificará por correo electrónico."
|
584 |
+
|
585 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
586 |
+
msgstr "Estamos procesando su pago. En menos de 2 días se le notificará por correo electrónico si se ha aprobado el pago o si se necesita información adicional."
|
587 |
+
|
588 |
+
msgid "Check the card number."
|
589 |
+
msgstr "Compruebe el número de tarjeta."
|
590 |
+
|
591 |
+
msgid "Check the expiration date."
|
592 |
+
msgstr "Compruebe la fecha de expiración."
|
593 |
+
|
594 |
+
msgid "Check the information."
|
595 |
+
msgstr "Compruebe la información informada."
|
596 |
+
|
597 |
+
msgid "Check the security code."
|
598 |
+
msgstr "Compruebe el código de seguridad informado."
|
599 |
+
|
600 |
+
msgid "We could not process your payment."
|
601 |
+
msgstr "No se puede procesar su pago."
|
602 |
+
|
603 |
+
msgid "You must authorize the payment of your orders."
|
604 |
+
msgstr "Usted debe autorizar pagos de sus órdenes."
|
605 |
+
|
606 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
607 |
+
msgstr "Póngase en contacto con el emisor de su tarjeta para activarla. El teléfono se encuentra en la parte posterior de su tarjeta."
|
608 |
+
|
609 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
610 |
+
msgstr "Usted ya realizó el pago de esta cantidad. Si tiene que pagar de nuevo, utilizar otra tarjeta u otro método de pago."
|
611 |
+
|
612 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
613 |
+
msgstr "Su pago fue rechazado. Por favor seleccione otro método de pago. Se recomienda dinero."
|
614 |
+
|
615 |
+
msgid "Your payment do not have sufficient funds."
|
616 |
+
msgstr "Su pago no tiene fondos suficientes."
|
617 |
+
|
618 |
+
msgid "Your payment does not process payments with selected installments."
|
619 |
+
msgstr "El pago no puede procesar la cuota seleccionada."
|
620 |
+
|
621 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
622 |
+
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro método de pago."
|
623 |
+
|
624 |
+
msgid "This payment method did not process the payment."
|
625 |
+
msgstr "Esta forma de pago no puede procesar su pago."
|
626 |
+
|
627 |
+
msgid "Mercado Pago - Ticket"
|
628 |
+
msgstr "Mercado Pago - Ticket"
|
629 |
+
|
630 |
+
msgid "Mercado Pago - Credit Card"
|
631 |
+
msgstr "Mercado Pago - Tarjeta de Crédito"
|
632 |
+
|
633 |
+
msgid "Ticket Options"
|
634 |
+
msgstr "Opciones de Ticket"
|
635 |
+
|
636 |
+
msgid "Enable Ticket Payment Method"
|
637 |
+
msgstr "Habilitar Pago con Ticket"
|
638 |
+
|
639 |
+
msgid "Other Bank"
|
640 |
+
msgstr "Otro Banco"
|
641 |
+
|
642 |
+
msgid "Choose"
|
643 |
+
msgstr "Escoger"
|
644 |
+
|
645 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
646 |
+
msgstr "Un problema se produjo al procesar su pago. Por favor, inténtelo de nuevo."
|
647 |
+
|
648 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
649 |
+
msgstr "Gracias por su orden. Por favor, pagar el ticket para tener su solicitud aprobada."
|
650 |
+
|
651 |
+
msgid "Waiting for the ticket payment."
|
652 |
+
msgstr "Esperando el pago del ticket."
|
653 |
+
|
654 |
+
msgid "Print the Ticket"
|
655 |
+
msgstr "Imprimir el Ticket"
|
656 |
+
|
657 |
+
msgid "To reprint the ticket click "
|
658 |
+
msgstr "Para imprimir nuevamente el ticket hace clic "
|
659 |
+
|
660 |
+
msgid "here"
|
661 |
+
msgstr "aquí"
|
662 |
+
|
663 |
+
msgid "Custom Checkout is Inactive"
|
664 |
+
msgstr "Checkout Custom Inactivo"
|
665 |
+
|
666 |
+
msgid "Standard Checkout is Inactive"
|
667 |
+
msgstr "Checkout Estándar Inactivo"
|
668 |
+
|
669 |
+
msgid "Ticket is Inactive"
|
670 |
+
msgstr "Ticket Inactivo"
|
671 |
+
|
672 |
+
msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
673 |
+
msgstr "Por favor, seleccione el emisor de su elección y haga clic en el botón "PLACE ORDER". El ticket será generado y usted será redirigido a imprimirlo."
|
674 |
+
|
675 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
676 |
+
msgstr "Importante: La solicitud sólo será confirmada después de la aprobación del pago."
|
677 |
+
|
678 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
679 |
+
msgstr "Su credencial Access Token de Mercado de Pago parece estar desconfigurado."
|
680 |
+
|
681 |
+
msgid "Your Card"
|
682 |
+
msgstr "Sus Tarjetas"
|
683 |
+
|
684 |
+
msgid "Other Cards"
|
685 |
+
msgstr "Otras Tarjetas"
|
686 |
+
|
687 |
+
msgid "Other Card"
|
688 |
+
msgstr "Otra Tarjeta"
|
689 |
+
|
690 |
+
msgid "ended in"
|
691 |
+
msgstr "terminado en"
|
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,659 @@ 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 depends on the last version of %s to "
|
34 |
-
"execute!"
|
35 |
-
msgstr ""
|
36 |
-
"O Woo Mercado Pago Module depende da última versão do %s para "
|
37 |
-
"executar!"
|
38 |
|
39 |
-
#: mercadopago
|
40 |
-
msgid ""
|
41 |
-
"
|
42 |
-
"purchases made in your virtual store."
|
43 |
-
msgstr ""
|
44 |
-
"Este módulo habilita o WooCommerce a usar o Mercado Pago como meio de "
|
45 |
-
"pagamento para compras realizadas em sua loja virtual."
|
46 |
|
47 |
-
#: mercadopago
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
msgid ""
|
77 |
-
"Select the payment methods that you <strong>don't</strong> want to receive "
|
78 |
-
"with Mercado Pago."
|
79 |
-
msgstr ""
|
80 |
-
"Selecione os meios de pagamento que <strong>não</strong> gostaria de receber "
|
81 |
-
"com o Mercado Pago."
|
82 |
-
|
83 |
-
#: mercadopago/mercadopago-gateway.php:157
|
84 |
msgid "Your credentials are <strong>valid</strong> for"
|
85 |
msgstr "Suas credenciais <strong>são válidas</strong> para"
|
86 |
|
87 |
-
#: mercadopago/mercadopago-gateway.php:
|
88 |
-
#: mercadopago/mercadopago-gateway.php:
|
89 |
-
msgid ""
|
90 |
-
"Configure your Client_id and Client_secret to have access to more options."
|
91 |
-
msgstr "Configure seu Client_id e Client_secret para ter acesso a mais opções."
|
92 |
-
|
93 |
-
#: mercadopago/mercadopago-gateway.php:167
|
94 |
-
#: mercadopago/mercadopago-gateway.php:176
|
95 |
msgid "Your credentials are <strong>not valid</strong>!"
|
96 |
msgstr "Suas credenciais <strong>não são válidas</strong>!"
|
97 |
|
98 |
-
#: mercadopago/mercadopago-gateway.php:
|
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:235
|
149 |
-
msgid "Mercado Pago Client_secret"
|
150 |
-
msgstr "Client_secret do Mercado Pago"
|
151 |
|
152 |
-
#: mercadopago/mercadopago-gateway.php:
|
153 |
-
msgid "Insert your Mercado Pago
|
154 |
-
msgstr "Insira seu
|
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:406
|
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 |
-
msgid ""
|
207 |
-
"
|
208 |
-
"that this prefix is unique as Mercado Pago will not allow orders with same "
|
209 |
-
"identificators."
|
210 |
-
msgstr ""
|
211 |
-
"Se estiver usando sua conta Mercado Pago para múltiplas lojas então você "
|
212 |
-
"deverá assegurar-se que este prefixo seja único pois o Mercado Pago não "
|
213 |
-
"permitirá pedidos com um mesmo identificador."
|
214 |
|
215 |
-
#: mercadopago/mercadopago-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 depends on the last version of %s to execute!"
|
|
|
|
|
|
|
|
|
32 |
|
33 |
+
#: mercadopago-module.php:109
|
34 |
+
msgid "Standard Checkout"
|
35 |
+
msgstr "Checkout Padrão"
|
|
|
|
|
|
|
|
|
36 |
|
37 |
+
#: mercadopago-module.php:113
|
38 |
+
msgid "Custom Checkout"
|
39 |
+
msgstr "Checkout Customizado"
|
40 |
+
|
41 |
+
#: mercadopago/mercadopago-custom-gateway.php:48
|
42 |
+
msgid "Mercado Pago - Custom Checkout"
|
43 |
+
msgstr "Mercado Pago - Checkout Customizado"
|
44 |
+
|
45 |
+
#: mercadopago/mercadopago-custom-gateway.php:51 mercadopago/mercadopago-gateway.php:54
|
46 |
+
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
47 |
+
msgstr "Este módulo habilita o WooCommerce a usar o Mercado Pago como meio de pagamento para compras realizadas em sua loja virtual."
|
48 |
+
|
49 |
+
#: mercadopago/mercadopago-custom-gateway.php:126 mercadopago/mercadopago-custom-gateway.php:791 mercadopago/mercadopago-gateway.php:125
|
50 |
+
#: mercadopago/mercadopago-gateway.php:716
|
51 |
msgid "Argentine"
|
52 |
msgstr "Argentina"
|
53 |
|
54 |
+
#: mercadopago/mercadopago-custom-gateway.php:127 mercadopago/mercadopago-custom-gateway.php:792 mercadopago/mercadopago-gateway.php:126
|
55 |
+
#: mercadopago/mercadopago-gateway.php:717
|
56 |
msgid "Brazil"
|
57 |
msgstr "Brasil"
|
58 |
|
59 |
+
#: mercadopago/mercadopago-custom-gateway.php:128 mercadopago/mercadopago-custom-gateway.php:794 mercadopago/mercadopago-gateway.php:127
|
60 |
+
#: mercadopago/mercadopago-gateway.php:719
|
61 |
msgid "Chile"
|
62 |
msgstr "Chile"
|
63 |
|
64 |
+
#: mercadopago/mercadopago-custom-gateway.php:129 mercadopago/mercadopago-custom-gateway.php:793 mercadopago/mercadopago-gateway.php:128
|
65 |
+
#: mercadopago/mercadopago-gateway.php:718
|
66 |
msgid "Colombia"
|
67 |
msgstr "Colômbia"
|
68 |
|
69 |
+
#: mercadopago/mercadopago-custom-gateway.php:130 mercadopago/mercadopago-custom-gateway.php:795 mercadopago/mercadopago-gateway.php:129
|
70 |
+
#: mercadopago/mercadopago-gateway.php:720
|
71 |
msgid "Mexico"
|
72 |
msgstr "México"
|
73 |
|
74 |
+
#: mercadopago/mercadopago-custom-gateway.php:132 mercadopago/mercadopago-gateway.php:130
|
75 |
msgid "or"
|
76 |
msgstr "ou"
|
77 |
|
78 |
+
#: mercadopago/mercadopago-custom-gateway.php:133 mercadopago/mercadopago-custom-gateway.php:796 mercadopago/mercadopago-gateway.php:131
|
79 |
+
#: mercadopago/mercadopago-gateway.php:721
|
80 |
msgid "Venezuela"
|
81 |
msgstr "Venezuela"
|
82 |
|
83 |
+
#: mercadopago/mercadopago-custom-gateway.php:145 mercadopago/mercadopago-gateway.php:151
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
msgid "Your credentials are <strong>valid</strong> for"
|
85 |
msgstr "Suas credenciais <strong>são válidas</strong> para"
|
86 |
|
87 |
+
#: mercadopago/mercadopago-custom-gateway.php:151 mercadopago/mercadopago-custom-gateway.php:156 mercadopago/mercadopago-gateway.php:161
|
88 |
+
#: mercadopago/mercadopago-gateway.php:170
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
msgid "Your credentials are <strong>not valid</strong>!"
|
90 |
msgstr "Suas credenciais <strong>não são válidas</strong>!"
|
91 |
|
92 |
+
#: mercadopago/mercadopago-custom-gateway.php:169 mercadopago/mercadopago-gateway.php:211
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
msgid "Enable/Disable"
|
94 |
msgstr "Habilitar/Desabilitar"
|
95 |
|
96 |
+
#: mercadopago/mercadopago-custom-gateway.php:171
|
97 |
+
msgid "Enable Custom Checkout"
|
98 |
+
msgstr "Habilitar o Checkout Customizado"
|
99 |
|
100 |
+
#: mercadopago/mercadopago-custom-gateway.php:175 mercadopago/mercadopago-gateway.php:217
|
101 |
msgid "Mercado Pago Credentials"
|
102 |
msgstr "Credenciais do Mercado Pago"
|
103 |
|
104 |
+
#: mercadopago/mercadopago-custom-gateway.php:177 mercadopago/mercadopago-gateway.php:219
|
105 |
msgid "You can obtain your credentials for"
|
106 |
msgstr "Você pode obter suas credenciais para"
|
107 |
|
108 |
+
#: mercadopago/mercadopago-custom-gateway.php:182
|
109 |
+
msgid "Insert your Mercado Pago Public key."
|
110 |
+
msgstr "Insira sua Public Key do Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
|
112 |
+
#: mercadopago/mercadopago-custom-gateway.php:189
|
113 |
+
msgid "Insert your Mercado Pago Access token."
|
114 |
+
msgstr "Insira seu Access Token do Mercado Pago."
|
115 |
|
116 |
+
#: mercadopago/mercadopago-custom-gateway.php:194 mercadopago/mercadopago-gateway.php:236
|
117 |
msgid "Instant Payment Notification (IPN) URL"
|
118 |
msgstr "URL de Notificações Instantâneas de Pagamento (IPN)"
|
119 |
|
120 |
+
#: mercadopago/mercadopago-custom-gateway.php:196 mercadopago/mercadopago-gateway.php:238
|
121 |
msgid "Your IPN URL to receive instant payment notifications is"
|
122 |
msgstr "Sua URL de IPN para receber notificações instantâneas de pagamentos é"
|
123 |
|
124 |
+
#: mercadopago/mercadopago-custom-gateway.php:199 mercadopago/mercadopago-gateway.php:241
|
125 |
msgid "Checkout Options"
|
126 |
msgstr "Opções de Checkout"
|
127 |
|
128 |
+
#: mercadopago/mercadopago-custom-gateway.php:204 mercadopago/mercadopago-gateway.php:246
|
129 |
msgid "Title"
|
130 |
msgstr "Título"
|
131 |
|
132 |
+
#: mercadopago/mercadopago-custom-gateway.php:206 mercadopago/mercadopago-gateway.php:248
|
133 |
msgid "Title shown to the client in the checkout."
|
134 |
msgstr "Título mostrado ao cliente durante o checkout."
|
135 |
|
136 |
+
#: mercadopago/mercadopago-custom-gateway.php:207 mercadopago/mercadopago-custom-gateway.php:219 mercadopago/mercadopago-gateway.php:249
|
137 |
+
msgid "Mercado Pago"
|
138 |
+
msgstr "Mercado Pago"
|
139 |
+
|
140 |
+
#: mercadopago/mercadopago-custom-gateway.php:210 mercadopago/mercadopago-gateway.php:252
|
141 |
msgid "Description"
|
142 |
msgstr "Descrição"
|
143 |
|
144 |
+
#: mercadopago/mercadopago-custom-gateway.php:212 mercadopago/mercadopago-gateway.php:254
|
145 |
msgid "Description shown to the client in the checkout."
|
146 |
msgstr "Descrição mostrada ao cliente durante o checkout."
|
147 |
|
148 |
+
#: mercadopago/mercadopago-custom-gateway.php:213 mercadopago/mercadopago-gateway.php:255 mercadopago/mercadopago-gateway.php:432
|
|
|
149 |
msgid "Pay with Mercado Pago"
|
150 |
msgstr "Pagar com Mercado Pago"
|
151 |
|
152 |
+
#: mercadopago/mercadopago-custom-gateway.php:216
|
153 |
+
msgid "Statement Descriptor"
|
154 |
+
msgstr "Descritor da Nota Fiscal"
|
155 |
+
|
156 |
+
#: mercadopago/mercadopago-custom-gateway.php:218
|
157 |
+
msgid "The description that will be shown in your customer's invoice."
|
158 |
+
msgstr "A descrição que será mostrada na nota fiscal de seu cliente."
|
159 |
+
|
160 |
+
#: mercadopago/mercadopago-custom-gateway.php:222
|
161 |
+
msgid "Binary Mode"
|
162 |
+
msgstr "Modo Binário"
|
163 |
+
|
164 |
+
#: mercadopago/mercadopago-custom-gateway.php:224
|
165 |
+
msgid "Enable binary mode for checkout status"
|
166 |
+
msgstr "Habilita o modo binário para o status do checkout"
|
167 |
+
|
168 |
+
#: mercadopago/mercadopago-custom-gateway.php:226
|
169 |
+
msgid "When charging a credit card, only [approved] or [reject] status will be taken."
|
170 |
+
msgstr "Ao realizar a cobrança no cartão, apenas os status [aprovado] ou [rejeitado] serão considerados."
|
171 |
+
|
172 |
+
#: mercadopago/mercadopago-custom-gateway.php:229
|
173 |
+
msgid "Ticket"
|
174 |
+
msgstr "Boleto"
|
175 |
+
|
176 |
+
#: mercadopago/mercadopago-custom-gateway.php:231
|
177 |
+
msgid "Enable Ticket for Custom Checkout"
|
178 |
+
msgstr "Habilitar Boleto para o Checkout Customizado"
|
179 |
+
|
180 |
+
#: mercadopago/mercadopago-custom-gateway.php:233
|
181 |
+
msgid "Let your customer pay you with tickets"
|
182 |
+
msgstr "Permitir que seus clientes façam pagamentos por boletos"
|
183 |
+
|
184 |
+
#: mercadopago/mercadopago-custom-gateway.php:236 mercadopago/mercadopago-gateway.php:258
|
185 |
msgid "Store Category"
|
186 |
msgstr "Categoria da loja"
|
187 |
|
188 |
+
#: mercadopago/mercadopago-custom-gateway.php:238 mercadopago/mercadopago-gateway.php:260
|
189 |
msgid "Define which type of products your store sells."
|
190 |
msgstr "Defina qual o tipo dos produtos que sua loja vende."
|
191 |
|
192 |
+
#: mercadopago/mercadopago-custom-gateway.php:242 mercadopago/mercadopago-gateway.php:264
|
193 |
msgid "Store Identificator"
|
194 |
msgstr "Identificador da Loja"
|
195 |
|
196 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
197 |
msgid "Please, inform a prefix to your store."
|
198 |
msgstr "Por favor, informe um prefixo para sua loja."
|
199 |
|
200 |
+
#: mercadopago/mercadopago-custom-gateway.php:244 mercadopago/mercadopago-gateway.php:266
|
201 |
+
msgid "If you use your Mercado Pago account on multiple stores you should make sure that this prefix is unique as Mercado Pago will not allow orders with same identificators."
|
202 |
+
msgstr "Se estiver usando sua conta Mercado Pago para múltiplas lojas então você deverá assegurar-se que este prefixo seja único pois o Mercado Pago não permitirá pedidos com um mesmo identificador."
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
|
204 |
+
#: mercadopago/mercadopago-custom-gateway.php:248 mercadopago/mercadopago-gateway.php:318
|
205 |
+
msgid "Test and Debug Options"
|
206 |
+
msgstr "Opções de Teste e Debug"
|
207 |
+
|
208 |
+
#: mercadopago/mercadopago-custom-gateway.php:253 mercadopago/mercadopago-gateway.php:323
|
209 |
+
msgid "Mercado Pago Sandbox"
|
210 |
+
msgstr "Sandbox Mercado Pago"
|
211 |
+
|
212 |
+
#: mercadopago/mercadopago-custom-gateway.php:255 mercadopago/mercadopago-gateway.php:325
|
213 |
+
msgid "Enable Mercado Pago Sandbox"
|
214 |
+
msgstr "Habilitar o sandbox do Mercado Pago"
|
215 |
+
|
216 |
+
#: mercadopago/mercadopago-custom-gateway.php:257 mercadopago/mercadopago-gateway.php:327
|
217 |
+
msgid "This option allows you to test payments inside a sandbox environment."
|
218 |
+
msgstr "Esta opção permite a você testar pagamentos em um ambiente sandbox."
|
219 |
+
|
220 |
+
#: mercadopago/mercadopago-custom-gateway.php:260 mercadopago/mercadopago-gateway.php:330
|
221 |
+
msgid "Debug and Log"
|
222 |
+
msgstr "Debug e Log"
|
223 |
+
|
224 |
+
#: mercadopago/mercadopago-custom-gateway.php:262 mercadopago/mercadopago-gateway.php:332
|
225 |
+
msgid "Enable log"
|
226 |
+
msgstr "Habilitar Log"
|
227 |
+
|
228 |
+
#: mercadopago/mercadopago-custom-gateway.php:264 mercadopago/mercadopago-gateway.php:334
|
229 |
+
msgid "Register event logs of Mercado Pago, such as API requests, in the file"
|
230 |
+
msgstr "Registrar logs de eventos do Mercado Pago, como requisições à API, dentro do arquivo"
|
231 |
+
|
232 |
+
#: mercadopago/mercadopago-custom-gateway.php:265 mercadopago/mercadopago-gateway.php:335
|
233 |
+
msgid "File location: "
|
234 |
+
msgstr "Local do arquivo: "
|
235 |
+
|
236 |
+
#: mercadopago/mercadopago-custom-gateway.php:281 mercadopago/mercadopago-gateway.php:351
|
237 |
+
#, php-format
|
238 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
239 |
+
msgstr "Por favor, avalie-nos com %s na WordPress.org e dê seu feedback para ajudar a melhorar este módulo!"
|
240 |
+
|
241 |
+
#: mercadopago/mercadopago-custom-gateway.php:332
|
242 |
+
msgid "Payment Method"
|
243 |
+
msgstr "Método de Pagamento"
|
244 |
+
|
245 |
+
#: mercadopago/mercadopago-custom-gateway.php:333
|
246 |
+
msgid "Credit card number"
|
247 |
+
msgstr "Número do cartão de crédito"
|
248 |
+
|
249 |
+
#: mercadopago/mercadopago-custom-gateway.php:334
|
250 |
+
msgid "Expiration month"
|
251 |
+
msgstr "Mês de expiração"
|
252 |
+
|
253 |
+
#: mercadopago/mercadopago-custom-gateway.php:335
|
254 |
+
msgid "Expiration year"
|
255 |
+
msgstr "Ano de expiração"
|
256 |
+
|
257 |
+
#: mercadopago/mercadopago-custom-gateway.php:336
|
258 |
+
msgid "Year"
|
259 |
+
msgstr "Ano"
|
260 |
+
|
261 |
+
#: mercadopago/mercadopago-custom-gateway.php:337
|
262 |
+
msgid "Month"
|
263 |
+
msgstr "Mês"
|
264 |
+
|
265 |
+
#: mercadopago/mercadopago-custom-gateway.php:338
|
266 |
+
msgid "Card holder name"
|
267 |
+
msgstr "Nome do dono do cartão"
|
268 |
+
|
269 |
+
#: mercadopago/mercadopago-custom-gateway.php:339
|
270 |
+
msgid "Security code"
|
271 |
+
msgstr "Código de segurança"
|
272 |
+
|
273 |
+
#: mercadopago/mercadopago-custom-gateway.php:340
|
274 |
+
msgid "Document Type"
|
275 |
+
msgstr "Tipo de documento"
|
276 |
+
|
277 |
+
#: mercadopago/mercadopago-custom-gateway.php:341
|
278 |
+
msgid "Document number"
|
279 |
+
msgstr "Número do documento"
|
280 |
+
|
281 |
+
#: mercadopago/mercadopago-custom-gateway.php:342
|
282 |
+
msgid "Issuer"
|
283 |
+
msgstr "Emitente"
|
284 |
+
|
285 |
+
#: mercadopago/mercadopago-custom-gateway.php:343
|
286 |
+
msgid "Installments"
|
287 |
+
msgstr "Parcelas"
|
288 |
+
|
289 |
+
#: mercadopago/mercadopago-custom-gateway.php:347
|
290 |
+
msgid "Parameter cardNumber can not be null/empty"
|
291 |
+
msgstr "O campo [Número do cartão] não pode ser nulo/vazio"
|
292 |
+
|
293 |
+
#: mercadopago/mercadopago-custom-gateway.php:348
|
294 |
+
msgid "Invalid Card Number"
|
295 |
+
msgstr "Número do cartão inválido"
|
296 |
+
|
297 |
+
#: mercadopago/mercadopago-custom-gateway.php:350 mercadopago/mercadopago-custom-gateway.php:351 mercadopago/mercadopago-custom-gateway.php:352
|
298 |
+
#: mercadopago/mercadopago-custom-gateway.php:353
|
299 |
+
msgid "Invalid Expiration Date"
|
300 |
+
msgstr "Data de expiração inválida"
|
301 |
+
|
302 |
+
#: mercadopago/mercadopago-custom-gateway.php:355
|
303 |
+
msgid "Parameter cardholderName can not be null/empty"
|
304 |
+
msgstr "O campo [Nome do dono do cartão] não pode ser nulo/vazio"
|
305 |
+
|
306 |
+
#: mercadopago/mercadopago-custom-gateway.php:356
|
307 |
+
msgid "Invalid Card Holder Name"
|
308 |
+
msgstr "Nome do dono do cartão inválido"
|
309 |
+
|
310 |
+
#: mercadopago/mercadopago-custom-gateway.php:358
|
311 |
+
msgid "Parameter securityCode can not be null/empty"
|
312 |
+
msgstr "O campo [Código de segurança] não pode ser nulo/vazio"
|
313 |
+
|
314 |
+
#: mercadopago/mercadopago-custom-gateway.php:359
|
315 |
+
msgid "Invalid Security Code"
|
316 |
+
msgstr "Código de segurança inválido"
|
317 |
+
|
318 |
+
#: mercadopago/mercadopago-custom-gateway.php:361
|
319 |
+
msgid "Parameter docType can not be null/empty"
|
320 |
+
msgstr "O campo [Tipo do documento] não pode ser nulo/vazio"
|
321 |
+
|
322 |
+
#: mercadopago/mercadopago-custom-gateway.php:362
|
323 |
+
msgid "Invalid Document Type"
|
324 |
+
msgstr "Tipo do documento inválido"
|
325 |
+
|
326 |
+
#: mercadopago/mercadopago-custom-gateway.php:364
|
327 |
+
msgid "Parameter docNumber can not be null/empty"
|
328 |
+
msgstr "O campo [Número do documento] não pode ser nulo/vazio"
|
329 |
+
|
330 |
+
#: mercadopago/mercadopago-custom-gateway.php:365
|
331 |
+
msgid "Invalid Document Number"
|
332 |
+
msgstr "Número do documento inválido"
|
333 |
+
|
334 |
+
#: mercadopago/mercadopago-custom-gateway.php:367
|
335 |
+
msgid "The parameter cardholder.document.subtype can not be null or empty"
|
336 |
+
msgstr "O campo [Subtipo do documento] não pode ser nulo/vazio"
|
337 |
+
|
338 |
+
#: mercadopago/mercadopago-custom-gateway.php:368
|
339 |
+
msgid "Invalid Document Sub Type"
|
340 |
+
msgstr "Subtipo do documento inválido"
|
341 |
+
|
342 |
+
#: mercadopago/mercadopago-custom-gateway.php:370
|
343 |
+
msgid "Parameter cardIssuerId can not be null/empty"
|
344 |
+
msgstr "O campo [Emitente do cartão] não pode ser nulo/vazio"
|
345 |
+
|
346 |
+
#: mercadopago/mercadopago-custom-gateway.php:402 mercadopago/mercadopago-custom-gateway.php:943 mercadopago/mercadopago-gateway.php:869
|
347 |
+
msgid "Payment approved."
|
348 |
+
msgstr "Pagamento aprovado."
|
349 |
+
|
350 |
+
#: mercadopago/mercadopago-custom-gateway.php:416 mercadopago/mercadopago-custom-gateway.php:805
|
351 |
+
msgid "Your payment is under review. In less than 1h, you should be notified by email."
|
352 |
+
msgstr "Seu pagamento está sob análise. Em menos de 1h, você deverá ser notificado por email."
|
353 |
+
|
354 |
+
#: mercadopago/mercadopago-custom-gateway.php:418
|
355 |
+
msgid "Check your order resume"
|
356 |
+
msgstr "Ver o resumo do pedido"
|
357 |
+
|
358 |
+
#: mercadopago/mercadopago-custom-gateway.php:431
|
359 |
+
msgid "Your payment was refused. You can try again."
|
360 |
+
msgstr "Seu pagamento foi rejeitado. Você pode tentar novamente."
|
361 |
+
|
362 |
+
#: mercadopago/mercadopago-custom-gateway.php:435 mercadopago/mercadopago-custom-gateway.php:819 mercadopago/mercadopago-gateway.php:460
|
363 |
+
msgid "Click to try again"
|
364 |
+
msgstr "Clique para tentar novamente"
|
365 |
+
|
366 |
+
#: mercadopago/mercadopago-custom-gateway.php:455
|
367 |
+
msgid "A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?"
|
368 |
+
msgstr "Um problema ocorreu ao processar seu pagamento. Você tem certeza que preencheu corretamente todos os campos do formulário do checkout?"
|
369 |
+
|
370 |
+
#: mercadopago/mercadopago-custom-gateway.php:544
|
371 |
+
msgid "Shipping"
|
372 |
+
msgstr "Método de envio"
|
373 |
+
|
374 |
+
#: mercadopago/mercadopago-custom-gateway.php:545
|
375 |
+
msgid "Shipping service used by store"
|
376 |
+
msgstr "Serviço de envio usado pela loja"
|
377 |
+
|
378 |
+
#: mercadopago/mercadopago-custom-gateway.php:721 mercadopago/mercadopago-gateway.php:649
|
379 |
+
msgid "WooCommerce > System Status > Logs"
|
380 |
+
msgstr "WooCommerce > Status de Sistema > Logs"
|
381 |
+
|
382 |
+
#: mercadopago/mercadopago-custom-gateway.php:766 mercadopago/mercadopago-custom-gateway.php:779 mercadopago/mercadopago-gateway.php:694
|
383 |
+
#: mercadopago/mercadopago-gateway.php:705
|
384 |
+
msgid "Mercado Pago is Inactive"
|
385 |
+
msgstr "O Mercado Pago está inativo"
|
386 |
+
|
387 |
+
#: mercadopago/mercadopago-custom-gateway.php:769
|
388 |
+
msgid "Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured."
|
389 |
+
msgstr "Suas credenciais Public Key/Access Token do Mercado Pago parecem estar desconfiguradas."
|
390 |
+
|
391 |
+
#: mercadopago/mercadopago-custom-gateway.php:771 mercadopago/mercadopago-gateway.php:698
|
392 |
+
msgid "Click here and configure!"
|
393 |
+
msgstr "Clique aqui e configure!"
|
394 |
+
|
395 |
+
#: mercadopago/mercadopago-custom-gateway.php:782 mercadopago/mercadopago-gateway.php:708
|
396 |
+
msgid "The currency"
|
397 |
+
msgstr "As moedas"
|
398 |
+
|
399 |
+
#: mercadopago/mercadopago-custom-gateway.php:783 mercadopago/mercadopago-gateway.php:708
|
400 |
+
msgid "is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF."
|
401 |
+
msgstr "não são suportadas. As moedas suportadas são: ARS, BRL, CLP, COP, MXN, VEF."
|
402 |
+
|
403 |
+
#: mercadopago/mercadopago-custom-gateway.php:797
|
404 |
+
msgid "Peru"
|
405 |
+
msgstr "Peru"
|
406 |
+
|
407 |
+
#: mercadopago/mercadopago-custom-gateway.php:809
|
408 |
+
msgid "Click to check your order"
|
409 |
+
msgstr "Clique para ver o resumo do seu pedido"
|
410 |
+
|
411 |
+
#: mercadopago/mercadopago-custom-gateway.php:814 mercadopago/mercadopago-gateway.php:457
|
412 |
+
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
413 |
+
msgstr "Um erro ocorreu ao processar seu pagamento. Por favor tente novamente ou nos contacte para assistência."
|
414 |
+
|
415 |
+
#: mercadopago/mercadopago-custom-gateway.php:816
|
416 |
+
msgid "Reason is: "
|
417 |
+
msgstr "Causa: "
|
418 |
+
|
419 |
+
#: mercadopago/mercadopago-custom-gateway.php:849 mercadopago/mercadopago-gateway.php:748
|
420 |
+
msgid "Mercado Pago Request Failure"
|
421 |
+
msgstr "Falha na Requisição do Mercado Pago"
|
422 |
+
|
423 |
+
#: mercadopago/mercadopago-custom-gateway.php:918 mercadopago/mercadopago-gateway.php:822
|
424 |
+
msgid "Payer email"
|
425 |
+
msgstr "Email do pagador"
|
426 |
+
|
427 |
+
#: mercadopago/mercadopago-custom-gateway.php:926 mercadopago/mercadopago-gateway.php:829
|
428 |
+
msgid "Payment type"
|
429 |
+
msgstr "Tipo de pagamento"
|
430 |
+
|
431 |
+
#: mercadopago/mercadopago-custom-gateway.php:934 mercadopago/mercadopago-gateway.php:841
|
432 |
+
msgid "Mercado Pago Payment ID"
|
433 |
+
msgstr "ID de Pagamento do Mercado Pago"
|
434 |
+
|
435 |
+
#: mercadopago/mercadopago-custom-gateway.php:950 mercadopago/mercadopago-gateway.php:875
|
436 |
+
msgid "Customer haven't paid yet."
|
437 |
+
msgstr "O cliente ainda não realizou o pagamento."
|
438 |
+
|
439 |
+
#: mercadopago/mercadopago-custom-gateway.php:957 mercadopago/mercadopago-gateway.php:881
|
440 |
+
msgid "Payment under review."
|
441 |
+
msgstr "O pagamento está em revisão."
|
442 |
+
|
443 |
+
#: mercadopago/mercadopago-custom-gateway.php:964 mercadopago/mercadopago-gateway.php:887
|
444 |
+
msgid "The payment was refused. The customer can try again."
|
445 |
+
msgstr "O pagamento foi recusado. O cliente pode tentar novamente."
|
446 |
+
|
447 |
+
#: mercadopago/mercadopago-custom-gateway.php:971 mercadopago/mercadopago-gateway.php:893
|
448 |
+
msgid "The payment was refunded to the customer."
|
449 |
+
msgstr "O pagamento foi estornado ao cliente."
|
450 |
+
|
451 |
+
#: mercadopago/mercadopago-custom-gateway.php:978 mercadopago/mercadopago-gateway.php:899
|
452 |
+
msgid "The payment was cancelled."
|
453 |
+
msgstr "O pagamento foi cancelado."
|
454 |
+
|
455 |
+
#: mercadopago/mercadopago-custom-gateway.php:984 mercadopago/mercadopago-custom-gateway.php:990 mercadopago/mercadopago-gateway.php:904
|
456 |
+
#: mercadopago/mercadopago-gateway.php:909
|
457 |
+
msgid "The payment is under mediation or it was charged-back."
|
458 |
+
msgstr "O pagamento está em mediação ou a compra não foi reconhecida pelo cliente."
|
459 |
+
|
460 |
+
#: mercadopago/mercadopago-gateway.php:51
|
461 |
+
msgid "Mercado Pago - Standard Checkout"
|
462 |
+
msgstr "Mercado Pago - Checkout Padrão"
|
463 |
+
|
464 |
+
#: mercadopago/mercadopago-gateway.php:148
|
465 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
466 |
+
msgstr "Selecione os meios de pagamento que <strong>não</strong> gostaria de receber com o Mercado Pago."
|
467 |
+
|
468 |
+
#: mercadopago/mercadopago-gateway.php:158 mercadopago/mercadopago-gateway.php:167
|
469 |
+
msgid "Configure your Client_id and Client_secret to have access to more options."
|
470 |
+
msgstr "Configure seu Client_id e Client_secret para ter acesso a mais opções."
|
471 |
+
|
472 |
+
#: mercadopago/mercadopago-gateway.php:184 mercadopago/mercadopago-gateway.php:192 mercadopago/mercadopago-gateway.php:202
|
473 |
+
msgid "This field should be an integer."
|
474 |
+
msgstr "Este campo deve ser um número inteiro."
|
475 |
+
|
476 |
+
#: mercadopago/mercadopago-gateway.php:187
|
477 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame width."
|
478 |
+
msgstr "Se o seu método de integração é por iFrame, por favor informe a largura do layout."
|
479 |
+
|
480 |
+
#: mercadopago/mercadopago-gateway.php:195
|
481 |
+
msgid "If your integration method is iFrame, please inform the payment iFrame height."
|
482 |
+
msgstr "Se o seu método de integração é por iFrame, por favor informe a altura do layout."
|
483 |
+
|
484 |
+
#: mercadopago/mercadopago-gateway.php:205
|
485 |
+
msgid "Select the max number of installments for your customers."
|
486 |
+
msgstr "Selecione o número máximo de parcelas que sua loja oferece a seus clientes."
|
487 |
+
|
488 |
+
#: mercadopago/mercadopago-gateway.php:213
|
489 |
+
msgid "Enable Standard Checkout"
|
490 |
+
msgstr "Habilitar o Checkout Padrão"
|
491 |
+
|
492 |
+
#: mercadopago/mercadopago-gateway.php:224
|
493 |
+
msgid "Insert your Mercado Pago Client_id."
|
494 |
+
msgstr "Insira seu Client_id do Mercado Pago."
|
495 |
+
|
496 |
+
#: mercadopago/mercadopago-gateway.php:231
|
497 |
+
msgid "Insert your Mercado Pago Client_secret."
|
498 |
+
msgstr "Insira seu Client_secret do Mercado Pago."
|
499 |
+
|
500 |
+
#: mercadopago/mercadopago-gateway.php:270
|
501 |
msgid "Integration Method"
|
502 |
+
msgstr "Método de Integração"
|
503 |
|
504 |
+
#: mercadopago/mercadopago-gateway.php:272
|
505 |
+
msgid "Select how your clients should interact with Mercado Pago. Modal Window (inside your store), Redirect (Client is redirected to Mercado Pago), or iFrame (an internal window is embedded to the page layout)."
|
506 |
+
msgstr "Selecione como seus clientes irão interagir com o Mercado Pago. Janela Modal (Dentro de sua loja), Redirecionamento (O cliente é redirecionado ao Mercado Pago), ou iFrame (Uma janela de pagamento é incorporada ao layout da página)."
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
|
508 |
+
#: mercadopago/mercadopago-gateway.php:275
|
509 |
msgid "iFrame"
|
510 |
msgstr "iFrame"
|
511 |
|
512 |
+
#: mercadopago/mercadopago-gateway.php:276
|
513 |
msgid "Modal Window"
|
514 |
msgstr "Janela Modal"
|
515 |
|
516 |
+
#: mercadopago/mercadopago-gateway.php:277
|
517 |
msgid "Redirect"
|
518 |
msgstr "Redirecionamento"
|
519 |
|
520 |
+
#: mercadopago/mercadopago-gateway.php:281
|
521 |
msgid "iFrame Width"
|
522 |
msgstr "Largura do iFrame"
|
523 |
|
524 |
+
#: mercadopago/mercadopago-gateway.php:287
|
525 |
msgid "iFrame Height"
|
526 |
msgstr "Altura do iFrame"
|
527 |
|
528 |
+
#: mercadopago/mercadopago-gateway.php:293
|
529 |
msgid "Auto Return"
|
530 |
msgstr "Auto Retorno"
|
531 |
|
532 |
+
#: mercadopago/mercadopago-gateway.php:295
|
533 |
msgid "Automatic Return After Payment"
|
534 |
msgstr "Retorno com Redirecionamento Automático"
|
535 |
|
536 |
+
#: mercadopago/mercadopago-gateway.php:297
|
537 |
msgid "After the payment, client is automatically redirected."
|
538 |
msgstr "Após a compra, o cliente é redirecionado automaticamente."
|
539 |
|
540 |
+
#: mercadopago/mercadopago-gateway.php:300
|
541 |
msgid "Payment Options"
|
542 |
msgstr "Opções de Pagamento"
|
543 |
|
544 |
+
#: mercadopago/mercadopago-gateway.php:305
|
545 |
msgid "Max installments"
|
546 |
msgstr "Número Máximo de Parcelamentos"
|
547 |
|
548 |
+
#: mercadopago/mercadopago-gateway.php:311
|
549 |
msgid "Exclude Payment Methods"
|
550 |
msgstr "Excluir Métodos de Pagamento"
|
551 |
|
552 |
+
#: mercadopago/mercadopago-gateway.php:428
|
553 |
+
msgid "Thank you for your order. Please, proceed with your payment clicking in the bellow button."
|
554 |
+
msgstr "Obrigado pela sua compra. Por favor, prossiga para a página de pagamento clicando no botão abaixo."
|
555 |
|
556 |
+
#: mercadopago/mercadopago-gateway.php:436
|
557 |
+
msgid "Cancel order & Clear cart"
|
558 |
+
msgstr "Cancelar & Limpar carrinho"
|
559 |
|
560 |
+
#: mercadopago/mercadopago-gateway.php:446
|
561 |
+
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
562 |
+
msgstr "Obrigado pela sua compra. Prossiga com seu pagamento completando as informações abaixo."
|
563 |
|
564 |
+
#: mercadopago/mercadopago-gateway.php:697
|
565 |
+
msgid "Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured."
|
566 |
+
msgstr "Suas credenciais Client_id/Client_secret do Mercado Pago parecem estar desconfiguradas."
|
567 |
|
568 |
+
msgid " as it appears in your card ..."
|
569 |
+
msgstr " como aparece no seu cartão ..."
|
|
|
570 |
|
571 |
+
msgid "Done, your payment was accredited!"
|
572 |
+
msgstr "Pronto, seu pagamento foi aprovado!"
|
|
|
573 |
|
574 |
+
msgid "We are processing the payment. In less than an hour we will e-mail you the results."
|
575 |
+
msgstr "Estamos processando seu pagamento. Em menos de uma hora você será notificado por email."
|
|
|
|
|
|
|
|
|
576 |
|
577 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
578 |
+
msgstr "Estamos processando seu pagamento. Em menos de 2 dias úteis você será notificado por email se o pagamento foi aprovado ou se são necessárias informações adicionais."
|
|
|
|
|
|
|
|
|
|
|
579 |
|
580 |
+
msgid "Check the card number."
|
581 |
+
msgstr "Verifique o número do cartão."
|
|
|
582 |
|
583 |
+
msgid "Check the expiration date."
|
584 |
+
msgstr "Verifique a data de expiração."
|
|
|
|
|
|
|
|
|
|
|
585 |
|
586 |
+
msgid "Check the information."
|
587 |
+
msgstr "Verifique as informações preenchidas."
|
|
|
|
|
|
|
|
|
|
|
588 |
|
589 |
+
msgid "Check the security code."
|
590 |
+
msgstr "Verifique o código de segurança informado."
|
|
|
591 |
|
592 |
+
msgid "We could not process your payment."
|
593 |
+
msgstr "Não foi possível processar seu pagamento."
|
|
|
|
|
594 |
|
595 |
+
msgid "You must authorize the payment of your orders."
|
596 |
+
msgstr "Você precisa autorizar o pagamento de seus pedidos."
|
|
|
|
|
|
|
|
|
|
|
597 |
|
598 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
599 |
+
msgstr "Contacte o emissor de seu cartão para ativá-lo. O telefone está no verso do seu cartão."
|
|
|
600 |
|
601 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
602 |
+
msgstr "Você já realizou o pagamento para esse valor. Se precisa pagar novamente, use outro cartão ou outro método de pagamento."
|
|
|
603 |
|
604 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
605 |
+
msgstr "Seu pagamento foi rejeitado. Escolha outro método de pagamento. Recomenda-se dinheiro."
|
|
|
|
|
|
|
|
|
606 |
|
607 |
+
msgid "Your payment do not have sufficient funds."
|
608 |
+
msgstr "Seu pagamento não possui fundos suficientes."
|
|
|
609 |
|
610 |
+
msgid "Your payment does not process payments with selected installments."
|
611 |
+
msgstr "Seu pagamento não pode processar o parcelamento selecionado."
|
|
|
612 |
|
613 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
614 |
+
msgstr "Você atingiu o limite de tentativas permitidas. Escolha outro cartão ou outro método de pagamento."
|
|
|
615 |
|
616 |
+
msgid "This payment method did not process the payment."
|
617 |
+
msgstr "Este método de pagamento não pôde processar o seu pagamento."
|
|
|
618 |
|
619 |
+
msgid "Mercado Pago - Ticket"
|
620 |
+
msgstr "Mercado Pago - Boleto"
|
|
|
621 |
|
622 |
+
msgid "Mercado Pago - Credit Card"
|
623 |
+
msgstr "Mercado Pago - Cartão de Crédito"
|
|
|
624 |
|
625 |
+
msgid "Ticket Options"
|
626 |
+
msgstr "Opções do Boleto"
|
|
|
627 |
|
628 |
+
msgid "Enable Ticket Payment Method"
|
629 |
+
msgstr "Habilitar o Método de Pagamento por Boleto"
|
|
|
630 |
|
631 |
+
msgid "Other Bank"
|
632 |
+
msgstr "Outro Banco"
|
|
|
633 |
|
634 |
+
msgid "Choose"
|
635 |
+
msgstr "Escolha"
|
|
|
636 |
|
637 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
638 |
+
msgstr "Um problema ocorreu ao processar seu pagamento. Por favor, tente novamente."
|
|
|
639 |
|
640 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
641 |
+
msgstr "Obrigado pelo seu pedido. Por favor, pague o boleto para ter seu pedido aprovado."
|
642 |
+
|
643 |
+
msgid "Waiting for the ticket payment."
|
644 |
+
msgstr "Aguardando o pagamento do boleto."
|
645 |
+
|
646 |
+
msgid "Print the Ticket"
|
647 |
+
msgstr "Imprimir o boleto"
|
648 |
+
|
649 |
+
msgid "To reprint the ticket click "
|
650 |
+
msgstr "Para reimprimir o boleto clique "
|
651 |
+
|
652 |
+
msgid "here"
|
653 |
+
msgstr "aqui"
|
654 |
+
|
655 |
+
msgid "Custom Checkout is Inactive"
|
656 |
+
msgstr "O Checkout Customizado está Inativo"
|
657 |
+
|
658 |
+
msgid "Standard Checkout is Inactive"
|
659 |
+
msgstr "O Checkout Padrão está Inativo"
|
660 |
+
|
661 |
+
msgid "Ticket is Inactive"
|
662 |
+
msgstr "O Boleto está Inativo"
|
663 |
+
|
664 |
+
msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
665 |
+
msgstr "Por favor, selecione o emissor de sua preferência e clique no botão "FINALIZAR COMPRA". O boleto será gerado e você será redirecionado para imprimí-lo."
|
666 |
+
|
667 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
668 |
+
msgstr "Importante: O pedido só será confirmado após a aprovação do pagamento."
|
669 |
+
|
670 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
671 |
+
msgstr "Sua credencial Access Token do Mercado Pago parece estar desconfigurada."
|
672 |
+
|
673 |
+
msgid "Your Card"
|
674 |
+
msgstr "Seus Cartões"
|
675 |
+
|
676 |
+
msgid "Other Cards"
|
677 |
+
msgstr "Outros Cartões"
|
678 |
+
|
679 |
+
msgid "Other Card"
|
680 |
+
msgstr "Outro Cartão"
|
681 |
+
|
682 |
+
msgid "ended in"
|
683 |
+
msgstr "terminado em"
|
languages/woocommerce-mercadopago-module.pot
CHANGED
@@ -64,6 +64,10 @@ msgid ""
|
|
64 |
"execute!"
|
65 |
msgstr ""
|
66 |
|
|
|
|
|
|
|
|
|
67 |
#: mercadopago/mercadopago-gateway.php:63
|
68 |
msgid ""
|
69 |
"This module enables "
|
@@ -210,6 +214,18 @@ msgid ""
|
|
210 |
"Client_secret."
|
211 |
msgstr ""
|
212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
#: mercadopago/mercadopago-gateway.php:242
|
214 |
msgid ""
|
215 |
"Instant Payment "
|
@@ -348,6 +364,18 @@ msgstr ""
|
|
348 |
msgid "Max installments"
|
349 |
msgstr ""
|
350 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
#: mercadopago/mercadopago-gateway.php:317
|
352 |
msgid ""
|
353 |
"Exclude Payment Methods"
|
@@ -371,7 +399,7 @@ msgstr ""
|
|
371 |
|
372 |
#: mercadopago/mercadopago-gateway.php:333
|
373 |
msgid ""
|
374 |
-
"This
|
375 |
"to test payments inside "
|
376 |
"a sandbox environment."
|
377 |
msgstr ""
|
@@ -393,6 +421,16 @@ msgid ""
|
|
393 |
"file"
|
394 |
msgstr ""
|
395 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
#: mercadopago/mercadopago-gateway.php:402
|
397 |
msgid ""
|
398 |
"Thank you for your "
|
@@ -460,6 +498,10 @@ msgid ""
|
|
460 |
"MXN, USD, VEF."
|
461 |
msgstr ""
|
462 |
|
|
|
|
|
|
|
|
|
463 |
#: mercadopago/mercadopago-gateway.php:714
|
464 |
msgid ""
|
465 |
"Mercado Pago Request "
|
@@ -525,3 +567,123 @@ msgid ""
|
|
525 |
"mediation or it was "
|
526 |
"charged-back."
|
527 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
"execute!"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: mercadopago-module.php:110
|
68 |
+
msgid "Settings"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
#: mercadopago/mercadopago-gateway.php:63
|
72 |
msgid ""
|
73 |
"This module enables "
|
214 |
"Client_secret."
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: mercadopago/mercadopago-gateway.php:265
|
218 |
+
msgid "Custom Checkout"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: mercadopago/mercadopago-gateway.php:267
|
222 |
+
msgid "Enable Custom Checkout"
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: mercadopago/mercadopago-gateway.php:269
|
226 |
+
msgid "This option allows your store to present the custom/transparent checkout to your customers."
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
#: mercadopago/mercadopago-gateway.php:242
|
230 |
msgid ""
|
231 |
"Instant Payment "
|
364 |
msgid "Max installments"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: mercadopago/mercadopago-gateway.php:339
|
368 |
+
msgid "Payment with 2 Credit Card"
|
369 |
+
msgstr ""
|
370 |
+
|
371 |
+
#: mercadopago/mercadopago-gateway.php:341
|
372 |
+
msgid "Enable payments with 2 credit cards"
|
373 |
+
msgstr ""
|
374 |
+
|
375 |
+
#: mercadopago/mercadopago-gateway.php:343
|
376 |
+
msgid "Enable this option to let your customers use 2 credit cards to pay orders."
|
377 |
+
msgstr ""
|
378 |
+
|
379 |
#: mercadopago/mercadopago-gateway.php:317
|
380 |
msgid ""
|
381 |
"Exclude Payment Methods"
|
399 |
|
400 |
#: mercadopago/mercadopago-gateway.php:333
|
401 |
msgid ""
|
402 |
+
"This option allows you "
|
403 |
"to test payments inside "
|
404 |
"a sandbox environment."
|
405 |
msgstr ""
|
421 |
"file"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: mercadopago/mercadopago-gateway.php:380
|
425 |
+
#, php-format
|
426 |
+
msgid "File location: "
|
427 |
+
msgstr ""
|
428 |
+
|
429 |
+
#: mercadopago/mercadopago-gateway.php:398
|
430 |
+
#, php-format
|
431 |
+
msgid "Please, rate us %s on WordPress.org and give your feedback to help improve this module!"
|
432 |
+
msgstr ""
|
433 |
+
|
434 |
#: mercadopago/mercadopago-gateway.php:402
|
435 |
msgid ""
|
436 |
"Thank you for your "
|
498 |
"MXN, USD, VEF."
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: mercadopago/mercadopago-gateway.php:712
|
502 |
+
msgid "WooCommerce > System Status > Logs"
|
503 |
+
msgstr ""
|
504 |
+
|
505 |
#: mercadopago/mercadopago-gateway.php:714
|
506 |
msgid ""
|
507 |
"Mercado Pago Request "
|
567 |
"mediation or it was "
|
568 |
"charged-back."
|
569 |
msgstr ""
|
570 |
+
|
571 |
+
msgid " as it appears in your card ..."
|
572 |
+
msgstr ""
|
573 |
+
|
574 |
+
msgid "Done, your payment was accredited!"
|
575 |
+
msgstr ""
|
576 |
+
|
577 |
+
msgid "We are processing the payment. In less than an hour we will e-mail you the results."
|
578 |
+
msgstr ""
|
579 |
+
|
580 |
+
msgid "We are processing the payment. In less than 2 business days we will tell you by e-mail whether it has accredited or we need more information."
|
581 |
+
msgstr ""
|
582 |
+
|
583 |
+
msgid "Check the card number."
|
584 |
+
msgstr ""
|
585 |
+
|
586 |
+
msgid "Check the expiration date."
|
587 |
+
msgstr ""
|
588 |
+
|
589 |
+
msgid "Check the information."
|
590 |
+
msgstr ""
|
591 |
+
|
592 |
+
msgid "Check the security code."
|
593 |
+
msgstr ""
|
594 |
+
|
595 |
+
msgid "We could not process your payment."
|
596 |
+
msgstr ""
|
597 |
+
|
598 |
+
msgid "You must authorize the payment of your orders."
|
599 |
+
msgstr ""
|
600 |
+
|
601 |
+
msgid "Call your card issuer to activate your card. The phone is on the back of your card."
|
602 |
+
msgstr ""
|
603 |
+
|
604 |
+
msgid "You already made a payment for that amount. If you need to repay, use another card or other payment method."
|
605 |
+
msgstr ""
|
606 |
+
|
607 |
+
msgid "Your payment was rejected. Choose another payment method. We recommend cash."
|
608 |
+
msgstr ""
|
609 |
+
|
610 |
+
msgid "Your payment do not have sufficient funds."
|
611 |
+
msgstr ""
|
612 |
+
|
613 |
+
msgid "Your payment does not process payments with selected installments."
|
614 |
+
msgstr ""
|
615 |
+
|
616 |
+
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
617 |
+
msgstr ""
|
618 |
+
|
619 |
+
msgid "This payment method did not process the payment."
|
620 |
+
msgstr ""
|
621 |
+
|
622 |
+
msgid "Ticket"
|
623 |
+
msgstr ""
|
624 |
+
|
625 |
+
msgid "Mercado Pago - Ticket"
|
626 |
+
msgstr ""
|
627 |
+
|
628 |
+
msgid "Mercado Pago - Credit Card"
|
629 |
+
msgstr ""
|
630 |
+
|
631 |
+
msgid "Ticket Options"
|
632 |
+
msgstr ""
|
633 |
+
|
634 |
+
msgid "Enable Ticket Payment Method"
|
635 |
+
msgstr ""
|
636 |
+
|
637 |
+
msgid "Other Bank"
|
638 |
+
msgstr ""
|
639 |
+
|
640 |
+
msgid "Choose"
|
641 |
+
msgstr ""
|
642 |
+
|
643 |
+
msgid "A problem was occurred when processing your payment. Please, try again."
|
644 |
+
msgstr ""
|
645 |
+
|
646 |
+
msgid "Thank you for your order. Please, pay the ticket to get your order approved."
|
647 |
+
msgstr ""
|
648 |
+
|
649 |
+
msgid "Waiting for the ticket payment."
|
650 |
+
msgstr ""
|
651 |
+
|
652 |
+
msgid "Print the Ticket"
|
653 |
+
msgstr ""
|
654 |
+
|
655 |
+
msgid "To reprint the ticket click "
|
656 |
+
msgstr ""
|
657 |
+
|
658 |
+
msgid "here"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
+
msgid "Custom Checkout is Inactive"
|
662 |
+
msgstr ""
|
663 |
+
|
664 |
+
msgid "Standard Checkout is Inactive"
|
665 |
+
msgstr ""
|
666 |
+
|
667 |
+
msgid "Ticket is Inactive"
|
668 |
+
msgstr ""
|
669 |
+
|
670 |
+
msgid "Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it."
|
671 |
+
msgstr ""
|
672 |
+
|
673 |
+
msgid "Important: The order will be confirmed only after the payment approval."
|
674 |
+
msgstr ""
|
675 |
+
|
676 |
+
msgid "Your Mercado Pago credential Access Token appears to be misconfigured."
|
677 |
+
msgstr ""
|
678 |
+
|
679 |
+
msgid "Your Card"
|
680 |
+
msgstr ""
|
681 |
+
|
682 |
+
msgid "Other Cards"
|
683 |
+
msgstr ""
|
684 |
+
|
685 |
+
msgid "Other Card"
|
686 |
+
msgstr ""
|
687 |
+
|
688 |
+
msgid "ended in"
|
689 |
+
msgstr ""
|
mercadopago-module.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI: https://www.mercadopago.com.br/developers/
|
8 |
* Developer: Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
9 |
* Copyright: Copyright(c) MercadoPago [http://www.mercadopago.com]
|
10 |
-
* Version:
|
11 |
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
12 |
* Text Domain: woocommerce-mercadopago-module
|
13 |
* Domain Path: /languages/
|
@@ -20,22 +20,20 @@
|
|
20 |
*/
|
21 |
|
22 |
// Exit if accessed directly
|
23 |
-
if (!defined('ABSPATH')) {
|
24 |
exit;
|
25 |
}
|
26 |
|
27 |
// Check if class is already loaded
|
28 |
-
if (!class_exists('WC_WooMercadoPago_Module')) :
|
29 |
|
30 |
-
|
31 |
-
* WooCommerce MercadoPago Module main class
|
32 |
-
*/
|
33 |
class WC_WooMercadoPago_Module {
|
34 |
|
35 |
// Singleton design pattern
|
36 |
protected static $instance = null;
|
37 |
public static function initMercadoPagoGatewayClass() {
|
38 |
-
if (null == self::$instance) {
|
39 |
self::$instance = new self;
|
40 |
}
|
41 |
return self::$instance;
|
@@ -44,37 +42,50 @@ class WC_WooMercadoPago_Module {
|
|
44 |
// Class constructor
|
45 |
private function __construct() {
|
46 |
// load plugin text domain
|
47 |
-
add_action('init', array($this, 'load_plugin_textdomain'));
|
48 |
// verify if WooCommerce is already installed
|
49 |
-
if (class_exists('WC_Payment_Gateway')) {
|
50 |
include_once 'mercadopago/mercadopago-gateway.php';
|
51 |
-
|
|
|
|
|
|
|
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 |
-
__('Woo Mercado Pago Module depends on the last version of %s to execute!', 'woocommerce-mercadopago-module'),
|
70 |
'<a href="http://wordpress.org/extend/plugins/woocommerce/">' . 'WooCommerce' . '</a>'
|
71 |
) .
|
72 |
'</p></div>';
|
73 |
}
|
74 |
|
75 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
public static function woocommerceInstance() {
|
77 |
-
if (function_exists('WC')) {
|
78 |
return WC();
|
79 |
} else {
|
80 |
global $woocommerce;
|
@@ -82,28 +93,35 @@ class WC_WooMercadoPago_Module {
|
|
82 |
}
|
83 |
}
|
84 |
|
85 |
-
|
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 |
|
7 |
* Author URI: https://www.mercadopago.com.br/developers/
|
8 |
* Developer: Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
9 |
* Copyright: Copyright(c) MercadoPago [http://www.mercadopago.com]
|
10 |
+
* Version: 2.0.0
|
11 |
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
12 |
* Text Domain: woocommerce-mercadopago-module
|
13 |
* Domain Path: /languages/
|
20 |
*/
|
21 |
|
22 |
// Exit if accessed directly
|
23 |
+
if ( !defined( 'ABSPATH' ) ) {
|
24 |
exit;
|
25 |
}
|
26 |
|
27 |
// Check if class is already loaded
|
28 |
+
if ( !class_exists( 'WC_WooMercadoPago_Module' ) ) :
|
29 |
|
30 |
+
// WooCommerce MercadoPago Module main class
|
|
|
|
|
31 |
class WC_WooMercadoPago_Module {
|
32 |
|
33 |
// Singleton design pattern
|
34 |
protected static $instance = null;
|
35 |
public static function initMercadoPagoGatewayClass() {
|
36 |
+
if ( null == self::$instance ) {
|
37 |
self::$instance = new self;
|
38 |
}
|
39 |
return self::$instance;
|
42 |
// Class constructor
|
43 |
private function __construct() {
|
44 |
// load plugin text domain
|
45 |
+
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
|
46 |
// verify if WooCommerce is already installed
|
47 |
+
if ( class_exists( 'WC_Payment_Gateway' ) ) {
|
48 |
include_once 'mercadopago/mercadopago-gateway.php';
|
49 |
+
include_once 'mercadopago/mercadopago-custom-gateway.php';
|
50 |
+
include_once 'mercadopago/mercadopago-ticket-gateway.php';
|
51 |
+
add_filter( 'woocommerce_payment_gateways', array( $this, 'addGateway' ) );
|
52 |
+
add_filter( 'woomercadopago_settings_link_' . plugin_basename( __FILE__ ), array( $this, 'woomercadopago_settings_link' ) );
|
53 |
} else {
|
54 |
+
add_action( 'admin_notices', array( $this, 'notifyWooCommerceMiss' ) );
|
55 |
}
|
56 |
}
|
57 |
|
58 |
// As well as defining your class, you need to also tell WooCommerce (WC) that
|
59 |
// it exists. Do this by filtering woocommerce_payment_gateways.
|
60 |
+
public function addGateway( $methods ) {
|
61 |
$methods[] = 'WC_WooMercadoPago_Gateway';
|
62 |
+
$methods[] = 'WC_WooMercadoPagoCustom_Gateway';
|
63 |
+
$methods[] = 'WC_WooMercadoPagoTicket_Gateway';
|
64 |
return $methods;
|
65 |
}
|
66 |
|
67 |
// Places a warning error to notify user that WooCommerce is missing
|
68 |
public function notifyWooCommerceMiss() {
|
69 |
echo
|
70 |
+
'<div class="error"><p>' . sprintf(
|
71 |
+
__( 'Woo Mercado Pago Module depends on the last version of %s to execute!', 'woocommerce-mercadopago-module' ),
|
|
|
72 |
'<a href="http://wordpress.org/extend/plugins/woocommerce/">' . 'WooCommerce' . '</a>'
|
73 |
) .
|
74 |
'</p></div>';
|
75 |
}
|
76 |
|
77 |
+
// Multi-language plugin
|
78 |
+
public function load_plugin_textdomain() {
|
79 |
+
$locale = apply_filters( 'plugin_locale', get_locale(), 'woocommerce-mercadopago-module' );
|
80 |
+
load_textdomain(
|
81 |
+
'woocommerce-mercadopago-module',
|
82 |
+
trailingslashit(WP_LANG_DIR ) . 'woocommerce-mercadopago-module/woocommerce-mercadopago-module-' . $locale . '.mo'
|
83 |
+
);
|
84 |
+
load_plugin_textdomain( 'woocommerce-mercadopago-module', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
85 |
+
}
|
86 |
+
|
87 |
public static function woocommerceInstance() {
|
88 |
+
if ( function_exists( 'WC' ) ) {
|
89 |
return WC();
|
90 |
} else {
|
91 |
global $woocommerce;
|
93 |
}
|
94 |
}
|
95 |
|
96 |
+
public static function getTemplatesPath() {
|
97 |
+
return plugin_dir_path( __FILE__ ) . 'templates/';
|
|
|
|
|
|
|
98 |
}
|
99 |
|
100 |
}
|
101 |
|
102 |
// Payment gateways should be created as additional plugins that hook into WooCommerce.
|
103 |
// Inside the plugin, you need to create a class after plugins are loaded
|
104 |
+
add_action( 'plugins_loaded', array( 'WC_WooMercadoPago_Module', 'initMercadoPagoGatewayClass' ), 0 );
|
105 |
+
|
106 |
+
// Add settings link on plugin page
|
107 |
+
function woomercadopago_settings_link( $links ) {
|
108 |
+
$plugin_links = array();
|
109 |
+
$plugin_links[] = '<a href="' . esc_url( admin_url(
|
110 |
+
'admin.php?page=wc-settings&tab=checkout§ion=WC_WooMercadoPago_Gateway' ) ) . '">' .
|
111 |
+
__( 'Standard Checkout', 'woocommerce-mercadopago-module' ) .
|
112 |
+
'</a>';
|
113 |
+
$plugin_links[] = '<a href="' . esc_url( admin_url(
|
114 |
+
'admin.php?page=wc-settings&tab=checkout§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,1011 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
|
7 |
+
* License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
8 |
+
*/
|
9 |
+
|
10 |
+
// This include Mercado Pago library SDK
|
11 |
+
require_once "sdk/lib/mercadopago.php";
|
12 |
+
|
13 |
+
// Extending from WooCommerce Payment Gateway class.
|
14 |
+
// This extension implements the custom checkout.
|
15 |
+
class WC_WooMercadoPagoCustom_Gateway extends WC_Payment_Gateway {
|
16 |
+
|
17 |
+
// This array stores each banner image, depending on the country it belongs to or on
|
18 |
+
// the type of checkout we use.
|
19 |
+
private $banners_mercadopago_credit = array(
|
20 |
+
"MLA" => 'MLA/credit_card.png',
|
21 |
+
"MLB" => 'MLB/credit_card.png',
|
22 |
+
"MCO" => 'MCO/credit_card.png',
|
23 |
+
"MLC" => 'MLC/credit_card.png',
|
24 |
+
"MLV" => 'MLV/credit_card.png',
|
25 |
+
"MLM" => 'MLM/credit_card.png'
|
26 |
+
// TODO: Peru rollout
|
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 |
+
"MLV" => '208692735',
|
36 |
+
"MLM" => '208692380'
|
37 |
+
// TODO: Peru rollout
|
38 |
+
);
|
39 |
+
|
40 |
+
// Required inherited method from WC_Payment_Gateway class: __construct.
|
41 |
+
// Please check:
|
42 |
+
// [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
|
43 |
+
// for documentation and further information.
|
44 |
+
public function __construct() {
|
45 |
+
|
46 |
+
// These fields are declared because we use them dinamically in our gateway class.
|
47 |
+
$this->domain = get_site_url() . '/index.php';
|
48 |
+
$this->site_id = null;
|
49 |
+
$this->isTestUser = false;
|
50 |
+
$this->store_categories_id = array();
|
51 |
+
$this->store_categories_description = array();
|
52 |
+
|
53 |
+
// Within your constructor, you should define the following variables.
|
54 |
+
$this->id = 'woocommerce-mercadopago-custom-module';
|
55 |
+
$this->method_title = __( 'Mercado Pago - Custom Checkout', 'woocommerce-mercadopago-module' );
|
56 |
+
$this->method_description = '<img width="200" height="52" src="' .
|
57 |
+
plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
|
58 |
+
wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
|
59 |
+
'</strong>';
|
60 |
+
|
61 |
+
// These fields are used in our Mercado Pago Module configuration page.
|
62 |
+
$this->public_key = $this->get_option( 'public_key' );
|
63 |
+
$this->access_token = $this->get_option( 'access_token' );
|
64 |
+
$this->title = $this->get_option( 'title' );
|
65 |
+
$this->description = $this->get_option( 'description' );
|
66 |
+
$this->statement_descriptor = $this->get_option( 'statement_descriptor' );
|
67 |
+
$this->binary_mode = $this->get_option( 'binary_mode' );
|
68 |
+
$this->category_id = $this->get_option( 'category_id' );
|
69 |
+
$this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
|
70 |
+
$this->sandbox = $this->get_option( 'sandbox', false );
|
71 |
+
$this->debug = $this->get_option( 'debug' );
|
72 |
+
|
73 |
+
// Render our configuration page and init/load fields.
|
74 |
+
$this->init_form_fields();
|
75 |
+
$this->init_settings();
|
76 |
+
|
77 |
+
// Hook actions for WordPress.
|
78 |
+
add_action( // Used by IPN to receive IPN incomings.
|
79 |
+
'woocommerce_api_wc_woomercadopagocustom_gateway',
|
80 |
+
array($this, 'check_ipn_response')
|
81 |
+
);
|
82 |
+
add_action( // Used by IPN to process valid incomings.
|
83 |
+
'valid_mercadopagocustom_ipn_request',
|
84 |
+
array($this, 'successful_request')
|
85 |
+
);
|
86 |
+
add_action( // Used in settings page to hook "save settings" action.
|
87 |
+
'woocommerce_update_options_payment_gateways_' . $this->id,
|
88 |
+
array( $this, 'process_admin_options' )
|
89 |
+
);
|
90 |
+
add_action( // Scripts for custom checkout
|
91 |
+
'wp_enqueue_scripts',
|
92 |
+
array( $this, 'customCheckoutScripts' )
|
93 |
+
);
|
94 |
+
|
95 |
+
// Verify if public_key or client_secret is empty.
|
96 |
+
if ( empty( $this->public_key ) || empty( $this->access_token ) ) {
|
97 |
+
add_action( 'admin_notices', array( $this, 'credentialsMissingMessage' ) );
|
98 |
+
}
|
99 |
+
|
100 |
+
// Verify if currency is supported.
|
101 |
+
//if ( !$this->isSupportedCurrency() ) {
|
102 |
+
// add_action( 'admin_notices', array( $this, 'currencyNotSupportedMessage' ) );
|
103 |
+
//}
|
104 |
+
|
105 |
+
// Logging and debug.
|
106 |
+
if ( 'yes' == $this->debug ) {
|
107 |
+
if ( class_exists( 'WC_Logger' ) ) {
|
108 |
+
$this->log = new WC_Logger();
|
109 |
+
} else {
|
110 |
+
$this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
|
111 |
+
}
|
112 |
+
}
|
113 |
+
|
114 |
+
}
|
115 |
+
|
116 |
+
// Required inherited method from WC_Payment_Gateway class: init_form_fields.
|
117 |
+
// Initialise Gateway settings form fields with a customized page.
|
118 |
+
public function init_form_fields() {
|
119 |
+
|
120 |
+
$api_secret_locale = sprintf(
|
121 |
+
'<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
122 |
+
'<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
123 |
+
//'<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
124 |
+
'<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
125 |
+
// TODO: Peru rollout
|
126 |
+
'<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a> %s ' .
|
127 |
+
'<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
|
128 |
+
__( 'Argentine', 'woocommerce-mercadopago-module' ),
|
129 |
+
__( 'Brazil', 'woocommerce-mercadopago-module' ),
|
130 |
+
//__( 'Chile', 'woocommerce-mercadopago-module' ),
|
131 |
+
__( 'Colombia', 'woocommerce-mercadopago-module' ),
|
132 |
+
__( 'Mexico', 'woocommerce-mercadopago-module' ),
|
133 |
+
// TODO: __( 'Peru', 'woocommerce-mercadopago-module' ),
|
134 |
+
__( 'or', 'woocommerce-mercadopago-module' ),
|
135 |
+
__( 'Venezuela', 'woocommerce-mercadopago-module' )
|
136 |
+
);
|
137 |
+
|
138 |
+
// Trigger API to get payment methods and site_id, also validates public_key/access_token.
|
139 |
+
if ( $this->validateCredentials() ) {
|
140 |
+
try {
|
141 |
+
$mp = new MP( $this->access_token );
|
142 |
+
$get_request = $mp->get( "/users/me?access_token=" . $this->access_token );
|
143 |
+
$this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
|
144 |
+
$this->site_id = $get_request[ 'response' ][ 'site_id' ];
|
145 |
+
if ( $this->site_id == "MLC" ) { // Chile isn't fully integrated with custom checkout
|
146 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
147 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
148 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
149 |
+
} else {
|
150 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
151 |
+
plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
152 |
+
' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
|
153 |
+
': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
|
154 |
+
plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
|
155 |
+
}
|
156 |
+
} catch ( MercadoPagoException $e ) {
|
157 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
158 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
159 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
160 |
+
}
|
161 |
+
} else {
|
162 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
163 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
164 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
165 |
+
}
|
166 |
+
|
167 |
+
// Fills categoy selector. We do not need credentials to make this call.
|
168 |
+
$categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
|
169 |
+
foreach ( $categories[ "response" ] as $category ) {
|
170 |
+
array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
|
171 |
+
array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
|
172 |
+
}
|
173 |
+
|
174 |
+
// This array draws each UI (text, selector, checkbox, label, etc).
|
175 |
+
$this->form_fields = array(
|
176 |
+
'enabled' => array(
|
177 |
+
'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
|
178 |
+
'type' => 'checkbox',
|
179 |
+
'label' => __( 'Enable Custom Checkout', 'woocommerce-mercadopago-module' ),
|
180 |
+
'default' => 'yes'
|
181 |
+
),
|
182 |
+
'credentials_title' => array(
|
183 |
+
'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
|
184 |
+
'type' => 'title',
|
185 |
+
'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
|
186 |
+
),
|
187 |
+
'public_key' => array(
|
188 |
+
'title' => 'Public key',
|
189 |
+
'type' => 'text',
|
190 |
+
'description' => __( 'Insert your Mercado Pago Public key.', 'woocommerce-mercadopago-module' ),
|
191 |
+
'default' => '',
|
192 |
+
'required' => true
|
193 |
+
),
|
194 |
+
'access_token' => array(
|
195 |
+
'title' => 'Access token',
|
196 |
+
'type' => 'text',
|
197 |
+
'description' => __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
|
198 |
+
'default' => '',
|
199 |
+
'required' => true
|
200 |
+
),
|
201 |
+
'ipn_url' => array(
|
202 |
+
'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
|
203 |
+
'type' => 'title',
|
204 |
+
'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>.' )
|
205 |
+
),
|
206 |
+
'checkout_options_title' => array(
|
207 |
+
'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
|
208 |
+
'type' => 'title',
|
209 |
+
'description' => ''
|
210 |
+
),
|
211 |
+
'title' => array(
|
212 |
+
'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
|
213 |
+
'type' => 'text',
|
214 |
+
'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
215 |
+
'default' => __( 'Mercado Pago - Credit Card', 'woocommerce-mercadopago-module' )
|
216 |
+
),
|
217 |
+
'description' => array(
|
218 |
+
'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
|
219 |
+
'type' => 'textarea',
|
220 |
+
'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
221 |
+
'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
|
222 |
+
),
|
223 |
+
'statement_descriptor' => array(
|
224 |
+
'title' => __( 'Statement Descriptor', 'woocommerce-mercadopago-module' ),
|
225 |
+
'type' => 'text',
|
226 |
+
'description' => __( 'The description that will be shown in your customer\'s invoice.', 'woocommerce-mercadopago-module' ),
|
227 |
+
'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
|
228 |
+
),
|
229 |
+
'binary_mode' => array(
|
230 |
+
'title' => __( 'Binary Mode', 'woocommerce-mercadopago-module' ),
|
231 |
+
'type' => 'checkbox',
|
232 |
+
'label' => __( 'Enable binary mode for checkout status', 'woocommerce-mercadopago-module' ),
|
233 |
+
'default' => 'no',
|
234 |
+
'description' => __( 'When charging a credit card, only [approved] or [reject] status will be taken.', 'woocommerce-mercadopago-module' )
|
235 |
+
),
|
236 |
+
'category_id' => array(
|
237 |
+
'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
|
238 |
+
'type' => 'select',
|
239 |
+
'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
|
240 |
+
'options' => $this->store_categories_id
|
241 |
+
),
|
242 |
+
'invoice_prefix' => array(
|
243 |
+
'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
|
244 |
+
'type' => 'text',
|
245 |
+
'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' ),
|
246 |
+
'default' => 'WC-'
|
247 |
+
),
|
248 |
+
'testing' => array(
|
249 |
+
'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
|
250 |
+
'type' => 'title',
|
251 |
+
'description' => ''
|
252 |
+
),
|
253 |
+
'sandbox' => array(
|
254 |
+
'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
|
255 |
+
'type' => 'checkbox',
|
256 |
+
'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
|
257 |
+
'default' => 'no',
|
258 |
+
'description' => __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
|
259 |
+
),
|
260 |
+
'debug' => array(
|
261 |
+
'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
|
262 |
+
'type' => 'checkbox',
|
263 |
+
'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
|
264 |
+
'default' => 'no',
|
265 |
+
'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
|
266 |
+
' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
|
267 |
+
'<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
|
268 |
+
)
|
269 |
+
);
|
270 |
+
|
271 |
+
}
|
272 |
+
|
273 |
+
public function admin_options() {
|
274 |
+
$this->validate_settings_fields();
|
275 |
+
if ( count( $this->errors ) > 0 ) {
|
276 |
+
$this->display_errors();
|
277 |
+
return false;
|
278 |
+
} else {
|
279 |
+
echo wpautop( $this->method_description );
|
280 |
+
?>
|
281 |
+
<p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
|
282 |
+
<?php esc_html_e( sprintf( __( 'Please, rate us %s on WordPress.org and give your feedback to help improve this module!', 'woocommerce-mercadopago-module' ), '★★★★★' ) ); ?>
|
283 |
+
</a></p>
|
284 |
+
<table class="form-table">
|
285 |
+
<?php $this->generate_settings_html(); ?>
|
286 |
+
</table>
|
287 |
+
<?php
|
288 |
+
return true;
|
289 |
+
}
|
290 |
+
}
|
291 |
+
|
292 |
+
/*
|
293 |
+
* ========================================================================
|
294 |
+
* CHECKOUT BUSINESS RULES
|
295 |
+
* ========================================================================
|
296 |
+
*/
|
297 |
+
|
298 |
+
public function customCheckoutScripts() {
|
299 |
+
if ( is_checkout() && $this->is_available() ) {
|
300 |
+
if ( !get_query_var( 'order-received' ) ) {
|
301 |
+
wp_enqueue_style(
|
302 |
+
'woocommerce-mercadopago-style', plugins_url(
|
303 |
+
'assets/css/custom_checkout_mercadopago.css',
|
304 |
+
plugin_dir_path( __FILE__ ) ) );
|
305 |
+
wp_enqueue_script(
|
306 |
+
'woocommerce-mercadopago-v1',
|
307 |
+
'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js' );
|
308 |
+
}
|
309 |
+
}
|
310 |
+
}
|
311 |
+
|
312 |
+
public function payment_fields() {
|
313 |
+
$amount = $this->get_order_total();
|
314 |
+
wc_get_template(
|
315 |
+
'credit-card/payment-form.php',
|
316 |
+
array(
|
317 |
+
'public_key' => $this->public_key,
|
318 |
+
'site_id' => $this->site_id,
|
319 |
+
'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
|
320 |
+
'banner_path' => plugins_url( 'images/' .
|
321 |
+
$this->banners_mercadopago_credit[ $this->site_id ], plugin_dir_path( __FILE__ ) ),
|
322 |
+
'amount' => $amount,
|
323 |
+
'label_other_bank' => __( "Other Bank", "woocommerce-mercadopago-module" ),
|
324 |
+
'label_choose' => __( "Choose", "woocommerce-mercadopago-module" ),
|
325 |
+
'form_labels' => array(
|
326 |
+
"form" => array(
|
327 |
+
"card_holder_placeholder" => __( " as it appears in your card ...", 'woocommerce-mercadopago-module' ),
|
328 |
+
"payment_method" => __( "Payment Method", 'woocommerce-mercadopago-module' ),
|
329 |
+
"credit_card_number" => __( "Credit card number", 'woocommerce-mercadopago-module' ),
|
330 |
+
"expiration_month" => __( "Expiration month", 'woocommerce-mercadopago-module' ),
|
331 |
+
"expiration_year" => __( "Expiration year", 'woocommerce-mercadopago-module' ),
|
332 |
+
"year" => __( "Year", 'woocommerce-mercadopago-module' ),
|
333 |
+
"month" => __( "Month", 'woocommerce-mercadopago-module' ),
|
334 |
+
"card_holder_name" => __( "Card holder name", 'woocommerce-mercadopago-module' ),
|
335 |
+
"security_code" => __( "Security code", 'woocommerce-mercadopago-module' ),
|
336 |
+
"document_type" => __( "Document Type", 'woocommerce-mercadopago-module' ),
|
337 |
+
"document_number" => __( "Document number", 'woocommerce-mercadopago-module' ),
|
338 |
+
"issuer" => __( "Issuer", 'woocommerce-mercadopago-module' ),
|
339 |
+
"installments" => __( "Installments", 'woocommerce-mercadopago-module' )
|
340 |
+
),
|
341 |
+
"error" => array(
|
342 |
+
//card number
|
343 |
+
"205" => __( "Parameter cardNumber can not be null/empty", 'woocommerce-mercadopago-module' ),
|
344 |
+
"E301" => __( "Invalid Card Number", 'woocommerce-mercadopago-module' ),
|
345 |
+
//expiration date
|
346 |
+
"208" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
|
347 |
+
"209" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
|
348 |
+
"325" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
|
349 |
+
"326" => __( "Invalid Expiration Date", 'woocommerce-mercadopago-module' ),
|
350 |
+
//card holder name
|
351 |
+
"221" => __( "Parameter cardholderName can not be null/empty", 'woocommerce-mercadopago-module' ),
|
352 |
+
"316" => __( "Invalid Card Holder Name", 'woocommerce-mercadopago-module' ),
|
353 |
+
//security code
|
354 |
+
"224" => __( "Parameter securityCode can not be null/empty", 'woocommerce-mercadopago-module' ),
|
355 |
+
"E302" => __( "Invalid Security Code", 'woocommerce-mercadopago-module' ),
|
356 |
+
//doc type
|
357 |
+
"212" => __( "Parameter docType can not be null/empty", 'woocommerce-mercadopago-module' ),
|
358 |
+
"322" => __( "Invalid Document Type", 'woocommerce-mercadopago-module' ),
|
359 |
+
//doc number
|
360 |
+
"214" => __( "Parameter docNumber can not be null/empty", 'woocommerce-mercadopago-module' ),
|
361 |
+
"324" => __( "Invalid Document Number", 'woocommerce-mercadopago-module' ),
|
362 |
+
//doc sub type
|
363 |
+
"213" => __( "The parameter cardholder.document.subtype can not be null or empty", 'woocommerce-mercadopago-module' ),
|
364 |
+
"323" => __( "Invalid Document Sub Type", 'woocommerce-mercadopago-module' ),
|
365 |
+
//issuer
|
366 |
+
"220" => __( "Parameter cardIssuerId can not be null/empty", 'woocommerce-mercadopago-module' )
|
367 |
+
)
|
368 |
+
)
|
369 |
+
),
|
370 |
+
'woocommerce/mercadopago/',
|
371 |
+
WC_WooMercadoPago_Module::getTemplatesPath()
|
372 |
+
);
|
373 |
+
}
|
374 |
+
|
375 |
+
// This function is called after we clock on [place_order] button, and each field is passed to this
|
376 |
+
// function through $_POST variable.
|
377 |
+
public function process_payment( $order_id ) {
|
378 |
+
$order = new WC_Order( $order_id );
|
379 |
+
// we have got parameters from checkout page, now its time to charge the card
|
380 |
+
if ( 'yes' == $this->debug ) {
|
381 |
+
$this->log->add( $this->id, $this->id .
|
382 |
+
': @[process_payment] - Received [$_POST] from customer front-end page: ' .
|
383 |
+
json_encode( $_POST, JSON_PRETTY_PRINT ) );
|
384 |
+
}
|
385 |
+
if ( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] == "" ) {
|
386 |
+
$_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] = $_POST[ 'mercadopago_custom' ][ 'paymentMethodIdSelector' ];
|
387 |
+
}
|
388 |
+
if ( isset( $_POST[ 'mercadopago_custom' ][ 'amount' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'amount' ] ) &&
|
389 |
+
isset( $_POST[ 'mercadopago_custom' ][ 'token' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'token' ] ) &&
|
390 |
+
isset( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) &&
|
391 |
+
isset( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'paymentMethodId' ] ) &&
|
392 |
+
isset( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) && !empty( $_POST[ 'mercadopago_custom' ][ 'installments' ] ) && $_POST[ 'mercadopago_custom' ][ 'installments' ] != -1 ) {
|
393 |
+
$post = $_POST;
|
394 |
+
$response = $this->createUrl( $order, $post );
|
395 |
+
if ( array_key_exists( 'status', $response ) ) {
|
396 |
+
switch ( $response[ 'status' ] ) {
|
397 |
+
case 'approved':
|
398 |
+
WC()->cart->empty_cart();
|
399 |
+
wc_add_notice(
|
400 |
+
'<p>' . __( $this->getOrderStatus( 'accredited' ), 'woocommerce-mercadopago-module') . '</p>',
|
401 |
+
'notice'
|
402 |
+
);
|
403 |
+
$order->add_order_note(
|
404 |
+
'Mercado Pago: ' .
|
405 |
+
__( 'Payment approved.', 'woocommerce-mercadopago-module' )
|
406 |
+
);
|
407 |
+
return array(
|
408 |
+
'result' => 'success',
|
409 |
+
'redirect' => $order->get_checkout_order_received_url()
|
410 |
+
);
|
411 |
+
break;
|
412 |
+
case 'pending':
|
413 |
+
// order approved/pending, we just redirect to the thankyou page
|
414 |
+
return array(
|
415 |
+
'result' => 'success',
|
416 |
+
'redirect' => $order->get_checkout_order_received_url()
|
417 |
+
);
|
418 |
+
break;
|
419 |
+
case 'in_process':
|
420 |
+
// for pending, we don't know if the purchase will be made, so we must inform this status
|
421 |
+
WC()->cart->empty_cart();
|
422 |
+
wc_add_notice(
|
423 |
+
'<p>' . __( $this->getOrderStatus( $response[ 'status_detail' ] ), 'woocommerce-mercadopago-module') . '</p>' .
|
424 |
+
'<p><a class="button" href="' . esc_url( $order->get_checkout_order_received_url() ) . '">' .
|
425 |
+
__( 'Check your order resume', 'woocommerce-mercadopago-module' ) .
|
426 |
+
'</a></p>',
|
427 |
+
'notice'
|
428 |
+
);
|
429 |
+
return array(
|
430 |
+
'result' => 'success',
|
431 |
+
'redirect' => $order->get_checkout_payment_url( true )
|
432 |
+
);
|
433 |
+
break;
|
434 |
+
case 'rejected':
|
435 |
+
// if rejected is received, the order will not proceed until another payment try,
|
436 |
+
// so we must inform this status
|
437 |
+
wc_add_notice(
|
438 |
+
'<p>' . __( 'Your payment was refused. You can try again.', 'woocommerce-mercadopago-module' ) .
|
439 |
+
'<br>' . __( $this->getOrderStatus( $response[ 'status_detail' ] ), 'woocommerce-mercadopago-module') . '</p>' .
|
440 |
+
'<p><a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
|
441 |
+
__( 'Click to try again', 'woocommerce-mercadopago-module' ) .
|
442 |
+
'</a></p>',
|
443 |
+
'error'
|
444 |
+
);
|
445 |
+
return array(
|
446 |
+
'result' => 'success',
|
447 |
+
'redirect' => $order->get_checkout_payment_url( true )
|
448 |
+
);
|
449 |
+
break;
|
450 |
+
case 'cancelled':
|
451 |
+
case 'in_mediation':
|
452 |
+
case 'charged-back':
|
453 |
+
break;
|
454 |
+
default:
|
455 |
+
break;
|
456 |
+
}
|
457 |
+
}
|
458 |
+
} else {
|
459 |
+
// process when fields are imcomplete
|
460 |
+
wc_add_notice(
|
461 |
+
'<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>',
|
462 |
+
'error'
|
463 |
+
);
|
464 |
+
/*return array(
|
465 |
+
'result' => 'fail',
|
466 |
+
'redirect' => '',
|
467 |
+
);*/
|
468 |
+
}
|
469 |
+
}
|
470 |
+
|
471 |
+
protected function createUrl( $order, $post_from_form ) {
|
472 |
+
|
473 |
+
$mp = new MP( $this->access_token );
|
474 |
+
// Checks for sandbox mode
|
475 |
+
if ( 'yes' == $this->sandbox ) {
|
476 |
+
$mp->sandbox_mode( true );
|
477 |
+
if ( 'yes' == $this->debug ) {
|
478 |
+
$this->log->add( $this->id, $this->id . ': @[createUrl] - sandbox mode is enabled' );
|
479 |
+
}
|
480 |
+
} else {
|
481 |
+
$mp->sandbox_mode( false );
|
482 |
+
}
|
483 |
+
|
484 |
+
// Creates the order parameters by checking the cart configuration
|
485 |
+
$preferences = $this->createPreferences( $order, $post_from_form );
|
486 |
+
try {
|
487 |
+
// Create order preferences with Mercado Pago API request
|
488 |
+
$checkout_info = $mp->post( "/v1/payments", json_encode( $preferences ) );
|
489 |
+
if ( 'yes' == $this->debug ) {
|
490 |
+
$this->log->add( $this->id, $this->id .
|
491 |
+
': @[createUrl] - Received [$checkout_info] from Mercado Pago API: ' .
|
492 |
+
json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
|
493 |
+
}
|
494 |
+
if ( is_wp_error( $checkout_info ) ||
|
495 |
+
$checkout_info[ 'status' ] < 200 || $checkout_info[ 'status' ] >= 300 ) {
|
496 |
+
if ( 'yes' == $this->debug ) {
|
497 |
+
$this->log->add( $this->id, $this->id .
|
498 |
+
': @[createUrl] - payment creation failed with error: ' .
|
499 |
+
$checkout_info[ 'response' ][ 'status' ] );
|
500 |
+
}
|
501 |
+
return false;
|
502 |
+
} else {
|
503 |
+
return $checkout_info[ 'response' ];
|
504 |
+
}
|
505 |
+
} catch ( MercadoPagoException $e ) {
|
506 |
+
if ( 'yes' == $this->debug ) {
|
507 |
+
$this->log->add( $this->id, $this->id .
|
508 |
+
': @[createUrl] - payment creation failed with exception: ' .
|
509 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
510 |
+
}
|
511 |
+
return false;
|
512 |
+
}
|
513 |
+
|
514 |
+
}
|
515 |
+
|
516 |
+
private function createPreferences( $order, $post_from_form ) {
|
517 |
+
|
518 |
+
// Here we build the array that contains ordered itens, from customer cart
|
519 |
+
$items = array();
|
520 |
+
$purchase_description = "";
|
521 |
+
if ( sizeof( $order->get_items() ) > 0 ) {
|
522 |
+
foreach ( $order->get_items() as $item ) {
|
523 |
+
if ( $item['qty'] ) {
|
524 |
+
$product = new WC_product( $item[ 'product_id' ] );
|
525 |
+
$purchase_description =
|
526 |
+
$purchase_description . ' ' .
|
527 |
+
( $product->post->post_title . ' x ' . $item[ 'qty' ] );
|
528 |
+
array_push( $items, array(
|
529 |
+
'id' => $item[ 'product_id' ],
|
530 |
+
'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
|
531 |
+
'description' => (
|
532 |
+
// This handles description width limit of Mercado Pago
|
533 |
+
strlen( $product->post->post_content ) > 230 ?
|
534 |
+
substr( $product->post->post_content, 0, 230 ) . "..." :
|
535 |
+
$product->post->post_content
|
536 |
+
),
|
537 |
+
'picture_url' => $product->get_image(),
|
538 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
539 |
+
'quantity' => 1,
|
540 |
+
'unit_price' => (float) $item[ 'line_total' ]
|
541 |
+
));
|
542 |
+
}
|
543 |
+
}
|
544 |
+
}
|
545 |
+
|
546 |
+
// Creates the shipment cost structure
|
547 |
+
$shipping_cost = (float) $order->get_total_shipping();
|
548 |
+
if ( $shipping_cost > 0 ) {
|
549 |
+
$item = array(
|
550 |
+
'title' => __( 'Shipping', 'woocommerce-mercadopago-module' ),
|
551 |
+
'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
|
552 |
+
'quantity' => 1,
|
553 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
554 |
+
'unit_price' => $shipping_cost
|
555 |
+
);
|
556 |
+
$items[] = $item;
|
557 |
+
}
|
558 |
+
|
559 |
+
// Discounts features
|
560 |
+
/*
|
561 |
+
$discounts = (double) $cart->getOrderTotal( true, Cart::ONLY_DISCOUNTS );
|
562 |
+
if ( $discounts > 0 ) {
|
563 |
+
$item = array(
|
564 |
+
'title' => 'Discount',
|
565 |
+
'description' => 'Discount provided by store',
|
566 |
+
'quantity' => 1,
|
567 |
+
'category_id' => Configuration::get( 'MERCADOPAGO_CATEGORY' ),
|
568 |
+
'unit_price' => - $discounts
|
569 |
+
);
|
570 |
+
$items[] = $item;
|
571 |
+
}
|
572 |
+
*/
|
573 |
+
|
574 |
+
// Build additional information from the customer data
|
575 |
+
$payer_additional_info = array(
|
576 |
+
'first_name' => $order->billing_first_name,
|
577 |
+
'last_name' => $order->billing_last_name,
|
578 |
+
//'registration_date' =>
|
579 |
+
'phone' => array(
|
580 |
+
//'area_code' =>
|
581 |
+
'number' => $order->billing_phone
|
582 |
+
),
|
583 |
+
'address' => array(
|
584 |
+
'zip_code' => $order->billing_postcode,
|
585 |
+
//'street_number' =>
|
586 |
+
'street_name' => $order->billing_address_1 . ' / ' .
|
587 |
+
$order->billing_city . ' ' .
|
588 |
+
$order->billing_state . ' ' .
|
589 |
+
$order->billing_country
|
590 |
+
)
|
591 |
+
);
|
592 |
+
|
593 |
+
// Create the shipment address information set
|
594 |
+
$shipments = array(
|
595 |
+
'receiver_address' => array(
|
596 |
+
'zip_code' => $order->shipping_postcode,
|
597 |
+
//'street_number' =>
|
598 |
+
'street_name' => $order->shipping_address_1 . ' ' .
|
599 |
+
$order->shipping_address_2 . ' ' .
|
600 |
+
$order->shipping_city . ' ' .
|
601 |
+
$order->shipping_state . ' ' .
|
602 |
+
$order->shipping_country,
|
603 |
+
//'floor' =>
|
604 |
+
'apartment' => $order->shipping_address_2
|
605 |
+
)
|
606 |
+
);
|
607 |
+
|
608 |
+
// The payment preference
|
609 |
+
$payment_preference = array (
|
610 |
+
'transaction_amount' => (float) $post_from_form[ 'mercadopago_custom' ][ 'amount' ],
|
611 |
+
'token' => $post_from_form[ 'mercadopago_custom' ][ 'token' ],
|
612 |
+
'description' => $purchase_description,
|
613 |
+
'installments' => (int) $post_from_form[ 'mercadopago_custom' ][ 'installments' ],
|
614 |
+
'payment_method_id' => $post_from_form[ 'mercadopago_custom' ][ 'paymentMethodId' ],
|
615 |
+
'payer' => array(
|
616 |
+
'email' => $order->billing_email
|
617 |
+
),
|
618 |
+
'external_reference' => $this->invoice_prefix . $order->id,
|
619 |
+
'statement_descriptor' => $this->statement_descriptor,
|
620 |
+
'binary_mode' => ($this->binary_mode == "yes"),
|
621 |
+
'additional_info' => array(
|
622 |
+
'items' => $items,
|
623 |
+
'payer' => $payer_additional_info,
|
624 |
+
'shipments' => $shipments
|
625 |
+
)
|
626 |
+
);
|
627 |
+
|
628 |
+
// Do not set IPN url if it is a localhost!
|
629 |
+
$notification_url = $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoCustom_Gateway';
|
630 |
+
if ( !strrpos( $notification_url, "localhost" ) ) {
|
631 |
+
$payment_preference['notification_url'] = $notification_url;
|
632 |
+
}
|
633 |
+
|
634 |
+
// Customer's Card Feature
|
635 |
+
/*
|
636 |
+
// save the card
|
637 |
+
if ( isset( $post[ 'opcaoPagamentoCreditCard' ] ) && $post[ 'opcaoPagamentoCreditCard' ] == "Cards" ) {
|
638 |
+
$payment_preference[ 'metadata' ] = array( 'opcao_pagamento' => $post[ 'opcaoPagamentoCreditCard' ],
|
639 |
+
'customer_id' => $post[ 'customerID' ],
|
640 |
+
'card_token_id' => $post[ 'card_token_id' ] );
|
641 |
+
}
|
642 |
+
*/
|
643 |
+
// add only for creditcard
|
644 |
+
if ( array_key_exists( 'card_token_id', $post_from_form[ 'mercadopago_custom' ] ) ) {
|
645 |
+
// add only it has issuer id
|
646 |
+
if ( array_key_exists( 'issuersOptions', $post_from_form[ 'mercadopago_custom' ] ) ) {
|
647 |
+
$payment_preference[ 'issuer_id' ] =
|
648 |
+
(integer) $post_from_form[ 'mercadopago_custom' ][ 'issuersOptions' ];
|
649 |
+
}
|
650 |
+
/*
|
651 |
+
if ( "Customer" == $post_from_form[ 'mercadopago_custom' ][ 'opcaoPagamentoCreditCard' ] ) {
|
652 |
+
$customerCards = $post_from_form[ 'mercadopago_custom' ][ "customerCards" ];
|
653 |
+
$customerID = $post_from_form[ 'mercadopago_custom' ][ "customerID" ];
|
654 |
+
$payment_preference[ 'payer' ][ 'id' ] = $customerID;
|
655 |
+
$payment_preference[ 'installments' ] = (integer) $post_from_form[ 'mercadopago_custom' ][ 'installmentsCust' ];
|
656 |
+
} else {
|
657 |
+
$payment_preference[ 'installments' ] = (integer) $post_from_form[ 'mercadopago_custom' ][ 'installments' ];
|
658 |
+
}
|
659 |
+
$payment_preference[ 'token' ] = $post_from_form[ 'mercadopago_custom' ][ 'card_token_id' ];
|
660 |
+
*/
|
661 |
+
}
|
662 |
+
|
663 |
+
// Coupon Feature
|
664 |
+
/*
|
665 |
+
$mercadopago_coupon = isset( $post[ 'mercadopago_coupon' ] ) ? $post[ 'mercadopago_coupon' ] : "";
|
666 |
+
if ( $mercadopago_coupon != "" ) {
|
667 |
+
$coupon = $this->validCoupon( $mercadopago_coupon );
|
668 |
+
if ( $coupon[ 'status' ] == 200 ) {
|
669 |
+
$payment_preference[ 'campaign_id' ] = $coupon[ 'response' ][ 'id' ];
|
670 |
+
$payment_preference[ 'coupon_amount' ] = (float) $coupon[ 'response' ][ 'coupon_amount' ];
|
671 |
+
$payment_preference[ 'coupon_code' ] = strtoupper( $mercadopago_coupon );
|
672 |
+
} else {
|
673 |
+
PrestaShopLogger::addLog ( $coupon['response']['error'] . Tools::jsonEncode($coupon), MP_SDK::ERROR, 0 );
|
674 |
+
$this->context->smarty->assign( array(
|
675 |
+
'message_error' => $coupon[ 'response' ][ 'error' ],
|
676 |
+
'version' => $this->getPrestashopVersion()
|
677 |
+
) );
|
678 |
+
return $this->display ( __file__, '/views/templates/front/error_admin.tpl' );
|
679 |
+
}
|
680 |
+
}
|
681 |
+
*/
|
682 |
+
|
683 |
+
if ( !$this->isTestUser ) {
|
684 |
+
$preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
|
685 |
+
}
|
686 |
+
|
687 |
+
if ( 'yes' == $this->debug ) {
|
688 |
+
$this->log->add( $this->id, $this->id .
|
689 |
+
': @[createPreferences] - Returning just created [$payment_preference] structure: ' .
|
690 |
+
json_encode( $payment_preference, JSON_PRETTY_PRINT ) );
|
691 |
+
}
|
692 |
+
|
693 |
+
$payment_preference = apply_filters(
|
694 |
+
'woocommerce_mercadopago_module_custom_preferences',
|
695 |
+
$payment_preference, $order
|
696 |
+
);
|
697 |
+
return $payment_preference;
|
698 |
+
|
699 |
+
}
|
700 |
+
|
701 |
+
/*
|
702 |
+
* ========================================================================
|
703 |
+
* AUXILIARY AND FEEDBACK METHODS
|
704 |
+
* ========================================================================
|
705 |
+
*/
|
706 |
+
|
707 |
+
// Check if we have valid credentials.
|
708 |
+
public function validateCredentials() {
|
709 |
+
if ( empty( $this->public_key ) ) return false;
|
710 |
+
if ( empty( $this->access_token ) ) return false;
|
711 |
+
if ( strlen( $this->public_key ) > 0 && strlen( $this->access_token ) > 0 ) {
|
712 |
+
try {
|
713 |
+
$mp = new MP( $this->access_token );
|
714 |
+
return true;
|
715 |
+
} catch ( MercadoPagoException $e ) {
|
716 |
+
return false;
|
717 |
+
}
|
718 |
+
}
|
719 |
+
return false;
|
720 |
+
}
|
721 |
+
|
722 |
+
// Build the string representing the path to the log file
|
723 |
+
protected function buildLogPathString() {
|
724 |
+
return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
|
725 |
+
esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
|
726 |
+
__( 'WooCommerce > System Status > Logs', 'woocommerce-mercadopago-module' ) . '</a>';
|
727 |
+
}
|
728 |
+
|
729 |
+
// Return boolean indicating if currency is supported.
|
730 |
+
// TODO: Peru rollout
|
731 |
+
protected function isSupportedCurrency() {
|
732 |
+
return in_array( $this->site_id, array( 'MLA', 'MLB', 'MCO', 'MLM', 'MLV' ) );
|
733 |
+
}
|
734 |
+
|
735 |
+
// Called automatically by WooCommerce, verify if Module is available to use.
|
736 |
+
public function is_available() {
|
737 |
+
$available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
|
738 |
+
! empty( $this->public_key ) &&
|
739 |
+
! empty( $this->access_token ) &&
|
740 |
+
$this->isSupportedCurrency();
|
741 |
+
return $available;
|
742 |
+
}
|
743 |
+
|
744 |
+
// Get the URL to admin page.
|
745 |
+
protected function admin_url() {
|
746 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
747 |
+
return admin_url(
|
748 |
+
'admin.php?page=wc-settings&tab=checkout§ion=wc_woomercadopagocustom_gateway'
|
749 |
+
);
|
750 |
+
}
|
751 |
+
return admin_url(
|
752 |
+
'admin.php?page=woocommerce_settings&tab=payment_gateways§ion=WC_WooMercadoPagoCustom_Gateway'
|
753 |
+
);
|
754 |
+
}
|
755 |
+
|
756 |
+
// Notify that public_key and/or access_token are not valid.
|
757 |
+
public function credentialsMissingMessage() {
|
758 |
+
echo '<div class="error"><p><strong>' .
|
759 |
+
__( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
|
760 |
+
'</strong>: ' .
|
761 |
+
sprintf(
|
762 |
+
__( 'Your Mercado Pago credentials Public Key/Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
|
763 |
+
'<a href="' . $this->admin_url() . '">' .
|
764 |
+
__( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
|
765 |
+
'</p></div>';
|
766 |
+
}
|
767 |
+
|
768 |
+
// Notify that currency is not supported.
|
769 |
+
// TODO: Peru rollout
|
770 |
+
public function currencyNotSupportedMessage() {
|
771 |
+
echo '<div class="error"><p><strong>' .
|
772 |
+
__( 'Custom Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
|
773 |
+
'</strong>: ' .
|
774 |
+
sprintf(
|
775 |
+
__( 'The currency' ) . ' <code>%s</code> ' .
|
776 |
+
__( 'is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF.', 'woocommerce-mercadopago-module' ),
|
777 |
+
get_woocommerce_currency() ) .
|
778 |
+
'</p></div>';
|
779 |
+
}
|
780 |
+
|
781 |
+
public function getCountryName( $site_id ) {
|
782 |
+
$country = $site_id;
|
783 |
+
switch ( $site_id ) {
|
784 |
+
case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
|
785 |
+
case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
|
786 |
+
case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
|
787 |
+
case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
|
788 |
+
case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
|
789 |
+
case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
|
790 |
+
case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
|
791 |
+
}
|
792 |
+
}
|
793 |
+
|
794 |
+
public function getOrderStatus( $status_detail ) {
|
795 |
+
switch ( $status_detail ) {
|
796 |
+
case 'accredited':
|
797 |
+
return __( 'Done, your payment was accredited!', 'woocommerce-mercadopago-module' );
|
798 |
+
case 'pending_contingency':
|
799 |
+
return __( 'We are processing the payment. In less than an hour we will e-mail you the results.', 'woocommerce-mercadopago-module' );
|
800 |
+
case 'pending_review_manual':
|
801 |
+
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' );
|
802 |
+
case 'cc_rejected_bad_filled_card_number':
|
803 |
+
return __( 'Check the card number.', 'woocommerce-mercadopago-module' );
|
804 |
+
case 'cc_rejected_bad_filled_date':
|
805 |
+
return __( 'Check the expiration date.', 'woocommerce-mercadopago-module' );
|
806 |
+
case 'cc_rejected_bad_filled_other':
|
807 |
+
return __( 'Check the information.', 'woocommerce-mercadopago-module' );
|
808 |
+
case 'cc_rejected_bad_filled_security_code':
|
809 |
+
return __( 'Check the security code.', 'woocommerce-mercadopago-module' );
|
810 |
+
case 'cc_rejected_blacklist':
|
811 |
+
return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
|
812 |
+
case 'cc_rejected_call_for_authorize':
|
813 |
+
return __( 'You must authorize the payment of your orders.', 'woocommerce-mercadopago-module' );
|
814 |
+
case 'cc_rejected_card_disabled':
|
815 |
+
return __( 'Call your card issuer to activate your card. The phone is on the back of your card.', 'woocommerce-mercadopago-module' );
|
816 |
+
case 'cc_rejected_card_error':
|
817 |
+
return __( 'We could not process your payment.', 'woocommerce-mercadopago-module' );
|
818 |
+
case 'cc_rejected_duplicated_payment':
|
819 |
+
return __( 'You already made a payment for that amount. If you need to repay, use another card or other payment method.', 'woocommerce-mercadopago-module' );
|
820 |
+
case 'cc_rejected_high_risk':
|
821 |
+
return __( 'Your payment was rejected. Choose another payment method. We recommend cash.', 'woocommerce-mercadopago-module' );
|
822 |
+
case 'cc_rejected_insufficient_amount':
|
823 |
+
return __( 'Your payment do not have sufficient funds.', 'woocommerce-mercadopago-module' );
|
824 |
+
case 'cc_rejected_invalid_installments':
|
825 |
+
return __( 'Your payment does not process payments with selected installments.', 'woocommerce-mercadopago-module' );
|
826 |
+
case 'cc_rejected_max_attempts':
|
827 |
+
return __( 'You have reached the limit of allowed attempts. Choose another card or another payment method.', 'woocommerce-mercadopago-module' );
|
828 |
+
case 'cc_rejected_other_reason':
|
829 |
+
return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
|
830 |
+
default:
|
831 |
+
return __( 'This payment method did not process the payment.', 'woocommerce-mercadopago-module' );
|
832 |
+
}
|
833 |
+
}
|
834 |
+
|
835 |
+
/*
|
836 |
+
* ========================================================================
|
837 |
+
* IPN MECHANICS
|
838 |
+
* ========================================================================
|
839 |
+
*/
|
840 |
+
|
841 |
+
// This call checks any incoming notifications from Mercado Pago server.
|
842 |
+
public function check_ipn_response() {
|
843 |
+
@ob_clean();
|
844 |
+
if ( 'yes' == $this->debug ) {
|
845 |
+
$this->log->add( $this->id, $this->id .
|
846 |
+
': @[check_ipn_response] - Received _get content: ' .
|
847 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
848 |
+
}
|
849 |
+
$data = $this->check_ipn_request_is_valid( $_GET );
|
850 |
+
if ( $data ) {
|
851 |
+
header( 'HTTP/1.1 200 OK' );
|
852 |
+
do_action( 'valid_mercadopagocustom_ipn_request', $data );
|
853 |
+
} else {
|
854 |
+
if ( 'yes' == $this->debug ) {
|
855 |
+
$this->log->add( $this->id, $this->id .
|
856 |
+
': @[check_ipn_response] - Mercado Pago Request Failure: ' .
|
857 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
858 |
+
}
|
859 |
+
wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
|
860 |
+
}
|
861 |
+
}
|
862 |
+
|
863 |
+
// Get received data from IPN and checks if we have an associated
|
864 |
+
// payment. If we have these information, we return data to be
|
865 |
+
// processed by successful_request function.
|
866 |
+
public function check_ipn_request_is_valid( $data ) {
|
867 |
+
if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
|
868 |
+
if ( 'yes' == $this->debug ) {
|
869 |
+
$this->log->add( $this->id, $this->id .
|
870 |
+
': @[check_ipn_request_is_valid] - data_id or type not set: ' .
|
871 |
+
json_encode( $data, JSON_PRETTY_PRINT ) );
|
872 |
+
}
|
873 |
+
return false; // No ID? No process!
|
874 |
+
}
|
875 |
+
$mp = new MP( $this->access_token );
|
876 |
+
if ( 'yes' == $this->sandbox )
|
877 |
+
$mp->sandbox_mode( true );
|
878 |
+
else
|
879 |
+
$mp->sandbox_mode( false );
|
880 |
+
try {
|
881 |
+
$access_token = array( "access_token" => $mp->get_access_token() );
|
882 |
+
if ( $data[ "type" ] == 'payment' ) {
|
883 |
+
$payment_info = $mp->get( "/v1/payments/" . $data[ "data_id" ], $access_token, false );
|
884 |
+
if ( !is_wp_error( $payment_info ) &&
|
885 |
+
( $payment_info[ "status" ] == 200 || $payment_info[ "status" ] == 201 ) ) {
|
886 |
+
return $payment_info[ 'response' ];
|
887 |
+
} else {
|
888 |
+
if ( 'yes' == $this->debug ) {
|
889 |
+
$this->log->add( $this->id, $this->id .
|
890 |
+
': @[check_ipn_request_is_valid] - error when processing received data: ' .
|
891 |
+
json_encode( $payment_info, JSON_PRETTY_PRINT ) );
|
892 |
+
}
|
893 |
+
return false;
|
894 |
+
}
|
895 |
+
}
|
896 |
+
} catch ( MercadoPagoException $e ) {
|
897 |
+
if ( 'yes' == $this->debug ) {
|
898 |
+
$this->log->add( $this->id, $this->id .
|
899 |
+
': @[check_ipn_request_is_valid] - MercadoPagoException: ' .
|
900 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
901 |
+
}
|
902 |
+
return false;
|
903 |
+
}
|
904 |
+
return true;
|
905 |
+
}
|
906 |
+
|
907 |
+
// Properly handles each case of notification, based in payment status.
|
908 |
+
public function successful_request( $data ) {
|
909 |
+
if ( 'yes' == $this->debug ) {
|
910 |
+
$this->log->add( $this->id, $this->id .
|
911 |
+
': @[successful_request] - starting to process ipn update...' );
|
912 |
+
}
|
913 |
+
$order_key = $data[ 'external_reference' ];
|
914 |
+
if ( !empty( $order_key ) ) {
|
915 |
+
$order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
|
916 |
+
$order = new WC_Order( $order_id );
|
917 |
+
// Checks whether the invoice number matches the order, if true processes the payment
|
918 |
+
if ( $order->id === $order_id ) {
|
919 |
+
if ( 'yes' == $this->debug ) {
|
920 |
+
$this->log->add( $this->id, $this->id .
|
921 |
+
': @[successful_request] - got order with ID ' . $order->id .
|
922 |
+
' and status ' . $data[ 'status' ] );
|
923 |
+
}
|
924 |
+
// Order details.
|
925 |
+
if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
|
926 |
+
update_post_meta(
|
927 |
+
$order_id,
|
928 |
+
__( 'Payer email',
|
929 |
+
'woocommerce-mercadopago-module' ),
|
930 |
+
$data[ 'payer' ][ 'email' ]
|
931 |
+
);
|
932 |
+
}
|
933 |
+
if ( !empty( $data[ 'payment_type_id' ] ) ) {
|
934 |
+
update_post_meta(
|
935 |
+
$order_id,
|
936 |
+
__( 'Payment type',
|
937 |
+
'woocommerce-mercadopago-module' ),
|
938 |
+
$data[ 'payment_type_id' ]
|
939 |
+
);
|
940 |
+
}
|
941 |
+
if ( !empty( $data ) ) {
|
942 |
+
update_post_meta(
|
943 |
+
$order_id,
|
944 |
+
__( 'Mercado Pago Payment ID',
|
945 |
+
'woocommerce-mercadopago-module' ),
|
946 |
+
$data[ 'id' ]
|
947 |
+
);
|
948 |
+
}
|
949 |
+
// Switch the status and update in WooCommerce
|
950 |
+
switch ( $data[ 'status' ] ) {
|
951 |
+
case 'approved':
|
952 |
+
$order->add_order_note(
|
953 |
+
'Mercado Pago: ' . __( 'Payment approved.',
|
954 |
+
'woocommerce-mercadopago-module' )
|
955 |
+
);
|
956 |
+
$order->payment_complete();
|
957 |
+
break;
|
958 |
+
case 'pending':
|
959 |
+
$order->add_order_note(
|
960 |
+
'Mercado Pago: ' . __( 'Customer haven\'t paid yet.',
|
961 |
+
'woocommerce-mercadopago-module' )
|
962 |
+
);
|
963 |
+
break;
|
964 |
+
case 'in_process':
|
965 |
+
$order->update_status(
|
966 |
+
'on-hold',
|
967 |
+
'Mercado Pago: ' . __( 'Payment under review.',
|
968 |
+
'woocommerce-mercadopago-module' )
|
969 |
+
);
|
970 |
+
break;
|
971 |
+
case 'rejected':
|
972 |
+
$order->update_status(
|
973 |
+
'failed',
|
974 |
+
'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.',
|
975 |
+
'woocommerce-mercadopago-module' )
|
976 |
+
);
|
977 |
+
break;
|
978 |
+
case 'refunded':
|
979 |
+
$order->update_status(
|
980 |
+
'refunded',
|
981 |
+
'Mercado Pago: ' . __( 'The payment was refunded to the customer.',
|
982 |
+
'woocommerce-mercadopago-module' )
|
983 |
+
);
|
984 |
+
break;
|
985 |
+
case 'cancelled':
|
986 |
+
$order->update_status(
|
987 |
+
'cancelled',
|
988 |
+
'Mercado Pago: ' . __( 'The payment was cancelled.',
|
989 |
+
'woocommerce-mercadopago-module' )
|
990 |
+
);
|
991 |
+
break;
|
992 |
+
case 'in_mediation':
|
993 |
+
$order->add_order_note(
|
994 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
|
995 |
+
'woocommerce-mercadopago-module' )
|
996 |
+
);
|
997 |
+
break;
|
998 |
+
case 'charged-back':
|
999 |
+
$order->add_order_note(
|
1000 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
|
1001 |
+
'woocommerce-mercadopago-module' )
|
1002 |
+
);
|
1003 |
+
break;
|
1004 |
+
default:
|
1005 |
+
break;
|
1006 |
+
}
|
1007 |
+
}
|
1008 |
+
}
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
}
|
mercadopago/mercadopago-gateway.php
CHANGED
@@ -1,46 +1,28 @@
|
|
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 |
-
"MLC" => 'MLC.gif',
|
41 |
-
"MLV" => 'MLV.jpg',
|
42 |
-
"MLM" => 'MLM.jpg'
|
43 |
-
)
|
44 |
);
|
45 |
|
46 |
// Sponsor ID array by country
|
@@ -58,11 +40,9 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
58 |
// [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
|
59 |
// for documentation and further information.
|
60 |
public function __construct() {
|
61 |
-
|
62 |
-
$this->domain = get_site_url() . '/index.php';
|
63 |
-
//$this->domain = 'http://7a2bb004.ngrok.io';
|
64 |
|
65 |
// These fields are declared because we use them dinamically in our gateway class.
|
|
|
66 |
$this->site_id = null;
|
67 |
$this->isTestUser = false;
|
68 |
$this->payment_methods = array();
|
@@ -73,27 +53,27 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
73 |
$this->id = 'woocommerce-mercadopago-module';
|
74 |
$this->icon = apply_filters(
|
75 |
'woocommerce_mercadopago_icon',
|
76 |
-
plugins_url('images/mercadopago.png', plugin_dir_path(__FILE__))
|
77 |
);
|
78 |
-
$this->method_title = 'Mercado Pago';
|
79 |
$this->method_description = '<img width="200" height="52" src="' .
|
80 |
-
plugins_url('images/mplogo.png', plugin_dir_path(__FILE__)) . '"><br><br>' . '<strong>' .
|
81 |
-
wordwrap(__('This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module'), 80, "\n") .
|
82 |
'</strong>';
|
83 |
|
84 |
// These fields are used in our Mercado Pago Module configuration page.
|
85 |
-
$this->client_id = $this->get_option('client_id');
|
86 |
-
$this->client_secret = $this->get_option('client_secret');
|
87 |
-
$this->title = $this->get_option('title');
|
88 |
-
$this->description = $this->get_option('description');
|
89 |
-
$this->category_id = $this->get_option('category_id');
|
90 |
-
$this->invoice_prefix = $this->get_option('invoice_prefix', 'WC-');
|
91 |
-
$this->method = $this->get_option('method', 'modal');
|
92 |
-
$this->iframe_width = $this->get_option('iframe_width', 640);
|
93 |
-
$this->iframe_height = $this->get_option('iframe_height', 800);
|
94 |
-
$this->auto_return = $this->get_option('auto_return', true);
|
95 |
-
$this->installments = $this->get_option('installments', '24');
|
96 |
-
$this->ex_payments = $this->get_option('ex_payments', 'n/d');
|
97 |
$this->sandbox = $this->get_option('sandbox', false);
|
98 |
$this->debug = $this->get_option('debug');
|
99 |
|
@@ -104,40 +84,41 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
104 |
// Hook actions for WordPress.
|
105 |
add_action( // Used by IPN to receive IPN incomings.
|
106 |
'woocommerce_api_wc_woomercadopago_gateway',
|
107 |
-
array($this, 'check_ipn_response')
|
108 |
);
|
109 |
add_action( // Used by IPN to process valid incomings.
|
110 |
'valid_mercadopago_ipn_request',
|
111 |
-
array($this, 'successful_request')
|
112 |
);
|
113 |
add_action( // Used by WordPress to render the custom checkout page.
|
114 |
'woocommerce_receipt_' . $this->id,
|
115 |
-
array($this, 'receipt_page')
|
116 |
);
|
117 |
add_action( // Used to fix CSS in some older WordPress/WooCommerce versions.
|
118 |
-
'wp_head',
|
|
|
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 |
|
@@ -149,254 +130,285 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
149 |
|
150 |
$api_secret_locale = sprintf(
|
151 |
'<a href="https://www.mercadopago.com/mla/herramientas/aplicaciones" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mlb/ferramentas/aplicacoes" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mlc/herramientas/aplicaciones" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mco/ferramentas/aplicacoes" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mlm/herramientas/aplicaciones" target="_blank">%s</a> %s <a href="https://www.mercadopago.com/mlv/herramientas/aplicaciones" target="_blank">%s</a>',
|
152 |
-
__('Argentine', 'woocommerce-mercadopago-module'),
|
153 |
-
__('Brazil', 'woocommerce-mercadopago-module'),
|
154 |
-
__('Chile', 'woocommerce-mercadopago-module'),
|
155 |
-
__('Colombia', 'woocommerce-mercadopago-module'),
|
156 |
-
__('Mexico', 'woocommerce-mercadopago-module'),
|
157 |
-
__('or', 'woocommerce-mercadopago-module'),
|
158 |
-
__('Venezuela', 'woocommerce-mercadopago-module')
|
159 |
);
|
160 |
|
161 |
// Trigger API to get payment methods and site_id, also validates Client_id/Client_secret.
|
162 |
-
if ($this->validateCredentials()) {
|
163 |
try {
|
164 |
-
$mp = new MP($this->client_id, $this->client_secret);
|
165 |
$access_token = $mp->get_access_token();
|
166 |
-
$get_request = $mp->get("/users/me?access_token=" . $access_token);
|
167 |
-
$this->isTestUser = in_array('test_user', $get_request['response']['tags']);
|
168 |
-
$this->site_id = $get_request['response']['site_id'];
|
169 |
-
$payments = $mp->get("/v1/payment_methods/?access_token=" . $access_token);
|
170 |
-
array_push($this->payment_methods, "n/d");
|
171 |
-
foreach ($payments["response"] as $payment) {
|
172 |
-
array_push($this->payment_methods, str_replace("_", " ", $payment['id']));
|
173 |
}
|
174 |
$this->payment_desc =
|
175 |
-
__('Select the payment methods that you <strong>don\'t</strong> want to receive with Mercado Pago.', 'woocommerce-mercadopago-module');
|
176 |
$this->credentials_message = '<img width="12" height="12" src="' .
|
177 |
-
plugins_url('images/check.png', plugin_dir_path(__FILE__)) . '">' .
|
178 |
-
' ' . __('Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module') .
|
179 |
-
': ' . $this->getCountryName($this->site_id) . ' <img width="18.6" height="12" src="' .
|
180 |
-
plugins_url('images/' . $this->site_id . '.png', plugin_dir_path(__FILE__)) . '"> ';
|
181 |
-
} catch (MercadoPagoException $e) {
|
182 |
-
array_push($this->payment_methods, "n/d");
|
183 |
$this->payment_desc = '<img width="12" height="12" src="' .
|
184 |
-
plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
|
185 |
-
' ' . __('Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module');
|
186 |
$this->credentials_message = '<img width="12" height="12" src="' .
|
187 |
-
plugins_url('images/error.png', plugin_dir_path(__FILE__)) . '">' .
|
188 |
-
' ' . __('Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module');
|
189 |
}
|
190 |
} else {
|
191 |
-
array_push($this->payment_methods, "n/d");
|
192 |
$this->payment_desc = '<img width="12" height="12" src="' .
|
193 |
-
plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
|
194 |
-
' ' . __('Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module');
|
195 |
$this->credentials_message = '<img width="12" height="12" src="' .
|
196 |
-
plugins_url('images/error.png', plugin_dir_path(__FILE__)) . '">' .
|
197 |
-
' ' . __('Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module');
|
198 |
}
|
199 |
|
200 |
// Fills categoy selector. We do not need credentials to make this call.
|
201 |
-
$categories = MPRestClient::get(array("uri" => "/item_categories"));
|
202 |
-
foreach ($categories["response"] as $category) {
|
203 |
-
array_push($this->store_categories_id, str_replace("_", " ", $category['id']));
|
204 |
-
array_push($this->store_categories_description, str_replace("_", " ", $category['description']));
|
205 |
}
|
206 |
|
207 |
// Checks validity of iFrame width/height fields.
|
208 |
-
if (!is_numeric($this->iframe_width)) {
|
209 |
$this->iframe_width_desc = '<img width="12" height="12" src="' .
|
210 |
-
plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
|
211 |
-
' ' . __('This field should be an integer.', 'woocommerce-mercadopago-module');
|
212 |
} else {
|
213 |
$this->iframe_width_desc =
|
214 |
-
__('If your integration method is iFrame, please inform the payment iFrame width.', 'woocommerce-mercadopago-module');
|
215 |
}
|
216 |
-
if (!is_numeric($this->iframe_height)) {
|
217 |
$this->iframe_height_desc = '<img width="12" height="12" src="' .
|
218 |
-
plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
|
219 |
-
' ' . __('This field should be an integer.', 'woocommerce-mercadopago-module');
|
220 |
} else {
|
221 |
$this->iframe_height_desc =
|
222 |
-
__('If your integration method is iFrame, please inform the payment iFrame height.', 'woocommerce-mercadopago-module');
|
223 |
}
|
224 |
|
225 |
// Checks if max installments is a number.
|
226 |
-
if (!is_numeric($this->installments)) {
|
227 |
$this->installments_desc = '<img width="12" height="12" src="' .
|
228 |
-
plugins_url('images/warning.png', plugin_dir_path(__FILE__)) . '">' .
|
229 |
-
' ' . __('This field should be an integer.', 'woocommerce-mercadopago-module');
|
230 |
} else {
|
231 |
$this->installments_desc =
|
232 |
-
__('Select the max number of installments for your customers.', 'woocommerce-mercadopago-module');
|
233 |
}
|
234 |
|
235 |
// This array draws each UI (text, selector, checkbox, label, etc).
|
236 |
$this->form_fields = array(
|
237 |
'enabled' => array(
|
238 |
-
'title' => __('Enable/Disable', 'woocommerce-mercadopago-module'),
|
239 |
'type' => 'checkbox',
|
240 |
-
'label' => __('Enable
|
241 |
-
'default' => '
|
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
|
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'
|
|
|
|
|
362 |
)
|
363 |
);
|
364 |
|
365 |
}
|
366 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
/*
|
368 |
* ========================================================================
|
369 |
* CHECKOUT BUSINESS RULES
|
370 |
* ========================================================================
|
371 |
*/
|
372 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
// 1. First step occurs when the customer selects Mercado Pago and proceed to
|
374 |
// checkout. This method verify which integration method was selected and
|
375 |
// makes the build for the checkout URL.
|
376 |
-
public function process_payment($order_id) {
|
377 |
-
$order = new WC_Order($order_id);
|
378 |
// Check for the type of integration.
|
379 |
-
if ('redirect' == $this->method) {
|
380 |
-
if ('yes' == $this->debug) {
|
381 |
-
$this->log->add($this->id, $this->id . ': @[process_payment] - customer being redirected to Mercado Pago environment.');
|
382 |
}
|
383 |
return array(
|
384 |
'result' => 'success',
|
385 |
-
'redirect' => $this->createUrl($order)
|
386 |
);
|
387 |
-
} else if ('modal' == $this->method || 'iframe' == $this->method) {
|
388 |
-
if ('yes' == $this->debug) {
|
389 |
-
$this->log->add($this->id, $this->id . ': @[process_payment] - preparing to render Mercado Pago checkout view.');
|
390 |
}
|
391 |
-
if (defined('WC_VERSION') && version_compare(WC_VERSION, '2.1', '>=')) {
|
392 |
return array(
|
393 |
'result' => 'success',
|
394 |
-
'redirect' => $order->get_checkout_payment_url(true)
|
395 |
);
|
396 |
} else {
|
397 |
return array(
|
398 |
'result' => 'success',
|
399 |
-
'redirect' => add_query_arg('order', $order->id, add_query_arg('key', $order->order_key, get_permalink(woocommerce_get_page_id('pay'))))
|
400 |
);
|
401 |
}
|
402 |
}
|
@@ -404,56 +416,56 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
404 |
|
405 |
// 2. Order page and this generates the form that shows the pay button. This step
|
406 |
// generates the form to proceed to checkout.
|
407 |
-
public function receipt_page($order) {
|
408 |
-
echo $this->renderOrderForm($order);
|
409 |
}
|
410 |
// --------------------------------------------------
|
411 |
-
public function renderOrderForm($order_id) {
|
412 |
-
$order = new WC_Order($order_id);
|
413 |
-
$url = $this->createUrl($order);
|
414 |
-
if ($url) {
|
415 |
// Display checkout.
|
416 |
$html =
|
417 |
$this->iframe_width_desc = '<img width="468" height="60" src="' .
|
418 |
-
plugins_url('images/' . $this->
|
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/":"http://mp-tools.mlstatic.com/buttons/")+"render.js";var x = document.getElementsByTagName("script")[0];x.parentNode.insertBefore(s, x);window.$MPBR_loaded = true;})();}window.$MPBR_loaded !== true ? (window.attachEvent ? window.attachEvent("onload", $MPBR_load) : window.addEventListener("load", $MPBR_load, false)) : null;})();</script>';
|
437 |
} else {
|
438 |
-
if ('yes' == $this->debug) {
|
439 |
-
$this->log->add($this->id, $this->id . ': @[renderOrderForm] - embedding Mercado Pago iFrame.');
|
440 |
}
|
441 |
$html .= '<p></p><p>' . wordwrap(
|
442 |
-
__('Thank you for your order. Proceed with your payment completing the following information.', 'woocommerce-mercadopago-module'),
|
443 |
-
60, '<br>') . '</p>';
|
444 |
$html .=
|
445 |
'<iframe src="' . $url . '" name="MP-Checkout" ' .
|
446 |
-
'width="' . (is_numeric((int)$this->iframe_width) ? $this->iframe_width : 640) . '" ' .
|
447 |
-
'height="' . (is_numeric((int)$this->iframe_height) ? $this->iframe_height : 800) . '" ' .
|
448 |
'frameborder="0" scrolling="no" id="checkout_mercadopago"></iframe>';
|
449 |
}
|
450 |
return $html;
|
451 |
} else {
|
452 |
$html =
|
453 |
-
'<p>' . __('An error occurred when proccessing your payment. Please try again or contact us for assistence.', 'woocommerce-mercadopago-module') . '</p>';
|
454 |
$html .=
|
455 |
-
'<a class="button
|
456 |
-
__('Click to try again', 'woocommerce-mercadopago-module') .
|
457 |
'</a>';
|
458 |
return $html;
|
459 |
}
|
@@ -461,65 +473,61 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
461 |
|
462 |
// 3. Create Mercado Pago preference and get init_point URL based in the
|
463 |
// order options from the cart.
|
464 |
-
public function buildPaymentPreference($order) {
|
465 |
|
466 |
// Here we build the array that contains ordered itens, from customer cart
|
467 |
$items = array();
|
468 |
-
if (sizeof($order->get_items()) > 0) {
|
469 |
-
foreach ($order->get_items() as $item) {
|
470 |
-
if ($item['qty']) {
|
471 |
-
$product = new WC_product($item['product_id']);
|
472 |
-
array_push($items, array(
|
473 |
-
'id' => $item['product_id'],
|
474 |
-
'title' => ($product->post->post_title . ' x ' . $item['qty']),
|
475 |
'description' => (
|
476 |
// This handles description width limit of Mercado Pago.
|
477 |
-
strlen($product->post->post_content) > 230 ?
|
478 |
-
substr($product->post->post_content, 0, 230) . "..." :
|
479 |
$product->post->post_content
|
480 |
),
|
481 |
'picture_url' => $product->get_image(),
|
482 |
-
'category_id' => $this->store_categories_id[$this->category_id],
|
483 |
'quantity' => 1,
|
484 |
-
'unit_price' => (float)$item['line_total'],
|
485 |
-
'currency_id' =>
|
486 |
));
|
487 |
}
|
488 |
}
|
489 |
-
// shipment cost as an item (if we enable it in custom, we loss the 2 cards feature)
|
490 |
-
/*array_push($items, array(
|
491 |
-
'title' => $order->get_shipping_to_display(),
|
492 |
-
'description' => $order->get_shipping_to_display(),
|
493 |
-
'category_id' => $this->store_categories_id[$this->category_id],
|
494 |
-
'quantity' => 1,
|
495 |
-
'unit_price' => (float)$order->get_total_shipping(),
|
496 |
-
'currency_id' => get_woocommerce_currency()
|
497 |
-
));*/
|
498 |
}
|
499 |
|
500 |
// Find excluded payment methods. If 'n/d' is in array index, we should
|
501 |
// disconsider the remaining values.
|
502 |
$excluded_payment_methods = array();
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
|
|
|
|
|
|
|
|
|
|
516 |
$payment_methods = array(
|
517 |
-
'installments' => (is_numeric((int)$this->installments) ? (int)$this->installments : 24),
|
518 |
'default_installments' => 1
|
519 |
);
|
520 |
// Set excluded payment methods.
|
521 |
-
if (count($excluded_payment_methods) > 0) {
|
522 |
-
$payment_methods['excluded_payment_methods'] = $excluded_payment_methods;
|
523 |
}
|
524 |
|
525 |
// Create Mercado Pago preference.
|
@@ -542,15 +550,15 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
542 |
)
|
543 |
),
|
544 |
'back_urls' => array(
|
545 |
-
'success' => esc_url($this->get_return_url($order)),
|
546 |
-
'failure' => str_replace('&', '&', $order->get_cancel_order_url()),
|
547 |
-
'pending' => esc_url($this->get_return_url($order))
|
548 |
),
|
549 |
-
//'marketplace' =>
|
550 |
//'marketplace_fee' =>
|
551 |
'shipments' => array(
|
552 |
-
'cost' => (float)$order->get_total_shipping(),
|
553 |
-
'mode' =>
|
554 |
'receiver_address' => array(
|
555 |
'zip_code' => $order->shipping_postcode,
|
556 |
//'street_number' =>
|
@@ -571,54 +579,62 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
571 |
//'expiration_date_to' =>
|
572 |
);
|
573 |
// Set sponsor ID
|
574 |
-
if (!$this->isTestUser) {
|
575 |
-
$preferences['sponsor_id'] = (int)($sponsor_id[$this->site_id]);
|
576 |
}
|
577 |
// Auto return options.
|
578 |
-
if ('yes' == $this->auto_return) {
|
579 |
-
$preferences['auto_return'] = "approved";
|
580 |
}
|
581 |
-
if ('yes' == $this->debug) {
|
582 |
-
$this->log->add(
|
|
|
|
|
|
|
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 |
}
|
@@ -632,49 +648,69 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
632 |
|
633 |
// Check if we have valid credentials.
|
634 |
public function validateCredentials() {
|
635 |
-
if (empty($this->client_id)) return false;
|
636 |
-
if (empty($this->client_secret)) return false;
|
637 |
-
if (strlen($this->client_id) > 0 && strlen($this->client_secret) > 0) {
|
638 |
try {
|
639 |
-
$mp = new MP($this->client_id, $this->client_secret);
|
640 |
return true;
|
641 |
-
} catch (
|
642 |
return false;
|
643 |
}
|
644 |
}
|
645 |
return false;
|
646 |
}
|
647 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
// Return boolean indicating if currency is supported.
|
649 |
protected function isSupportedCurrency() {
|
650 |
-
return in_array(get_woocommerce_currency(), array('ARS', 'BRL', 'CLP', 'COP', 'MXN', '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
651 |
}
|
652 |
|
653 |
// Called automatically by WooCommerce, verify if Module is available to use.
|
654 |
public function is_available() {
|
655 |
// Test if is valid for use.
|
656 |
-
$available = ('yes' == $this->settings['enabled']) &&
|
657 |
-
! empty($this->client_id) &&
|
658 |
-
! empty($this->client_secret) &&
|
659 |
$this->isSupportedCurrency();
|
660 |
return $available;
|
661 |
}
|
662 |
|
663 |
// Fix css for Mercado Pago in specific cases.
|
664 |
public function css() {
|
665 |
-
if (defined('WC_VERSION') && version_compare(WC_VERSION, '2.1', '>=')) {
|
666 |
-
$page_id = wc_get_page_id('checkout');
|
667 |
} else {
|
668 |
-
$page_id = woocommerce_get_page_id('checkout');
|
669 |
}
|
670 |
-
if (is_page($page_id)) {
|
671 |
echo '<style type="text/css">#MP-Checkout-dialog { z-index: 9999 !important; }</style>' . PHP_EOL;
|
672 |
}
|
673 |
}
|
674 |
|
675 |
// Get the URL to admin page.
|
676 |
protected function admin_url() {
|
677 |
-
if (defined('WC_VERSION') && version_compare(WC_VERSION, '2.1', '>=')) {
|
678 |
return admin_url(
|
679 |
'admin.php?page=wc-settings&tab=checkout§ion=wc_woomercadopago_gateway'
|
680 |
);
|
@@ -687,34 +723,33 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
687 |
// Notify that Client_id and/or Client_secret are not valid.
|
688 |
public function clientIdOrSecretMissingMessage() {
|
689 |
echo '<div class="error"><p><strong>' .
|
690 |
-
__('
|
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 |
-
__('The currency') . ' <code>%s</code> ' . __('is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN,
|
705 |
-
get_woocommerce_currency()) .
|
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 'MLM': return __('Venezuela', 'woocommerce-mercadopago-module');
|
718 |
}
|
719 |
}
|
720 |
|
@@ -726,74 +761,84 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
726 |
|
727 |
// This call checks any incoming notifications from Mercado Pago server.
|
728 |
public function check_ipn_response() {
|
729 |
-
if ('yes' == $this->debug) {
|
730 |
-
$this->log->add($this->id, $this->id . ': @[check_ipn_response] - got a call from mercado pago ipn');
|
731 |
}
|
732 |
@ob_clean();
|
733 |
-
$data = $this->check_ipn_request_is_valid($_GET);
|
734 |
-
if ($data) {
|
735 |
-
header('HTTP/1.1 200 OK');
|
736 |
-
if ('yes' == $this->debug) {
|
737 |
-
$this->log->add(
|
|
|
|
|
|
|
738 |
}
|
739 |
-
do_action('valid_mercadopago_ipn_request', $data);
|
740 |
} else {
|
741 |
-
if ('yes' == $this->debug) {
|
742 |
-
$this->log->add(
|
|
|
|
|
|
|
743 |
}
|
744 |
-
wp_die(__('Mercado Pago Request Failure', 'woocommerce-mercadopago-module'));
|
745 |
}
|
746 |
}
|
747 |
|
748 |
// Get received data from IPN and checks if we have a merchant_order or
|
749 |
// payment associated. If we have these information, we return data to be
|
750 |
// processed by successful_request function.
|
751 |
-
public function check_ipn_request_is_valid($data) {
|
752 |
-
if ('yes' == $this->debug) {
|
753 |
-
$this->log->add(
|
|
|
|
|
|
|
754 |
}
|
755 |
-
if (!isset($data['id'])) {
|
756 |
-
if ('yes' == $this->debug) {
|
757 |
-
$this->log->add(
|
|
|
|
|
758 |
}
|
759 |
return false; // No ID? No process!
|
760 |
}
|
761 |
// Create MP object and setup sandbox mode.
|
762 |
-
$mp = new MP($this->client_id, $this->client_secret);
|
763 |
-
if ('yes' == $this->sandbox) {
|
764 |
-
$mp->sandbox_mode(true);
|
765 |
} else {
|
766 |
-
$mp->sandbox_mode(false);
|
767 |
}
|
768 |
try { // Get the merchant_order reported by the IPN. Glossary of attributes response in https://developers.mercadopago.com
|
769 |
-
$params = array("access_token" => $mp->get_access_token());
|
770 |
-
if ($data["topic"] == 'merchant_order') {
|
771 |
-
$merchant_order_info = $mp->get("/merchant_orders/" . $_GET["id"], $params, false);
|
772 |
// If the payment's transaction amount is equal (or bigger) than the merchant order's amount you can release your items
|
773 |
-
if (!is_wp_error($merchant_order_info) && ($merchant_order_info["status"] == 200)) {
|
774 |
-
$payments = $merchant_order_info["response"]["payments"];
|
775 |
// check if we have more than one payment method
|
776 |
-
if (sizeof($payments)
|
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 |
}
|
@@ -801,97 +846,113 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
801 |
}
|
802 |
|
803 |
// Properly handles each case of notification, based in payment status.
|
804 |
-
public function successful_request($data) {
|
805 |
-
if ('yes' == $this->debug) {
|
806 |
-
$this->log->add($this->id, $this->id . ': @[successful_request] - starting to process ipn update...');
|
807 |
}
|
808 |
-
$order_key = $data['external_reference'];
|
809 |
-
if (!empty($order_key)) {
|
810 |
-
$order_id = (int)str_replace($this->invoice_prefix, '', $order_key);
|
811 |
-
$order = new WC_Order($order_id);
|
812 |
// Checks whether the invoice number matches the order. If true processes the payment.
|
813 |
-
if ($order->id === $order_id) {
|
814 |
if ( 'yes' == $this->debug ) {
|
815 |
-
$this->log->add($this->id, $this->id . ': @[successful_request] - got order with ID ' . $order->id . ' and status ' . $data['payments'][0]['status']);
|
816 |
}
|
817 |
// Order details.
|
818 |
-
if (!empty($data['
|
819 |
update_post_meta(
|
820 |
$order_id,
|
821 |
-
__('
|
822 |
-
$data['
|
823 |
);
|
824 |
}
|
825 |
-
if (!empty($data['
|
826 |
update_post_meta(
|
827 |
$order_id,
|
828 |
-
__('
|
829 |
-
$data['
|
830 |
);
|
831 |
}
|
832 |
-
if (!empty($data['
|
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 |
}
|
@@ -899,4 +960,4 @@ class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
|
899 |
}
|
900 |
}
|
901 |
|
902 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
|
7 |
+
* License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
*/
|
9 |
|
10 |
// This include Mercado Pago library SDK
|
11 |
require_once "sdk/lib/mercadopago.php";
|
12 |
|
13 |
+
// Extending from WooCommerce Payment Gateway class.
|
14 |
+
// This class implements Mercado Pago standard checkout.
|
|
|
|
|
15 |
class WC_WooMercadoPago_Gateway extends WC_Payment_Gateway {
|
16 |
|
17 |
// This array stores each banner image, depending on the country it belongs to or on
|
18 |
// the type of checkout we use.
|
19 |
+
private $banners_mercadopago_standard = array(
|
20 |
+
"MLA" => 'MLA/standard_mla.jpg',
|
21 |
+
"MLB" => 'MLB/standard_mlb.jpg',
|
22 |
+
"MCO" => 'MCO/standard_mco.jpg',
|
23 |
+
"MLC" => 'MLC/standard_mlc.gif',
|
24 |
+
"MLV" => 'MLV/standard_mlv.jpg',
|
25 |
+
"MLM" => 'MLM/standard_mlm.jpg'
|
|
|
|
|
|
|
|
|
26 |
);
|
27 |
|
28 |
// Sponsor ID array by country
|
40 |
// [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
|
41 |
// for documentation and further information.
|
42 |
public function __construct() {
|
|
|
|
|
|
|
43 |
|
44 |
// These fields are declared because we use them dinamically in our gateway class.
|
45 |
+
$this->domain = get_site_url() . '/index.php';
|
46 |
$this->site_id = null;
|
47 |
$this->isTestUser = false;
|
48 |
$this->payment_methods = array();
|
53 |
$this->id = 'woocommerce-mercadopago-module';
|
54 |
$this->icon = apply_filters(
|
55 |
'woocommerce_mercadopago_icon',
|
56 |
+
plugins_url( 'images/mercadopago.png', plugin_dir_path( __FILE__ ) )
|
57 |
);
|
58 |
+
$this->method_title = __( 'Mercado Pago - Standard Checkout', 'woocommerce-mercadopago-module' );
|
59 |
$this->method_description = '<img width="200" height="52" src="' .
|
60 |
+
plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
|
61 |
+
wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
|
62 |
'</strong>';
|
63 |
|
64 |
// These fields are used in our Mercado Pago Module configuration page.
|
65 |
+
$this->client_id = $this->get_option( 'client_id' );
|
66 |
+
$this->client_secret = $this->get_option( 'client_secret' );
|
67 |
+
$this->title = $this->get_option( 'title' );
|
68 |
+
$this->description = $this->get_option( 'description' );
|
69 |
+
$this->category_id = $this->get_option( 'category_id' );
|
70 |
+
$this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
|
71 |
+
$this->method = $this->get_option( 'method', 'modal' );
|
72 |
+
$this->iframe_width = $this->get_option( 'iframe_width', 640 );
|
73 |
+
$this->iframe_height = $this->get_option( 'iframe_height', 800 );
|
74 |
+
$this->auto_return = $this->get_option( 'auto_return', true );
|
75 |
+
$this->installments = $this->get_option( 'installments', '24' );
|
76 |
+
$this->ex_payments = $this->get_option( 'ex_payments', 'n/d' );
|
77 |
$this->sandbox = $this->get_option('sandbox', false);
|
78 |
$this->debug = $this->get_option('debug');
|
79 |
|
84 |
// Hook actions for WordPress.
|
85 |
add_action( // Used by IPN to receive IPN incomings.
|
86 |
'woocommerce_api_wc_woomercadopago_gateway',
|
87 |
+
array( $this, 'check_ipn_response' )
|
88 |
);
|
89 |
add_action( // Used by IPN to process valid incomings.
|
90 |
'valid_mercadopago_ipn_request',
|
91 |
+
array( $this, 'successful_request' )
|
92 |
);
|
93 |
add_action( // Used by WordPress to render the custom checkout page.
|
94 |
'woocommerce_receipt_' . $this->id,
|
95 |
+
array( $this, 'receipt_page' )
|
96 |
);
|
97 |
add_action( // Used to fix CSS in some older WordPress/WooCommerce versions.
|
98 |
+
'wp_head',
|
99 |
+
array( $this, 'css' )
|
100 |
);
|
101 |
add_action( // Used in settings page to hook "save settings" action.
|
102 |
'woocommerce_update_options_payment_gateways_' . $this->id,
|
103 |
+
array( $this, 'process_admin_options' )
|
104 |
);
|
105 |
|
106 |
// Verify if client_id or client_secret is empty.
|
107 |
+
if ( empty( $this->client_id ) || empty( $this->client_secret ) ) {
|
108 |
+
add_action( 'admin_notices', array( $this, 'clientIdOrSecretMissingMessage' ) );
|
109 |
}
|
110 |
|
111 |
// Verify if currency is supported.
|
112 |
+
if ( !$this->isSupportedCurrency() ) {
|
113 |
+
add_action( 'admin_notices', array( $this, 'currencyNotSupportedMessage' ) );
|
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 |
|
130 |
|
131 |
$api_secret_locale = sprintf(
|
132 |
'<a href="https://www.mercadopago.com/mla/herramientas/aplicaciones" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mlb/ferramentas/aplicacoes" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mlc/herramientas/aplicaciones" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mco/ferramentas/aplicacoes" target="_blank">%s</a>, <a href="https://www.mercadopago.com/mlm/herramientas/aplicaciones" target="_blank">%s</a> %s <a href="https://www.mercadopago.com/mlv/herramientas/aplicaciones" target="_blank">%s</a>',
|
133 |
+
__( 'Argentine', 'woocommerce-mercadopago-module' ),
|
134 |
+
__( 'Brazil', 'woocommerce-mercadopago-module' ),
|
135 |
+
__( 'Chile', 'woocommerce-mercadopago-module' ),
|
136 |
+
__( 'Colombia', 'woocommerce-mercadopago-module' ),
|
137 |
+
__( 'Mexico', 'woocommerce-mercadopago-module' ),
|
138 |
+
__( 'or', 'woocommerce-mercadopago-module' ),
|
139 |
+
__( 'Venezuela', 'woocommerce-mercadopago-module' )
|
140 |
);
|
141 |
|
142 |
// Trigger API to get payment methods and site_id, also validates Client_id/Client_secret.
|
143 |
+
if ( $this->validateCredentials() ) {
|
144 |
try {
|
145 |
+
$mp = new MP( $this->client_id, $this->client_secret );
|
146 |
$access_token = $mp->get_access_token();
|
147 |
+
$get_request = $mp->get( "/users/me?access_token=" . $access_token );
|
148 |
+
$this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
|
149 |
+
$this->site_id = $get_request[ 'response' ][ 'site_id' ];
|
150 |
+
$payments = $mp->get( "/v1/payment_methods/?access_token=" . $access_token );
|
151 |
+
array_push( $this->payment_methods, "n/d" );
|
152 |
+
foreach ( $payments[ "response" ] as $payment ) {
|
153 |
+
array_push( $this->payment_methods, str_replace( "_", " ", $payment[ 'id' ] ) );
|
154 |
}
|
155 |
$this->payment_desc =
|
156 |
+
__( 'Select the payment methods that you <strong>don\'t</strong> want to receive with Mercado Pago.', 'woocommerce-mercadopago-module' );
|
157 |
$this->credentials_message = '<img width="12" height="12" src="' .
|
158 |
+
plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
159 |
+
' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
|
160 |
+
': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
|
161 |
+
plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
|
162 |
+
} catch ( MercadoPagoException $e ) {
|
163 |
+
array_push( $this->payment_methods, "n/d" );
|
164 |
$this->payment_desc = '<img width="12" height="12" src="' .
|
165 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
166 |
+
' ' . __( 'Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module' );
|
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 |
+
array_push( $this->payment_methods, "n/d" );
|
173 |
$this->payment_desc = '<img width="12" height="12" src="' .
|
174 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
175 |
+
' ' . __( 'Configure your Client_id and Client_secret to have access to more options.', 'woocommerce-mercadopago-module' );
|
176 |
$this->credentials_message = '<img width="12" height="12" src="' .
|
177 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
178 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
179 |
}
|
180 |
|
181 |
// Fills categoy selector. We do not need credentials to make this call.
|
182 |
+
$categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
|
183 |
+
foreach ( $categories[ "response" ] as $category ) {
|
184 |
+
array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
|
185 |
+
array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
|
186 |
}
|
187 |
|
188 |
// Checks validity of iFrame width/height fields.
|
189 |
+
if ( !is_numeric( $this->iframe_width ) ) {
|
190 |
$this->iframe_width_desc = '<img width="12" height="12" src="' .
|
191 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
192 |
+
' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
|
193 |
} else {
|
194 |
$this->iframe_width_desc =
|
195 |
+
__( 'If your integration method is iFrame, please inform the payment iFrame width.', 'woocommerce-mercadopago-module' );
|
196 |
}
|
197 |
+
if ( !is_numeric( $this->iframe_height ) ) {
|
198 |
$this->iframe_height_desc = '<img width="12" height="12" src="' .
|
199 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
200 |
+
' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
|
201 |
} else {
|
202 |
$this->iframe_height_desc =
|
203 |
+
__( 'If your integration method is iFrame, please inform the payment iFrame height.', 'woocommerce-mercadopago-module' );
|
204 |
}
|
205 |
|
206 |
// Checks if max installments is a number.
|
207 |
+
if ( !is_numeric( $this->installments ) ) {
|
208 |
$this->installments_desc = '<img width="12" height="12" src="' .
|
209 |
+
plugins_url( 'images/warning.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
210 |
+
' ' . __( 'This field should be an integer.', 'woocommerce-mercadopago-module' );
|
211 |
} else {
|
212 |
$this->installments_desc =
|
213 |
+
__( 'Select the max number of installments for your customers.', 'woocommerce-mercadopago-module' );
|
214 |
}
|
215 |
|
216 |
// This array draws each UI (text, selector, checkbox, label, etc).
|
217 |
$this->form_fields = array(
|
218 |
'enabled' => array(
|
219 |
+
'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
|
220 |
'type' => 'checkbox',
|
221 |
+
'label' => __( 'Enable Standard Checkout', 'woocommerce-mercadopago-module' ),
|
222 |
+
'default' => 'no'
|
223 |
),
|
224 |
'credentials_title' => array(
|
225 |
+
'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
|
226 |
'type' => 'title',
|
227 |
+
'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
|
228 |
),
|
229 |
'client_id' => array(
|
230 |
'title' => 'Client_id',
|
231 |
'type' => 'text',
|
232 |
+
'description' => __( 'Insert your Mercado Pago Client_id.', 'woocommerce-mercadopago-module' ),
|
233 |
'default' => '',
|
234 |
'required' => true
|
235 |
),
|
236 |
'client_secret' => array(
|
237 |
'title' => 'Client_secret',
|
238 |
'type' => 'text',
|
239 |
+
'description' => __( 'Insert your Mercado Pago Client_secret.', 'woocommerce-mercadopago-module' ),
|
240 |
'default' => '',
|
241 |
'required' => true
|
242 |
),
|
243 |
'ipn_url' => array(
|
244 |
+
'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
|
245 |
'type' => 'title',
|
246 |
+
'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>.' )
|
247 |
),
|
248 |
'checkout_options_title' => array(
|
249 |
+
'title' => __( 'Checkout Options', 'woocommerce-mercadopago-module' ),
|
250 |
'type' => 'title',
|
251 |
'description' => ''
|
252 |
),
|
253 |
'title' => array(
|
254 |
+
'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
|
255 |
'type' => 'text',
|
256 |
+
'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
257 |
+
'default' => __( 'Mercado Pago', 'woocommerce-mercadopago-module' )
|
258 |
),
|
259 |
'description' => array(
|
260 |
+
'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
|
261 |
'type' => 'textarea',
|
262 |
+
'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
263 |
+
'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
|
264 |
),
|
265 |
'category_id' => array(
|
266 |
+
'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
|
267 |
'type' => 'select',
|
268 |
+
'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
|
269 |
'options' => $this->store_categories_id
|
270 |
),
|
271 |
'invoice_prefix' => array(
|
272 |
+
'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
|
273 |
'type' => 'text',
|
274 |
+
'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' ),
|
275 |
'default' => 'WC-'
|
276 |
),
|
277 |
'method' => array(
|
278 |
+
'title' => __( 'Integration Method', 'woocommerce-mercadopago-module' ),
|
279 |
'type' => 'select',
|
280 |
+
'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' ),
|
281 |
'default' => 'iframe',
|
282 |
'options' => array(
|
283 |
+
'iframe' => __( 'iFrame', 'woocommerce-mercadopago-module' ),
|
284 |
+
'modal' => __( 'Modal Window', 'woocommerce-mercadopago-module' ),
|
285 |
+
'redirect' => __( 'Redirect', 'woocommerce-mercadopago-module' )
|
286 |
)
|
287 |
),
|
288 |
'iframe_width' => array(
|
289 |
+
'title' => __( 'iFrame Width', 'woocommerce-mercadopago-module' ),
|
290 |
'type' => 'text',
|
291 |
'description' => $this->iframe_width_desc,
|
292 |
'default' => '640'
|
293 |
),
|
294 |
'iframe_height' => array(
|
295 |
+
'title' => __( 'iFrame Height', 'woocommerce-mercadopago-module' ),
|
296 |
'type' => 'text',
|
297 |
'description' => $this->iframe_height_desc,
|
298 |
'default' => '800'
|
299 |
),
|
300 |
'auto_return' => array(
|
301 |
+
'title' => __( 'Auto Return', 'woocommerce-mercadopago-module' ),
|
302 |
'type' => 'checkbox',
|
303 |
+
'label' => __( 'Automatic Return After Payment', 'woocommerce-mercadopago-module' ),
|
304 |
'default' => 'yes',
|
305 |
+
'description' => __( 'After the payment, client is automatically redirected.', 'woocommerce-mercadopago-module' ),
|
306 |
),
|
307 |
'testing_title' => array(
|
308 |
+
'title' => __( 'Payment Options', 'woocommerce-mercadopago-module' ),
|
309 |
'type' => 'title',
|
310 |
'description' => ''
|
311 |
),
|
312 |
'installments' => array(
|
313 |
+
'title' => __( 'Max installments', 'woocommerce-mercadopago-module' ),
|
314 |
'type' => 'text',
|
315 |
'description' => $this->installments_desc,
|
316 |
'default' => '24'
|
317 |
),
|
318 |
'ex_payments' => array(
|
319 |
+
'title' => __( 'Exclude Payment Methods', 'woocommerce-mercadopago-module' ),
|
320 |
'description' => $this->payment_desc,
|
321 |
'type' => 'multiselect',
|
322 |
'options' => $this->payment_methods,
|
323 |
'default' => ''
|
324 |
),
|
325 |
'testing' => array(
|
326 |
+
'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
|
327 |
'type' => 'title',
|
328 |
'description' => ''
|
329 |
),
|
330 |
'sandbox' => array(
|
331 |
+
'title' => __( 'Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
|
332 |
'type' => 'checkbox',
|
333 |
+
'label' => __( 'Enable Mercado Pago Sandbox', 'woocommerce-mercadopago-module' ),
|
334 |
'default' => 'no',
|
335 |
+
'description' => __( 'This option allows you to test payments inside a sandbox environment.', 'woocommerce-mercadopago-module' ),
|
336 |
),
|
337 |
'debug' => array(
|
338 |
+
'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
|
339 |
'type' => 'checkbox',
|
340 |
+
'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
|
341 |
'default' => 'no',
|
342 |
+
'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
|
343 |
+
' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
|
344 |
+
'<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
|
345 |
)
|
346 |
);
|
347 |
|
348 |
}
|
349 |
|
350 |
+
public function admin_options() {
|
351 |
+
$this->validate_settings_fields();
|
352 |
+
if ( count( $this->errors ) > 0 ) {
|
353 |
+
$this->display_errors();
|
354 |
+
return false;
|
355 |
+
} else {
|
356 |
+
echo wpautop( $this->method_description );
|
357 |
+
?>
|
358 |
+
<p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
|
359 |
+
<?php esc_html_e( sprintf( __( 'Please, rate us %s on WordPress.org and give your feedback to help improve this module!', 'woocommerce-mercadopago-module' ), '★★★★★' ) ); ?>
|
360 |
+
</a></p>
|
361 |
+
<table class="form-table">
|
362 |
+
<?php $this->generate_settings_html(); ?>
|
363 |
+
</table>
|
364 |
+
<?php
|
365 |
+
return true;
|
366 |
+
}
|
367 |
+
}
|
368 |
+
|
369 |
/*
|
370 |
* ========================================================================
|
371 |
* CHECKOUT BUSINESS RULES
|
372 |
* ========================================================================
|
373 |
*/
|
374 |
+
|
375 |
+
public function payment_fields() {
|
376 |
+
// standard checkout
|
377 |
+
if ($description = $this->get_description() ) {
|
378 |
+
echo wpautop( wptexturize( $description ) );
|
379 |
+
}
|
380 |
+
if ( $this->supports( 'default_credit_card_form' ) ) {
|
381 |
+
$this->credit_card_form();
|
382 |
+
}
|
383 |
+
}
|
384 |
+
|
385 |
// 1. First step occurs when the customer selects Mercado Pago and proceed to
|
386 |
// checkout. This method verify which integration method was selected and
|
387 |
// makes the build for the checkout URL.
|
388 |
+
public function process_payment( $order_id ) {
|
389 |
+
$order = new WC_Order( $order_id );
|
390 |
// Check for the type of integration.
|
391 |
+
if ( 'redirect' == $this->method ) {
|
392 |
+
if ( 'yes' == $this->debug ) {
|
393 |
+
$this->log->add( $this->id, $this->id . ': @[process_payment] - customer being redirected to Mercado Pago environment.' );
|
394 |
}
|
395 |
return array(
|
396 |
'result' => 'success',
|
397 |
+
'redirect' => $this->createUrl( $order )
|
398 |
);
|
399 |
+
} else if ( 'modal' == $this->method || 'iframe' == $this->method ) {
|
400 |
+
if ( 'yes' == $this->debug ) {
|
401 |
+
$this->log->add( $this->id, $this->id . ': @[process_payment] - preparing to render Mercado Pago checkout view.' );
|
402 |
}
|
403 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
404 |
return array(
|
405 |
'result' => 'success',
|
406 |
+
'redirect' => $order->get_checkout_payment_url( true )
|
407 |
);
|
408 |
} else {
|
409 |
return array(
|
410 |
'result' => 'success',
|
411 |
+
'redirect' => add_query_arg( 'order', $order->id, add_query_arg( 'key', $order->order_key, get_permalink( woocommerce_get_page_id( 'pay' ) ) ) )
|
412 |
);
|
413 |
}
|
414 |
}
|
416 |
|
417 |
// 2. Order page and this generates the form that shows the pay button. This step
|
418 |
// generates the form to proceed to checkout.
|
419 |
+
public function receipt_page( $order ) {
|
420 |
+
echo $this->renderOrderForm( $order );
|
421 |
}
|
422 |
// --------------------------------------------------
|
423 |
+
public function renderOrderForm( $order_id ) {
|
424 |
+
$order = new WC_Order( $order_id );
|
425 |
+
$url = $this->createUrl( $order );
|
426 |
+
if ( $url ) {
|
427 |
// Display checkout.
|
428 |
$html =
|
429 |
$this->iframe_width_desc = '<img width="468" height="60" src="' .
|
430 |
+
plugins_url( 'images/' . $this->banners_mercadopago_standard[ $this->site_id ], plugin_dir_path( __FILE__ ) ) . '">';
|
431 |
+
if ( 'iframe' != $this->method ) {
|
432 |
+
if ( 'yes' == $this->debug ) {
|
433 |
+
$this->log->add( $this->id, $this->id . ': @[renderOrderForm] - rendering Mercado Pago lightbox (modal window).' );
|
434 |
}
|
435 |
$html .= '<p></p><p>' . wordwrap(
|
436 |
+
__( 'Thank you for your order. Please, proceed with your payment clicking in the bellow button.', 'woocommerce-mercadopago-module' ),
|
437 |
60, '<br>') . '</p>';
|
438 |
$html .=
|
439 |
'<a id="submit-payment" href="' . $url . '" name="MP-Checkout" class="button alt" mp-mode="modal">' .
|
440 |
+
__( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' ) .
|
441 |
'</a> ';
|
442 |
$html .=
|
443 |
+
'<a class="button cancel" href="' . esc_url( $order->get_cancel_order_url() ) . '">' .
|
444 |
+
__( 'Cancel order & Clear cart', 'woocommerce-mercadopago-module' ) .
|
445 |
'</a><style type="text/css">#MP-Checkout-dialog #MP-Checkout-IFrame { bottom: -28px !important; height: 590px !important; }</style>';
|
446 |
// Includes javascript.
|
447 |
$html .=
|
448 |
'<script type="text/javascript">(function(){function $MPBR_load(){window.$MPBR_loaded !== true && (function(){var s = document.createElement("script");s.type = "text/javascript";s.async = true;s.src = ("https:"==document.location.protocol?"https://www.mercadopago.com/org-img/jsapi/mptools/buttons/":"http://mp-tools.mlstatic.com/buttons/")+"render.js";var x = document.getElementsByTagName("script")[0];x.parentNode.insertBefore(s, x);window.$MPBR_loaded = true;})();}window.$MPBR_loaded !== true ? (window.attachEvent ? window.attachEvent("onload", $MPBR_load) : window.addEventListener("load", $MPBR_load, false)) : null;})();</script>';
|
449 |
} else {
|
450 |
+
if ( 'yes' == $this->debug ) {
|
451 |
+
$this->log->add( $this->id, $this->id . ': @[renderOrderForm] - embedding Mercado Pago iFrame.' );
|
452 |
}
|
453 |
$html .= '<p></p><p>' . wordwrap(
|
454 |
+
__( 'Thank you for your order. Proceed with your payment completing the following information.', 'woocommerce-mercadopago-module' ),
|
455 |
+
60, '<br>' ) . '</p>';
|
456 |
$html .=
|
457 |
'<iframe src="' . $url . '" name="MP-Checkout" ' .
|
458 |
+
'width="' . ( is_numeric( (int) $this->iframe_width ) ? $this->iframe_width : 640 ) . '" ' .
|
459 |
+
'height="' . ( is_numeric( (int) $this->iframe_height ) ? $this->iframe_height : 800 ) . '" ' .
|
460 |
'frameborder="0" scrolling="no" id="checkout_mercadopago"></iframe>';
|
461 |
}
|
462 |
return $html;
|
463 |
} else {
|
464 |
$html =
|
465 |
+
'<p>' . __( 'An error occurred when proccessing your payment. Please try again or contact us for assistence.', 'woocommerce-mercadopago-module' ) . '</p>';
|
466 |
$html .=
|
467 |
+
'<a class="button" href="' . esc_url( $order->get_checkout_payment_url() ) . '">' .
|
468 |
+
__( 'Click to try again', 'woocommerce-mercadopago-module' ) .
|
469 |
'</a>';
|
470 |
return $html;
|
471 |
}
|
473 |
|
474 |
// 3. Create Mercado Pago preference and get init_point URL based in the
|
475 |
// order options from the cart.
|
476 |
+
public function buildPaymentPreference( $order ) {
|
477 |
|
478 |
// Here we build the array that contains ordered itens, from customer cart
|
479 |
$items = array();
|
480 |
+
if ( sizeof( $order->get_items() ) > 0 ) {
|
481 |
+
foreach ( $order->get_items() as $item ) {
|
482 |
+
if ( $item['qty'] ) {
|
483 |
+
$product = new WC_product( $item[ 'product_id' ] );
|
484 |
+
array_push( $items, array(
|
485 |
+
'id' => $item[ 'product_id' ],
|
486 |
+
'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
|
487 |
'description' => (
|
488 |
// This handles description width limit of Mercado Pago.
|
489 |
+
strlen( $product->post->post_content ) > 230 ?
|
490 |
+
substr( $product->post->post_content, 0, 230 ) . "..." :
|
491 |
$product->post->post_content
|
492 |
),
|
493 |
'picture_url' => $product->get_image(),
|
494 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
495 |
'quantity' => 1,
|
496 |
+
'unit_price' => (float) $item[ 'line_total' ],
|
497 |
+
'currency_id' => $this->getCurrencyId($this->site_id)
|
498 |
));
|
499 |
}
|
500 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
501 |
}
|
502 |
|
503 |
// Find excluded payment methods. If 'n/d' is in array index, we should
|
504 |
// disconsider the remaining values.
|
505 |
$excluded_payment_methods = array();
|
506 |
+
if ( is_array( $this->ex_payments ) || is_object( $this->ex_payments ) ) {
|
507 |
+
try { // in some PHP versions, $this->ex_payments is interpreted as a not iterable object
|
508 |
+
foreach ( $this->ex_payments as $excluded ) {
|
509 |
+
if ( $excluded == 0 ) // if "n/d" is selected, we just not add any items to the array
|
510 |
+
break;
|
511 |
+
array_push( $excluded_payment_methods, array(
|
512 |
+
"id" => $this->payment_methods[ $excluded ]
|
513 |
+
));
|
514 |
+
}
|
515 |
+
} catch ( MercadoPagoException $e ) {
|
516 |
+
if ( 'yes' == $this->debug ) {
|
517 |
+
$this->log->add(
|
518 |
+
$this->id, $this->id .
|
519 |
+
': @[DEBUG] - excluded payments: exception caught: ' .
|
520 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
521 |
+
}
|
522 |
+
}
|
523 |
+
}
|
524 |
$payment_methods = array(
|
525 |
+
'installments' => ( is_numeric( (int) $this->installments) ? (int) $this->installments : 24 ),
|
526 |
'default_installments' => 1
|
527 |
);
|
528 |
// Set excluded payment methods.
|
529 |
+
if ( count( $excluded_payment_methods ) > 0 ) {
|
530 |
+
$payment_methods[ 'excluded_payment_methods' ] = $excluded_payment_methods;
|
531 |
}
|
532 |
|
533 |
// Create Mercado Pago preference.
|
550 |
)
|
551 |
),
|
552 |
'back_urls' => array(
|
553 |
+
'success' => esc_url( $this->get_return_url( $order ) ),
|
554 |
+
'failure' => str_replace( '&', '&', $order->get_cancel_order_url() ),
|
555 |
+
'pending' => esc_url( $this->get_return_url( $order ) )
|
556 |
),
|
557 |
+
//'marketplace' =>
|
558 |
//'marketplace_fee' =>
|
559 |
'shipments' => array(
|
560 |
+
'cost' => (float) $order->get_total_shipping(),
|
561 |
+
//'mode' =>
|
562 |
'receiver_address' => array(
|
563 |
'zip_code' => $order->shipping_postcode,
|
564 |
//'street_number' =>
|
579 |
//'expiration_date_to' =>
|
580 |
);
|
581 |
// Set sponsor ID
|
582 |
+
if ( !$this->isTestUser ) {
|
583 |
+
$preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
|
584 |
}
|
585 |
// Auto return options.
|
586 |
+
if ( 'yes' == $this->auto_return ) {
|
587 |
+
$preferences[ 'auto_return' ] = "approved";
|
588 |
}
|
589 |
+
if ( 'yes' == $this->debug ) {
|
590 |
+
$this->log->add(
|
591 |
+
$this->id, $this->id .
|
592 |
+
': @[buildPaymentPreference] - requesting mercado pago preference creation with following structure: ' .
|
593 |
+
json_encode( $preferences, JSON_PRETTY_PRINT ) );
|
594 |
}
|
595 |
+
$preferences = apply_filters( 'woocommerce_mercadopago_module_preferences', $preferences, $order );
|
596 |
return $preferences;
|
597 |
}
|
598 |
// --------------------------------------------------
|
599 |
+
protected function createUrl( $order ) {
|
600 |
// Creates the order parameters by checking the cart configuration.
|
601 |
+
$preferences = $this->buildPaymentPreference( $order );
|
602 |
+
$mp = new MP( $this->client_id, $this->client_secret );
|
603 |
// Checks for sandbox mode.
|
604 |
+
if ( 'yes' == $this->sandbox ) {
|
605 |
+
$mp->sandbox_mode( true );
|
606 |
+
if ( 'yes' == $this->debug ) {
|
607 |
+
$this->log->add( $this->id, $this->id . ': @[createUrl] - sandbox mode is enabled' );
|
608 |
}
|
609 |
} else {
|
610 |
+
$mp->sandbox_mode( false );
|
611 |
}
|
612 |
// Create order preferences with Mercado Pago API request.
|
613 |
try {
|
614 |
+
$checkout_info = $mp->create_preference( json_encode( $preferences ) );
|
615 |
+
if ( is_wp_error( $checkout_info ) || $checkout_info[ 'status' ] < 200 || $checkout_info[ 'status' ] >= 300 ) {
|
616 |
+
if ( 'yes' == $this->debug ) {
|
617 |
+
$this->log->add( $this->id, $this->id . ': @[createUrl] - payment creation failed with error: ' . $checkout_info[ 'response' ][ 'status' ] );
|
618 |
}
|
619 |
return false;
|
620 |
} else {
|
621 |
+
if ( 'yes' == $this->debug ) {
|
622 |
+
$this->log->add( $this->id, $this->id .
|
623 |
+
': @[createUrl] - payment link generated with success from mercado pago, with structure as follow: ' .
|
624 |
+
json_encode( $checkout_info, JSON_PRETTY_PRINT ) );
|
625 |
}
|
626 |
+
if ( 'yes' == $this->sandbox ) {
|
627 |
+
return $checkout_info[ 'response' ][ 'sandbox_init_point' ];
|
628 |
} else {
|
629 |
+
return $checkout_info[ 'response' ][ 'init_point' ];
|
630 |
}
|
631 |
}
|
632 |
+
} catch ( MercadoPagoException $e ) {
|
633 |
+
if ( 'yes' == $this->debug ) {
|
634 |
+
$this->log->add(
|
635 |
+
$this->id, $this->id .
|
636 |
+
': @[createUrl] - payment creation failed with exception: ' .
|
637 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
638 |
}
|
639 |
return false;
|
640 |
}
|
648 |
|
649 |
// Check if we have valid credentials.
|
650 |
public function validateCredentials() {
|
651 |
+
if ( empty( $this->client_id ) ) return false;
|
652 |
+
if ( empty( $this->client_secret ) ) return false;
|
653 |
+
if ( strlen( $this->client_id ) > 0 && strlen( $this->client_secret ) > 0 ) {
|
654 |
try {
|
655 |
+
$mp = new MP( $this->client_id, $this->client_secret );
|
656 |
return true;
|
657 |
+
} catch ( MercadoPagoException $e ) {
|
658 |
return false;
|
659 |
}
|
660 |
}
|
661 |
return false;
|
662 |
}
|
663 |
|
664 |
+
// Build the string representing the path to the log file
|
665 |
+
protected function buildLogPathString() {
|
666 |
+
return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
|
667 |
+
esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
|
668 |
+
__( 'WooCommerce > System Status > Logs', 'woocommerce-mercadopago-module' ) . '</a>';
|
669 |
+
}
|
670 |
+
|
671 |
// Return boolean indicating if currency is supported.
|
672 |
protected function isSupportedCurrency() {
|
673 |
+
return in_array( get_woocommerce_currency(), array( 'ARS', 'BRL', 'CLP', 'COP', 'MXN', 'VEF' ) );
|
674 |
+
}
|
675 |
+
|
676 |
+
// Get currency id for a country
|
677 |
+
protected function getCurrencyId( $site_id ) {
|
678 |
+
switch ( $site_id ) {
|
679 |
+
case 'MLA': return 'ARS';
|
680 |
+
case 'MLB': return 'BRL';
|
681 |
+
case 'MCO': return 'CLP';
|
682 |
+
case 'MLC': return 'COP';
|
683 |
+
case 'MLM': return 'MXN';
|
684 |
+
case 'MLV': return 'VEF';
|
685 |
+
default: return '';
|
686 |
+
}
|
687 |
}
|
688 |
|
689 |
// Called automatically by WooCommerce, verify if Module is available to use.
|
690 |
public function is_available() {
|
691 |
// Test if is valid for use.
|
692 |
+
$available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
|
693 |
+
! empty( $this->client_id ) &&
|
694 |
+
! empty( $this->client_secret ) &&
|
695 |
$this->isSupportedCurrency();
|
696 |
return $available;
|
697 |
}
|
698 |
|
699 |
// Fix css for Mercado Pago in specific cases.
|
700 |
public function css() {
|
701 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
702 |
+
$page_id = wc_get_page_id( 'checkout' );
|
703 |
} else {
|
704 |
+
$page_id = woocommerce_get_page_id( 'checkout' );
|
705 |
}
|
706 |
+
if ( is_page($page_id ) ) {
|
707 |
echo '<style type="text/css">#MP-Checkout-dialog { z-index: 9999 !important; }</style>' . PHP_EOL;
|
708 |
}
|
709 |
}
|
710 |
|
711 |
// Get the URL to admin page.
|
712 |
protected function admin_url() {
|
713 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
714 |
return admin_url(
|
715 |
'admin.php?page=wc-settings&tab=checkout§ion=wc_woomercadopago_gateway'
|
716 |
);
|
723 |
// Notify that Client_id and/or Client_secret are not valid.
|
724 |
public function clientIdOrSecretMissingMessage() {
|
725 |
echo '<div class="error"><p><strong>' .
|
726 |
+
__( 'Standard Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
|
727 |
'</strong>: ' .
|
728 |
sprintf(
|
729 |
+
__( 'Your Mercado Pago credentials Client_id/Client_secret appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
|
730 |
+
'<a href="' . $this->admin_url() . '">' . __( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
|
731 |
'</p></div>';
|
732 |
}
|
733 |
|
734 |
// Notify that currency is not supported.
|
735 |
public function currencyNotSupportedMessage() {
|
736 |
echo '<div class="error"><p><strong>' .
|
737 |
+
__( 'Standard Checkout is Inactive', 'woocommerce-mercadopago-module' ) .
|
738 |
'</strong>: ' .
|
739 |
sprintf(
|
740 |
+
__( 'The currency' ) . ' <code>%s</code> ' . __( 'is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF.', 'woocommerce-mercadopago-module' ),
|
741 |
+
get_woocommerce_currency() ) .
|
742 |
'</p></div>';
|
743 |
}
|
744 |
|
745 |
+
public function getCountryName( $site_id ) {
|
746 |
+
switch ( $site_id ) {
|
747 |
+
case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
|
748 |
+
case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
|
749 |
+
case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
|
750 |
+
case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
|
751 |
+
case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
|
752 |
+
case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
|
|
|
753 |
}
|
754 |
}
|
755 |
|
761 |
|
762 |
// This call checks any incoming notifications from Mercado Pago server.
|
763 |
public function check_ipn_response() {
|
764 |
+
if ( 'yes' == $this->debug ) {
|
765 |
+
$this->log->add( $this->id, $this->id . ': @[check_ipn_response] - got a call from mercado pago ipn' );
|
766 |
}
|
767 |
@ob_clean();
|
768 |
+
$data = $this->check_ipn_request_is_valid( $_GET );
|
769 |
+
if ( $data ) {
|
770 |
+
header( 'HTTP/1.1 200 OK' );
|
771 |
+
if ( 'yes' == $this->debug ) {
|
772 |
+
$this->log->add(
|
773 |
+
$this->id, $this->id .
|
774 |
+
': @[check_ipn_response] - received _get call with following content: ' .
|
775 |
+
json_encode( $data, JSON_PRETTY_PRINT ) );
|
776 |
}
|
777 |
+
do_action( 'valid_mercadopago_ipn_request', $data );
|
778 |
} else {
|
779 |
+
if ( 'yes' == $this->debug ) {
|
780 |
+
$this->log->add(
|
781 |
+
$this->id, $this->id .
|
782 |
+
': @[check_ipn_response] - Mercado Pago Request Failure: ' .
|
783 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
784 |
}
|
785 |
+
wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
|
786 |
}
|
787 |
}
|
788 |
|
789 |
// Get received data from IPN and checks if we have a merchant_order or
|
790 |
// payment associated. If we have these information, we return data to be
|
791 |
// processed by successful_request function.
|
792 |
+
public function check_ipn_request_is_valid( $data ) {
|
793 |
+
if ( 'yes' == $this->debug ) {
|
794 |
+
$this->log->add(
|
795 |
+
$this->id, $this->id .
|
796 |
+
': @[check_ipn_request_is_valid] - received ipn message from mercado pago, checking validity with $data containing: ' .
|
797 |
+
json_encode( $data, JSON_PRETTY_PRINT ) );
|
798 |
}
|
799 |
+
if ( !isset( $data[ 'id' ] ) ) {
|
800 |
+
if ( 'yes' == $this->debug ) {
|
801 |
+
$this->log->add(
|
802 |
+
$this->id, $this->id .
|
803 |
+
': @[check_ipn_request_is_valid] - failing due to ID absent' );
|
804 |
}
|
805 |
return false; // No ID? No process!
|
806 |
}
|
807 |
// Create MP object and setup sandbox mode.
|
808 |
+
$mp = new MP( $this->client_id, $this->client_secret );
|
809 |
+
if ( 'yes' == $this->sandbox ) {
|
810 |
+
$mp->sandbox_mode( true );
|
811 |
} else {
|
812 |
+
$mp->sandbox_mode( false );
|
813 |
}
|
814 |
try { // Get the merchant_order reported by the IPN. Glossary of attributes response in https://developers.mercadopago.com
|
815 |
+
$params = array( "access_token" => $mp->get_access_token() );
|
816 |
+
if ( $data[ "topic" ] == 'merchant_order' ) {
|
817 |
+
$merchant_order_info = $mp->get( "/merchant_orders/" . $_GET[ "id" ], $params, false );
|
818 |
// If the payment's transaction amount is equal (or bigger) than the merchant order's amount you can release your items
|
819 |
+
if ( !is_wp_error( $merchant_order_info ) && ($merchant_order_info[ "status" ] == 200 ) ) {
|
820 |
+
$payments = $merchant_order_info[ "response" ][ "payments" ];
|
821 |
// check if we have more than one payment method
|
822 |
+
if ( sizeof( $payments ) >= 1 ) { // We have payments
|
823 |
+
return $merchant_order_info[ 'response' ];
|
824 |
+
} else { // We have no payments?
|
825 |
+
if ( 'yes' == $this->debug ) {
|
826 |
+
$this->log->add( $this->id, $this->id . ': @[check_ipn_request_is_valid] - order received but has no payment' );
|
|
|
|
|
827 |
}
|
828 |
+
return false;
|
829 |
+
}
|
|
|
830 |
} else {
|
831 |
+
if ( 'yes' == $this->debug ) {
|
832 |
+
$this->log->add( $this->id, $this->id . ': @[check_ipn_request_is_valid] - got status not equal 200 or some error' );
|
833 |
}
|
834 |
return false;
|
835 |
}
|
836 |
}
|
837 |
+
} catch ( MercadoPagoException $e ) {
|
838 |
+
if ( 'yes' == $this->debug ) {
|
839 |
+
$this->log->add( $this->id, $this->id .
|
840 |
+
': @[check_ipn_request_is_valid] - GOT EXCEPTION: ' .
|
841 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
842 |
}
|
843 |
return false;
|
844 |
}
|
846 |
}
|
847 |
|
848 |
// Properly handles each case of notification, based in payment status.
|
849 |
+
public function successful_request( $data ) {
|
850 |
+
if ( 'yes' == $this->debug ) {
|
851 |
+
$this->log->add( $this->id, $this->id . ': @[successful_request] - starting to process ipn update...' );
|
852 |
}
|
853 |
+
$order_key = $data[ 'external_reference' ];
|
854 |
+
if ( !empty( $order_key ) ) {
|
855 |
+
$order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
|
856 |
+
$order = new WC_Order( $order_id );
|
857 |
// Checks whether the invoice number matches the order. If true processes the payment.
|
858 |
+
if ( $order->id === $order_id ) {
|
859 |
if ( 'yes' == $this->debug ) {
|
860 |
+
$this->log->add( $this->id, $this->id . ': @[successful_request] - got order with ID ' . $order->id . ' and status ' . $data[ 'payments' ][ 0 ][ 'status' ] );
|
861 |
}
|
862 |
// Order details.
|
863 |
+
if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
|
864 |
update_post_meta(
|
865 |
$order_id,
|
866 |
+
__( 'Payer email', 'woocommerce-mercadopago-module' ),
|
867 |
+
$data[ 'payer' ][ 'email' ]
|
868 |
);
|
869 |
}
|
870 |
+
if ( !empty( $data[ 'payment_type' ] ) ) {
|
871 |
update_post_meta(
|
872 |
$order_id,
|
873 |
+
__( 'Payment type', 'woocommerce-mercadopago-module' ),
|
874 |
+
$data[ 'payment_type' ]
|
875 |
);
|
876 |
}
|
877 |
+
if ( !empty( $data[ 'payments' ] ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
878 |
$payment_ids = array();
|
879 |
+
foreach ( $data[ 'payments' ] as $payment ) {
|
880 |
+
$payment_ids[] = $payment[ 'id' ];
|
881 |
}
|
882 |
+
if ( sizeof( $payment_ids ) > 0 ) {
|
883 |
update_post_meta(
|
884 |
$order_id,
|
885 |
+
__( 'Mercado Pago Payment ID', 'woocommerce-mercadopago-module' ),
|
886 |
+
implode( ', ', $payment_ids )
|
887 |
);
|
888 |
}
|
889 |
}
|
890 |
+
// Here, we process the status...
|
891 |
+
$status = 'pending';
|
892 |
+
if ( sizeof( $data[ 'payments' ] ) == 1 ) {
|
893 |
+
// if there's only one payment, then we get its status
|
894 |
+
$status = $data[ 'payments' ][ 0 ][ 'status' ];
|
895 |
+
} else if ( sizeof( $data[ 'payments' ] ) > 1 ) {
|
896 |
+
// otherwise, we check payment sum
|
897 |
+
$total_paid = 0.00;
|
898 |
+
foreach ( $data[ 'payments' ] as $payment ) {
|
899 |
+
if ( $payment[ 'status' ] === 'approved' ) {
|
900 |
+
$total_paid = $total_paid + (float) $payment[ 'total_paid_amount' ];
|
901 |
+
}
|
902 |
+
}
|
903 |
+
$total = $data[ 'shipping_cost' ] + $data[ 'total_amount' ];
|
904 |
+
if ( $total_paid >= $total ) {
|
905 |
+
// At this point, the sum of approved payments are above or equal than the total order amount, so it is approved
|
906 |
+
$status = 'approved';
|
907 |
+
}
|
908 |
+
}
|
909 |
+
// Switch the status and update in WooCommerce
|
910 |
+
switch ( $status ) {
|
911 |
case 'approved':
|
912 |
$order->add_order_note(
|
913 |
+
'Mercado Pago: ' . __( 'Payment approved.', 'woocommerce-mercadopago-module' )
|
914 |
);
|
915 |
$order->payment_complete();
|
916 |
break;
|
917 |
case 'pending':
|
918 |
$order->add_order_note(
|
919 |
+
'Mercado Pago: ' . __( 'Customer haven\'t paid yet.', 'woocommerce-mercadopago-module' )
|
920 |
);
|
921 |
break;
|
922 |
case 'in_process':
|
923 |
+
$order->update_status(
|
924 |
+
'on-hold',
|
925 |
+
'Mercado Pago: ' . __( 'Payment under review.', 'woocommerce-mercadopago-module' )
|
926 |
);
|
927 |
break;
|
928 |
case 'rejected':
|
929 |
+
$order->update_status(
|
930 |
+
'failed',
|
931 |
+
'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.', 'woocommerce-mercadopago-module' )
|
932 |
);
|
933 |
break;
|
934 |
case 'refunded':
|
935 |
$order->update_status(
|
936 |
'refunded',
|
937 |
+
'Mercado Pago: ' . __( 'The payment was refunded to the customer.', 'woocommerce-mercadopago-module' )
|
938 |
);
|
939 |
break;
|
940 |
case 'cancelled':
|
941 |
$order->update_status(
|
942 |
'cancelled',
|
943 |
+
'Mercado Pago: ' . __( 'The payment was cancelled.', 'woocommerce-mercadopago-module' )
|
944 |
);
|
945 |
break;
|
946 |
case 'in_mediation':
|
947 |
$order->add_order_note(
|
948 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
|
949 |
);
|
950 |
break;
|
951 |
case 'charged-back':
|
952 |
$order->add_order_note(
|
953 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.', 'woocommerce-mercadopago-module' )
|
954 |
);
|
955 |
+
break;
|
956 |
default:
|
957 |
break;
|
958 |
}
|
960 |
}
|
961 |
}
|
962 |
|
963 |
+
}
|
mercadopago/mercadopago-ticket-gateway.php
ADDED
@@ -0,0 +1,807 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
|
7 |
+
* License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
8 |
+
*/
|
9 |
+
|
10 |
+
// This include Mercado Pago library SDK
|
11 |
+
require_once "sdk/lib/mercadopago.php";
|
12 |
+
|
13 |
+
// Extending from WooCommerce Payment Gateway class.
|
14 |
+
// This extension implements the ticket payment method.
|
15 |
+
class WC_WooMercadoPagoTicket_Gateway extends WC_Payment_Gateway {
|
16 |
+
|
17 |
+
// Sponsor ID array by country
|
18 |
+
private $sponsor_id = array(
|
19 |
+
"MLA" => '208682286',
|
20 |
+
"MLB" => '208686191',
|
21 |
+
"MCO" => '208687643',
|
22 |
+
"MLC" => '208690789',
|
23 |
+
"MLV" => '208692735',
|
24 |
+
"MLM" => '208692380'
|
25 |
+
// TODO: Peru rollout
|
26 |
+
);
|
27 |
+
|
28 |
+
// Required inherited method from WC_Payment_Gateway class: __construct.
|
29 |
+
// Please check:
|
30 |
+
// [https://docs.woothemes.com/wc-apidocs/class-WC_Payment_Gateway.html]
|
31 |
+
// for documentation and further information.
|
32 |
+
public function __construct() {
|
33 |
+
|
34 |
+
// These fields are declared because we use them dinamically in our gateway class.
|
35 |
+
$this->domain = get_site_url() . '/index.php';
|
36 |
+
$this->site_id = null;
|
37 |
+
$this->isTestUser = false;
|
38 |
+
$this->payment_methods = array();
|
39 |
+
$this->store_categories_id = array();
|
40 |
+
$this->store_categories_description = array();
|
41 |
+
|
42 |
+
// Within your constructor, you should define the following variables.
|
43 |
+
$this->id = 'woocommerce-mercadopago-ticket-module';
|
44 |
+
$this->method_title = __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' );
|
45 |
+
$this->method_description = '<img width="200" height="52" src="' .
|
46 |
+
plugins_url( 'images/mplogo.png', plugin_dir_path( __FILE__ ) ) . '"><br><br>' . '<strong>' .
|
47 |
+
wordwrap( __( 'This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store.', 'woocommerce-mercadopago-module' ), 80, "\n" ) .
|
48 |
+
'</strong>';
|
49 |
+
|
50 |
+
// These fields are used in our Mercado Pago Module configuration page.
|
51 |
+
$this->access_token = $this->get_option( 'access_token' );
|
52 |
+
$this->title = $this->get_option( 'title' );
|
53 |
+
$this->description = $this->get_option( 'description' );
|
54 |
+
$this->category_id = $this->get_option( 'category_id' );
|
55 |
+
$this->invoice_prefix = $this->get_option( 'invoice_prefix', 'WC-' );
|
56 |
+
$this->debug = $this->get_option( 'debug' );
|
57 |
+
|
58 |
+
// Render our configuration page and init/load fields.
|
59 |
+
$this->init_form_fields();
|
60 |
+
$this->init_settings();
|
61 |
+
|
62 |
+
// Hook actions for WordPress.
|
63 |
+
add_action( // Used by IPN to receive IPN incomings.
|
64 |
+
'woocommerce_api_wc_woomercadopagoticket_gateway',
|
65 |
+
array($this, 'check_ipn_response')
|
66 |
+
);
|
67 |
+
add_action( // Used by IPN to process valid incomings.
|
68 |
+
'valid_mercadopagoticket_ipn_request',
|
69 |
+
array($this, 'successful_request')
|
70 |
+
);
|
71 |
+
add_action( // Used in settings page to hook "save settings" action.
|
72 |
+
'woocommerce_update_options_payment_gateways_' . $this->id,
|
73 |
+
array( $this, 'process_admin_options' )
|
74 |
+
);
|
75 |
+
add_action( // Scripts for custom checkout
|
76 |
+
'wp_enqueue_scripts',
|
77 |
+
array( $this, 'ticketCheckoutScripts' )
|
78 |
+
);
|
79 |
+
|
80 |
+
// Verify if access token is empty.
|
81 |
+
if ( empty( $this->access_token ) ) {
|
82 |
+
add_action( 'admin_notices', array( $this, 'credentialsMissingMessage' ) );
|
83 |
+
}
|
84 |
+
|
85 |
+
// Verify if currency is supported.
|
86 |
+
if ( !$this->isSupportedCurrency() ) {
|
87 |
+
add_action( 'admin_notices', array( $this, 'currencyNotSupportedMessage' ) );
|
88 |
+
}
|
89 |
+
|
90 |
+
// Logging and debug.
|
91 |
+
if ( 'yes' == $this->debug ) {
|
92 |
+
if ( class_exists( 'WC_Logger' ) ) {
|
93 |
+
$this->log = new WC_Logger();
|
94 |
+
} else {
|
95 |
+
$this->log = WC_MercadoPago_Module::woocommerce_instance()->logger();
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
}
|
100 |
+
|
101 |
+
// Required inherited method from WC_Payment_Gateway class: init_form_fields.
|
102 |
+
// Initialise Gateway settings form fields with a customized page.
|
103 |
+
public function init_form_fields() {
|
104 |
+
|
105 |
+
$api_secret_locale = sprintf(
|
106 |
+
'<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
107 |
+
'<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
108 |
+
'<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
109 |
+
'<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
110 |
+
// TODO: Peru rollout
|
111 |
+
'<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a> %s ' .
|
112 |
+
'<a href="https://www.mercadopago.com/mlv/account/credentials?type=custom" target="_blank">%s</a>',
|
113 |
+
__( 'Argentine', 'woocommerce-mercadopago-module' ),
|
114 |
+
__( 'Brazil', 'woocommerce-mercadopago-module' ),
|
115 |
+
__( 'Chile', 'woocommerce-mercadopago-module' ),
|
116 |
+
__( 'Colombia', 'woocommerce-mercadopago-module' ),
|
117 |
+
__( 'Mexico', 'woocommerce-mercadopago-module' ),
|
118 |
+
// TODO: __( 'Peru', 'woocommerce-mercadopago-module' ),
|
119 |
+
__( 'or', 'woocommerce-mercadopago-module' ),
|
120 |
+
__( 'Venezuela', 'woocommerce-mercadopago-module' )
|
121 |
+
);
|
122 |
+
|
123 |
+
// Trigger API to get payment methods and site_id, also validates access_token.
|
124 |
+
if ( $this->validateCredentials() ) {
|
125 |
+
try {
|
126 |
+
$mp = new MP( $this->access_token );
|
127 |
+
$get_request = $mp->get( "/users/me?access_token=" . $this->access_token );
|
128 |
+
$this->isTestUser = in_array( 'test_user', $get_request[ 'response' ][ 'tags' ] );
|
129 |
+
$this->site_id = $get_request[ 'response' ][ 'site_id' ];
|
130 |
+
$payments = $mp->get( "/v1/payment_methods/?access_token=" . $this->access_token );
|
131 |
+
foreach ( $payments[ "response" ] as $payment ) {
|
132 |
+
if ( $payment[ 'payment_type_id' ] != 'account_money' && $payment[ 'payment_type_id' ] != 'credit_card' &&
|
133 |
+
$payment[ 'payment_type_id' ] != 'debit_card' && $payment[ 'payment_type_id' ] != 'prepaid_card' ) {
|
134 |
+
array_push( $this->payment_methods, $payment );
|
135 |
+
}
|
136 |
+
}
|
137 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
138 |
+
plugins_url( 'images/check.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
139 |
+
' ' . __( 'Your credentials are <strong>valid</strong> for', 'woocommerce-mercadopago-module' ) .
|
140 |
+
': ' . $this->getCountryName( $this->site_id ) . ' <img width="18.6" height="12" src="' .
|
141 |
+
plugins_url( 'images/' . $this->site_id . '/' . $this->site_id . '.png', plugin_dir_path( __FILE__ ) ) . '"> ';
|
142 |
+
} catch ( MercadoPagoException $e ) {
|
143 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
144 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
145 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
146 |
+
}
|
147 |
+
} else {
|
148 |
+
$this->credentials_message = '<img width="12" height="12" src="' .
|
149 |
+
plugins_url( 'images/error.png', plugin_dir_path( __FILE__ ) ) . '">' .
|
150 |
+
' ' . __( 'Your credentials are <strong>not valid</strong>!', 'woocommerce-mercadopago-module' );
|
151 |
+
}
|
152 |
+
|
153 |
+
// Fills categoy selector. We do not need credentials to make this call.
|
154 |
+
$categories = MPRestClient::get( array( "uri" => "/item_categories" ) );
|
155 |
+
foreach ( $categories[ "response" ] as $category ) {
|
156 |
+
array_push( $this->store_categories_id, str_replace( "_", " ", $category[ 'id' ] ) );
|
157 |
+
array_push( $this->store_categories_description, str_replace( "_", " ", $category[ 'description' ] ) );
|
158 |
+
}
|
159 |
+
|
160 |
+
// This array draws each UI (text, selector, checkbox, label, etc).
|
161 |
+
$this->form_fields = array(
|
162 |
+
'enabled' => array(
|
163 |
+
'title' => __( 'Enable/Disable', 'woocommerce-mercadopago-module' ),
|
164 |
+
'type' => 'checkbox',
|
165 |
+
'label' => __( 'Enable Ticket Payment Method', 'woocommerce-mercadopago-module' ),
|
166 |
+
'default' => 'yes'
|
167 |
+
),
|
168 |
+
'credentials_title' => array(
|
169 |
+
'title' => __( 'Mercado Pago Credentials', 'woocommerce-mercadopago-module' ),
|
170 |
+
'type' => 'title',
|
171 |
+
'description' => sprintf( '%s', $this->credentials_message ) . '<br>' . sprintf( __( 'You can obtain your credentials for', 'woocommerce-mercadopago-module' ) . ' %s.', $api_secret_locale )
|
172 |
+
),
|
173 |
+
'access_token' => array(
|
174 |
+
'title' => 'Access token',
|
175 |
+
'type' => 'text',
|
176 |
+
'description' => __( 'Insert your Mercado Pago Access token.', 'woocommerce-mercadopago-module' ),
|
177 |
+
'default' => '',
|
178 |
+
'required' => true
|
179 |
+
),
|
180 |
+
'ipn_url' => array(
|
181 |
+
'title' => __( 'Instant Payment Notification (IPN) URL', 'woocommerce-mercadopago-module' ),
|
182 |
+
'type' => 'title',
|
183 |
+
'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>.' )
|
184 |
+
),
|
185 |
+
'checkout_options_title' => array(
|
186 |
+
'title' => __( 'Ticket Options', 'woocommerce-mercadopago-module' ),
|
187 |
+
'type' => 'title',
|
188 |
+
'description' => ''
|
189 |
+
),
|
190 |
+
'title' => array(
|
191 |
+
'title' => __( 'Title', 'woocommerce-mercadopago-module' ),
|
192 |
+
'type' => 'text',
|
193 |
+
'description' => __( 'Title shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
194 |
+
'default' => __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago-module' )
|
195 |
+
),
|
196 |
+
'description' => array(
|
197 |
+
'title' => __( 'Description', 'woocommerce-mercadopago-module' ),
|
198 |
+
'type' => 'textarea',
|
199 |
+
'description' => __( 'Description shown to the client in the checkout.', 'woocommerce-mercadopago-module' ),
|
200 |
+
'default' => __( 'Pay with Mercado Pago', 'woocommerce-mercadopago-module' )
|
201 |
+
),
|
202 |
+
'category_id' => array(
|
203 |
+
'title' => __( 'Store Category', 'woocommerce-mercadopago-module' ),
|
204 |
+
'type' => 'select',
|
205 |
+
'description' => __( 'Define which type of products your store sells.', 'woocommerce-mercadopago-module' ),
|
206 |
+
'options' => $this->store_categories_id
|
207 |
+
),
|
208 |
+
'invoice_prefix' => array(
|
209 |
+
'title' => __( 'Store Identificator', 'woocommerce-mercadopago-module' ),
|
210 |
+
'type' => 'text',
|
211 |
+
'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' ),
|
212 |
+
'default' => 'WC-'
|
213 |
+
),
|
214 |
+
'testing' => array(
|
215 |
+
'title' => __( 'Test and Debug Options', 'woocommerce-mercadopago-module' ),
|
216 |
+
'type' => 'title',
|
217 |
+
'description' => ''
|
218 |
+
),
|
219 |
+
'debug' => array(
|
220 |
+
'title' => __( 'Debug and Log', 'woocommerce-mercadopago-module' ),
|
221 |
+
'type' => 'checkbox',
|
222 |
+
'label' => __( 'Enable log', 'woocommerce-mercadopago-module' ),
|
223 |
+
'default' => 'no',
|
224 |
+
'description' => sprintf( __( 'Register event logs of Mercado Pago, such as API requests, in the file', 'woocommerce-mercadopago-module' ) .
|
225 |
+
' %s.', $this->buildLogPathString() . '.<br>' . __( 'File location: ', 'woocommerce-mercadopago-module' ) .
|
226 |
+
'<code>wordpress/wp-content/uploads/wc-logs/' . $this->id . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log</code>')
|
227 |
+
)
|
228 |
+
);
|
229 |
+
|
230 |
+
}
|
231 |
+
|
232 |
+
public function admin_options() {
|
233 |
+
$this->validate_settings_fields();
|
234 |
+
if ( count( $this->errors ) > 0 ) {
|
235 |
+
$this->display_errors();
|
236 |
+
return false;
|
237 |
+
} else {
|
238 |
+
echo wpautop( $this->method_description );
|
239 |
+
?>
|
240 |
+
<p><a href="https://wordpress.org/support/view/plugin-reviews/woo-mercado-pago-module?filter=5#postform" target="_blank" class="button button-primary">
|
241 |
+
<?php esc_html_e( sprintf( __( 'Please, rate us %s on WordPress.org and give your feedback to help improve this module!', 'woocommerce-mercadopago-module' ), '★★★★★' ) ); ?>
|
242 |
+
</a></p>
|
243 |
+
<table class="form-table">
|
244 |
+
<?php $this->generate_settings_html(); ?>
|
245 |
+
</table>
|
246 |
+
<?php
|
247 |
+
return true;
|
248 |
+
}
|
249 |
+
}
|
250 |
+
|
251 |
+
/*
|
252 |
+
* ========================================================================
|
253 |
+
* CHECKOUT BUSINESS RULES
|
254 |
+
* ========================================================================
|
255 |
+
*/
|
256 |
+
|
257 |
+
public function ticketCheckoutScripts() {
|
258 |
+
if ( is_checkout() && $this->is_available() ) {
|
259 |
+
if ( !get_query_var( 'order-received' ) ) {
|
260 |
+
wp_enqueue_style(
|
261 |
+
'woocommerce-mercadopago-style', plugins_url(
|
262 |
+
'assets/css/custom_checkout_mercadopago.css',
|
263 |
+
plugin_dir_path( __FILE__ ) ) );
|
264 |
+
}
|
265 |
+
}
|
266 |
+
}
|
267 |
+
|
268 |
+
public function payment_fields() {
|
269 |
+
$amount = $this->get_order_total();
|
270 |
+
wc_get_template(
|
271 |
+
'ticket/ticket-form.php',
|
272 |
+
array(
|
273 |
+
'form_labels' => array(
|
274 |
+
'label_choose' => __( "Choose", "woocommerce-mercadopago-module" ),
|
275 |
+
"payment_instructions" => __( 'Please, select the ticket issuer of your preference and then click "Place order" button. The ticket will be generated and you will be redirected to print it.', 'woocommerce-mercadopago-module' ),
|
276 |
+
"ticket_note" => __( 'Important: The order will be confirmed only after the payment approval.', 'woocommerce-mercadopago-module' )
|
277 |
+
),
|
278 |
+
'payment_methods' => $this->payment_methods,
|
279 |
+
'site_id' => $this->site_id,
|
280 |
+
'images_path' => plugins_url( 'images/', plugin_dir_path( __FILE__ ) ),
|
281 |
+
'amount' => $amount
|
282 |
+
),
|
283 |
+
'woocommerce/mercadopago/',
|
284 |
+
WC_WooMercadoPago_Module::getTemplatesPath()
|
285 |
+
);
|
286 |
+
}
|
287 |
+
|
288 |
+
// This function is called after we clock on [place_order] button, and each field is passed to this
|
289 |
+
// function through $_POST variable.
|
290 |
+
public function process_payment( $order_id ) {
|
291 |
+
$order = new WC_Order( $order_id );
|
292 |
+
// we have got parameters from checkout page, now its time to charge the card
|
293 |
+
if ( 'yes' == $this->debug ) {
|
294 |
+
$this->log->add( $this->id, $this->id .
|
295 |
+
': @[process_payment] - Received [$_POST] from customer front-end page: ' .
|
296 |
+
json_encode( $_POST, JSON_PRETTY_PRINT ) );
|
297 |
+
}
|
298 |
+
|
299 |
+
if ( isset( $_POST[ 'mercadopago_ticket' ][ 'amount' ] ) && !empty( $_POST[ 'mercadopago_ticket' ][ 'amount' ] ) &&
|
300 |
+
isset( $_POST[ 'mercadopago_ticket' ][ 'paymentMethodId' ] ) && !empty( $_POST[ 'mercadopago_ticket' ][ 'paymentMethodId' ] ) ) {
|
301 |
+
return $this->createUrl( $order, $_POST );
|
302 |
+
} else {
|
303 |
+
// process when fields are imcomplete
|
304 |
+
wc_add_notice(
|
305 |
+
'<p>' . __( 'A problem was occurred when processing your payment. Please, try again.', 'woocommerce-mercadopago-module' ) . '</p>',
|
306 |
+
'error'
|
307 |
+
);
|
308 |
+
return array(
|
309 |
+
'result' => 'fail',
|
310 |
+
'redirect' => '',
|
311 |
+
);
|
312 |
+
}
|
313 |
+
}
|
314 |
+
|
315 |
+
protected function createUrl( $order, $post_from_form ) {
|
316 |
+
|
317 |
+
$mp = new MP( $this->access_token );
|
318 |
+
$mp->sandbox_mode( false );
|
319 |
+
|
320 |
+
// Creates the order parameters by checking the cart configuration
|
321 |
+
$preferences = $this->createPreferences( $order, $post_from_form );
|
322 |
+
try {
|
323 |
+
// Create order preferences with Mercado Pago API request
|
324 |
+
$ticket_info = $mp->create_payment( json_encode( $preferences ) );
|
325 |
+
if ( 'yes' == $this->debug ) {
|
326 |
+
$this->log->add( $this->id, $this->id .
|
327 |
+
': @[createUrl] - Received [$checkout_info] from Mercado Pago API: ' .
|
328 |
+
json_encode( $ticket_info, JSON_PRETTY_PRINT ) );
|
329 |
+
}
|
330 |
+
if ( is_wp_error( $ticket_info ) ||
|
331 |
+
$ticket_info[ 'status' ] < 200 || $ticket_info[ 'status' ] >= 300 ) {
|
332 |
+
if ( 'yes' == $this->debug ) {
|
333 |
+
$this->log->add( $this->id, $this->id .
|
334 |
+
': @[createUrl] - payment creation failed with error: ' .
|
335 |
+
$ticket_info[ 'response' ][ 'status' ] );
|
336 |
+
}
|
337 |
+
} else {
|
338 |
+
$response = $ticket_info[ 'response' ];
|
339 |
+
if ( array_key_exists( 'status', $response ) ) {
|
340 |
+
if ( $response[ 'status' ] == "pending" && $response[ 'status_detail' ] == "pending_waiting_payment" ) {
|
341 |
+
WC()->cart->empty_cart();
|
342 |
+
|
343 |
+
$html = '<p></p><p>' . wordwrap(
|
344 |
+
__( 'Thank you for your order. Please, pay the ticket to get your order approved.', 'woocommerce-mercadopago-module'),
|
345 |
+
60, '<br>') . '</p>';
|
346 |
+
/*$html .=
|
347 |
+
'<a class="button cancel" href="' . esc_url( $order->get_cancel_order_url() ) . '">' .
|
348 |
+
__( 'Cancel order & Clear cart', 'woocommerce-mercadopago-module' ) .
|
349 |
+
'</a>';*/
|
350 |
+
$html .=
|
351 |
+
'<a id="submit-payment" target="_blank" href="' . $response[ 'transaction_details' ][ 'external_resource_url' ] . '" class="button alt">' .
|
352 |
+
__( 'Print the Ticket', 'woocommerce-mercadopago-module' ) .
|
353 |
+
'</a> ';
|
354 |
+
|
355 |
+
wc_add_notice(
|
356 |
+
'<p>' . $html . '</p>',
|
357 |
+
'notice'
|
358 |
+
);
|
359 |
+
$order->add_order_note(
|
360 |
+
'Mercado Pago: ' .
|
361 |
+
__( 'Waiting for the ticket payment.', 'woocommerce-mercadopago-module' )
|
362 |
+
);
|
363 |
+
$order->add_order_note(
|
364 |
+
'Mercado Pago: ' .
|
365 |
+
__( 'To reprint the ticket click ', 'woocommerce-mercadopago-module' ) .
|
366 |
+
'<a href="' . $response[ 'transaction_details' ][ 'external_resource_url' ] . '">' .
|
367 |
+
__( 'here', 'woocommerce-mercadopago-module' ) .
|
368 |
+
'</a>'
|
369 |
+
);
|
370 |
+
|
371 |
+
return array(
|
372 |
+
'result' => 'success',
|
373 |
+
'redirect' => $order->get_checkout_payment_url( true )
|
374 |
+
);
|
375 |
+
}
|
376 |
+
}
|
377 |
+
}
|
378 |
+
} catch ( MercadoPagoException $e ) {
|
379 |
+
if ( 'yes' == $this->debug ) {
|
380 |
+
$this->log->add(
|
381 |
+
$this->id, $this->id .
|
382 |
+
': @[createUrl] - payment creation failed with exception: ' .
|
383 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
384 |
+
}
|
385 |
+
}
|
386 |
+
return false;
|
387 |
+
|
388 |
+
}
|
389 |
+
|
390 |
+
private function createPreferences( $order, $post_from_form ) {
|
391 |
+
|
392 |
+
// Here we build the array that contains ordered itens, from customer cart
|
393 |
+
$items = array();
|
394 |
+
$purchase_description = "";
|
395 |
+
if ( sizeof( $order->get_items() ) > 0 ) {
|
396 |
+
foreach ( $order->get_items() as $item ) {
|
397 |
+
if ( $item['qty'] ) {
|
398 |
+
$product = new WC_product( $item[ 'product_id' ] );
|
399 |
+
$purchase_description =
|
400 |
+
$purchase_description . ' ' .
|
401 |
+
( $product->post->post_title . ' x ' . $item[ 'qty' ] );
|
402 |
+
array_push( $items, array(
|
403 |
+
'id' => $item[ 'product_id' ],
|
404 |
+
'title' => ( $product->post->post_title . ' x ' . $item[ 'qty' ] ),
|
405 |
+
'description' => (
|
406 |
+
// This handles description width limit of Mercado Pago
|
407 |
+
strlen( $product->post->post_content ) > 230 ?
|
408 |
+
substr( $product->post->post_content, 0, 230 ) . "..." :
|
409 |
+
$product->post->post_content
|
410 |
+
),
|
411 |
+
'picture_url' => $product->get_image(),
|
412 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
413 |
+
'quantity' => 1,
|
414 |
+
'unit_price' => (float) $item[ 'line_total' ]
|
415 |
+
));
|
416 |
+
}
|
417 |
+
}
|
418 |
+
}
|
419 |
+
|
420 |
+
// Creates the shipment cost structure
|
421 |
+
$shipping_cost = (float) $order->get_total_shipping();
|
422 |
+
if ( $shipping_cost > 0 ) {
|
423 |
+
$item = array(
|
424 |
+
'title' => __( 'Shipping', 'woocommerce-mercadopago-module' ),
|
425 |
+
'description' => __( 'Shipping service used by store', 'woocommerce-mercadopago-module' ),
|
426 |
+
'quantity' => 1,
|
427 |
+
'category_id' => $this->store_categories_id[ $this->category_id ],
|
428 |
+
'unit_price' => $shipping_cost
|
429 |
+
);
|
430 |
+
$items[] = $item;
|
431 |
+
}
|
432 |
+
|
433 |
+
// Discounts features
|
434 |
+
/*
|
435 |
+
$discounts = (double) $cart->getOrderTotal( true, Cart::ONLY_DISCOUNTS );
|
436 |
+
if ( $discounts > 0 ) {
|
437 |
+
$item = array(
|
438 |
+
'title' => 'Discount',
|
439 |
+
'description' => 'Discount provided by store',
|
440 |
+
'quantity' => 1,
|
441 |
+
'category_id' => Configuration::get( 'MERCADOPAGO_CATEGORY' ),
|
442 |
+
'unit_price' => - $discounts
|
443 |
+
);
|
444 |
+
$items[] = $item;
|
445 |
+
}
|
446 |
+
*/
|
447 |
+
|
448 |
+
// Build additional information from the customer data
|
449 |
+
$payer_additional_info = array(
|
450 |
+
'first_name' => $order->billing_first_name,
|
451 |
+
'last_name' => $order->billing_last_name,
|
452 |
+
//'registration_date' =>
|
453 |
+
'phone' => array(
|
454 |
+
//'area_code' =>
|
455 |
+
'number' => $order->billing_phone
|
456 |
+
),
|
457 |
+
'address' => array(
|
458 |
+
'zip_code' => $order->billing_postcode,
|
459 |
+
//'street_number' =>
|
460 |
+
'street_name' => $order->billing_address_1 . ' / ' .
|
461 |
+
$order->billing_city . ' ' .
|
462 |
+
$order->billing_state . ' ' .
|
463 |
+
$order->billing_country
|
464 |
+
)
|
465 |
+
);
|
466 |
+
|
467 |
+
// Create the shipment address information set
|
468 |
+
$shipments = array(
|
469 |
+
'receiver_address' => array(
|
470 |
+
'zip_code' => $order->shipping_postcode,
|
471 |
+
//'street_number' =>
|
472 |
+
'street_name' => $order->shipping_address_1 . ' ' .
|
473 |
+
$order->shipping_address_2 . ' ' .
|
474 |
+
$order->shipping_city . ' ' .
|
475 |
+
$order->shipping_state . ' ' .
|
476 |
+
$order->shipping_country,
|
477 |
+
//'floor' =>
|
478 |
+
'apartment' => $order->shipping_address_2
|
479 |
+
)
|
480 |
+
);
|
481 |
+
|
482 |
+
// The payment preference
|
483 |
+
$payment_preference = array (
|
484 |
+
'transaction_amount' => (float) $post_from_form[ 'mercadopago_ticket' ][ 'amount' ],
|
485 |
+
'description' => $purchase_description,
|
486 |
+
'payment_method_id' => $post_from_form[ 'mercadopago_ticket' ][ 'paymentMethodId' ],
|
487 |
+
'payer' => array(
|
488 |
+
'email' => $order->billing_email
|
489 |
+
),
|
490 |
+
'external_reference' => $this->invoice_prefix . $order->id,
|
491 |
+
'additional_info' => array(
|
492 |
+
'items' => $items,
|
493 |
+
'payer' => $payer_additional_info,
|
494 |
+
'shipments' => $shipments
|
495 |
+
)
|
496 |
+
);
|
497 |
+
|
498 |
+
// Do not set IPN url if it is a localhost!
|
499 |
+
$notification_url = $this->domain . '/woocommerce-mercadopago-module/?wc-api=WC_WooMercadoPagoTicket_Gateway';
|
500 |
+
if ( !strrpos( $notification_url, "localhost" ) ) {
|
501 |
+
$payment_preference['notification_url'] = $notification_url;
|
502 |
+
}
|
503 |
+
|
504 |
+
// Coupon Feature
|
505 |
+
/*
|
506 |
+
$mercadopago_coupon = isset( $post[ 'mercadopago_coupon' ] ) ? $post[ 'mercadopago_coupon' ] : "";
|
507 |
+
if ( $mercadopago_coupon != "" ) {
|
508 |
+
$coupon = $this->validCoupon( $mercadopago_coupon );
|
509 |
+
if ( $coupon[ 'status' ] == 200 ) {
|
510 |
+
$payment_preference[ 'campaign_id' ] = $coupon[ 'response' ][ 'id' ];
|
511 |
+
$payment_preference[ 'coupon_amount' ] = (float) $coupon[ 'response' ][ 'coupon_amount' ];
|
512 |
+
$payment_preference[ 'coupon_code' ] = strtoupper( $mercadopago_coupon );
|
513 |
+
} else {
|
514 |
+
PrestaShopLogger::addLog ( $coupon['response']['error'] . Tools::jsonEncode($coupon), MP_SDK::ERROR, 0 );
|
515 |
+
$this->context->smarty->assign( array(
|
516 |
+
'message_error' => $coupon[ 'response' ][ 'error' ],
|
517 |
+
'version' => $this->getPrestashopVersion()
|
518 |
+
) );
|
519 |
+
return $this->display ( __file__, '/views/templates/front/error_admin.tpl' );
|
520 |
+
}
|
521 |
+
}
|
522 |
+
*/
|
523 |
+
|
524 |
+
if ( !$this->isTestUser ) {
|
525 |
+
$preferences[ 'sponsor_id' ] = (int) ( $this->sponsor_id[ $this->site_id ] );
|
526 |
+
}
|
527 |
+
|
528 |
+
if ( 'yes' == $this->debug ) {
|
529 |
+
$this->log->add( $this->id, $this->id .
|
530 |
+
': @[createPreferences] - Returning just created [$payment_preference] structure: ' .
|
531 |
+
json_encode( $payment_preference, JSON_PRETTY_PRINT ) );
|
532 |
+
}
|
533 |
+
|
534 |
+
$payment_preference = apply_filters(
|
535 |
+
'woocommerce_mercadopago_module_ticket_preferences',
|
536 |
+
$payment_preference, $order
|
537 |
+
);
|
538 |
+
return $payment_preference;
|
539 |
+
|
540 |
+
}
|
541 |
+
|
542 |
+
/*
|
543 |
+
* ========================================================================
|
544 |
+
* AUXILIARY AND FEEDBACK METHODS
|
545 |
+
* ========================================================================
|
546 |
+
*/
|
547 |
+
|
548 |
+
// Check if we have valid credentials.
|
549 |
+
public function validateCredentials() {
|
550 |
+
if ( empty( $this->access_token ) ) return false;
|
551 |
+
if ( strlen( $this->access_token ) > 0 ) {
|
552 |
+
try {
|
553 |
+
$mp = new MP( $this->access_token );
|
554 |
+
return true;
|
555 |
+
} catch ( MercadoPagoException $e ) {
|
556 |
+
return false;
|
557 |
+
}
|
558 |
+
}
|
559 |
+
return false;
|
560 |
+
}
|
561 |
+
|
562 |
+
// Build the string representing the path to the log file
|
563 |
+
protected function buildLogPathString() {
|
564 |
+
return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
|
565 |
+
esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' .
|
566 |
+
__( 'WooCommerce > System Status > Logs', 'woocommerce-mercadopago-module' ) . '</a>';
|
567 |
+
}
|
568 |
+
|
569 |
+
// Return boolean indicating if currency is supported.
|
570 |
+
// TODO: Peru rollout
|
571 |
+
protected function isSupportedCurrency() {
|
572 |
+
return in_array( get_woocommerce_currency(), array( 'ARS', 'BRL', 'CLP', 'COP', 'MXN', 'VEF' ) );
|
573 |
+
}
|
574 |
+
|
575 |
+
// Called automatically by WooCommerce, verify if Module is available to use.
|
576 |
+
public function is_available() {
|
577 |
+
$available = ( 'yes' == $this->settings[ 'enabled' ] ) &&
|
578 |
+
! empty( $this->access_token ) &&
|
579 |
+
$this->isSupportedCurrency();
|
580 |
+
return $available;
|
581 |
+
}
|
582 |
+
|
583 |
+
// Get the URL to admin page.
|
584 |
+
protected function admin_url() {
|
585 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1', '>=' ) ) {
|
586 |
+
return admin_url(
|
587 |
+
'admin.php?page=wc-settings&tab=checkout§ion=wc_woomercadopagoticket_gateway'
|
588 |
+
);
|
589 |
+
}
|
590 |
+
return admin_url(
|
591 |
+
'admin.php?page=woocommerce_settings&tab=payment_gateways§ion=WC_WooMercadoPagoTicket_Gateway'
|
592 |
+
);
|
593 |
+
}
|
594 |
+
|
595 |
+
// Notify that access_token are not valid.
|
596 |
+
public function credentialsMissingMessage() {
|
597 |
+
echo '<div class="error"><p><strong>' .
|
598 |
+
__( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
|
599 |
+
'</strong>: ' .
|
600 |
+
sprintf(
|
601 |
+
__( 'Your Mercado Pago credentials Access Token appears to be misconfigured.', 'woocommerce-mercadopago-module' ) . ' %s',
|
602 |
+
'<a href="' . $this->admin_url() . '">' .
|
603 |
+
__( 'Click here and configure!', 'woocommerce-mercadopago-module' ) . '</a>' ) .
|
604 |
+
'</p></div>';
|
605 |
+
}
|
606 |
+
|
607 |
+
// Notify that currency is not supported.
|
608 |
+
// TODO: Peru rollout
|
609 |
+
public function currencyNotSupportedMessage() {
|
610 |
+
echo '<div class="error"><p><strong>' .
|
611 |
+
__( 'Ticket is Inactive', 'woocommerce-mercadopago-module' ) .
|
612 |
+
'</strong>: ' .
|
613 |
+
sprintf(
|
614 |
+
__( 'The currency' ) . ' <code>%s</code> ' .
|
615 |
+
__( 'is not supported. Supported currencies are: ARS, BRL, CLP, COP, MXN, VEF.', 'woocommerce-mercadopago-module' ),
|
616 |
+
get_woocommerce_currency() ) .
|
617 |
+
'</p></div>';
|
618 |
+
}
|
619 |
+
|
620 |
+
public function getCountryName( $site_id ) {
|
621 |
+
$country = $site_id;
|
622 |
+
switch ( $site_id ) {
|
623 |
+
case 'MLA': return __( 'Argentine', 'woocommerce-mercadopago-module' );
|
624 |
+
case 'MLB': return __( 'Brazil', 'woocommerce-mercadopago-module' );
|
625 |
+
case 'MCO': return __( 'Colombia', 'woocommerce-mercadopago-module' );
|
626 |
+
case 'MLC': return __( 'Chile', 'woocommerce-mercadopago-module' );
|
627 |
+
case 'MLM': return __( 'Mexico', 'woocommerce-mercadopago-module' );
|
628 |
+
case 'MLV': return __( 'Venezuela', 'woocommerce-mercadopago-module' );
|
629 |
+
case 'MPE': return __( 'Peru', 'woocommerce-mercadopago-module' );
|
630 |
+
}
|
631 |
+
}
|
632 |
+
|
633 |
+
/*
|
634 |
+
* ========================================================================
|
635 |
+
* IPN MECHANICS
|
636 |
+
* ========================================================================
|
637 |
+
*/
|
638 |
+
|
639 |
+
// This call checks any incoming notifications from Mercado Pago server.
|
640 |
+
public function check_ipn_response() {
|
641 |
+
@ob_clean();
|
642 |
+
if ( 'yes' == $this->debug ) {
|
643 |
+
$this->log->add( $this->id, $this->id .
|
644 |
+
': @[check_ipn_response] - Received _get content: ' .
|
645 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
646 |
+
}
|
647 |
+
$data = $this->check_ipn_request_is_valid( $_GET );
|
648 |
+
if ( $data ) {
|
649 |
+
header( 'HTTP/1.1 200 OK' );
|
650 |
+
do_action( 'valid_mercadopagocustom_ipn_request', $data );
|
651 |
+
} else {
|
652 |
+
if ( 'yes' == $this->debug ) {
|
653 |
+
$this->log->add( $this->id, $this->id .
|
654 |
+
': @[check_ipn_response] - Mercado Pago Request Failure: ' .
|
655 |
+
json_encode( $_GET, JSON_PRETTY_PRINT ) );
|
656 |
+
}
|
657 |
+
wp_die( __( 'Mercado Pago Request Failure', 'woocommerce-mercadopago-module' ) );
|
658 |
+
}
|
659 |
+
}
|
660 |
+
|
661 |
+
// Get received data from IPN and checks if we have an associated
|
662 |
+
// payment. If we have these information, we return data to be
|
663 |
+
// processed by successful_request function.
|
664 |
+
public function check_ipn_request_is_valid( $data ) {
|
665 |
+
if ( !isset( $data[ 'data_id' ] ) || !isset( $data[ 'type' ] ) ) {
|
666 |
+
if ( 'yes' == $this->debug ) {
|
667 |
+
$this->log->add( $this->id, $this->id .
|
668 |
+
': @[check_ipn_request_is_valid] - data_id or type not set: ' .
|
669 |
+
json_encode( $data, JSON_PRETTY_PRINT ) );
|
670 |
+
}
|
671 |
+
return false; // No ID? No process!
|
672 |
+
}
|
673 |
+
$mp = new MP( $this->access_token );
|
674 |
+
$mp->sandbox_mode( false );
|
675 |
+
try {
|
676 |
+
$access_token = array( "access_token" => $mp->get_access_token() );
|
677 |
+
if ( $data[ "type" ] == 'payment' ) {
|
678 |
+
$payment_info = $mp->get( "/v1/payments/" . $data[ "data_id" ], $access_token, false );
|
679 |
+
if ( !is_wp_error( $payment_info ) &&
|
680 |
+
( $payment_info[ "status" ] == 200 || $payment_info[ "status" ] == 201 ) ) {
|
681 |
+
return $payment_info[ 'response' ];
|
682 |
+
} else {
|
683 |
+
if ( 'yes' == $this->debug ) {
|
684 |
+
$this->log->add( $this->id, $this->id .
|
685 |
+
': @[check_ipn_request_is_valid] - error when processing received data: ' .
|
686 |
+
json_encode( $payment_info, JSON_PRETTY_PRINT ) );
|
687 |
+
}
|
688 |
+
return false;
|
689 |
+
}
|
690 |
+
}
|
691 |
+
} catch ( MercadoPagoException $e ) {
|
692 |
+
if ( 'yes' == $this->debug ) {
|
693 |
+
$this->log->add(
|
694 |
+
$this->id, $this->id .
|
695 |
+
': @[check_ipn_request_is_valid] - MercadoPagoException: ' .
|
696 |
+
json_encode( array( "status" => $e->getCode(), "message" => $e->getMessage() ) ) );
|
697 |
+
}
|
698 |
+
return false;
|
699 |
+
}
|
700 |
+
return true;
|
701 |
+
}
|
702 |
+
|
703 |
+
// Properly handles each case of notification, based in payment status.
|
704 |
+
public function successful_request( $data ) {
|
705 |
+
if ( 'yes' == $this->debug ) {
|
706 |
+
$this->log->add( $this->id, $this->id .
|
707 |
+
': @[successful_request] - starting to process ipn update...' );
|
708 |
+
}
|
709 |
+
$order_key = $data[ 'external_reference' ];
|
710 |
+
if ( !empty( $order_key ) ) {
|
711 |
+
$order_id = (int) str_replace( $this->invoice_prefix, '', $order_key );
|
712 |
+
$order = new WC_Order( $order_id );
|
713 |
+
// Checks whether the invoice number matches the order, if true processes the payment
|
714 |
+
if ( $order->id === $order_id ) {
|
715 |
+
if ( 'yes' == $this->debug ) {
|
716 |
+
$this->log->add( $this->id, $this->id .
|
717 |
+
': @[successful_request] - got order with ID ' . $order->id .
|
718 |
+
' and status ' . $data[ 'status' ] );
|
719 |
+
}
|
720 |
+
// Order details.
|
721 |
+
if ( !empty( $data[ 'payer' ][ 'email' ] ) ) {
|
722 |
+
update_post_meta(
|
723 |
+
$order_id,
|
724 |
+
__( 'Payer email',
|
725 |
+
'woocommerce-mercadopago-module' ),
|
726 |
+
$data[ 'payer' ][ 'email' ]
|
727 |
+
);
|
728 |
+
}
|
729 |
+
if ( !empty( $data[ 'payment_type_id' ] ) ) {
|
730 |
+
update_post_meta(
|
731 |
+
$order_id,
|
732 |
+
__( 'Payment type',
|
733 |
+
'woocommerce-mercadopago-module' ),
|
734 |
+
$data[ 'payment_type_id' ]
|
735 |
+
);
|
736 |
+
}
|
737 |
+
if ( !empty( $data ) ) {
|
738 |
+
update_post_meta(
|
739 |
+
$order_id,
|
740 |
+
__( 'Mercado Pago Payment ID',
|
741 |
+
'woocommerce-mercadopago-module' ),
|
742 |
+
$data[ 'id' ]
|
743 |
+
);
|
744 |
+
}
|
745 |
+
// Switch the status and update in WooCommerce
|
746 |
+
switch ( $data[ 'status' ] ) {
|
747 |
+
case 'approved':
|
748 |
+
$order->add_order_note(
|
749 |
+
'Mercado Pago: ' . __( 'Payment approved.',
|
750 |
+
'woocommerce-mercadopago-module' )
|
751 |
+
);
|
752 |
+
$order->payment_complete();
|
753 |
+
break;
|
754 |
+
case 'pending':
|
755 |
+
$order->add_order_note(
|
756 |
+
'Mercado Pago: ' . __( 'Customer haven\'t paid yet.',
|
757 |
+
'woocommerce-mercadopago-module' )
|
758 |
+
);
|
759 |
+
break;
|
760 |
+
case 'in_process':
|
761 |
+
$order->update_status(
|
762 |
+
'on-hold',
|
763 |
+
'Mercado Pago: ' . __( 'Payment under review.',
|
764 |
+
'woocommerce-mercadopago-module' )
|
765 |
+
);
|
766 |
+
break;
|
767 |
+
case 'rejected':
|
768 |
+
$order->update_status(
|
769 |
+
'failed',
|
770 |
+
'Mercado Pago: ' . __( 'The payment was refused. The customer can try again.',
|
771 |
+
'woocommerce-mercadopago-module' )
|
772 |
+
);
|
773 |
+
break;
|
774 |
+
case 'refunded':
|
775 |
+
$order->update_status(
|
776 |
+
'refunded',
|
777 |
+
'Mercado Pago: ' . __( 'The payment was refunded to the customer.',
|
778 |
+
'woocommerce-mercadopago-module' )
|
779 |
+
);
|
780 |
+
break;
|
781 |
+
case 'cancelled':
|
782 |
+
$order->update_status(
|
783 |
+
'cancelled',
|
784 |
+
'Mercado Pago: ' . __( 'The payment was cancelled.',
|
785 |
+
'woocommerce-mercadopago-module' )
|
786 |
+
);
|
787 |
+
break;
|
788 |
+
case 'in_mediation':
|
789 |
+
$order->add_order_note(
|
790 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
|
791 |
+
'woocommerce-mercadopago-module' )
|
792 |
+
);
|
793 |
+
break;
|
794 |
+
case 'charged-back':
|
795 |
+
$order->add_order_note(
|
796 |
+
'Mercado Pago: ' . __( 'The payment is under mediation or it was charged-back.',
|
797 |
+
'woocommerce-mercadopago-module' )
|
798 |
+
);
|
799 |
+
break;
|
800 |
+
default:
|
801 |
+
break;
|
802 |
+
}
|
803 |
+
}
|
804 |
+
}
|
805 |
+
}
|
806 |
+
|
807 |
+
}
|
mercadopago/sdk/lib/cacert.pem
CHANGED
File without changes
|
mercadopago/sdk/lib/mercadopago.php
CHANGED
@@ -203,18 +203,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
|
@@ -251,6 +254,26 @@ class MP {
|
|
251 |
$preference_result = MPRestClient::get($request);
|
252 |
return $preference_result;
|
253 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
|
255 |
/**
|
256 |
* Create a preapproval payment
|
203 |
* @param array $preference
|
204 |
* @return array(json)
|
205 |
*/
|
206 |
+
public function create_preference($preference) {
|
207 |
+
$request = array(
|
208 |
+
"uri" => "/checkout/preferences",
|
209 |
+
"params" => array(
|
210 |
+
"access_token" => $this->get_access_token()
|
211 |
+
),
|
212 |
+
"headers" => array(
|
213 |
+
"X-Tracking-Id" => "platform:desktop,type:woocommerce,so:2.0.0"
|
214 |
+
),
|
215 |
+
"data" => $preference
|
216 |
+
);
|
217 |
+
|
218 |
+
$preference_result = MPRestClient::post($request);
|
219 |
+
return $preference_result;
|
220 |
+
}
|
221 |
|
222 |
/**
|
223 |
* Update a checkout preference
|
254 |
$preference_result = MPRestClient::get($request);
|
255 |
return $preference_result;
|
256 |
}
|
257 |
+
|
258 |
+
/**
|
259 |
+
* Create a checkout preference
|
260 |
+
* @param array $preference
|
261 |
+
* @return array(json)
|
262 |
+
*/
|
263 |
+
public function create_payment($preference) {
|
264 |
+
$request = array(
|
265 |
+
"uri" => "/v1/payments",
|
266 |
+
"params" => array(
|
267 |
+
"access_token" => $this->get_access_token()
|
268 |
+
),
|
269 |
+
"headers" => array(
|
270 |
+
"X-Tracking-Id" => "platform:v1-whitelabel,type:woocommerce,so:2.0.0"
|
271 |
+
),
|
272 |
+
"data" => $preference
|
273 |
+
);
|
274 |
+
$payment = MPRestClient::post($request);
|
275 |
+
return $payment;
|
276 |
+
}
|
277 |
|
278 |
/**
|
279 |
* Create a preapproval payment
|
templates/credit-card/payment-form.php
ADDED
@@ -0,0 +1,676 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
|
7 |
+
* License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( !defined( 'ABSPATH' ) ) {
|
11 |
+
exit;
|
12 |
+
}
|
13 |
+
?>
|
14 |
+
|
15 |
+
<div width="100%" style="margin:1px; padding:36px 36px 16px 36px; background:white; ">
|
16 |
+
<img class="logo" src="<?php echo ( $images_path . 'mplogo.png' ); ?>" width="156" height="40" />
|
17 |
+
<?php if ( !empty( $banner_path ) ) { ?>
|
18 |
+
<img class="mp-creditcard-banner" src="<?php echo $banner_path; ?>" width="312" height="40" />
|
19 |
+
<?php } ?>
|
20 |
+
</div>
|
21 |
+
<fieldset id="mercadopago-form" style="background:white; ">
|
22 |
+
<div style="padding:0px 36px 0px 36px;">
|
23 |
+
|
24 |
+
<!-- payment method -->
|
25 |
+
<div class="mp-box-inputs mp-line mp-paymentMethodsSelector" style="display:none;">
|
26 |
+
<label for="paymentMethodIdSelector"><?php echo $form_labels[ 'form' ][ 'payment_method' ]; ?> <em>*</em></label>
|
27 |
+
<select id="paymentMethodIdSelector" name="mercadopago_custom[paymentMethodIdSelector]" data-checkout="paymentMethodIdSelector"></select>
|
28 |
+
</div>
|
29 |
+
<!-- card number -->
|
30 |
+
<div class="mp-box-inputs mp-col-100">
|
31 |
+
<label for="cardNumber"><?php echo $form_labels[ 'form' ][ 'credit_card_number' ]; ?> <em>*</em></label>
|
32 |
+
<input type="text" id="cardNumber" data-checkout="cardNumber" placeholder="" autocomplete="off" maxlength="19" />
|
33 |
+
<span class="mp-error" id="mp-error-205" data-main="#cardNumber"> <?php echo $form_labels[ 'error' ][ '205' ]; ?> </span>
|
34 |
+
<span class="mp-error" id="mp-error-E301" data-main="#cardNumber"> <?php echo $form_labels[ 'error' ][ 'E301' ]; ?> </span>
|
35 |
+
</div>
|
36 |
+
<!-- expiry date -->
|
37 |
+
<div class="mp-box-inputs mp-line">
|
38 |
+
<div class="mp-box-inputs mp-col-45">
|
39 |
+
<label for="cardExpirationMonth"><?php echo $form_labels[ 'form' ][ 'expiration_month' ]; ?> <em>*</em></label>
|
40 |
+
<select id="cardExpirationMonth" data-checkout="cardExpirationMonth" name="mercadopago_custom[cardExpirationMonth]">
|
41 |
+
<option value="-1"> <?php echo $form_labels[ 'form' ][ 'month' ]; ?> </option>
|
42 |
+
<?php for ($x=1; $x<=12; $x++): ?>
|
43 |
+
<option value="<?php echo $x; ?>"> <?php echo $x; ?></option>
|
44 |
+
<?php endfor; ?>
|
45 |
+
</select>
|
46 |
+
</div>
|
47 |
+
<div class="mp-box-inputs mp-col-10">
|
48 |
+
<div id="mp-separete-date"></div>
|
49 |
+
</div>
|
50 |
+
<div class="mp-box-inputs mp-col-45">
|
51 |
+
<label for="cardExpirationYear"><?php echo $form_labels[ 'form' ][ 'expiration_year' ]; ?> <em>*</em></label>
|
52 |
+
<select id="cardExpirationYear" data-checkout="cardExpirationYear" name="mercadopago_custom[cardExpirationYear]">
|
53 |
+
<option value="-1"> <?php echo $form_labels[ 'form' ][ 'year' ]; ?> </option>
|
54 |
+
<?php for ($x=date("Y"); $x<= date("Y") + 10; $x++): ?>
|
55 |
+
<option value="<?php echo $x; ?>"> <?php echo $x; ?> </option>
|
56 |
+
<?php endfor; ?>
|
57 |
+
</select>
|
58 |
+
</div>
|
59 |
+
<span class="mp-error" id="mp-error-208" data-main="#cardExpirationMonth"> <?php echo $form_labels[ 'error' ][ '208' ]; ?> </span>
|
60 |
+
<span class="mp-error" id="mp-error-209" data-main="#cardExpirationYear"> </span>
|
61 |
+
<span class="mp-error" id="mp-error-325" data-main="#cardExpirationMonth"> <?php echo $form_labels[ 'error' ][ '325' ]; ?> </span>
|
62 |
+
<span class="mp-error" id="mp-error-326" data-main="#cardExpirationYear"> </span>
|
63 |
+
</div>
|
64 |
+
<!-- card holder name -->
|
65 |
+
<div class="mp-box-inputs mp-col-100">
|
66 |
+
<label for="cardholderName"><?php echo $form_labels[ 'form' ][ 'card_holder_name' ]; ?> <em>*</em></label>
|
67 |
+
<input type="text" id="cardholderName" name="mercadopago_custom[cardholderName]" data-checkout="cardholderName" placeholder="" autocomplete="off" />
|
68 |
+
<span class="mp-error" id="mp-error-221" data-main="#cardholderName"> <?php echo $form_labels[ 'error' ][ '221' ]; ?> </span>
|
69 |
+
<span class="mp-error" id="mp-error-316" data-main="#cardholderName"> <?php echo $form_labels[ 'error' ][ '316' ]; ?> </span>
|
70 |
+
</div>
|
71 |
+
<!-- security code -->
|
72 |
+
<div class="mp-box-inputs mp-line">
|
73 |
+
<div class="mp-box-inputs mp-col-45">
|
74 |
+
<label for="securityCode"><?php echo $form_labels[ 'form' ][ 'security_code' ]; ?> <em>*</em></label>
|
75 |
+
<input type="text" id="securityCode" data-checkout="securityCode" placeholder="" name="mercadopago_custom[securityCode]" style="padding: 8px; background: url( <?php echo ( $images_path . 'cvv.png' ); ?> ) 98% 50% no-repeat;" autocomplete="off" maxlength="4"/>
|
76 |
+
<span class="mp-error" id="mp-error-224" data-main="#securityCode"> <?php echo $form_labels[ 'error' ][ '224' ]; ?> </span>
|
77 |
+
<span class="mp-error" id="mp-error-E302" data-main="#securityCode"> <?php echo $form_labels[ 'error' ][ 'E302' ]; ?> </span>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<!-- document type -->
|
81 |
+
<div class="mp-box-inputs mp-col-100 mp-doc">
|
82 |
+
<div class="mp-box-inputs mp-col-35 mp-docType">
|
83 |
+
<label for="docType"><?php echo $form_labels[ 'form' ][ 'document_type' ]; ?> <em>*</em></label>
|
84 |
+
<select id="docType" data-checkout="docType" name="mercadopago_custom[docType]"></select>
|
85 |
+
<span class="mp-error" id="mp-error-212" data-main="#docType"> <?php echo $form_labels[ 'error' ][ '212' ]; ?> </span>
|
86 |
+
<span class="mp-error" id="mp-error-322" data-main="#docType"> <?php echo $form_labels[ 'error' ][ '322' ]; ?> </span>
|
87 |
+
</div>
|
88 |
+
<div class="mp-box-inputs mp-col-65 mp-docNumber">
|
89 |
+
<label for="docNumber"><?php echo $form_labels[ 'form' ][ 'document_number' ]; ?> <em>*</em></label>
|
90 |
+
<input type="text" id="docNumber" data-checkout="docNumber" placeholder="" name="mercadopago_custom[docNumber]" autocomplete="off"/>
|
91 |
+
<span class="mp-error" id="mp-error-214" data-main="#docNumber"> <?php echo $form_labels[ 'error' ][ '214' ]; ?> </span>
|
92 |
+
<span class="mp-error" id="mp-error-324" data-main="#docNumber"> <?php echo $form_labels[ 'error' ][ '324' ]; ?> </span>
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
<!-- card issuer -->
|
96 |
+
<div class="mp-box-inputs mp-col-100 mp-issuer">
|
97 |
+
<label for="issuer"><?php echo $form_labels[ 'form' ][ 'issuer' ]; ?> <em>*</em></label>
|
98 |
+
<select id="issuer" data-checkout="issuer" name="mercadopago_custom[issuer]"></select>
|
99 |
+
<span class="mp-error" id="mp-error-220" data-main="#issuer"> <?php echo $form_labels[' error' ][ '220' ]; ?> </span>
|
100 |
+
</div>
|
101 |
+
<!-- installments -->
|
102 |
+
<div class="mp-box-inputs mp-col-100">
|
103 |
+
<label for="installments"><?php echo $form_labels[ 'form' ][ 'installments' ]; ?> <em>*</em></label>
|
104 |
+
<select id="installments" data-checkout="installments" name="mercadopago_custom[installments]"></select>
|
105 |
+
</div>
|
106 |
+
<div class="mp-box-inputs mp-line">
|
107 |
+
<!-- <div class="mp-box-inputs mp-col-50">
|
108 |
+
<input type="submit" value="Pay" id="submit"/>
|
109 |
+
</div> -->
|
110 |
+
<div class="mp-box-inputs mp-col-25">
|
111 |
+
<div id="mp-box-loading">
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
<!-- utilities -->
|
116 |
+
<div class="mp-box-inputs mp-col-100" id="mercadopago-utilities">
|
117 |
+
<input type="hidden" id="public_key" value="<?php echo $public_key; ?>" />
|
118 |
+
<input type="hidden" id="site_id" name="mercadopago_custom[site_id]"/>
|
119 |
+
<input type="hidden" id="amount" value="<?php echo $amount; ?>" name="mercadopago_custom[amount]"/>
|
120 |
+
<input type="hidden" id="paymentMethodId" name="mercadopago_custom[paymentMethodId]"/>
|
121 |
+
<input type="hidden" id="token" name="mercadopago_custom[token]"/>
|
122 |
+
<input type="hidden" id="cardTruncated" name="mercadopago_custom[cardTruncated]"/>
|
123 |
+
</div>
|
124 |
+
|
125 |
+
</div>
|
126 |
+
</fieldset>
|
127 |
+
|
128 |
+
<script type="text/javascript">
|
129 |
+
|
130 |
+
var config_mp = {
|
131 |
+
debug: false,
|
132 |
+
add_truncated_card: true,
|
133 |
+
site_id: '<?php echo $site_id; ?>',
|
134 |
+
public_key: '<?php echo $public_key; ?>',
|
135 |
+
create_token_on: {
|
136 |
+
event: true, //if true create token on event, if false create on click and ignore others events. eg: paste or keyup
|
137 |
+
keyup: false,
|
138 |
+
paste: true,
|
139 |
+
},
|
140 |
+
inputs_to_create_token: [
|
141 |
+
"cardNumber",
|
142 |
+
"cardExpirationMonth",
|
143 |
+
"cardExpirationYear",
|
144 |
+
"cardholderName",
|
145 |
+
"securityCode",
|
146 |
+
"docType",
|
147 |
+
"docNumber"
|
148 |
+
],
|
149 |
+
selectors: {
|
150 |
+
cardId: "#cardId",
|
151 |
+
|
152 |
+
cardNumber: "#cardNumber",
|
153 |
+
cardExpirationMonth: "#cardExpirationMonth",
|
154 |
+
cardExpirationYear: "#cardExpirationYear",
|
155 |
+
cardholderName: "#cardholderName",
|
156 |
+
securityCode: "#securityCode",
|
157 |
+
docType: "#docType",
|
158 |
+
docNumber: "#docNumber",
|
159 |
+
issuer: "#issuer",
|
160 |
+
installments: "#installments",
|
161 |
+
|
162 |
+
paymentMethodId: "#paymentMethodId",
|
163 |
+
paymentMethodIdSelector: "#paymentMethodIdSelector",
|
164 |
+
amount: "#amount",
|
165 |
+
token: "#token",
|
166 |
+
cardTruncated: "#cardTruncated",
|
167 |
+
site_id: "#site_id",
|
168 |
+
|
169 |
+
box_loading: "#mp-box-loading",
|
170 |
+
submit: "#submit",
|
171 |
+
form: '#mercadopago-form',
|
172 |
+
utilities_fields: "#mercadopago-utilities"
|
173 |
+
},
|
174 |
+
text: {
|
175 |
+
choose: '<?php echo $label_choose; ?>'
|
176 |
+
},
|
177 |
+
paths: {
|
178 |
+
loading: '<?php echo ( $images_path . "loading.gif" ); ?>'
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
Initialize();
|
183 |
+
|
184 |
+
/*
|
185 |
+
*
|
186 |
+
*
|
187 |
+
* payment methods
|
188 |
+
*
|
189 |
+
*/
|
190 |
+
|
191 |
+
function getBin() {
|
192 |
+
var cardSelector = document.querySelector(config_mp.selectors.cardId);
|
193 |
+
if (cardSelector && cardSelector[cardSelector.options.selectedIndex].value != "-1") {
|
194 |
+
return cardSelector[cardSelector.options.selectedIndex].getAttribute('first_six_digits');
|
195 |
+
}
|
196 |
+
var ccNumber = document.querySelector(config_mp.selectors.cardNumber);
|
197 |
+
return ccNumber.value.replace(/[ .-]/g, '').slice(0, 6);
|
198 |
+
}
|
199 |
+
|
200 |
+
function clearOptions() {
|
201 |
+
var bin = getBin();
|
202 |
+
if (bin.length == 0) {
|
203 |
+
hideIssuer();
|
204 |
+
|
205 |
+
var selectorInstallments = document.querySelector(config_mp.selectors.installments),
|
206 |
+
fragment = document.createDocumentFragment(),
|
207 |
+
option = new Option(config_mp.text.choose + "...", '-1');
|
208 |
+
|
209 |
+
selectorInstallments.options.length = 0;
|
210 |
+
fragment.appendChild(option);
|
211 |
+
selectorInstallments.appendChild(fragment);
|
212 |
+
selectorInstallments.setAttribute('disabled', 'disabled');
|
213 |
+
}
|
214 |
+
}
|
215 |
+
|
216 |
+
function guessingPaymentMethod(event) {
|
217 |
+
|
218 |
+
var bin = getBin(),
|
219 |
+
amount = document.querySelector(config_mp.selectors.amount).value;
|
220 |
+
if (event.type == "keyup") {
|
221 |
+
if (bin.length == 6) {
|
222 |
+
Mercadopago.getPaymentMethod({
|
223 |
+
"bin": bin
|
224 |
+
}, setPaymentMethodInfo);
|
225 |
+
}
|
226 |
+
} else {
|
227 |
+
setTimeout(function() {
|
228 |
+
if (bin.length >= 6) {
|
229 |
+
Mercadopago.getPaymentMethod({
|
230 |
+
"bin": bin
|
231 |
+
}, setPaymentMethodInfo);
|
232 |
+
}
|
233 |
+
}, 100);
|
234 |
+
}
|
235 |
+
};
|
236 |
+
|
237 |
+
function setPaymentMethodInfo(status, response) {
|
238 |
+
if (status == 200) {
|
239 |
+
|
240 |
+
if (config_mp.site_id != "MLM") {
|
241 |
+
//guessing
|
242 |
+
document.querySelector(config_mp.selectors.paymentMethodId).value = response[0].id;
|
243 |
+
document.querySelector(config_mp.selectors.cardNumber).style.background = "url(" + response[0].secure_thumbnail + ") 98% 50% no-repeat #fff";
|
244 |
+
}
|
245 |
+
|
246 |
+
// check if the security code (ex: Tarshop) is required
|
247 |
+
var cardConfiguration = response[0].settings,
|
248 |
+
bin = getBin(),
|
249 |
+
amount = document.querySelector(config_mp.selectors.amount).value;
|
250 |
+
|
251 |
+
//for (var index = 0; index < cardConfiguration.length; index++) {
|
252 |
+
// if (bin.match(cardConfiguration[index].bin.pattern) != null && cardConfiguration[index].security_code.length == 0) {
|
253 |
+
// /*
|
254 |
+
// * In this case you do not need the Security code. You can hide the input.
|
255 |
+
// */
|
256 |
+
// } else {
|
257 |
+
// /*
|
258 |
+
// * In this case you NEED the Security code. You MUST show the input.
|
259 |
+
// */
|
260 |
+
// }
|
261 |
+
//}
|
262 |
+
|
263 |
+
Mercadopago.getInstallments({
|
264 |
+
"bin": bin,
|
265 |
+
"amount": amount
|
266 |
+
}, setInstallmentInfo);
|
267 |
+
|
268 |
+
// check if the issuer is necessary to pay
|
269 |
+
var issuerMandatory = false,
|
270 |
+
additionalInfo = response[0].additional_info_needed;
|
271 |
+
|
272 |
+
for (var i = 0; i < additionalInfo.length; i++) {
|
273 |
+
if (additionalInfo[i] == "issuer_id") {
|
274 |
+
issuerMandatory = true;
|
275 |
+
}
|
276 |
+
};
|
277 |
+
if (issuerMandatory && config_mp.site_id != "MLM") {
|
278 |
+
var payment_method_id = response[0].id;
|
279 |
+
getIssuersPaymentMethod(payment_method_id);
|
280 |
+
} else {
|
281 |
+
hideIssuer();
|
282 |
+
}
|
283 |
+
}
|
284 |
+
};
|
285 |
+
|
286 |
+
function changePaymetMethodSelector() {
|
287 |
+
var payment_method_id = document.querySelector(config_mp.selectors.paymentMethodIdSelector).value;
|
288 |
+
getIssuersPaymentMethod(payment_method_id);
|
289 |
+
}
|
290 |
+
|
291 |
+
/*
|
292 |
+
*
|
293 |
+
*
|
294 |
+
* Issuers
|
295 |
+
*
|
296 |
+
*/
|
297 |
+
function getIssuersPaymentMethod(payment_method_id) {
|
298 |
+
Mercadopago.getIssuers(payment_method_id, showCardIssuers);
|
299 |
+
addEvent(document.querySelector(config_mp.selectors.issuer), 'change', setInstallmentsByIssuerId);
|
300 |
+
}
|
301 |
+
|
302 |
+
function showCardIssuers(status, issuers) {
|
303 |
+
//if the API does not return any bank
|
304 |
+
if (issuers.length > 0) {
|
305 |
+
var issuersSelector = document.querySelector(config_mp.selectors.issuer),
|
306 |
+
fragment = document.createDocumentFragment();
|
307 |
+
issuersSelector.options.length = 0;
|
308 |
+
var option = new Option(config_mp.text.choose + "...", '-1');
|
309 |
+
fragment.appendChild(option);
|
310 |
+
for (var i = 0; i < issuers.length; i++) {
|
311 |
+
if (issuers[i].name != "default") {
|
312 |
+
option = new Option(issuers[i].name, issuers[i].id);
|
313 |
+
} else {
|
314 |
+
option = new Option("Otro", issuers[i].id);
|
315 |
+
}
|
316 |
+
fragment.appendChild(option);
|
317 |
+
}
|
318 |
+
issuersSelector.appendChild(fragment);
|
319 |
+
issuersSelector.removeAttribute('disabled');
|
320 |
+
//document.querySelector(config_mp.selectors.issuer).removeAttribute('style');
|
321 |
+
} else {
|
322 |
+
hideIssuer();
|
323 |
+
}
|
324 |
+
};
|
325 |
+
|
326 |
+
function setInstallmentsByIssuerId(status, response) {
|
327 |
+
var issuerId = document.querySelector(config_mp.selectors.issuer).value,
|
328 |
+
amount = document.querySelector(config_mp.selectors.amount).value;
|
329 |
+
|
330 |
+
if (issuerId === '-1') {
|
331 |
+
return;
|
332 |
+
}
|
333 |
+
|
334 |
+
Mercadopago.getInstallments({
|
335 |
+
"bin": getBin(),
|
336 |
+
"amount": amount,
|
337 |
+
"issuer_id": issuerId
|
338 |
+
}, setInstallmentInfo);
|
339 |
+
};
|
340 |
+
|
341 |
+
|
342 |
+
|
343 |
+
function hideIssuer() {
|
344 |
+
var $issuer = document.querySelector(config_mp.selectors.issuer);
|
345 |
+
var opt = document.createElement('option');
|
346 |
+
opt.value = "-1";
|
347 |
+
opt.innerHTML = '<?php echo $label_other_bank; ?>';
|
348 |
+
|
349 |
+
$issuer.innerHTML = "";
|
350 |
+
$issuer.appendChild(opt);
|
351 |
+
$issuer.setAttribute('disabled', 'disabled');
|
352 |
+
}
|
353 |
+
|
354 |
+
/*
|
355 |
+
*
|
356 |
+
*
|
357 |
+
* Installments
|
358 |
+
*
|
359 |
+
*/
|
360 |
+
|
361 |
+
function setInstallmentInfo(status, response) {
|
362 |
+
var selectorInstallments = document.querySelector(config_mp.selectors.installments);
|
363 |
+
|
364 |
+
if (response.length > 0) {
|
365 |
+
|
366 |
+
var html_option = '<option value="-1">' + config_mp.text.choose + '...</option>';
|
367 |
+
payerCosts = response[0].payer_costs;
|
368 |
+
|
369 |
+
// fragment.appendChild(option);
|
370 |
+
for (var i = 0; i < payerCosts.length; i++) {
|
371 |
+
html_option += '<option value="' + payerCosts[i].installments + '">' + (payerCosts[i].recommended_message || payerCosts[i].installments) + '</option>';
|
372 |
+
}
|
373 |
+
|
374 |
+
// not take the user's selection if equal
|
375 |
+
if (selectorInstallments.innerHTML != html_option) {
|
376 |
+
selectorInstallments.innerHTML = html_option;
|
377 |
+
}
|
378 |
+
|
379 |
+
selectorInstallments.removeAttribute('disabled');
|
380 |
+
}
|
381 |
+
};
|
382 |
+
|
383 |
+
|
384 |
+
/*
|
385 |
+
*
|
386 |
+
*
|
387 |
+
* Customer & Cards
|
388 |
+
*
|
389 |
+
*/
|
390 |
+
|
391 |
+
function cardsHandler() {
|
392 |
+
clearOptions();
|
393 |
+
var cardSelector = document.querySelector(config_mp.selectors.cardId),
|
394 |
+
amount = document.querySelector(config_mp.selectors.amount).value;
|
395 |
+
|
396 |
+
if (cardSelector && cardSelector[cardSelector.options.selectedIndex].value != "-1") {
|
397 |
+
var _bin = cardSelector[cardSelector.options.selectedIndex].getAttribute("first_six_digits");
|
398 |
+
Mercadopago.getPaymentMethod({
|
399 |
+
"bin": _bin
|
400 |
+
}, setPaymentMethodInfo);
|
401 |
+
}
|
402 |
+
}
|
403 |
+
|
404 |
+
|
405 |
+
/*
|
406 |
+
* Payment Methods
|
407 |
+
*
|
408 |
+
*/
|
409 |
+
|
410 |
+
function getPaymentMethods() {
|
411 |
+
var paymentMethodsSelector = document.querySelector(config_mp.selectors.paymentMethodIdSelector)
|
412 |
+
|
413 |
+
//set loading
|
414 |
+
paymentMethodsSelector.style.background = "url(" + config_mp.paths.loading + ") 95% 50% no-repeat #fff";
|
415 |
+
|
416 |
+
Mercadopago.getAllPaymentMethods(function(code, payment_methods) {
|
417 |
+
fragment = document.createDocumentFragment();
|
418 |
+
option = new Option(config_mp.text.choose + "...", '-1');
|
419 |
+
fragment.appendChild(option);
|
420 |
+
|
421 |
+
|
422 |
+
for (var x = 0; x < payment_methods.length; x++) {
|
423 |
+
var pm = payment_methods[x];
|
424 |
+
|
425 |
+
if ((pm.payment_type_id == "credit_card" ||
|
426 |
+
pm.payment_type_id == "debit_card" ||
|
427 |
+
pm.payment_type_id == "prepaid_card") &&
|
428 |
+
pm.status == "active") {
|
429 |
+
|
430 |
+
option = new Option(pm.name, pm.id);
|
431 |
+
fragment.appendChild(option);
|
432 |
+
|
433 |
+
} //end if
|
434 |
+
|
435 |
+
} //end for
|
436 |
+
|
437 |
+
paymentMethodsSelector.appendChild(fragment);
|
438 |
+
paymentMethodsSelector.style.background = "#fff";
|
439 |
+
});
|
440 |
+
}
|
441 |
+
|
442 |
+
/*
|
443 |
+
*
|
444 |
+
* Functions related to Create Tokens
|
445 |
+
*
|
446 |
+
*/
|
447 |
+
|
448 |
+
|
449 |
+
function createTokenByEvent() {
|
450 |
+
for (var x = 0; x < document.querySelectorAll('[data-checkout]').length; x++) {
|
451 |
+
var element = document.querySelectorAll('[data-checkout]')[x];
|
452 |
+
|
453 |
+
//add events only in the required fields
|
454 |
+
if (config_mp.inputs_to_create_token.indexOf(element.getAttribute("data-checkout")) > -1) {
|
455 |
+
|
456 |
+
addEvent(element, "focusout", validateInputsCreateToken);
|
457 |
+
addEvent(element, "change", validateInputsCreateToken);
|
458 |
+
|
459 |
+
if (config_mp.create_token_on.keyup) {
|
460 |
+
addEvent(element, "keyup", validateInputsCreateToken);
|
461 |
+
}
|
462 |
+
|
463 |
+
if (config_mp.create_token_on.paste) {
|
464 |
+
addEvent(element, "paste", validateInputsCreateToken);
|
465 |
+
}
|
466 |
+
|
467 |
+
}
|
468 |
+
}
|
469 |
+
}
|
470 |
+
|
471 |
+
function createTokenBySubmit() {
|
472 |
+
addEvent(document.querySelector(config_mp.selectors.form), 'submit', doPay);
|
473 |
+
}
|
474 |
+
|
475 |
+
var doSubmit = false;
|
476 |
+
|
477 |
+
function doPay(event) {
|
478 |
+
event.preventDefault();
|
479 |
+
if (!doSubmit) {
|
480 |
+
createToken();
|
481 |
+
return false;
|
482 |
+
}
|
483 |
+
};
|
484 |
+
|
485 |
+
function validateInputsCreateToken() {
|
486 |
+
var valid_to_create_token = true;
|
487 |
+
|
488 |
+
for (var x = 0; x < document.querySelectorAll('[data-checkout]').length; x++) {
|
489 |
+
var element = document.querySelectorAll('[data-checkout]')[x];
|
490 |
+
|
491 |
+
//check is a input to create token
|
492 |
+
if (config_mp.inputs_to_create_token.indexOf(element.getAttribute("data-checkout")) > -1) {
|
493 |
+
if (element.value == -1 || element.value == "") {
|
494 |
+
valid_to_create_token = false;
|
495 |
+
} //end if check values
|
496 |
+
} //end if check data-checkout
|
497 |
+
} //end for
|
498 |
+
|
499 |
+
if (valid_to_create_token) {
|
500 |
+
createToken();
|
501 |
+
}
|
502 |
+
}
|
503 |
+
|
504 |
+
function createToken() {
|
505 |
+
hideErrors();
|
506 |
+
|
507 |
+
//show loading
|
508 |
+
document.querySelector(config_mp.selectors.box_loading).style.background = "url(" + config_mp.paths.loading + ") 0 50% no-repeat #fff";
|
509 |
+
|
510 |
+
//form
|
511 |
+
var $form = document.querySelector(config_mp.selectors.form);
|
512 |
+
|
513 |
+
Mercadopago.createToken($form, sdkResponseHandler);
|
514 |
+
|
515 |
+
return false;
|
516 |
+
}
|
517 |
+
|
518 |
+
function sdkResponseHandler(status, response) {
|
519 |
+
//hide loading
|
520 |
+
document.querySelector(config_mp.selectors.box_loading).style.background = "";
|
521 |
+
|
522 |
+
if (status != 200 && status != 201) {
|
523 |
+
showErrors(response);
|
524 |
+
} else {
|
525 |
+
var token = document.querySelector(config_mp.selectors.token);
|
526 |
+
token.value = response.id;
|
527 |
+
|
528 |
+
if (config_mp.add_truncated_card) {
|
529 |
+
var card = truncateCard(response);
|
530 |
+
document.querySelector(config_mp.selectors.cardTruncated).value = card;
|
531 |
+
}
|
532 |
+
|
533 |
+
if (!config_mp.create_token_on.event) {
|
534 |
+
doSubmit = true;
|
535 |
+
btn = document.querySelector(config_mp.selectors.form);
|
536 |
+
btn.submit();
|
537 |
+
}
|
538 |
+
}
|
539 |
+
}
|
540 |
+
|
541 |
+
/*
|
542 |
+
*
|
543 |
+
*
|
544 |
+
* useful functions
|
545 |
+
*
|
546 |
+
*/
|
547 |
+
|
548 |
+
|
549 |
+
function truncateCard(response_card_token) {
|
550 |
+
var first_six_digits = response_card_token.first_six_digits.match(/.{1,4}/g)
|
551 |
+
var card = first_six_digits[0] + " " + first_six_digits[1] + "** **** " + response_card_token.last_four_digits;
|
552 |
+
return card;
|
553 |
+
}
|
554 |
+
|
555 |
+
/*
|
556 |
+
*
|
557 |
+
*
|
558 |
+
* Show errors
|
559 |
+
*
|
560 |
+
*/
|
561 |
+
|
562 |
+
function showErrors(response) {
|
563 |
+
console.log(response);
|
564 |
+
|
565 |
+
for (var x = 0; x < response.cause.length; x++) {
|
566 |
+
var error = response.cause[x];
|
567 |
+
var $span = document.querySelector('#mp-error-' + error.code);
|
568 |
+
var $input = document.querySelector($span.getAttribute("data-main"));
|
569 |
+
|
570 |
+
$span.style.display = 'inline-block';
|
571 |
+
$input.classList.add("mp-error-input");
|
572 |
+
|
573 |
+
}
|
574 |
+
|
575 |
+
return;
|
576 |
+
}
|
577 |
+
|
578 |
+
function hideErrors() {
|
579 |
+
|
580 |
+
for (var x = 0; x < document.querySelectorAll('[data-checkout]').length; x++) {
|
581 |
+
var $field = document.querySelectorAll('[data-checkout]')[x];
|
582 |
+
$field.classList.remove("mp-error-input");
|
583 |
+
|
584 |
+
} //end for
|
585 |
+
|
586 |
+
for (var x = 0; x < document.querySelectorAll('.mp-error').length; x++) {
|
587 |
+
var $span = document.querySelectorAll('.mp-error')[x];
|
588 |
+
$span.style.display = 'none';
|
589 |
+
|
590 |
+
}
|
591 |
+
|
592 |
+
return;
|
593 |
+
}
|
594 |
+
|
595 |
+
/*
|
596 |
+
*
|
597 |
+
* Add events to guessing
|
598 |
+
*
|
599 |
+
*/
|
600 |
+
|
601 |
+
|
602 |
+
function addEvent(el, eventName, handler) {
|
603 |
+
if (el.addEventListener) {
|
604 |
+
el.addEventListener(eventName, handler);
|
605 |
+
} else {
|
606 |
+
el.attachEvent('on' + eventName, function() {
|
607 |
+
handler.call(el);
|
608 |
+
});
|
609 |
+
}
|
610 |
+
};
|
611 |
+
|
612 |
+
|
613 |
+
addEvent(document.querySelector(config_mp.selectors.cardNumber), 'keyup', guessingPaymentMethod);
|
614 |
+
addEvent(document.querySelector(config_mp.selectors.cardNumber), 'keyup', clearOptions);
|
615 |
+
addEvent(document.querySelector(config_mp.selectors.cardNumber), 'change', guessingPaymentMethod);
|
616 |
+
cardsHandler();
|
617 |
+
|
618 |
+
|
619 |
+
/*
|
620 |
+
*
|
621 |
+
*
|
622 |
+
* Initialization function
|
623 |
+
*
|
624 |
+
*/
|
625 |
+
|
626 |
+
function Initialize() {
|
627 |
+
|
628 |
+
if (config_mp.create_token_on.event) {
|
629 |
+
createTokenByEvent();
|
630 |
+
} else {
|
631 |
+
createTokenBySubmit()
|
632 |
+
}
|
633 |
+
|
634 |
+
Mercadopago.setPublishableKey(config_mp.public_key);
|
635 |
+
|
636 |
+
if (config_mp.site_id != "MLM") {
|
637 |
+
Mercadopago.getIdentificationTypes();
|
638 |
+
}
|
639 |
+
|
640 |
+
if (config_mp.site_id == "MLM") {
|
641 |
+
|
642 |
+
//hide documento for mex
|
643 |
+
document.querySelector(".mp-doc").style.display = 'none';
|
644 |
+
document.querySelector(".mp-paymentMethodsSelector").removeAttribute('style');
|
645 |
+
|
646 |
+
//removing not used fields for this country
|
647 |
+
config_mp.inputs_to_create_token.splice(config_mp.inputs_to_create_token.indexOf("docType"), 1);
|
648 |
+
config_mp.inputs_to_create_token.splice(config_mp.inputs_to_create_token.indexOf("docNumber"), 1);
|
649 |
+
|
650 |
+
addEvent(document.querySelector(config_mp.selectors.paymentMethodIdSelector), 'change', changePaymetMethodSelector);
|
651 |
+
|
652 |
+
//get payment methods and populate selector
|
653 |
+
getPaymentMethods();
|
654 |
+
}
|
655 |
+
|
656 |
+
if (config_mp.site_id == "MLB") {
|
657 |
+
|
658 |
+
document.querySelector(".mp-docType").style.display = 'none';
|
659 |
+
document.querySelector(".mp-issuer").style.display = 'none';
|
660 |
+
//ajust css
|
661 |
+
document.querySelector(".mp-docNumber").classList.remove("mp-col-75");
|
662 |
+
document.querySelector(".mp-docNumber").classList.add("mp-col-100");
|
663 |
+
|
664 |
+
} else if (config_mp.site_id == "MCO") {
|
665 |
+
document.querySelector(".mp-issuer").style.display = 'none';
|
666 |
+
}
|
667 |
+
|
668 |
+
document.querySelector(config_mp.selectors.site_id).value = config_mp.site_id;
|
669 |
+
|
670 |
+
if (config_mp.debug) {
|
671 |
+
document.querySelector(config_mp.selectors.utilities_fields).style.display = 'inline-block';
|
672 |
+
console.log(config_mp);
|
673 |
+
}
|
674 |
+
}
|
675 |
+
|
676 |
+
</script>
|
templates/ticket/ticket-form.php
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Part of Woo Mercado Pago Module
|
4 |
+
* Author - Mercado Pago
|
5 |
+
* Developer - Marcelo Tomio Hama / marcelo.hama@mercadolivre.com
|
6 |
+
* Copyright - Copyright(c) MercadoPago [http://www.mercadopago.com]
|
7 |
+
* License - http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
+
exit;
|
12 |
+
}
|
13 |
+
?>
|
14 |
+
|
15 |
+
<div width="100%" style="margin:1px; padding:36px 36px 16px 36px; background:white; ">
|
16 |
+
<img class="logo" src="<?php echo ( $images_path . 'mplogo.png' ); ?>" width="156" height="40" />
|
17 |
+
<img class="logo" src="<?php echo ( $images_path . 'boleto.png' ); ?>" width="90" height="40" style="float:right;"/>
|
18 |
+
</div>
|
19 |
+
<fieldset id="mercadopago-form" style="background:white; ">
|
20 |
+
<div style="padding:0px 36px 0px 36px;">
|
21 |
+
|
22 |
+
<p>
|
23 |
+
<?php echo $form_labels[ 'payment_instructions' ] ?>
|
24 |
+
<br />
|
25 |
+
<?php echo $form_labels[ 'ticket_note' ] ?>
|
26 |
+
</p>
|
27 |
+
<?php if ( count( $payment_methods ) > 1 ) { ?>
|
28 |
+
<div class="mp-box-inputs mp-col-100">
|
29 |
+
<!--<select id="paymentMethodId" name="mercadopago_ticket[paymentMethodId]">
|
30 |
+
<option value="-1"> <?php /*echo $form_labels[ 'label_choose' ] . " ...";*/ ?> </option>-->
|
31 |
+
<?php $atFirst = true; ?>
|
32 |
+
<?php foreach ( $payment_methods as $payment ) { ?>
|
33 |
+
<!--<option value="<?php /*echo $payment[ 'id' ];*/ ?>"> <?php /*echo $payment[ 'name' ];*/ ?></option>-->
|
34 |
+
<div class="mp-box-inputs mp-line">
|
35 |
+
<div id="paymentMethodId" class="mp-box-inputs mp-col-5">
|
36 |
+
<input type="radio" class="input-radio" name="mercadopago_ticket[paymentMethodId]"
|
37 |
+
style="height:16px; width:16px;" value="<?php echo $payment[ 'id' ]; ?>"
|
38 |
+
<?php if ( $atFirst ) { ?> checked="checked" } <?php } ?> />
|
39 |
+
</div>
|
40 |
+
<div class="mp-box-inputs mp-col-45">
|
41 |
+
<label>
|
42 |
+
<img src="<?php echo $payment[ 'thumbnail' ]; ?>" alt="<?php echo $payment[ 'name' ]; ?>" />
|
43 |
+
(<?php echo $payment[ 'name' ]; ?>)
|
44 |
+
</label>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
<?php $atFirst = false; ?>
|
48 |
+
<?php } ?>
|
49 |
+
<!--</select>-->
|
50 |
+
</div>
|
51 |
+
<?php } else { ?>
|
52 |
+
<div class="mp-box-inputs mp-col-100" style="display:none;">
|
53 |
+
<select id="paymentMethodId" name="mercadopago_ticket[paymentMethodId]">
|
54 |
+
<?php foreach ( $payment_methods as $payment ) { ?>
|
55 |
+
<option value="<?php echo $payment[ 'id' ]; ?>"
|
56 |
+
style="padding: 8px; background: url( 'http://img.mlstatic.com/org-img/MP3/API/logos/bapropagos.gif' ); ?> ) 98% 50% no-repeat;"> <?php echo $payment[ 'name' ]; ?></option>
|
57 |
+
<?php } ?>
|
58 |
+
</select>
|
59 |
+
</div>
|
60 |
+
<?php } ?>
|
61 |
+
|
62 |
+
<div class="mp-box-inputs mp-line">
|
63 |
+
<!-- <div class="mp-box-inputs mp-col-50">
|
64 |
+
<input type="submit" value="Pay" id="submit"/>
|
65 |
+
</div> -->
|
66 |
+
<div class="mp-box-inputs mp-col-25">
|
67 |
+
<div id="mp-box-loading">
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
|
72 |
+
<!-- utilities -->
|
73 |
+
<div class="mp-box-inputs mp-col-100" id="mercadopago-utilities">
|
74 |
+
<input type="hidden" id="public_key" value="<?php echo $public_key; ?>" name="mercadopago_ticket[amount]"/>
|
75 |
+
<input type="hidden" id="site_id" value="<?php echo $site_id; ?>" name="mercadopago_ticket[site_id]"/>
|
76 |
+
<input type="hidden" id="amount" value="<?php echo $amount; ?>" name="mercadopago_ticket[amount]"/>
|
77 |
+
</div>
|
78 |
+
|
79 |
+
</div>
|
80 |
+
</fieldset>
|