Version Description
2017/03/21 =
Included sponsor_id to indicate the platform to MercadoPago.
Download this release
Release Info
| Developer | claudiosanches |
| Plugin | |
| Version | 2.0.9 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.8 to 2.0.9
- includes/class-wc-mercadopago-gateway.php +59 -8
- languages/woocommerce-mercadopago.pot +65 -65
- readme.txt +6 -2
- woocommerce-mercadopago.php +2 -2
includes/class-wc-mercadopago-gateway.php
CHANGED
|
@@ -22,6 +22,7 @@ class WC_MercadoPago_Gateway extends WC_Payment_Gateway {
|
|
| 22 |
$this->ipn_url = 'https://api.mercadolibre.com/collections/notifications/';
|
| 23 |
$this->sandbox_ipn_url = 'https://api.mercadolibre.com/sandbox/collections/notifications/';
|
| 24 |
$this->oauth_token = 'https://api.mercadolibre.com/oauth/token';
|
|
|
|
| 25 |
|
| 26 |
// Load the form fields.
|
| 27 |
$this->init_form_fields();
|
|
@@ -202,11 +203,12 @@ class WC_MercadoPago_Gateway extends WC_Payment_Gateway {
|
|
| 202 |
/**
|
| 203 |
* Generate the payment arguments.
|
| 204 |
*
|
| 205 |
-
* @param WC_Order $order
|
|
|
|
| 206 |
*
|
| 207 |
-
* @return array
|
| 208 |
*/
|
| 209 |
-
public function get_payment_args( $order ) {
|
| 210 |
$args = array(
|
| 211 |
'back_urls' => array(
|
| 212 |
'success' => $this->get_return_url( $order ),
|
|
@@ -230,6 +232,11 @@ class WC_MercadoPago_Gateway extends WC_Payment_Gateway {
|
|
| 230 |
'notification_url' => str_replace( 'https:', 'http:', WC()->api_request_url( 'WC_MercadoPago_Gateway' ) ),
|
| 231 |
);
|
| 232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
// Cart Contents.
|
| 234 |
$item_names = array();
|
| 235 |
|
|
@@ -259,6 +266,50 @@ class WC_MercadoPago_Gateway extends WC_Payment_Gateway {
|
|
| 259 |
return $args;
|
| 260 |
}
|
| 261 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
/**
|
| 263 |
* Generate the MercadoPago payment url.
|
| 264 |
*
|
|
@@ -267,17 +318,17 @@ class WC_MercadoPago_Gateway extends WC_Payment_Gateway {
|
|
| 267 |
* @return string MercadoPago payment url.
|
| 268 |
*/
|
| 269 |
protected function get_mercadopago_url( $order ) {
|
| 270 |
-
|
| 271 |
-
$args
|
| 272 |
|
| 273 |
if ( 'yes' == $this->debug ) {
|
| 274 |
-
$this->log->add( $this->id, 'Payment arguments for order ' . $order->get_order_number() . ': ' . print_r( $
|
| 275 |
}
|
| 276 |
|
| 277 |
-
$url = $this->payment_url . $
|
| 278 |
|
| 279 |
$params = array(
|
| 280 |
-
'body' => $args,
|
| 281 |
'sslverify' => false,
|
| 282 |
'timeout' => 60,
|
| 283 |
'headers' => array(
|
| 22 |
$this->ipn_url = 'https://api.mercadolibre.com/collections/notifications/';
|
| 23 |
$this->sandbox_ipn_url = 'https://api.mercadolibre.com/sandbox/collections/notifications/';
|
| 24 |
$this->oauth_token = 'https://api.mercadolibre.com/oauth/token';
|
| 25 |
+
$this->users_me_url = 'https://api.mercadopago.com/users/me?access_token=';
|
| 26 |
|
| 27 |
// Load the form fields.
|
| 28 |
$this->init_form_fields();
|
| 203 |
/**
|
| 204 |
* Generate the payment arguments.
|
| 205 |
*
|
| 206 |
+
* @param WC_Order $order Order data.
|
| 207 |
+
* @param string $access_token User access token.
|
| 208 |
*
|
| 209 |
+
* @return array Payment arguments.
|
| 210 |
*/
|
| 211 |
+
public function get_payment_args( $order, $access_token ) {
|
| 212 |
$args = array(
|
| 213 |
'back_urls' => array(
|
| 214 |
'success' => $this->get_return_url( $order ),
|
| 232 |
'notification_url' => str_replace( 'https:', 'http:', WC()->api_request_url( 'WC_MercadoPago_Gateway' ) ),
|
| 233 |
);
|
| 234 |
|
| 235 |
+
// Set sponsor/platform ID, if applicable
|
| 236 |
+
if ( $sponsor_id = $this->get_platform_id( $access_token ) ) {
|
| 237 |
+
$args['sponsor_id'] = $sponsor_id;
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
// Cart Contents.
|
| 241 |
$item_names = array();
|
| 242 |
|
| 266 |
return $args;
|
| 267 |
}
|
| 268 |
|
| 269 |
+
/**
|
| 270 |
+
* Obtain the ID for this platform.
|
| 271 |
+
*
|
| 272 |
+
* @param string $access_token The access token of the user.
|
| 273 |
+
*
|
| 274 |
+
* @return array An array containing information about the user.
|
| 275 |
+
*/
|
| 276 |
+
protected function get_platform_id( $access_token ) {
|
| 277 |
+
$url = $this->users_me_url . $access_token;
|
| 278 |
+
|
| 279 |
+
$response = wp_remote_get( $url );
|
| 280 |
+
|
| 281 |
+
if ( ! is_wp_error( $response ) && $response['response']['code'] == 200 ) {
|
| 282 |
+
|
| 283 |
+
$data = json_decode( $response['body'] );
|
| 284 |
+
|
| 285 |
+
if ( in_array( 'test_user', $data->tags ) ) {
|
| 286 |
+
return null;
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
switch ( $data->site_id ) {
|
| 290 |
+
case 'MLA' :
|
| 291 |
+
return 247751170;
|
| 292 |
+
case 'MLB' :
|
| 293 |
+
return 247748067;
|
| 294 |
+
case 'MCO' :
|
| 295 |
+
return 247752108;
|
| 296 |
+
case 'MLC' :
|
| 297 |
+
return 247751646;
|
| 298 |
+
case 'MLM' :
|
| 299 |
+
return 247752249;
|
| 300 |
+
case 'MLV' :
|
| 301 |
+
return 247752781;
|
| 302 |
+
case 'MPE' :
|
| 303 |
+
return 247750091;
|
| 304 |
+
case 'MLU' :
|
| 305 |
+
return 247755389;
|
| 306 |
+
default :
|
| 307 |
+
return null;
|
| 308 |
+
}
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
/**
|
| 314 |
* Generate the MercadoPago payment url.
|
| 315 |
*
|
| 318 |
* @return string MercadoPago payment url.
|
| 319 |
*/
|
| 320 |
protected function get_mercadopago_url( $order ) {
|
| 321 |
+
$access_token = $this->get_client_credentials();
|
| 322 |
+
$args = $this->get_payment_args( $order, $access_token );
|
| 323 |
|
| 324 |
if ( 'yes' == $this->debug ) {
|
| 325 |
+
$this->log->add( $this->id, 'Payment arguments for order ' . $order->get_order_number() . ': ' . print_r( $args, true ) );
|
| 326 |
}
|
| 327 |
|
| 328 |
+
$url = $this->payment_url . $access_token;
|
| 329 |
|
| 330 |
$params = array(
|
| 331 |
+
'body' => json_encode( $args ),
|
| 332 |
'sslverify' => false,
|
| 333 |
'timeout' => 60,
|
| 334 |
'headers' => array(
|
languages/woocommerce-mercadopago.pot
CHANGED
|
@@ -1,255 +1,255 @@
|
|
| 1 |
-
# Copyright (C)
|
| 2 |
# This file is distributed under the GPLv2 or later.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce MercadoPago 2.0.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"http://wordpress.org/support/plugin/woocommerce-mercadopago/\n"
|
| 8 |
-
"POT-Creation-Date:
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
-
"PO-Revision-Date:
|
| 13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 14 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
| 15 |
"X-Generator: grunt-wp-i18n 0.4.9\n"
|
| 16 |
|
| 17 |
#: includes/class-wc-mercadopago-gateway.php:18
|
| 18 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 19 |
msgid "MercadoPago"
|
| 20 |
msgstr ""
|
| 21 |
|
| 22 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 23 |
msgid "Argentine"
|
| 24 |
msgstr ""
|
| 25 |
|
| 26 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 27 |
msgid "Brazil"
|
| 28 |
msgstr ""
|
| 29 |
|
| 30 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 31 |
msgid "Colombia"
|
| 32 |
msgstr ""
|
| 33 |
|
| 34 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 35 |
msgid "Mexico"
|
| 36 |
msgstr ""
|
| 37 |
|
| 38 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 39 |
msgid "Venezuela"
|
| 40 |
msgstr ""
|
| 41 |
|
| 42 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 43 |
msgid "or"
|
| 44 |
msgstr ""
|
| 45 |
|
| 46 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 47 |
msgid "Chile"
|
| 48 |
msgstr ""
|
| 49 |
|
| 50 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 51 |
msgid "Enable/Disable"
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 55 |
msgid "Enable MercadoPago standard"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 59 |
msgid "Title"
|
| 60 |
msgstr ""
|
| 61 |
|
| 62 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 63 |
msgid "This controls the title which the user sees during checkout."
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 67 |
msgid "Description"
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 71 |
msgid "This controls the description which the user sees during checkout."
|
| 72 |
msgstr ""
|
| 73 |
|
| 74 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 75 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 76 |
msgid "Pay via MercadoPago"
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 80 |
msgid "MercadoPago Client_id"
|
| 81 |
msgstr ""
|
| 82 |
|
| 83 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 84 |
msgid "Please enter your MercadoPago Client_id."
|
| 85 |
msgstr ""
|
| 86 |
|
| 87 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 88 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 89 |
msgid "You can to get this information in MercadoPago from %s."
|
| 90 |
msgstr ""
|
| 91 |
|
| 92 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 93 |
msgid "MercadoPago Client_secret"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 97 |
msgid "Please enter your MercadoPago Client_secret."
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 101 |
msgid "Invoice Prefix"
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 105 |
msgid ""
|
| 106 |
"Please enter a prefix for your invoice numbers. If you use your MercadoPago "
|
| 107 |
"account for multiple stores ensure this prefix is unqiue as MercadoPago "
|
| 108 |
"will not allow orders with the same invoice number."
|
| 109 |
msgstr ""
|
| 110 |
|
| 111 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 112 |
msgid "Integration method"
|
| 113 |
msgstr ""
|
| 114 |
|
| 115 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 116 |
msgid ""
|
| 117 |
"Choose how the customer will interact with the MercadoPago. Modal Window "
|
| 118 |
"(Inside your store) Redirect (Client goes to MercadoPago)."
|
| 119 |
msgstr ""
|
| 120 |
|
| 121 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 122 |
msgid "Modal Window"
|
| 123 |
msgstr ""
|
| 124 |
|
| 125 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 126 |
msgid "Redirect"
|
| 127 |
msgstr ""
|
| 128 |
|
| 129 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 130 |
msgid "Gateway Testing"
|
| 131 |
msgstr ""
|
| 132 |
|
| 133 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 134 |
msgid "MercadoPago Sandbox"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 138 |
msgid "Enable MercadoPago sandbox"
|
| 139 |
msgstr ""
|
| 140 |
|
| 141 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 142 |
msgid "MercadoPago sandbox can be used to test payments."
|
| 143 |
msgstr ""
|
| 144 |
|
| 145 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 146 |
msgid "Debug Log"
|
| 147 |
msgstr ""
|
| 148 |
|
| 149 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 150 |
msgid "Enable logging"
|
| 151 |
msgstr ""
|
| 152 |
|
| 153 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 154 |
msgid "Log MercadoPago events, such as API requests, inside %s"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 158 |
msgid "Order %s"
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 162 |
msgid "Shipping via"
|
| 163 |
msgstr ""
|
| 164 |
|
| 165 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 166 |
msgid ""
|
| 167 |
"Thank you for your order, please click the button below to pay with "
|
| 168 |
"MercadoPago."
|
| 169 |
msgstr ""
|
| 170 |
|
| 171 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 172 |
msgid "Cancel order & restore cart"
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 176 |
msgid ""
|
| 177 |
"An error has occurred while processing your payment, please try again. Or "
|
| 178 |
"contact us for assistance."
|
| 179 |
msgstr ""
|
| 180 |
|
| 181 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 182 |
msgid "Click to try again"
|
| 183 |
msgstr ""
|
| 184 |
|
| 185 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 186 |
msgid "Missing notification params."
|
| 187 |
msgstr ""
|
| 188 |
|
| 189 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 190 |
msgid "MercadoPago Notification Handler"
|
| 191 |
msgstr ""
|
| 192 |
|
| 193 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 194 |
msgid "MercadoPago Transaction ID"
|
| 195 |
msgstr ""
|
| 196 |
|
| 197 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 198 |
msgid "Payer email"
|
| 199 |
msgstr ""
|
| 200 |
|
| 201 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 202 |
msgid "Payment type"
|
| 203 |
msgstr ""
|
| 204 |
|
| 205 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 206 |
msgid "MercadoPago: Payment approved."
|
| 207 |
msgstr ""
|
| 208 |
|
| 209 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 210 |
msgid "MercadoPago: The user has not completed the payment process yet."
|
| 211 |
msgstr ""
|
| 212 |
|
| 213 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 214 |
msgid "MercadoPago: Payment under review."
|
| 215 |
msgstr ""
|
| 216 |
|
| 217 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 218 |
msgid "MercadoPago: The payment was declined. The user can try again."
|
| 219 |
msgstr ""
|
| 220 |
|
| 221 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 222 |
msgid "MercadoPago: The payment was returned to the user."
|
| 223 |
msgstr ""
|
| 224 |
|
| 225 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 226 |
msgid "MercadoPago: Payment canceled."
|
| 227 |
msgstr ""
|
| 228 |
|
| 229 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 230 |
msgid "MercadoPago: It started a dispute for payment."
|
| 231 |
msgstr ""
|
| 232 |
|
| 233 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 234 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 235 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 236 |
msgid "MercadoPago Disabled"
|
| 237 |
msgstr ""
|
| 238 |
|
| 239 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 240 |
msgid "You should inform your Client_id. %s"
|
| 241 |
msgstr ""
|
| 242 |
|
| 243 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 244 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 245 |
msgid "Click here to configure!"
|
| 246 |
msgstr ""
|
| 247 |
|
| 248 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 249 |
msgid "You should inform your Client_secret. %s"
|
| 250 |
msgstr ""
|
| 251 |
|
| 252 |
-
#: includes/class-wc-mercadopago-gateway.php:
|
| 253 |
msgid ""
|
| 254 |
"Currency <code>%s</code> is not supported. Please make sure that you use "
|
| 255 |
"one of the following supported currencies: ARS, BRL, COP, MXN, USD or VEF."
|
| 1 |
+
# Copyright (C) 2017 Claudio Sanches
|
| 2 |
# This file is distributed under the GPLv2 or later.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce MercadoPago 2.0.9\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"http://wordpress.org/support/plugin/woocommerce-mercadopago/\n"
|
| 8 |
+
"POT-Creation-Date: 2017-03-21 21:13:28+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
+
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
| 13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 14 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
| 15 |
"X-Generator: grunt-wp-i18n 0.4.9\n"
|
| 16 |
|
| 17 |
#: includes/class-wc-mercadopago-gateway.php:18
|
| 18 |
+
#: includes/class-wc-mercadopago-gateway.php:129
|
| 19 |
msgid "MercadoPago"
|
| 20 |
msgstr ""
|
| 21 |
|
| 22 |
+
#: includes/class-wc-mercadopago-gateway.php:108
|
| 23 |
msgid "Argentine"
|
| 24 |
msgstr ""
|
| 25 |
|
| 26 |
+
#: includes/class-wc-mercadopago-gateway.php:109
|
| 27 |
msgid "Brazil"
|
| 28 |
msgstr ""
|
| 29 |
|
| 30 |
+
#: includes/class-wc-mercadopago-gateway.php:110
|
| 31 |
msgid "Colombia"
|
| 32 |
msgstr ""
|
| 33 |
|
| 34 |
+
#: includes/class-wc-mercadopago-gateway.php:111
|
| 35 |
msgid "Mexico"
|
| 36 |
msgstr ""
|
| 37 |
|
| 38 |
+
#: includes/class-wc-mercadopago-gateway.php:112
|
| 39 |
msgid "Venezuela"
|
| 40 |
msgstr ""
|
| 41 |
|
| 42 |
+
#: includes/class-wc-mercadopago-gateway.php:113
|
| 43 |
msgid "or"
|
| 44 |
msgstr ""
|
| 45 |
|
| 46 |
+
#: includes/class-wc-mercadopago-gateway.php:114
|
| 47 |
msgid "Chile"
|
| 48 |
msgstr ""
|
| 49 |
|
| 50 |
+
#: includes/class-wc-mercadopago-gateway.php:119
|
| 51 |
msgid "Enable/Disable"
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
+
#: includes/class-wc-mercadopago-gateway.php:121
|
| 55 |
msgid "Enable MercadoPago standard"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
+
#: includes/class-wc-mercadopago-gateway.php:125
|
| 59 |
msgid "Title"
|
| 60 |
msgstr ""
|
| 61 |
|
| 62 |
+
#: includes/class-wc-mercadopago-gateway.php:127
|
| 63 |
msgid "This controls the title which the user sees during checkout."
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
+
#: includes/class-wc-mercadopago-gateway.php:132
|
| 67 |
msgid "Description"
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
+
#: includes/class-wc-mercadopago-gateway.php:134
|
| 71 |
msgid "This controls the description which the user sees during checkout."
|
| 72 |
msgstr ""
|
| 73 |
|
| 74 |
+
#: includes/class-wc-mercadopago-gateway.php:135
|
| 75 |
+
#: includes/class-wc-mercadopago-gateway.php:381
|
| 76 |
msgid "Pay via MercadoPago"
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
+
#: includes/class-wc-mercadopago-gateway.php:138
|
| 80 |
msgid "MercadoPago Client_id"
|
| 81 |
msgstr ""
|
| 82 |
|
| 83 |
+
#: includes/class-wc-mercadopago-gateway.php:140
|
| 84 |
msgid "Please enter your MercadoPago Client_id."
|
| 85 |
msgstr ""
|
| 86 |
|
| 87 |
+
#: includes/class-wc-mercadopago-gateway.php:140
|
| 88 |
+
#: includes/class-wc-mercadopago-gateway.php:146
|
| 89 |
msgid "You can to get this information in MercadoPago from %s."
|
| 90 |
msgstr ""
|
| 91 |
|
| 92 |
+
#: includes/class-wc-mercadopago-gateway.php:144
|
| 93 |
msgid "MercadoPago Client_secret"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
+
#: includes/class-wc-mercadopago-gateway.php:146
|
| 97 |
msgid "Please enter your MercadoPago Client_secret."
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
+
#: includes/class-wc-mercadopago-gateway.php:150
|
| 101 |
msgid "Invoice Prefix"
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
+
#: includes/class-wc-mercadopago-gateway.php:152
|
| 105 |
msgid ""
|
| 106 |
"Please enter a prefix for your invoice numbers. If you use your MercadoPago "
|
| 107 |
"account for multiple stores ensure this prefix is unqiue as MercadoPago "
|
| 108 |
"will not allow orders with the same invoice number."
|
| 109 |
msgstr ""
|
| 110 |
|
| 111 |
+
#: includes/class-wc-mercadopago-gateway.php:157
|
| 112 |
msgid "Integration method"
|
| 113 |
msgstr ""
|
| 114 |
|
| 115 |
+
#: includes/class-wc-mercadopago-gateway.php:159
|
| 116 |
msgid ""
|
| 117 |
"Choose how the customer will interact with the MercadoPago. Modal Window "
|
| 118 |
"(Inside your store) Redirect (Client goes to MercadoPago)."
|
| 119 |
msgstr ""
|
| 120 |
|
| 121 |
+
#: includes/class-wc-mercadopago-gateway.php:163
|
| 122 |
msgid "Modal Window"
|
| 123 |
msgstr ""
|
| 124 |
|
| 125 |
+
#: includes/class-wc-mercadopago-gateway.php:164
|
| 126 |
msgid "Redirect"
|
| 127 |
msgstr ""
|
| 128 |
|
| 129 |
+
#: includes/class-wc-mercadopago-gateway.php:168
|
| 130 |
msgid "Gateway Testing"
|
| 131 |
msgstr ""
|
| 132 |
|
| 133 |
+
#: includes/class-wc-mercadopago-gateway.php:173
|
| 134 |
msgid "MercadoPago Sandbox"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
+
#: includes/class-wc-mercadopago-gateway.php:175
|
| 138 |
msgid "Enable MercadoPago sandbox"
|
| 139 |
msgstr ""
|
| 140 |
|
| 141 |
+
#: includes/class-wc-mercadopago-gateway.php:177
|
| 142 |
msgid "MercadoPago sandbox can be used to test payments."
|
| 143 |
msgstr ""
|
| 144 |
|
| 145 |
+
#: includes/class-wc-mercadopago-gateway.php:180
|
| 146 |
msgid "Debug Log"
|
| 147 |
msgstr ""
|
| 148 |
|
| 149 |
+
#: includes/class-wc-mercadopago-gateway.php:182
|
| 150 |
msgid "Enable logging"
|
| 151 |
msgstr ""
|
| 152 |
|
| 153 |
+
#: includes/class-wc-mercadopago-gateway.php:184
|
| 154 |
msgid "Log MercadoPago events, such as API requests, inside %s"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
+
#: includes/class-wc-mercadopago-gateway.php:251
|
| 158 |
msgid "Order %s"
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
+
#: includes/class-wc-mercadopago-gateway.php:261
|
| 162 |
msgid "Shipping via"
|
| 163 |
msgstr ""
|
| 164 |
|
| 165 |
+
#: includes/class-wc-mercadopago-gateway.php:379
|
| 166 |
msgid ""
|
| 167 |
"Thank you for your order, please click the button below to pay with "
|
| 168 |
"MercadoPago."
|
| 169 |
msgstr ""
|
| 170 |
|
| 171 |
+
#: includes/class-wc-mercadopago-gateway.php:381
|
| 172 |
msgid "Cancel order & restore cart"
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
+
#: includes/class-wc-mercadopago-gateway.php:390
|
| 176 |
msgid ""
|
| 177 |
"An error has occurred while processing your payment, please try again. Or "
|
| 178 |
"contact us for assistance."
|
| 179 |
msgstr ""
|
| 180 |
|
| 181 |
+
#: includes/class-wc-mercadopago-gateway.php:392
|
| 182 |
msgid "Click to try again"
|
| 183 |
msgstr ""
|
| 184 |
|
| 185 |
+
#: includes/class-wc-mercadopago-gateway.php:574
|
| 186 |
msgid "Missing notification params."
|
| 187 |
msgstr ""
|
| 188 |
|
| 189 |
+
#: includes/class-wc-mercadopago-gateway.php:574
|
| 190 |
msgid "MercadoPago Notification Handler"
|
| 191 |
msgstr ""
|
| 192 |
|
| 193 |
+
#: includes/class-wc-mercadopago-gateway.php:608
|
| 194 |
msgid "MercadoPago Transaction ID"
|
| 195 |
msgstr ""
|
| 196 |
|
| 197 |
+
#: includes/class-wc-mercadopago-gateway.php:615
|
| 198 |
msgid "Payer email"
|
| 199 |
msgstr ""
|
| 200 |
|
| 201 |
+
#: includes/class-wc-mercadopago-gateway.php:622
|
| 202 |
msgid "Payment type"
|
| 203 |
msgstr ""
|
| 204 |
|
| 205 |
+
#: includes/class-wc-mercadopago-gateway.php:628
|
| 206 |
msgid "MercadoPago: Payment approved."
|
| 207 |
msgstr ""
|
| 208 |
|
| 209 |
+
#: includes/class-wc-mercadopago-gateway.php:633
|
| 210 |
msgid "MercadoPago: The user has not completed the payment process yet."
|
| 211 |
msgstr ""
|
| 212 |
|
| 213 |
+
#: includes/class-wc-mercadopago-gateway.php:637
|
| 214 |
msgid "MercadoPago: Payment under review."
|
| 215 |
msgstr ""
|
| 216 |
|
| 217 |
+
#: includes/class-wc-mercadopago-gateway.php:641
|
| 218 |
msgid "MercadoPago: The payment was declined. The user can try again."
|
| 219 |
msgstr ""
|
| 220 |
|
| 221 |
+
#: includes/class-wc-mercadopago-gateway.php:645
|
| 222 |
msgid "MercadoPago: The payment was returned to the user."
|
| 223 |
msgstr ""
|
| 224 |
|
| 225 |
+
#: includes/class-wc-mercadopago-gateway.php:649
|
| 226 |
msgid "MercadoPago: Payment canceled."
|
| 227 |
msgstr ""
|
| 228 |
|
| 229 |
+
#: includes/class-wc-mercadopago-gateway.php:653
|
| 230 |
msgid "MercadoPago: It started a dispute for payment."
|
| 231 |
msgstr ""
|
| 232 |
|
| 233 |
+
#: includes/class-wc-mercadopago-gateway.php:684
|
| 234 |
+
#: includes/class-wc-mercadopago-gateway.php:693
|
| 235 |
+
#: includes/class-wc-mercadopago-gateway.php:702
|
| 236 |
msgid "MercadoPago Disabled"
|
| 237 |
msgstr ""
|
| 238 |
|
| 239 |
+
#: includes/class-wc-mercadopago-gateway.php:684
|
| 240 |
msgid "You should inform your Client_id. %s"
|
| 241 |
msgstr ""
|
| 242 |
|
| 243 |
+
#: includes/class-wc-mercadopago-gateway.php:684
|
| 244 |
+
#: includes/class-wc-mercadopago-gateway.php:693
|
| 245 |
msgid "Click here to configure!"
|
| 246 |
msgstr ""
|
| 247 |
|
| 248 |
+
#: includes/class-wc-mercadopago-gateway.php:693
|
| 249 |
msgid "You should inform your Client_secret. %s"
|
| 250 |
msgstr ""
|
| 251 |
|
| 252 |
+
#: includes/class-wc-mercadopago-gateway.php:702
|
| 253 |
msgid ""
|
| 254 |
"Currency <code>%s</code> is not supported. Please make sure that you use "
|
| 255 |
"one of the following supported currencies: ARS, BRL, COP, MXN, USD or VEF."
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: claudiosanches
|
|
| 3 |
Donate link: http://claudiosmweb.com/doacoes/
|
| 4 |
Tags: woocommerce, mercadopago, payment
|
| 5 |
Requires at least: 4.0
|
| 6 |
-
Tested up to: 4.
|
| 7 |
-
Stable tag: 2.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -201,6 +201,10 @@ Entre em contato [clicando aqui](http://claudiosmweb.com/plugins/mercadopago-par
|
|
| 201 |
|
| 202 |
== Changelog ==
|
| 203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
= 2.0.8 - 2016/10/24 =
|
| 205 |
|
| 206 |
* Open MercadoPago Modal when the page load.
|
| 3 |
Donate link: http://claudiosmweb.com/doacoes/
|
| 4 |
Tags: woocommerce, mercadopago, payment
|
| 5 |
Requires at least: 4.0
|
| 6 |
+
Tested up to: 4.7
|
| 7 |
+
Stable tag: 2.0.9
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 201 |
|
| 202 |
== Changelog ==
|
| 203 |
|
| 204 |
+
= 2.0.9 - 2017/03/21 =
|
| 205 |
+
|
| 206 |
+
* Included sponsor_id to indicate the platform to MercadoPago.
|
| 207 |
+
|
| 208 |
= 2.0.8 - 2016/10/24 =
|
| 209 |
|
| 210 |
* Open MercadoPago Modal when the page load.
|
woocommerce-mercadopago.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Description: MercadoPago gateway for Woocommerce.
|
| 6 |
* Author: Claudio Sanches
|
| 7 |
* Author URI: http://claudiosmweb.com/
|
| 8 |
-
* Version: 2.0.
|
| 9 |
* License: GPLv2 or later
|
| 10 |
* Text Domain: woocommerce-mercadopago
|
| 11 |
* Domain Path: /languages/
|
|
@@ -27,7 +27,7 @@ class WC_MercadoPago {
|
|
| 27 |
*
|
| 28 |
* @var string
|
| 29 |
*/
|
| 30 |
-
const VERSION = '2.0.
|
| 31 |
|
| 32 |
/**
|
| 33 |
* Instance of this class.
|
| 5 |
* Description: MercadoPago gateway for Woocommerce.
|
| 6 |
* Author: Claudio Sanches
|
| 7 |
* Author URI: http://claudiosmweb.com/
|
| 8 |
+
* Version: 2.0.9
|
| 9 |
* License: GPLv2 or later
|
| 10 |
* Text Domain: woocommerce-mercadopago
|
| 11 |
* Domain Path: /languages/
|
| 27 |
*
|
| 28 |
* @var string
|
| 29 |
*/
|
| 30 |
+
const VERSION = '2.0.9';
|
| 31 |
|
| 32 |
/**
|
| 33 |
* Instance of this class.
|
