MercadoPagoTransparent - Version 2.7.8

Version Notes

- Module adapted for new rule Boleto - Febraban
- Added the version field in the settings screen
- Changed status for payment not found in payment notifications

Download this release

Release Info

Developer Developers MercadoPago Brasil
Extension MercadoPagoTransparent
Version 2.7.8
Comparing to
See all releases


Code changes from version 2.7.6 to 2.7.8

Files changed (27) hide show
  1. app/code/community/MercadoPago/Core/Block/Adminhtml/Version.php +25 -0
  2. app/code/community/MercadoPago/Core/Helper/Data.php +9 -5
  3. app/code/community/MercadoPago/Core/Model/CustomTicket/Payment.php +45 -3
  4. app/code/community/MercadoPago/Core/Model/Observer.php +60 -43
  5. app/code/community/MercadoPago/Core/controllers/CheckoutController.php +8 -4
  6. app/code/community/MercadoPago/Core/controllers/NotificationsController.php +4 -1
  7. app/code/community/MercadoPago/Core/etc/config.xml +2 -1
  8. app/code/community/MercadoPago/Core/etc/system.xml +44 -36
  9. app/code/community/MercadoPago/MercadoEnvios/etc/config.xml +1 -1
  10. app/code/community/MercadoPago/OneStepCheckout/etc/config.xml +1 -1
  11. app/design/frontend/base/default/layout/mercadopago.xml +12 -0
  12. app/design/frontend/base/default/template/mercadopago/custom/form.phtml +6 -3
  13. app/design/frontend/base/default/template/mercadopago/custom/secondCard.phtml +6 -6
  14. app/design/frontend/base/default/template/mercadopago/custom_ticket/form.phtml +332 -57
  15. app/design/frontend/base/default/template/mercadopago/onestepcheckout/custom/form.phtml +1 -1
  16. app/design/frontend/base/default/template/mercadopago/standard/form.phtml +3 -1
  17. app/locale/en_US/MercadoPago_Core.csv +1 -1
  18. app/locale/es_AR/MercadoPago_Core.csv +8 -14
  19. app/locale/es_CL/MercadoPago_Core.csv +14 -1
  20. app/locale/es_CO/MercadoPago_Core.csv +14 -1
  21. app/locale/es_ES/MercadoPago_Core.csv +14 -2
  22. app/locale/es_MX/MercadoPago_Core.csv +14 -1
  23. app/locale/es_VE/MercadoPago_Core.csv +14 -2
  24. js/mercadopago/mercadopago.js +45 -28
  25. package.xml +21 -154
  26. skin/frontend/base/default/mercadopago/css/MPv1.css +115 -0
  27. skin/frontend/base/default/mercadopago/css/style.css +1 -1
app/code/community/MercadoPago/Core/Block/Adminhtml/Version.php ADDED
@@ -0,0 +1,25 @@
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL).
8
+ * It is also available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ *
11
+ * @category Payment Gateway
12
+ * @package MercadoPago
13
+ * @author Gabriel Matsuoka (gabriel.matsuoka@gmail.com)
14
+ * @copyright Copyright (c) MercadoPago [http://www.mercadopago.com]
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ class MercadoPago_Core_Block_Adminhtml_Version
19
+ extends Mage_Adminhtml_Block_System_Config_Form_Field
20
+ {
21
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
22
+ {
23
+ return (string) Mage::helper('mercadopago/data')->getVersionModule();
24
+ }
25
+ }
app/code/community/MercadoPago/Core/Helper/Data.php CHANGED
@@ -293,7 +293,7 @@ class MercadoPago_Core_Helper_Data
293
public function getAnalyticsData($order = null)
294
{
295
$analyticsData = [];
296
- if ($order != null && $order->getPayment()->getData('method')) {
297
$additionalInfo = $order->getPayment()->getData('additional_information');
298
$methodCode = $order->getPayment()->getData('method');
299
$analyticsData = [
@@ -312,8 +312,8 @@ class MercadoPago_Core_Helper_Data
312
$analyticsData['payment_type'] = 'ticket';
313
}
314
} else {
315
- $analyticsData['platform_version'] = (string)Mage::getConfig()->getModuleConfig("MercadoPago_Core")->version;
316
- $analyticsData['module_version'] = (string)Mage::getVersion();
317
$analyticsData['email'] = Mage::getModel('mercadopago/core')->getEmailCustomer();
318
$analyticsData['user_logged'] = Mage::getSingleton('customer/session')->getCustomer()->getId() !== 0 ? 1 : 0;
319
$analyticsData['payment_methods'] = implode(',', array_keys(Mage::getSingleton('payment/config')->getActiveMethods()));
@@ -330,8 +330,8 @@ class MercadoPago_Core_Helper_Data
330
{
331
return [
332
"platform" => "Magento",
333
- "platform_version" => (string)Mage::getConfig()->getModuleConfig("MercadoPago_Core")->version,
334
- "module_version" => (string)Mage::getVersion(),
335
"code_version" => phpversion()
336
];
337
}
@@ -376,4 +376,8 @@ class MercadoPago_Core_Helper_Data
376
377
}
378
379
}
293
public function getAnalyticsData($order = null)
294
{
295
$analyticsData = [];
296
+ if ($order != null && $order->getId() && $order->getPayment()->getData('method')) {
297
$additionalInfo = $order->getPayment()->getData('additional_information');
298
$methodCode = $order->getPayment()->getData('method');
299
$analyticsData = [
312
$analyticsData['payment_type'] = 'ticket';
313
}
314
} else {
315
+ $analyticsData['platform_version'] = (string)Mage::getVersion();
316
+ $analyticsData['module_version'] = (string)Mage::getConfig()->getModuleConfig("MercadoPago_Core")->version;
317
$analyticsData['email'] = Mage::getModel('mercadopago/core')->getEmailCustomer();
318
$analyticsData['user_logged'] = Mage::getSingleton('customer/session')->getCustomer()->getId() !== 0 ? 1 : 0;
319
$analyticsData['payment_methods'] = implode(',', array_keys(Mage::getSingleton('payment/config')->getActiveMethods()));
330
{
331
return [
332
"platform" => "Magento",
333
+ "platform_version" => (string)Mage::getVersion(),
334
+ "module_version" => (string)Mage::getConfig()->getModuleConfig("MercadoPago_Core")->version,
335
"code_version" => phpversion()
336
];
337
}
376
377
}
378
379
+ public function getVersionModule(){
380
+ return (string) Mage::getConfig()->getModuleConfig("MercadoPago_Core")->version;
381
+ }
382
+
383
}
app/code/community/MercadoPago/Core/Model/CustomTicket/Payment.php CHANGED
@@ -22,6 +22,9 @@ class MercadoPago_Core_Model_CustomTicket_Payment
22
23
protected $_code = 'mercadopago_customticket';
24
25
/**
26
* @param string $paymentAction
27
* @param object $stateObject
@@ -58,12 +61,17 @@ class MercadoPago_Core_Model_CustomTicket_Payment
58
$info = $this->getInfoInstance();
59
$info->setAdditionalInformation('payment_method', $infoForm['payment_method_ticket']);
60
61
-
62
-
63
if (isset($infoForm['coupon_code'])) {
64
$info->setAdditionalInformation('coupon_code', $infoForm['coupon_code']);
65
}
66
67
return $this;
68
}
69
@@ -87,10 +95,44 @@ class MercadoPago_Core_Model_CustomTicket_Payment
87
88
$preference['payment_method_id'] = $payment->getAdditionalInformation("payment_method");
89
90
Mage::helper('mercadopago')->log("Ticket -> PREFERENCE to POST /v1/payments", 'mercadopago-custom.log', $preference);
91
92
/* POST /v1/payments */
93
-
94
return $core->postPaymentV1($preference);
95
}
96
22
23
protected $_code = 'mercadopago_customticket';
24
25
+ protected $fields_febraban = array(
26
+ "firstname", "lastname", "doc-number", "address", "address-number", "address-city", "address-state", "address-zipcode"
27
+ );
28
/**
29
* @param string $paymentAction
30
* @param object $stateObject
61
$info = $this->getInfoInstance();
62
$info->setAdditionalInformation('payment_method', $infoForm['payment_method_ticket']);
63
64
if (isset($infoForm['coupon_code'])) {
65
$info->setAdditionalInformation('coupon_code', $infoForm['coupon_code']);
66
}
67
68
+ // Fields for new febraban rule
69
+ foreach ($this->fields_febraban as $key) {
70
+ if (isset($infoForm[$key])) {
71
+ $info->setAdditionalInformation($key, $infoForm[$key]);
72
+ }
73
+ }
74
+
75
return $this;
76
}
77
95
96
$preference['payment_method_id'] = $payment->getAdditionalInformation("payment_method");
97
98
+ // febraban rule
99
+ if ($payment->getAdditionalInformation("firstname") != "") {
100
+ $preference['payer']['first_name'] = $payment->getAdditionalInformation("firstname");
101
+ }
102
+
103
+ if ($payment->getAdditionalInformation("lastname") != "") {
104
+ $preference['payer']['last_name'] = $payment->getAdditionalInformation("lastname");
105
+ }
106
+
107
+ if ($payment->getAdditionalInformation("doc-number") != "") {
108
+ $preference['payer']['identification']['type'] = "CPF";
109
+ $preference['payer']['identification']['number'] = $payment->getAdditionalInformation("doc-number");
110
+ }
111
+
112
+ if ($payment->getAdditionalInformation("address-zipcode") != "") {
113
+ $preference['payer']['address']['zip_code'] = $payment->getAdditionalInformation("address-zipcode");
114
+ }
115
+
116
+ if ($payment->getAdditionalInformation("address") != "") {
117
+ $preference['payer']['address']['street_name'] = $payment->getAdditionalInformation("address");
118
+ }
119
+
120
+ if ($payment->getAdditionalInformation("address-number") != "") {
121
+ $preference['payer']['address']['street_number'] = $payment->getAdditionalInformation("address-number");
122
+ }
123
+
124
+ if ($payment->getAdditionalInformation("address-city") != "") {
125
+ $preference['payer']['address']['city'] = $payment->getAdditionalInformation("address-city");
126
+ $preference['payer']['address']['neighborhood'] = $payment->getAdditionalInformation("address-city");
127
+ }
128
+
129
+ if ($payment->getAdditionalInformation("address-state") != "") {
130
+ $preference['payer']['address']['federal_unit'] = $payment->getAdditionalInformation("address-state");
131
+ }
132
+
133
Mage::helper('mercadopago')->log("Ticket -> PREFERENCE to POST /v1/payments", 'mercadopago-custom.log', $preference);
134
135
/* POST /v1/payments */
136
return $core->postPaymentV1($preference);
137
}
138
app/code/community/MercadoPago/Core/Model/Observer.php CHANGED
@@ -140,7 +140,7 @@ class MercadoPago_Core_Model_Observer
140
$user = $mp->get("/users/me");
141
Mage::helper('mercadopago')->log("API Users response", self::LOG_FILE, $user);
142
143
- if ($user['status'] == 200 && !in_array("test_user", $user['response']['tags']) && strpos($accessToken, 'TEST') === FALSE) {
144
$sponsors = [
145
'MLA' => 186172525,
146
'MLB' => 186175129,
@@ -175,24 +175,26 @@ class MercadoPago_Core_Model_Observer
175
176
}
177
178
- public function salesOrderBeforeCancel (Varien_Event_Observer $observer) {
179
- $orderID = (int) $observer->getEvent()->getControllerAction()->getRequest()->getParam('order_id');
180
$order = Mage::getModel('sales/order')->load($orderID);
181
-
182
$paymentMethod = $order->getPayment()->getMethodInstance()->getCode();
183
-
184
if ($order->getExternalRequest() || !$this->_isMercadoPago($paymentMethod)) {
185
return;
186
}
187
$orderStatus = $order->getData('status');
188
$additionalInformation = $order->getPayment()->getAdditionalInformation();
189
190
- $orderPaymentStatus = isset($additionalInformation['status']) ? $additionalInformation['status'] : null ;
191
- $paymentID = isset($additionalInformation['payment_id_detail']) ? $additionalInformation['payment_id_detail'] : null ;
192
193
$refundAvailable = Mage::getStoreConfig('payment/mercadopago/refund_available');
194
- if ($refundAvailable & $paymentID == null){
195
$this->_getSession()->addWarning(__('The cancellation will be made through Magento. It wasn\'t possible to cancel on MercadoPago'));
196
return;
197
}
198
@@ -200,7 +202,8 @@ class MercadoPago_Core_Model_Observer
200
201
}
202
203
- protected function _cancellationRequest($orderStatus, $orderPaymentStatus, $paymentID, $paymentMethod) {
204
if (!($orderPaymentStatus == null || $paymentID == null)) {
205
206
$isValidBasicData = $this->checkCancelationBasicData($paymentID, $paymentMethod);
@@ -214,7 +217,8 @@ class MercadoPago_Core_Model_Observer
214
}
215
}
216
217
- protected function _sendCancellationRequest ($paymentMethod, $paymentID) {
218
$clientId = Mage::getStoreConfig(MercadoPago_Core_Helper_Data::XML_PATH_CLIENT_ID);
219
$clientSecret = Mage::getStoreConfig(MercadoPago_Core_Helper_Data::XML_PATH_CLIENT_SECRET);
220
@@ -242,7 +246,8 @@ class MercadoPago_Core_Model_Observer
242
}
243
}
244
245
- protected function checkCancelationBasicData ($paymentID, $paymentMethod) {
246
247
if ($paymentID == null) {
248
return false;
@@ -250,19 +255,22 @@ class MercadoPago_Core_Model_Observer
250
251
if (!($paymentMethod == 'mercadopago_standard' || $paymentMethod == 'mercadopago_custom')) {
252
$this->_getSession()->addWarning(__('Order payment wasn\'t made by Mercado Pago. The cancellation will be made through Magento'));
253
return false;
254
}
255
256
$refundAvailable = Mage::getStoreConfig('payment/mercadopago/refund_available');
257
if (!$refundAvailable) {
258
- $this->_getSession()->addWarning(__('Mercado Pago cancellations are disabled. The cancellation will be made through Magento'));
259
return false;
260
}
261
262
return true;
263
}
264
265
- protected function checkCancelationData ($orderStatus, $orderPaymentStatus) {
266
$isValidaData = true;
267
268
if (!($orderStatus == 'processing' || $orderStatus == 'pending')) {
@@ -270,7 +278,7 @@ class MercadoPago_Core_Model_Observer
270
$isValidaData = false;
271
}
272
273
- if (!($orderPaymentStatus == 'pending' || $orderPaymentStatus == 'in_process' || $orderPaymentStatus == 'rejected' )) {
274
$this->_getSession()->addError(__('You can only make cancellations on orders whose payment status is Rejected, Pending o In Process'));
275
$isValidaData = false;
276
}
@@ -282,17 +290,20 @@ class MercadoPago_Core_Model_Observer
282
return $isValidaData;
283
}
284
285
- protected function throwCancelationException () {
286
if (Mage::registry('cancel_exception') != null) {
287
Mage::register('cancel_exception', true);
288
}
289
}
290
291
- protected function _getSession() {
292
return Mage::getSingleton('adminhtml/session');
293
}
294
295
- public function salesOrderAfterCancel (Varien_Event_Observer $observer) {
296
$mpCancellation = Mage::registry('mercadopago_cancellation');
297
if ($mpCancellation) {
298
$order = $observer->getData('order');
@@ -302,7 +313,8 @@ class MercadoPago_Core_Model_Observer
302
}
303
}
304
305
- public function salesOrderBeforeSave () {
306
$cancelException = Mage::registry('cancel_exception');
307
if ($cancelException) {
308
Mage::unregister('cancel_exception');
@@ -314,7 +326,7 @@ class MercadoPago_Core_Model_Observer
314
* @param Varien_Event_Observer $observer
315
*/
316
317
- public function creditMemoRefundBeforeSave (Varien_Event_Observer $observer)
318
{
319
$creditMemo = $observer->getData('creditmemo');
320
$order = $creditMemo->getOrder();
@@ -329,19 +341,17 @@ class MercadoPago_Core_Model_Observer
329
$orderPaymentStatus = $order->getPayment()->getData('additional_information')['status'];
330
$payment = $order->getPayment();
331
332
- $orderStatusHistory = $order->getAllStatusHistory();
333
$isCreditCardPayment = ($order->getPayment()->getData('additional_information')['installments'] != null ? true : false);
334
335
$paymentDate = null;
336
- foreach ($orderStatusHistory as $status) {
337
- if (strpos($status->getComment(), 'The payment was approved') !== false) {
338
- $paymentDate = $status->getCreatedAt();
339
- break;
340
- }
341
}
342
- $isValidBasicData = $this->checkRefundBasicData ($paymentMethod, $paymentDate);
343
if ($isValidBasicData) {
344
- $isValidaData = $this->checkRefundData ($isCreditCardPayment,
345
$orderStatus,
346
$orderPaymentStatus,
347
$paymentDate,
@@ -354,36 +364,40 @@ class MercadoPago_Core_Model_Observer
354
}
355
}
356
357
- protected function checkRefundBasicData ($paymentMethod, $paymentDate) {
358
$refundAvailable = Mage::getStoreConfig('payment/mercadopago/refund_available');
359
360
if ($paymentDate == null) {
361
$this->_getSession()->addError(__('No payment is recorded. You can\'t make a refund on a unpaid order'));
362
return false;
363
}
364
365
if (!($paymentMethod == 'mercadopago_standard' || $paymentMethod == 'mercadopago_custom')) {
366
$this->_getSession()->addWarning(__('Order payment wasn\'t made by Mercado Pago. The refund will be made through Magento'));
367
return false;
368
}
369
370
if (!$refundAvailable) {
371
$this->_getSession()->addWarning(__('Mercado Pago refunds are disabled. The refund will be made through Magento'));
372
return false;
373
}
374
375
return true;
376
}
377
378
- protected function checkRefundData ($isCreditCardPayment,
379
- $orderStatus,
380
- $orderPaymentStatus,
381
- $paymentDate,
382
- $order)
383
{
384
385
- $maxDays = (int) Mage::getStoreConfig('payment/mercadopago/maximum_days_refund');
386
- $maxRefunds = (int) Mage::getStoreConfig('payment/mercadopago/maximum_partial_refunds');
387
388
$isValidaData = true;
389
@@ -420,7 +434,8 @@ class MercadoPago_Core_Model_Observer
420
return $isValidaData;
421
}
422
423
- protected function sendRefundRequest ($order, $creditMemo, $paymentMethod, $isTotalRefund) {
424
425
$response = null;
426
$amount = $creditMemo->getGrandTotal();
@@ -435,11 +450,11 @@ class MercadoPago_Core_Model_Observer
435
} else {
436
$order->setMercadoPagoRefundType('partial');
437
$metadata = [
438
- "reason" => '',
439
"external_reference" => $order->getIncrementId(),
440
];
441
$params = [
442
- "amount" => $amount,
443
"metadata" => $metadata,
444
];
445
$response = $mp->post('/collections/' . $paymentID . '/refunds?access_token=' . $mp->get_access_token(), $params);
@@ -468,18 +483,20 @@ class MercadoPago_Core_Model_Observer
468
}
469
}
470
471
- protected function throwRefundException () {
472
Mage::throwException(Mage::helper('mercadopago')->__('Mercado Pago - Refund not made'));
473
}
474
475
private function daysSince($date)
476
{
477
$now = Mage::getModel('core/date')->timestamp(time());
478
- $date = strtotime ($date);
479
return (abs($now - $date) / 86400);
480
}
481
482
- public function creditMemoRefundAfterSave (Varien_Event_Observer $observer)
483
{
484
$creditMemo = $observer->getData('creditmemo');
485
@@ -495,7 +512,8 @@ class MercadoPago_Core_Model_Observer
495
}
496
}
497
498
- public function checkoutSubmitAllAfter (Varien_Event_Observer $observer) {
499
$recurringProfiles = $observer->getRecurringProfiles();
500
if (isset($recurringProfiles) && count($recurringProfiles) > 0) {
501
$checkoutSession = Mage::getSingleton('checkout/session');
@@ -509,5 +527,4 @@ class MercadoPago_Core_Model_Observer
509
}
510
511
512
-
513
}
140
$user = $mp->get("/users/me");
141
Mage::helper('mercadopago')->log("API Users response", self::LOG_FILE, $user);
142
143
+ if ($user['status'] == 200 && !in_array("test_user", $user['response']['tags']) && strpos($accessToken, 'TEST') === false) {
144
$sponsors = [
145
'MLA' => 186172525,
146
'MLB' => 186175129,
175
176
}
177
178
+ public function salesOrderBeforeCancel(Varien_Event_Observer $observer)
179
+ {
180
+ $orderID = (int)$observer->getEvent()->getControllerAction()->getRequest()->getParam('order_id');
181
$order = Mage::getModel('sales/order')->load($orderID);
182
+
183
$paymentMethod = $order->getPayment()->getMethodInstance()->getCode();
184
+
185
if ($order->getExternalRequest() || !$this->_isMercadoPago($paymentMethod)) {
186
return;
187
}
188
$orderStatus = $order->getData('status');
189
$additionalInformation = $order->getPayment()->getAdditionalInformation();
190
191
+ $orderPaymentStatus = isset($additionalInformation['status']) ? $additionalInformation['status'] : null;
192
+ $paymentID = isset($additionalInformation['payment_id_detail']) ? $additionalInformation['payment_id_detail'] : null;
193
194
$refundAvailable = Mage::getStoreConfig('payment/mercadopago/refund_available');
195
+ if ($refundAvailable & $paymentID == null) {
196
$this->_getSession()->addWarning(__('The cancellation will be made through Magento. It wasn\'t possible to cancel on MercadoPago'));
197
+
198
return;
199
}
200
202
203
}
204
205
+ protected function _cancellationRequest($orderStatus, $orderPaymentStatus, $paymentID, $paymentMethod)
206
+ {
207
if (!($orderPaymentStatus == null || $paymentID == null)) {
208
209
$isValidBasicData = $this->checkCancelationBasicData($paymentID, $paymentMethod);
217
}
218
}
219
220
+ protected function _sendCancellationRequest($paymentMethod, $paymentID)
221
+ {
222
$clientId = Mage::getStoreConfig(MercadoPago_Core_Helper_Data::XML_PATH_CLIENT_ID);
223
$clientSecret = Mage::getStoreConfig(MercadoPago_Core_Helper_Data::XML_PATH_CLIENT_SECRET);
224
246
}
247
}
248
249
+ protected function checkCancelationBasicData($paymentID, $paymentMethod)
250
+ {
251
252
if ($paymentID == null) {
253
return false;
255
256
if (!($paymentMethod == 'mercadopago_standard' || $paymentMethod == 'mercadopago_custom')) {
257
$this->_getSession()->addWarning(__('Order payment wasn\'t made by Mercado Pago. The cancellation will be made through Magento'));
258
+
259
return false;
260
}
261
262
$refundAvailable = Mage::getStoreConfig('payment/mercadopago/refund_available');
263
if (!$refundAvailable) {
264
+ $this->_getSession()->addWarning(__('Mercado Pago cancellation is disabled. The cancellation will be made through Magento'));
265
+
266
return false;
267
}
268
269
return true;
270
}
271
272
+ protected function checkCancelationData($orderStatus, $orderPaymentStatus)
273
+ {
274
$isValidaData = true;
275
276
if (!($orderStatus == 'processing' || $orderStatus == 'pending')) {
278
$isValidaData = false;
279
}
280
281
+ if (!($orderPaymentStatus == 'pending' || $orderPaymentStatus == 'in_process' || $orderPaymentStatus == 'rejected')) {
282
$this->_getSession()->addError(__('You can only make cancellations on orders whose payment status is Rejected, Pending o In Process'));
283
$isValidaData = false;
284
}
290
return $isValidaData;
291
}
292
293
+ protected function throwCancelationException()
294
+ {
295
if (Mage::registry('cancel_exception') != null) {
296
Mage::register('cancel_exception', true);
297
}
298
}
299
300
+ protected function _getSession()
301
+ {
302
return Mage::getSingleton('adminhtml/session');
303
}
304
305
+ public function salesOrderAfterCancel(Varien_Event_Observer $observer)
306
+ {
307
$mpCancellation = Mage::registry('mercadopago_cancellation');
308
if ($mpCancellation) {
309
$order = $observer->getData('order');
313
}
314
}
315
316
+ public function salesOrderBeforeSave()
317
+ {
318
$cancelException = Mage::registry('cancel_exception');
319
if ($cancelException) {
320
Mage::unregister('cancel_exception');
326
* @param Varien_Event_Observer $observer
327
*/
328
329
+ public function creditMemoRefundBeforeSave(Varien_Event_Observer $observer)
330
{
331
$creditMemo = $observer->getData('creditmemo');
332
$order = $creditMemo->getOrder();
341
$orderPaymentStatus = $order->getPayment()->getData('additional_information')['status'];
342
$payment = $order->getPayment();
343
344
$isCreditCardPayment = ($order->getPayment()->getData('additional_information')['installments'] != null ? true : false);
345
346
$paymentDate = null;
347
+ $invoice = $order->getInvoiceCollection()->getLastItem();
348
+ if ($invoice) {
349
+ $paymentDate = $invoice->getCreatedAt();
350
}
351
+
352
+ $isValidBasicData = $this->checkRefundBasicData($paymentMethod, $paymentDate);
353
if ($isValidBasicData) {
354
+ $isValidaData = $this->checkRefundData($isCreditCardPayment,
355
$orderStatus,
356
$orderPaymentStatus,
357
$paymentDate,
364
}
365
}
366
367
+ protected function checkRefundBasicData($paymentMethod, $paymentDate)
368
+ {
369
$refundAvailable = Mage::getStoreConfig('payment/mercadopago/refund_available');
370
371
if ($paymentDate == null) {
372
$this->_getSession()->addError(__('No payment is recorded. You can\'t make a refund on a unpaid order'));
373
+
374
return false;
375
}
376
377
if (!($paymentMethod == 'mercadopago_standard' || $paymentMethod == 'mercadopago_custom')) {
378
$this->_getSession()->addWarning(__('Order payment wasn\'t made by Mercado Pago. The refund will be made through Magento'));
379
+
380
return false;
381
}
382
383
if (!$refundAvailable) {
384
$this->_getSession()->addWarning(__('Mercado Pago refunds are disabled. The refund will be made through Magento'));
385
+
386
return false;
387
}
388
389
return true;
390
}
391
392
+ protected function checkRefundData($isCreditCardPayment,
393
+ $orderStatus,
394
+ $orderPaymentStatus,
395
+ $paymentDate,
396
+ $order)
397
{
398
399
+ $maxDays = (int)Mage::getStoreConfig('payment/mercadopago/maximum_days_refund');
400
+ $maxRefunds = (int)Mage::getStoreConfig('payment/mercadopago/maximum_partial_refunds');
401
402
$isValidaData = true;
403
434
return $isValidaData;
435
}
436
437
+ protected function sendRefundRequest($order, $creditMemo, $paymentMethod, $isTotalRefund)
438
+ {
439
440
$response = null;
441
$amount = $creditMemo->getGrandTotal();
450
} else {
451
$order->setMercadoPagoRefundType('partial');
452
$metadata = [
453
+ "reason" => '',
454
"external_reference" => $order->getIncrementId(),
455
];
456
$params = [
457
+ "amount" => $amount,
458
"metadata" => $metadata,
459
];
460
$response = $mp->post('/collections/' . $paymentID . '/refunds?access_token=' . $mp->get_access_token(), $params);
483
}
484
}
485
486
+ protected function throwRefundException()
487
+ {
488
Mage::throwException(Mage::helper('mercadopago')->__('Mercado Pago - Refund not made'));
489
}
490
491
private function daysSince($date)
492
{
493
$now = Mage::getModel('core/date')->timestamp(time());
494
+ $date = strtotime($date);
495
+
496
return (abs($now - $date) / 86400);
497
}
498
499
+ public function creditMemoRefundAfterSave(Varien_Event_Observer $observer)
500
{
501
$creditMemo = $observer->getData('creditmemo');
502
512
}
513
}
514
515
+ public function checkoutSubmitAllAfter(Varien_Event_Observer $observer)
516
+ {
517
$recurringProfiles = $observer->getRecurringProfiles();
518
if (isset($recurringProfiles) && count($recurringProfiles) > 0) {
519
$checkoutSession = Mage::getSingleton('checkout/session');
527
}
528
529
530
}
app/code/community/MercadoPago/Core/controllers/CheckoutController.php CHANGED
@@ -63,10 +63,14 @@ class MercadoPago_Core_CheckoutController
63
protected function getCheckoutHandle()
64
{
65
$order = $this->getOrder();
66
- $handle = $order->getPayment()->getMethod();
67
- $handle .= '_success';
68
69
- return $handle;
70
}
71
72
protected function _getTotal($order){
@@ -140,4 +144,4 @@ class MercadoPago_Core_CheckoutController
140
$this->renderLayout();
141
}
142
143
- }
63
protected function getCheckoutHandle()
64
{
65
$order = $this->getOrder();
66
+ if (!$order->getId()){
67
+ return '';
68
+ } else {
69
+ $handle = $order->getPayment()->getMethod();
70
+ $handle .= '_success';
71
72
+ return $handle;
73
+ }
74
}
75
76
protected function _getTotal($order){
144
$this->renderLayout();
145
}
146
147
+ }
app/code/community/MercadoPago/Core/controllers/NotificationsController.php CHANGED
@@ -160,7 +160,10 @@ class MercadoPago_Core_NotificationsController
160
}
161
162
$this->_helper->log('Payment not found', self::LOG_FILE, $request->getParams());
163
- $this->_setResponse('Payment not found', MercadoPago_Core_Helper_Response::HTTP_NOT_FOUND);
164
$this->_helper->log('Http code', self::LOG_FILE, $this->getResponse()->getHttpResponseCode());
165
}
166
160
}
161
162
$this->_helper->log('Payment not found', self::LOG_FILE, $request->getParams());
163
+
164
+ // Internal error returns to force Mercado Pago renotification
165
+ $this->_setResponse('Payment not found', MercadoPago_Core_Helper_Response::HTTP_INTERNAL_ERROR);
166
+
167
$this->_helper->log('Http code', self::LOG_FILE, $this->getResponse()->getHttpResponseCode());
168
}
169
app/code/community/MercadoPago/Core/etc/config.xml CHANGED
@@ -18,7 +18,7 @@
18
<config>
19
<modules>
20
<MercadoPago_Core>
21
- <version>2.7.4</version>
22
</MercadoPago_Core>
23
</modules>
24
@@ -223,6 +223,7 @@
223
<debug_mode>0</debug_mode>
224
<calculalator_available>0</calculalator_available>
225
<time_between_verifications>*/5 * * * *</time_between_verifications>
226
</mercadopago>
227
228
<mercadopago_custom>
18
<config>
19
<modules>
20
<MercadoPago_Core>
21
+ <version>2.7.8</version>
22
</MercadoPago_Core>
23
</modules>
24
223
<debug_mode>0</debug_mode>
224
<calculalator_available>0</calculalator_available>
225
<time_between_verifications>*/5 * * * *</time_between_verifications>
226
+ <number_of_hours>1</number_of_hours>
227
</mercadopago>
228
229
<mercadopago_custom>
app/code/community/MercadoPago/Core/etc/system.xml CHANGED
@@ -93,16 +93,14 @@
93
<show_in_store>0</show_in_store>
94
</time_between_verifications>
95
<number_of_hours translate="label comment">
96
- <label>Number of hours</label>
97
- <comment>Try to update all the orders created 'Amount of hours' before time to the moment to execute the cron</comment>
98
- <!--<comment><![CDATA[<strong style="color:red">Warning!</strong>]]></comment>-->
99
<frontend_type>text</frontend_type>
100
<sort_order>85</sort_order>
101
<show_in_default>1</show_in_default>
102
<show_in_website>0</show_in_website>
103
<show_in_store>0</show_in_store>
104
- <can_be_empty>0</can_be_empty>
105
- <frontend_class>required-entry validate-digits</frontend_class>
106
</number_of_hours>
107
108
<heading_order_status translate="label">
@@ -231,10 +229,38 @@
231
<show_in_store>0</show_in_store>
232
</order_status_partially_refunded>
233
234
<heading_developer translate="label">
235
<label>Developer Options</label>
236
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
237
- <sort_order>195</sort_order>
238
<show_in_default>1</show_in_default>
239
<show_in_website>1</show_in_website>
240
</heading_developer>
@@ -242,7 +268,7 @@
242
<label>Logs</label>
243
<frontend_type>select</frontend_type>
244
<source_model>adminhtml/system_config_source_yesno</source_model>
245
- <sort_order>200</sort_order>
246
<show_in_default>1</show_in_default>
247
<show_in_website>1</show_in_website>
248
<show_in_store>0</show_in_store>
@@ -252,40 +278,22 @@
252
<label>Debug Mode</label>
253
<frontend_type>select</frontend_type>
254
<source_model>adminhtml/system_config_source_yesno</source_model>
255
- <sort_order>205</sort_order>
256
<show_in_default>1</show_in_default>
257
<show_in_website>1</show_in_website>
258
<show_in_store>0</show_in_store>
259
<comment>Enable to display actual error messages to frontend users (not recommended on production environment)</comment>
260
</debug_mode>
261
262
- <heading_calculator translate="label comment">
263
- <label>Payments Calculator</label>
264
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
265
- <sort_order>235</sort_order>
266
- <show_in_default>1</show_in_default>
267
- <show_in_website>1</show_in_website>
268
- </heading_calculator>
269
- <calculalator_available translate="label">
270
- <label>Enable Mercado Pago Installments Calculator</label>
271
- <frontend_type>select</frontend_type>
272
- <source_model>adminhtml/system_config_source_yesno</source_model>
273
- <sort_order>240</sort_order>
274
- <show_in_default>1</show_in_default>
275
- <show_in_website>1</show_in_website>
276
- <show_in_store>0</show_in_store>
277
- <comment>if set to YES, Calculator will appear on the selected pages - Custom checkout credentials (Public Key and Access Token) must be set</comment>
278
- </calculalator_available>
279
- <show_in_pages translate="label">
280
- <label>Show Calculator on selected pages</label>
281
- <frontend_type>multiselect</frontend_type>
282
- <source_model>mercadopago/source_listPages</source_model>
283
- <sort_order>245</sort_order>
284
- <show_in_default>1</show_in_default>
285
- <show_in_website>1</show_in_website>
286
- <show_in_store>0</show_in_store>
287
- <can_be_empty>1</can_be_empty>
288
- </show_in_pages>
289
</fields>
290
</mercadopago>
291
@@ -776,4 +784,4 @@
776
</groups>
777
</payment>
778
</sections>
779
- </config>
93
<show_in_store>0</show_in_store>
94
</time_between_verifications>
95
<number_of_hours translate="label comment">
96
+ <label>Interval</label>
97
+ <comment>A interval is X hours before cron execution instant. Orders between this interval are updated.</comment>
98
<frontend_type>text</frontend_type>
99
<sort_order>85</sort_order>
100
<show_in_default>1</show_in_default>
101
<show_in_website>0</show_in_website>
102
<show_in_store>0</show_in_store>
103
+ <frontend_class>validate-greater-than-zero validate-digits</frontend_class>
104
</number_of_hours>
105
106
<heading_order_status translate="label">
229
<show_in_store>0</show_in_store>
230
</order_status_partially_refunded>
231
232
+ <heading_calculator translate="label comment">
233
+ <label>Payments Calculator</label>
234
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
235
+ <sort_order>166</sort_order>
236
+ <show_in_default>1</show_in_default>
237
+ <show_in_website>1</show_in_website>
238
+ </heading_calculator>
239
+ <calculalator_available translate="label">
240
+ <label>Enable Mercado Pago Installments Calculator</label>
241
+ <frontend_type>select</frontend_type>
242
+ <source_model>adminhtml/system_config_source_yesno</source_model>
243
+ <sort_order>167</sort_order>
244
+ <show_in_default>1</show_in_default>
245
+ <show_in_website>1</show_in_website>
246
+ <show_in_store>0</show_in_store>
247
+ <comment>if set to YES, Calculator will appear on the selected pages - Custom checkout credentials (Public Key and Access Token) must be set</comment>
248
+ </calculalator_available>
249
+ <show_in_pages translate="label">
250
+ <label>Show Calculator on selected pages</label>
251
+ <frontend_type>multiselect</frontend_type>
252
+ <source_model>mercadopago/source_listPages</source_model>
253
+ <sort_order>168</sort_order>
254
+ <show_in_default>1</show_in_default>
255
+ <show_in_website>1</show_in_website>
256
+ <show_in_store>0</show_in_store>
257
+ <can_be_empty>1</can_be_empty>
258
+ </show_in_pages>
259
+
260
<heading_developer translate="label">
261
<label>Developer Options</label>
262
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
263
+ <sort_order>169</sort_order>
264
<show_in_default>1</show_in_default>
265
<show_in_website>1</show_in_website>
266
</heading_developer>
268
<label>Logs</label>
269
<frontend_type>select</frontend_type>
270
<source_model>adminhtml/system_config_source_yesno</source_model>
271
+ <sort_order>170</sort_order>
272
<show_in_default>1</show_in_default>
273
<show_in_website>1</show_in_website>
274
<show_in_store>0</show_in_store>
278
<label>Debug Mode</label>
279
<frontend_type>select</frontend_type>
280
<source_model>adminhtml/system_config_source_yesno</source_model>
281
+ <sort_order>171</sort_order>
282
<show_in_default>1</show_in_default>
283
<show_in_website>1</show_in_website>
284
<show_in_store>0</show_in_store>
285
<comment>Enable to display actual error messages to frontend users (not recommended on production environment)</comment>
286
</debug_mode>
287
288
+ <version translate="label">
289
+ <label>Version Module</label>
290
+ <frontend_type>select</frontend_type>
291
+ <frontend_model>MercadoPago_Core_Block_Adminhtml_Version</frontend_model>
292
+ <sort_order>172</sort_order>
293
+ <show_in_default>1</show_in_default>
294
+ <show_in_website>1</show_in_website>
295
+ <show_in_store>0</show_in_store>
296
+ </version>
297
</fields>
298
</mercadopago>
299
784
</groups>
785
</payment>
786
</sections>
787
+ </config>
app/code/community/MercadoPago/MercadoEnvios/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
<config>
3
<modules>
4
<MercadoPago_MercadoEnvios>
5
- <version>2.7.4</version>
6
</MercadoPago_MercadoEnvios>
7
</modules>
8
<frontend>
2
<config>
3
<modules>
4
<MercadoPago_MercadoEnvios>
5
+ <version>2.7.8</version>
6
</MercadoPago_MercadoEnvios>
7
</modules>
8
<frontend>
app/code/community/MercadoPago/OneStepCheckout/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
<config>
3
<modules>
4
<MercadoPago_OneStepCheckout>
5
- <version>2.7.4</version>
6
</MercadoPago_OneStepCheckout>
7
</modules>
8
<global>
2
<config>
3
<modules>
4
<MercadoPago_OneStepCheckout>
5
+ <version>2.7.8</version>
6
</MercadoPago_OneStepCheckout>
7
</modules>
8
<global>
app/design/frontend/base/default/layout/mercadopago.xml CHANGED
@@ -110,6 +110,18 @@
110
</reference>
111
</checkout_onepage_index>
112
113
<checkout_cart_index>
114
<reference name="head">
115
<action method="addCss">
110
</reference>
111
</checkout_onepage_index>
112
113
+ <onestepcheckout_index_index>
114
+ <reference name="content">
115
+ <block type="mercadopago/analytics_checkout" name="mercadopago_analytics" as="mercadopago_analytics" template="mercadopago/analytics/checkout.phtml"/>
116
+ </reference>
117
+ </onestepcheckout_index_index>
118
+
119
+ <idecheckoutvm_index_index>
120
+ <reference name="content">
121
+ <block type="mercadopago/analytics_checkout" name="mercadopago_analytics" as="mercadopago_analytics" template="mercadopago/analytics/checkout.phtml"/>
122
+ </reference>
123
+ </idecheckoutvm_index_index>
124
+
125
<checkout_cart_index>
126
<reference name="head">
127
<action method="addCss">
app/design/frontend/base/default/template/mercadopago/custom/form.phtml CHANGED
@@ -13,7 +13,10 @@ $customer = $this->getCustomerAndCards();
13
<script type="text/javascript">
14
MercadoPagoCustom.enableLog(<?php echo $logEnabled?>);
15
MercadoPagoCustom.getInstance().init();
16
- sendAnalyticsData("<?php echo $_code ?>");
17
</script>
18
19
<link rel="stylesheet" href="<?php echo $this->getSkinUrl('mercadopago/css/style.css'); ?>?nocache=<?php echo rand(); ?>"/>
@@ -83,7 +86,7 @@ $customer = $this->getCustomerAndCards();
83
84
<li id="cardNumber__mp">
85
<label for="cardNumber"><?php echo $this->__('Card Number'); ?></label>
86
- <input type="text" id="cardNumber" data-checkout="cardNumber" data-element-id="#cardNumber__mp"/>
87
<p class="message-error error-payment-method-not-found error-E301 error-205 validation-advice"><?php echo $this->__('Card number is invalid.'); ?></p>
88
<p class="message-error error-payment-method-min-amount validation-advice"><?php echo $this->__('Cannot pay this amount with this payment_method_id.'); ?></p>
89
</li>
@@ -173,7 +176,7 @@ $customer = $this->getCustomerAndCards();
173
<input type="hidden" class="mercadopago-discount-amount" name="mercadopago-discount-amount" value="0"/>
174
<input type="hidden" class="site_id" name="site_id" value="<?php echo strtoupper($country); ?>"/>
175
<input type="hidden" class="mercadopago-text-currency" value="<?php echo $this->__('#x27;); ?>">
176
- <input type="hidden" class="mercadopago-text-choice" value="<?php echo $this->__('Choice'); ?>">
177
<input type="hidden" class="mercadopago-text-default-issuer" value="<?php echo $this->__('Default issuer'); ?>">
178
<input type="hidden" class="mercadopago-text-installment" value="<?php echo $this->__('Select Installments'); ?>">
179
<input type="hidden" class="mercado_base_url" value="<?php echo $base_url; ?>">
13
<script type="text/javascript">
14
MercadoPagoCustom.enableLog(<?php echo $logEnabled?>);
15
MercadoPagoCustom.getInstance().init();
16
+ if (typeof sendAnalyticsData === 'function') {
17
+ sendAnalyticsData("<?php echo $_code ?>");
18
+ }
19
+
20
</script>
21
22
<link rel="stylesheet" href="<?php echo $this->getSkinUrl('mercadopago/css/style.css'); ?>?nocache=<?php echo rand(); ?>"/>
86
87
<li id="cardNumber__mp">
88
<label for="cardNumber"><?php echo $this->__('Card Number'); ?></label>
89
+ <input type="text" class="co-payment-form" id="cardNumber" data-checkout="cardNumber" data-element-id="#cardNumber__mp"/>
90
<p class="message-error error-payment-method-not-found error-E301 error-205 validation-advice"><?php echo $this->__('Card number is invalid.'); ?></p>
91
<p class="message-error error-payment-method-min-amount validation-advice"><?php echo $this->__('Cannot pay this amount with this payment_method_id.'); ?></p>
92
</li>
176
<input type="hidden" class="mercadopago-discount-amount" name="mercadopago-discount-amount" value="0"/>
177
<input type="hidden" class="site_id" name="site_id" value="<?php echo strtoupper($country); ?>"/>
178
<input type="hidden" class="mercadopago-text-currency" value="<?php echo $this->__('#x27;); ?>">
179
+ <input type="hidden" class="mercadopago-text-choice" value="<?php echo $this->__('Select'); ?>">
180
<input type="hidden" class="mercadopago-text-default-issuer" value="<?php echo $this->__('Default issuer'); ?>">
181
<input type="hidden" class="mercadopago-text-installment" value="<?php echo $this->__('Select Installments'); ?>">
182
<input type="hidden" class="mercado_base_url" value="<?php echo $base_url; ?>">
app/design/frontend/base/default/template/mercadopago/custom/secondCard.phtml CHANGED
@@ -41,7 +41,7 @@ $customer = $this->getCustomerAndCards();
41
<li id="second_card_securityCodeOCP__mp">
42
<label for="second_card_securityCode"><?php echo $this->__('CVV'); ?></label>
43
<input type="text" id="second_card_securityCodeOCP" class="required-entry" data-checkout="securityCode" maxlength="4" data-element-id="#second_card_securityCodeOCP__mp"/>
44
- <p class="message-error error-E302 error-224 validation-advice"><?php echo $this->__('CVV is invalid.'); ?></p>
45
<span class="ch-form-hint"><?php echo $this->__('Last 3 numbers on back side.'); ?></span>
46
</li>
47
</ul>
@@ -59,7 +59,7 @@ $customer = $this->getCustomerAndCards();
59
<li id="second_card_cardNumber__mp">
60
<label for="second_card_cardNumber"><?php echo $this->__('Card Number'); ?></label>
61
<input type="text" id="second_card_cardNumber" data-checkout="cardNumber" data-element-id="#second_card_cardNumber__mp"/>
62
- <p class="message-error second_card_error-payment-method-not-found error-E301 error-205 validation-advice"><?php echo $this->__('Card number is invalid.'); ?></p>
63
<p class="message-error second_card_error-payment-method-min-amount validation-advice"><?php echo $this->__('Cannot pay this amount with this payment_method_id.'); ?></p>
64
</li>
65
@@ -95,25 +95,25 @@ $customer = $this->getCustomerAndCards();
95
<li id="second_card_cardholderName__mp">
96
<label for="second_card_cardholderName"><?php echo $this->__('Card Holder Name'); ?></label>
97
<input type="text" id="second_card_cardholderName" data-checkout="cardholderName" name="payment[<?php echo $_code; ?>][card_holder_name]" data-element-id="#second_card_cardholderName__mp"/>
98
- <p class="message-error error-316 validation-advice"><?php echo $this->__('Card Holder Name is invalid.'); ?></p>
99
</li>
100
101
<li id="second_card_securityCode__mp">
102
<label for="second_card_securityCode"><?php echo $this->__('CVV'); ?></label>
103
<input type="text" id="second_card_securityCode" data-checkout="securityCode" maxlength="4" data-element-id="#second_card_securityCode__mp" class="required-entry"/>
104
- <p class="message-error second_card_error-E302 second_card_error-224 validation-advice"><?php echo $this->__('CVV is invalid.'); ?></p>
105
<span class="ch-form-hint"><?php echo $this->__('Last 3 numbers on back side.'); ?></span>
106
</li>
107
108
<li id="second_card_doc_type__mp">
109
<label for="second_card_docNumber"><?php echo $this->__('Document'); ?></label>
110
<select id="second_card_docType" data-checkout="docType" data-element-id="#second_card_doc_type__mp" name="payment[<?php echo $_code; ?>][doc_type]"></select>
111
- <p class="message-error error-322 error-212 validation-advice"><?php echo $this->__('Document Type is invalid.'); ?></p>
112
</li>
113
114
<li id="second_card_doc_number__mp">
115
<input type="text" id="second_card_docNumber" class="mp-validate-docnumber" data-checkout="docNumber" name="payment[<?php echo $_code; ?>][doc_number]" data-element-id="#second_card_doc_number__mp"/>
116
- <p class="message-error error-324 error-213 error-214 validation-advice"><?php echo $this->__('Document Number is invalid.'); ?></p>
117
</li>
118
</ul>
119
41
<li id="second_card_securityCodeOCP__mp">
42
<label for="second_card_securityCode"><?php echo $this->__('CVV'); ?></label>
43
<input type="text" id="second_card_securityCodeOCP" class="required-entry" data-checkout="securityCode" maxlength="4" data-element-id="#second_card_securityCodeOCP__mp"/>
44
+ <p class="message-error second_card_error-E302 second_card_error-224 validation-advice"><?php echo $this->__('CVV is invalid.'); ?></p>
45
<span class="ch-form-hint"><?php echo $this->__('Last 3 numbers on back side.'); ?></span>
46
</li>
47
</ul>
59
<li id="second_card_cardNumber__mp">
60
<label for="second_card_cardNumber"><?php echo $this->__('Card Number'); ?></label>
61
<input type="text" id="second_card_cardNumber" data-checkout="cardNumber" data-element-id="#second_card_cardNumber__mp"/>
62
+ <p class="message-error second_card_error-payment-method-not-found second_card_error-E301 second_card_error-205 validation-advice"><?php echo $this->__('Card number is invalid.'); ?></p>
63
<p class="message-error second_card_error-payment-method-min-amount validation-advice"><?php echo $this->__('Cannot pay this amount with this payment_method_id.'); ?></p>
64
</li>
65
95
<li id="second_card_cardholderName__mp">
96
<label for="second_card_cardholderName"><?php echo $this->__('Card Holder Name'); ?></label>
97
<input type="text" id="second_card_cardholderName" data-checkout="cardholderName" name="payment[<?php echo $_code; ?>][card_holder_name]" data-element-id="#second_card_cardholderName__mp"/>
98
+ <p class="message-error second_card_error-316 validation-advice"><?php echo $this->__('Card Holder Name is invalid.'); ?></p>
99
</li>
100
101
<li id="second_card_securityCode__mp">
102
<label for="second_card_securityCode"><?php echo $this->__('CVV'); ?></label>
103
<input type="text" id="second_card_securityCode" data-checkout="securityCode" maxlength="4" data-element-id="#second_card_securityCode__mp" class="required-entry"/>
104
+ <p class="message-error error-E302 second_card_error-224 validation-advice"><?php echo $this->__('CVV is invalid.'); ?></p>
105
<span class="ch-form-hint"><?php echo $this->__('Last 3 numbers on back side.'); ?></span>
106
</li>
107
108
<li id="second_card_doc_type__mp">
109
<label for="second_card_docNumber"><?php echo $this->__('Document'); ?></label>
110
<select id="second_card_docType" data-checkout="docType" data-element-id="#second_card_doc_type__mp" name="payment[<?php echo $_code; ?>][doc_type]"></select>
111
+ <p class="message-error second_card_error-322 second_card_error-212 validation-advice"><?php echo $this->__('Document Type is invalid.'); ?></p>
112
</li>
113
114
<li id="second_card_doc_number__mp">
115
<input type="text" id="second_card_docNumber" class="mp-validate-docnumber" data-checkout="docNumber" name="payment[<?php echo $_code; ?>][doc_number]" data-element-id="#second_card_doc_number__mp"/>
116
+ <p class="message-error second_card_error-324 second_card_error-213 second_card_error-214 validation-advice"><?php echo $this->__('Document Number is invalid.'); ?></p>
117
</li>
118
</ul>
119
app/design/frontend/base/default/template/mercadopago/custom_ticket/form.phtml CHANGED
@@ -5,68 +5,343 @@ $_code = $this->getMethodCode();
5
$grant_total = $this->helper('checkout/cart')->getQuote()->getGrandTotal();
6
$base_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK, true);
7
$route = $this->getRequest()->getRequestedRouteName();
8
9
?>
10
<script type="text/javascript">
11
- sendAnalyticsData("<?php echo $_code ?>");
12
</script>
13
<fieldset class="conteiner-form-list">
14
- <link rel="stylesheet" href="<?php echo $this->getSkinUrl('mercadopago/css/style.css'); ?>?nocache=<?php echo rand(); ?>"/>
15
-
16
- <div id="mercadopago_checkout_custom_ticket">
17
- <ul class="form-list form-mercadopago" id="payment_form_<?php echo $_code ?>" style="display:none;">
18
- <li>
19
- <?php
20
- if ($coupon_mercadopago):
21
- $block = $this->getLayout()->createBlock('mercadopago/discount')->setCode($_code);
22
- echo $block->toHtml();
23
- ?>
24
- <script type="text/javascript">
25
- MercadoPagoCustom.getInstance().initDiscountTicket();
26
- </script>
27
- <?php
28
- endif;
29
- ?>
30
- </li>
31
- <li class="mercadopago-ticket-options">
32
- <?php $optionsTicket = $this->getTicketsOptions(); ?>
33
- <?php if (count($optionsTicket) == 1): ?>
34
- <input type="hidden" name="payment[<?php echo $_code; ?>][payment_method_ticket]" type="text" value="<?php echo $optionsTicket[0]['id']; ?>" id="payment_method_ticket"/>
35
- <?php else: ?>
36
- <ul>
37
- <?php foreach ($optionsTicket as $ticket): ?>
38
- <li class="mercadopago-ticket-option">
39
- <input type="radio" name="payment[<?php echo $_code; ?>][payment_method_ticket]" class="optionsTicketMp validate-one-required-by-name" value="<?php echo $ticket['id']; ?>">
40
- <label class="mercadopago-ticket-label">
41
- <img src="<?php echo $ticket['secure_thumbnail']; ?>" alt="<?php echo $ticket['name']; ?>">
42
- (<?php echo $ticket['name']; ?>)
43
- <!--<span class="mercadopago-ticket-label-img"><img src="--><?php //echo $ticket['secure_thumbnail']; ?><!--" alt="--><?php //echo $ticket['name']; ?><!--"> </span>-->
44
- <!--<span class="mercadopago-ticket-label-description">(--><?php //echo $ticket['name']; ?><!--)</span>-->
45
- </label>
46
- </li>
47
- <?php endforeach; ?>
48
- </ul>
49
- <?php endif; ?>
50
-
51
- <input type="hidden" class="total_amount" name="total_amount" value="<?php echo $grant_total; ?>"/>
52
- <input type="hidden" class="amount" name="amount" value="<?php echo $grant_total; ?>"/>
53
- <input type="hidden" class="site_id" name="site_id" value="<?php echo strtoupper($country); ?>"/>
54
- <input type="hidden" class="mercadopago-discount-amount" name="mercadopago-discount-amount" value="0"/>
55
- <input type="hidden" class="mercadopago-text-currency" value="<?php echo $this->__('#x27;); ?>">
56
- <input type="hidden" class="mercadopago-text-choice" value="<?php echo $this->__('Choice'); ?>">
57
- <input type="hidden" class="mercadopago-text-default-issuer" value="<?php echo $this->__('Default issuer'); ?>">
58
- <input type="hidden" class="mercadopago-text-installment" value="<?php echo $this->__('Enter the card number'); ?>">
59
- <input type="hidden" class="mercado_base_url" value="<?php echo $base_url; ?>">
60
- <input type="hidden" class="mercado_route" value="<?php echo $route; ?>">
61
- </li>
62
-
63
- </ul>
64
- </div>
65
- <?php if ($this->getMethod()->getConfigData('communication') != ""): ?>
66
<p class="communication"><?php echo $this->getMethod()->getConfigData('communication') ?></p>
67
- <?php endif; ?>
68
- <?php if ($this->getMethod()->getConfigData('banner_checkout') != ""): ?>
69
- <img src="<?php echo $this->getMethod()->getConfigData('banner_checkout'); ?>" class="banner_checkout_mp"/>
70
- <?php endif; ?>
71
72
</fieldset>
5
$grant_total = $this->helper('checkout/cart')->getQuote()->getGrandTotal();
6
$base_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK, true);
7
$route = $this->getRequest()->getRequestedRouteName();
8
+ $form_labels = array(
9
+ "form" => array(
10
+ "febraban_rules" => "Informações solicitadas em conformidade com as normas das circulares Nro. 3.461/09, 3.598/12 e 3.656/13 do Banco Central do Brasil.",
11
+ "select" => "Selecione...",
12
+ "name" => "Nome",
13
+ "surname" => "Sobrenome",
14
+ "docNumber" => "CPF",
15
+ "address" => "Endereço",
16
+ "number" => "Número",
17
+ "city" => "Cidade",
18
+ "state" => "Estado",
19
+ "zipcode" => "CEP"
20
+ ),
21
+ "error" => array(
22
+ //febraban
23
+ "FEB001" => "Obrigatório o preenchimento do Nome",
24
+ "FEB002" => "Obrigatório o preenchimento do Sobrenome",
25
+ "FEB003" => "Obrigatório o preenchimento de um CPF válido",
26
+ "FEB004" => "Obrigatório o preenchimento do Endereço",
27
+ "FEB005" => "Obrigatório o preenchimento do Número residencial",
28
+ "FEB006" => "Obrigatório informar a Cidade",
29
+ "FEB007" => "Obrigatório informar o Estado",
30
+ "FEB008" => "Obrigatório informar o CEP"
31
+ )
32
+ );
33
+
34
+ $billingAddress = Mage::getSingleton('checkout/session')->getQuote()->getBillingAddress()->getData();
35
+
36
+ $customer = array(
37
+ "firstname" => $billingAddress['firstname'],
38
+ "lastname" => $billingAddress['lastname'],
39
+ "address" => $billingAddress['street'],
40
+ "addressnumber" => "",
41
+ "city" => $billingAddress['city'],
42
+ "state" => $billingAddress['region_id'],
43
+ "zipcode" => $billingAddress['postcode']
44
+ );
45
+
46
+ $state_code = array(
47
+ "485" => array("code" =>"AC", "state" => "Acre"),
48
+ "486" => array("code" =>"AL", "state" => "Alagoas"),
49
+ "487" => array("code" =>"AP", "state" => "Amapá"),
50
+ "488" => array("code" =>"AM", "state" => "Amazonas"),
51
+ "489" => array("code" =>"BA", "state" => "Bahia"),
52
+ "490" => array("code" =>"CE", "state" => "Ceará"),
53
+ "511" => array("code" =>"DF", "state" => "Distrito Federal"),
54
+ "491" => array("code" =>"ES", "state" => "Espírito Santo"),
55
+ "492" => array("code" =>"GO", "state" => "Goiás"),
56
+ "493" => array("code" =>"MA", "state" => "Maranhão"),
57
+ "494" => array("code" =>"MT", "state" => "Mato Grosso"),
58
+ "495" => array("code" =>"MS", "state" => "Mato Grosso do Sul"),
59
+ "496" => array("code" =>"MG", "state" => "Minas Gerais"),
60
+ "497" => array("code" =>"PA", "state" => "Pará"),
61
+ "498" => array("code" =>"PB", "state" => "Paraíba"),
62
+ "499" => array("code" =>"PR", "state" => "Paraná"),
63
+ "500" => array("code" =>"PE", "state" => "Pernambuco"),
64
+ "501" => array("code" =>"PI", "state" => "Piauí"),
65
+ "502" => array("code" =>"RJ", "state" => "Rio de Janeiro"),
66
+ "503" => array("code" =>"RN", "state" => "Rio Grande do Norte"),
67
+ "504" => array("code" =>"RS", "state" => "Rio Grande do Sul"),
68
+ "505" => array("code" =>"RO", "state" => "Rondônia"),
69
+ "506" => array("code" =>"RA", "state" => "Roraima"),
70
+ "507" => array("code" =>"SC", "state" => "Santa Catarina"),
71
+ "508" => array("code" =>"SP", "state" => "São Paulo"),
72
+ "509" => array("code" =>"SE", "state" => "Sergipe"),
73
+ "510" => array("code" =>"TO", "state" => "Tocantins")
74
+ );
75
76
?>
77
<script type="text/javascript">
78
+ if (typeof sendAnalyticsData === 'function') {
79
+ sendAnalyticsData("<?php echo $_code ?>");
80
+ }
81
</script>
82
<fieldset class="conteiner-form-list">
83
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('mercadopago/css/style.css'); ?>?nocache=<?php echo rand(); ?>"/>
84
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('mercadopago/css/MPv1.css'); ?>?nocache=<?php echo rand(); ?>"/>
85
+
86
+ <div id="mercadopago_checkout_custom_ticket">
87
+ <ul class="form-list form-mercadopago" id="payment_form_<?php echo $_code ?>" style="display:none;">
88
+ <li>
89
+ <?php
90
+ if ($coupon_mercadopago):
91
+ $block = $this->getLayout()->createBlock('mercadopago/discount')->setCode($_code);
92
+ echo $block->toHtml();
93
+ ?>
94
+ <script type="text/javascript">
95
+ MercadoPagoCustom.getInstance().initDiscountTicket();
96
+ </script>
97
+ <?php
98
+ endif;
99
+ ?>
100
+ </li>
101
+ <li class="mercadopago-ticket-options">
102
+ <?php $optionsTicket = $this->getTicketsOptions(); ?>
103
+ <?php if (count($optionsTicket) == 1): ?>
104
+ <input type="hidden" name="payment[<?php echo $_code; ?>][payment_method_ticket]" type="text" value="<?php echo $optionsTicket[0]['id']; ?>" id="payment_method_ticket"/>
105
+ <?php else: ?>
106
+ <ul>
107
+ <?php foreach ($optionsTicket as $ticket): ?>
108
+ <li class="mercadopago-ticket-option">
109
+ <input type="radio" name="payment[<?php echo $_code; ?>][payment_method_ticket]" class="optionsTicketMp validate-one-required-by-name" value="<?php echo $ticket['id']; ?>">
110
+ <label class="mercadopago-ticket-label">
111
+ <img src="<?php echo $ticket['secure_thumbnail']; ?>" alt="<?php echo $ticket['name']; ?>">
112
+ (<?php echo $ticket['name']; ?>)
113
+ <!--<span class="mercadopago-ticket-label-img"><img src="--><?php //echo $ticket['secure_thumbnail']; ?><!--" alt="--><?php //echo $ticket['name']; ?><!--"> </span>-->
114
+ <!--<span class="mercadopago-ticket-label-description">(--><?php //echo $ticket['name']; ?><!--)</span>-->
115
+ </label>
116
+ </li>
117
+ <?php endforeach; ?>
118
+ </ul>
119
+ <?php endif; ?>
120
+
121
+ <?php if(strtoupper($country) == "MLB"): ?>
122
+ <div id="form-ticket">
123
+ <div class="form-row">
124
+ <div class="form-col-6">
125
+ <label for="firstname" class="require"><?php echo $form_labels['form']['name']; ?></label>
126
+ <input type="text" name="payment[<?php echo $_code; ?>][firstname]" id="MPv1-firstname" class="form-control-mine required-entry-firstname">
127
+ </div>
128
+
129
+ <div class="form-col-6">
130
+ <label for="lastname" class="require"><?php echo $form_labels['form']['surname']; ?></label>
131
+ <input type="text" name="payment[<?php echo $_code; ?>][lastname]" id="MPv1-lastname" class="form-control-mine required-entry-lastname">
132
+ </div>
133
+ </div>
134
+
135
+ <div class="form-row">
136
+ <div class="form-col-12">
137
+ <label for="docNumber" class="require"><?php echo $form_labels['form']['docNumber']; ?></label>
138
+ <input type="text" name="payment[<?php echo $_code; ?>][doc-number]" class="form-control-mine required-entry-doc-number" maxlength="14" id="MPv1-docNumber" onblur='clearTimeout()'>
139
+ </div>
140
+ </div>
141
+
142
+ <div class="form-row">
143
+ <div class="form-col-8">
144
+ <label for="address" class="require"><?php echo $form_labels['form']['address']; ?></label>
145
+ <input type="text" name="payment[<?php echo $_code; ?>][address]" id="MPv1-address" class="form-control-mine required-entry-address">
146
+ </div>
147
+ <div class="form-col-4">
148
+ <label for="number" class="require"><?php echo $form_labels['form']['number']; ?></label>
149
+ <input type="text" name="payment[<?php echo $_code; ?>][address-number]" id="MPv1-number" onkeypress="return event.charCode >= 48 && event.charCode <= 57" class="form-control-mine required-entry-address-number">
150
+ </div>
151
+ </div>
152
+
153
+ <div class="form-row">
154
+ <div class="form-col-6">
155
+ <label for="city" class="require"><?php echo $form_labels['form']['city']; ?></label>
156
+ <input type="text" name="payment[<?php echo $_code; ?>][address-city]" id="MPv1-city" class="form-control-mine required-entry-address-city">
157
+ </div>
158
+
159
+ <div class="form-col-6">
160
+ <label for="state" class="require"><?php echo $form_labels['form']['state']; ?></label>
161
+ <select name="payment[<?php echo $_code; ?>][address-state]" id="MPv1-state" class="form-control-mine required-entry-address-state">
162
+ <option value=""><?php echo $form_labels['form']['select']; ?></option>
163
+ <option value="AC">Acre</option>
164
+ <option value="AL">Alagoas</option>
165
+ <option value="AP">Amapá</option>
166
+ <option value="AM">Amazonas</option>
167
+ <option value="BA">Bahia</option>
168
+ <option value="CE">Ceará</option>
169
+ <option value="DF">Distrito Federal</option>
170
+ <option value="ES">Espírito Santo</option>
171
+ <option value="GO">Goiás</option>
172
+ <option value="MA">Maranhão</option>
173
+ <option value="MT">Mato Grosso</option>
174
+ <option value="MS">Mato Grosso do Sul</option>
175
+ <option value="MG">Minas Gerais</option>
176
+ <option value="PA">Pará</option>
177
+ <option value="PB">Paraíba</option>
178
+ <option value="PR">Paraná</option>
179
+ <option value="PE">Pernambuco</option>
180
+ <option value="PI">Piauí</option>
181
+ <option value="RJ">Rio de Janeiro</option>
182
+ <option value="RN">Rio Grande do Norte</option>
183
+ <option value="RS">Rio Grande do Sul</option>
184
+ <option value="RO">Rondônia</option>
185
+ <option value="RA">Roraima</option>
186
+ <option value="SC">Santa Catarina</option>
187
+ <option value="SP">São Paulo</option>
188
+ <option value="SE">Sergipe</option>
189
+ <option value="TO">Tocantins</option>
190
+ </select>
191
+ </div>
192
+ </div>
193
+
194
+ <div class="form-row">
195
+ <div class="form-col-6">
196
+ <label for="zipcode" class="require"><?php echo $form_labels['form']['zipcode']; ?></label>
197
+ <input type="text" name="payment[<?php echo $_code; ?>][address-zipcode]" id="MPv1-zipcode" onkeypress="return event.charCode >= 48 && event.charCode <= 57" class="form-control-mine required-entry-address-zipcode">
198
+ </div>
199
+ </div>
200
+
201
+ <div class="form-row">
202
+ <div class="form-col-12">
203
+ <span class="mensagem-febraban"><em>* </em><?php echo $form_labels['form']['febraban_rules']; ?></span>
204
+ </div>
205
+ </div>
206
+
207
+ </div>
208
+
209
+ <script>
210
+
211
+ if (typeof Validation != 'undefined'){
212
+ Validation.add('required-entry-firstname', "<?php echo $form_labels['error']['FEB001']; ?>", function(v) {
213
+ return !Validation.get('IsEmpty').test(v);
214
+ });
215
+
216
+ Validation.add('required-entry-lastname', "<?php echo $form_labels['error']['FEB002']; ?>", function(v) {
217
+ return !Validation.get('IsEmpty').test(v);
218
+ });
219
+
220
+ Validation.add('required-entry-doc-number', "<?php echo $form_labels['error']['FEB003']; ?>", function(v) {
221
+ var Soma;
222
+ var Resto;
223
+ strCPF = v.replace(/[.-\s]/g, '')
224
+ Soma = 0;
225
+
226
+ if (strCPF == "00000000000"){
227
+ return false;
228
+ }
229
+ for (i=1; i<=9; i++){
230
+ Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (11 - i);
231
+ }
232
+ Resto = (Soma * 10) % 11;
233
+ if ((Resto == 10) || (Resto == 11)){
234
+ Resto = 0;
235
+ }
236
+ if (Resto != parseInt(strCPF.substring(9, 10)) ){
237
+ return false;
238
+ }
239
+ Soma = 0;
240
+ for (i = 1; i <= 10; i++){
241
+ Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (12 - i);
242
+ }
243
+ Resto = (Soma * 10) % 11;
244
+ if ((Resto == 10) || (Resto == 11)){
245
+ Resto = 0;
246
+ }
247
+ if (Resto != parseInt(strCPF.substring(10, 11) ) ){
248
+ return false;
249
+ }
250
+ return true;
251
+ });
252
+
253
+ Validation.add('required-entry-address', "<?php echo $form_labels['error']['FEB004']; ?>", function(v) {
254
+ return !Validation.get('IsEmpty').test(v);
255
+ });
256
+
257
+ Validation.add('required-entry-address-number', "<?php echo $form_labels['error']['FEB005']; ?>", function(v) {
258
+ return !Validation.get('IsEmpty').test(v);
259
+ });
260
+
261
+ Validation.add('required-entry-address-city', "<?php echo $form_labels['error']['FEB006']; ?>", function(v) {
262
+ return !Validation.get('IsEmpty').test(v);
263
+ });
264
+
265
+ Validation.add('required-entry-address-state', "<?php echo $form_labels['error']['FEB007']; ?>", function(v) {
266
+ return !Validation.get('IsEmpty').test(v);
267
+ });
268
+
269
+ Validation.add('required-entry-address-zipcode', "<?php echo $form_labels['error']['FEB008']; ?>", function(v) {
270
+ return !Validation.get('IsEmpty').test(v);
271
+ });
272
+ }
273
+
274
+ // Force the updating of values, when updating the html via ajax the value stays the same the first time set.
275
+ document.querySelector("#form-ticket #MPv1-firstname").value = "<?php echo $customer['firstname']?>";
276
+ document.querySelector("#form-ticket #MPv1-lastname").value = "<?php echo $customer['lastname']; ?>";
277
+ document.querySelector("#form-ticket #MPv1-address").value = "<?php echo preg_replace('/\s+/', ' ', $customer['address']); ?>";
278
+ document.querySelector("#form-ticket #MPv1-city").value = "<?php echo $customer['city']; ?>";
279
+ document.querySelector("#form-ticket #MPv1-state").value = "<?php echo $state_code[$customer['state']]['code']; ?>";
280
+ document.querySelector("#form-ticket #MPv1-zipcode").value = "<?php echo $customer['zipcode']; ?>";
281
+
282
+ function execFormat(){
283
+ v_obj= this
284
+ setTimeout(function(){
285
+ v_obj.value= formatCPF(v_obj.value)
286
+ },1)
287
+ }
288
+
289
+ function formatCPF(v){
290
+ //Remove tudo o que não é dígito
291
+ v=v.replace(/\D/g,"")
292
+
293
+ //Coloca um ponto entre o terceiro e o quarto dígitos
294
+ v=v.replace(/(\d{3})(\d)/,"$1.$2")
295
+
296
+ //Coloca um ponto entre o terceiro e o quarto dígitos
297
+ //de novo (para o segundo bloco de números)
298
+ v=v.replace(/(\d{3})(\d)/,"$1.$2")
299
+
300
+ //Coloca um hífen entre o terceiro e o quarto dígitos
301
+ v=v.replace(/(\d{3})(\d{1,2})#x2F;,"$1-$2")
302
+
303
+ return v
304
+ }
305
+
306
+ addListenerEventCustom(document.querySelector("#form-ticket #MPv1-docNumber"), 'keyup', execFormat);
307
+
308
+ function addListenerEventCustom(el, eventName, handler){
309
+ if (el.addEventListener) {
310
+ el.addEventListener(eventName, handler);
311
+ } else {
312
+ el.attachEvent('on' + eventName, function(){
313
+ handler.call(el);
314
+ });
315
+ }
316
+ };
317
+
318
+ </script>
319
+
320
+ <?php endif; ?>
321
+
322
+
323
+ <input type="hidden" class="total_amount" name="total_amount" value="<?php echo $grant_total; ?>"/>
324
+ <input type="hidden" class="amount" name="amount" value="<?php echo $grant_total; ?>"/>
325
+ <input type="hidden" class="site_id" name="payment[<?php echo $_code; ?>][site_id]" value="<?php echo strtoupper($country); ?>"/>
326
+ <input type="hidden" class="mercadopago-discount-amount" name="mercadopago-discount-amount" value="0"/>
327
+ <input type="hidden" class="mercadopago-text-currency" value="<?php echo $this->__('#x27;); ?>">
328
+ <input type="hidden" class="mercadopago-text-choice" value="<?php echo $this->__('Select'); ?>">
329
+ <input type="hidden" class="mercadopago-text-default-issuer" value="<?php echo $this->__('Default issuer'); ?>">
330
+ <input type="hidden" class="mercadopago-text-installment" value="<?php echo $this->__('Enter the card number'); ?>">
331
+ <input type="hidden" class="mercado_base_url" value="<?php echo $base_url; ?>">
332
+ <input type="hidden" class="mercado_route" value="<?php echo $route; ?>">
333
+ </li>
334
+
335
+ </ul>
336
+ </div>
337
+ <?php if ($this->getMethod()->getConfigData('communication') != ""): ?>
338
<p class="communication"><?php echo $this->getMethod()->getConfigData('communication') ?></p>
339
+ <?php endif; ?>
340
+
341
+ <?php if ($this->getMethod()->getConfigData('banner_checkout') != ""): ?>
342
+ <div id="box-banner">
343
+ <img src="<?php echo $this->getMethod()->getConfigData('banner_checkout'); ?>" class="banner_checkout_mp"/>
344
+ </div>
345
+ <?php endif; ?>
346
347
</fieldset>
app/design/frontend/base/default/template/mercadopago/onestepcheckout/custom/form.phtml CHANGED
@@ -197,7 +197,7 @@ $customer = $this->getCustomerAndCards();
197
<input type="hidden" class="mercadopago-discount-amount" name="mercadopago-discount-amount" value="0"/>
198
<input type="hidden" class="site_id" name="site_id" value="<?php echo strtoupper($country); ?>"/>
199
<input type="hidden" class="mercadopago-text-currency" value="<?php echo $this->__('#x27;); ?>">
200
- <input type="hidden" class="mercadopago-text-choice" value="<?php echo $this->__('Choice'); ?>">
201
<input type="hidden" class="mercadopago-text-default-issuer" value="<?php echo $this->__('Default issuer'); ?>">
202
<input type="hidden" class="mercadopago-text-installment" value="<?php echo $this->__('Enter the card number'); ?>">
203
<input type="hidden" class="mercado_base_url" value="<?php echo $base_url; ?>">
197
<input type="hidden" class="mercadopago-discount-amount" name="mercadopago-discount-amount" value="0"/>
198
<input type="hidden" class="site_id" name="site_id" value="<?php echo strtoupper($country); ?>"/>
199
<input type="hidden" class="mercadopago-text-currency" value="<?php echo $this->__('#x27;); ?>">
200
+ <input type="hidden" class="mercadopago-text-choice" value="<?php echo $this->__('Select'); ?>">
201
<input type="hidden" class="mercadopago-text-default-issuer" value="<?php echo $this->__('Default issuer'); ?>">
202
<input type="hidden" class="mercadopago-text-installment" value="<?php echo $this->__('Enter the card number'); ?>">
203
<input type="hidden" class="mercado_base_url" value="<?php echo $base_url; ?>">
app/design/frontend/base/default/template/mercadopago/standard/form.phtml CHANGED
@@ -1,7 +1,9 @@
1
<?php $_code = $this->getMethodCode(); ?>
2
3
<script type="text/javascript">
4
- sendAnalyticsData("<?php echo $_code ?>");
5
</script>
6
<fieldset class="conteiner-form-list">
7
<!--<link rel="stylesheet" href="<?php echo $this->getSkinUrl('mercadopago/css/style.css'); ?>" /> -->
1
<?php $_code = $this->getMethodCode(); ?>
2
3
<script type="text/javascript">
4
+ if (typeof sendAnalyticsData === 'function') {
5
+ sendAnalyticsData("<?php echo $_code ?>");
6
+ }
7
</script>
8
<fieldset class="conteiner-form-list">
9
<!--<link rel="stylesheet" href="<?php echo $this->getSkinUrl('mercadopago/css/style.css'); ?>" /> -->
app/locale/en_US/MercadoPago_Core.csv CHANGED
@@ -182,7 +182,7 @@
182
"Cancellation made by Mercado Pago","Cancellation made by Mercado Pago"
183
"Failed to make the cancellation by Mercado Pago","Failed to make the cancellation by Mercado Pago"
184
"Order payment wasn't made by Mercado Pago. The cancellation will be made through Magento", "Order payment wasn't made by Mercado Pago. The cancellation will be made through Magento"
185
- "Mercado Pago cancellation are disabled. The cancellation will be made through Magento","Mercado Pago cancellation are disabled. The cancellation will be made through Magento"
186
"You can only make cancellations on orders whose status is Processing or Pending","You can only cancel orders in status Processing or Pending"
187
"You can only make cancellations on orders whose payment status is Rejected, Pending o In Process","You can only make cancellations on orders whose payment status is Rejected, Pending o In Process"
188
"Mercado Pago - Cancellations not made","Mercado Pago - Cancellation not made"
182
"Cancellation made by Mercado Pago","Cancellation made by Mercado Pago"
183
"Failed to make the cancellation by Mercado Pago","Failed to make the cancellation by Mercado Pago"
184
"Order payment wasn't made by Mercado Pago. The cancellation will be made through Magento", "Order payment wasn't made by Mercado Pago. The cancellation will be made through Magento"
185
+ "Mercado Pago cancellation is disabled. The cancellation will be made through Magento","Mercado Pago cancellation are disabled. The cancellation will be made through Magento"
186
"You can only make cancellations on orders whose status is Processing or Pending","You can only cancel orders in status Processing or Pending"
187
"You can only make cancellations on orders whose payment status is Rejected, Pending o In Process","You can only make cancellations on orders whose payment status is Rejected, Pending o In Process"
188
"Mercado Pago - Cancellations not made","Mercado Pago - Cancellation not made"
app/locale/es_AR/MercadoPago_Core.csv CHANGED
@@ -173,14 +173,13 @@ Es un requisito que usted cuente con un certificado SSL, y que el formulario de
173
"Installments: %s","Cuotas: %s"
174
"Statement Descriptor: %s","Identificación en la Factura de la Tarjeta de Crédito: %s"
175
"Payment Id (Mercado Pago): %s","Número de Pago (Mercado Pago): %s"
176
- "Payment Status: %s (%s)","Estado del Pago: %s (%s)"
177
- "Payment Status: ","Estado del Pago: "
178
- "Payment Detail: ","Detalle del Pago: "
179
- "Mercado Pago Payment Id: %s","Id transacción Mercado Pago: %s"
180
181
182
"Mercado Pago Payment Id: %s","Id transacción Mercado Pago: %s"
183
"Payment Status: approved","Estado del Pago: Aprobado"
184
"Payment Detail: accredited","Detalle del Pago: acreditado"
185
"Payment Detail: pending_contingency","Detalle del Pago: pendiente"
186
"Payment Detail: cc_rejected_call_for_authorize","Detalle del Pago: Tarjeta de crédito rechazada. Llamar para autorizar."
@@ -191,11 +190,6 @@ Es un requisito que usted cuente con un certificado SSL, y que el formulario de
191
"Payment Detail: cc_rejected_bad_filled_date","Detalle del Pago: Tarjeta de crédito rechazada por fecha de expiración."
192
193
194
- "Payment Status: in_process", "Estado del Pago: en proceso"
195
- "Payment Status: rejected", "Estado del Pago: rechazado"
196
-
197
-
198
-
199
"Click on the link to generate the ticket","Clique en el link para mostrar el ticket de pago"
200
"Generate Ticket","Generar ticket de pago"
201
@@ -314,7 +308,7 @@ Es un requisito que usted cuente con un certificado SSL, y que el formulario de
314
"Cancellation made by Mercado Pago","Cancelación efectuada mediante Mercado Pago"
315
"Failed to make the cancellation by Mercado Pago","Error al efectuar la cancelación mediante Mercado Pago"
316
"Order payment wasn't made by Mercado Pago. The cancellation will be made through Magento","El pago de la orden no fue realizado mediante Mercado Pago. La cancelación se hará a traves de Magento."
317
- "Mercado Pago cancellation are disabled. The cancellation will be made through Magento","Las cancelaciones de Mercado Pago están deshabilitadas. La cancelación se hará a traves de Magento"
318
"You can only make cancellations on orders whose status is Processing or Pending","Solo se pueden hacer cancelaciones sobre ordenes cuyo estado sea En proceso o Pendiente"
319
"You can only make cancellations on orders whose payment status is Rejected, Pending o In Process","Solo se pueden hacer cancelaciones sobre ordenes cuyo estado de pago sea Rechazado, Pendiente o En Proceso"
320
"Mercado Pago - Cancellations not made","Mercado Pago - Cancelación no efectuada"
@@ -366,8 +360,8 @@ Es un requisito que usted cuente con un certificado SSL, y que el formulario de
366
"Amount","Importe"
367
"Remaining Amount","Importe restante"
368
"Last 3 numbers on back side.","Los últimos 3 números que están al dorso."
369
- "Choice... ","Seleccione..."
370
- "Choice","Seleccione"
371
" Total amount: ","Importe Total"
372
"Expiration Date","Fecha de vencimiento"
373
"Document","Documento"
@@ -384,7 +378,7 @@ Es un requisito que usted cuente con un certificado SSL, y que el formulario de
384
385
"Order Status Update - Cron Configuration","Chequeo del estado de las Ordenes - Configuración del Cron"
386
"Time between verifications","Tiempo entre verificaciones"
387
- "Amount of hours","Cantidad de horas"
388
- "Try to update all the orders created "amount of hours" before time to the moment to execute the cron","Verifica e intenta actualizar todas las ordenes creadas 'cantidad de horas' antes de la hora en la que se ejecuta el cron"
389
390
"The cancellation will be made through Magento. It wasn't possible to cancel on MercadoPago","La cancelación se realizó a través de Magento. No fue posible cancelarla en MercadoPago"
173
"Installments: %s","Cuotas: %s"
174
"Statement Descriptor: %s","Identificación en la Factura de la Tarjeta de Crédito: %s"
175
"Payment Id (Mercado Pago): %s","Número de Pago (Mercado Pago): %s"
176
+
177
178
179
"Mercado Pago Payment Id: %s","Id transacción Mercado Pago: %s"
180
"Payment Status: approved","Estado del Pago: Aprobado"
181
+ "Payment Status: in_process", "Estado del Pago: en proceso"
182
+ "Payment Status: rejected", "Estado del Pago: rechazado"
183
"Payment Detail: accredited","Detalle del Pago: acreditado"
184
"Payment Detail: pending_contingency","Detalle del Pago: pendiente"
185
"Payment Detail: cc_rejected_call_for_authorize","Detalle del Pago: Tarjeta de crédito rechazada. Llamar para autorizar."
190
"Payment Detail: cc_rejected_bad_filled_date","Detalle del Pago: Tarjeta de crédito rechazada por fecha de expiración."
191
192
193
"Click on the link to generate the ticket","Clique en el link para mostrar el ticket de pago"
194
"Generate Ticket","Generar ticket de pago"
195
308
"Cancellation made by Mercado Pago","Cancelación efectuada mediante Mercado Pago"
309
"Failed to make the cancellation by Mercado Pago","Error al efectuar la cancelación mediante Mercado Pago"
310
"Order payment wasn't made by Mercado Pago. The cancellation will be made through Magento","El pago de la orden no fue realizado mediante Mercado Pago. La cancelación se hará a traves de Magento."
311
+ "Mercado Pago cancellation is disabled. The cancellation will be made through Magento","Las cancelaciones de Mercado Pago están deshabilitadas. La cancelación se hará a traves de Magento"
312
"You can only make cancellations on orders whose status is Processing or Pending","Solo se pueden hacer cancelaciones sobre ordenes cuyo estado sea En proceso o Pendiente"
313
"You can only make cancellations on orders whose payment status is Rejected, Pending o In Process","Solo se pueden hacer cancelaciones sobre ordenes cuyo estado de pago sea Rechazado, Pendiente o En Proceso"
314
"Mercado Pago - Cancellations not made","Mercado Pago - Cancelación no efectuada"
360
"Amount","Importe"
361
"Remaining Amount","Importe restante"
362
"Last 3 numbers on back side.","Los últimos 3 números que están al dorso."
363
+ "Select... ","Seleccione..."
364
+ "Select","Seleccione"
365
" Total amount: ","Importe Total"
366
"Expiration Date","Fecha de vencimiento"
367
"Document","Documento"
378
379
"Order Status Update - Cron Configuration","Chequeo del estado de las Ordenes - Configuración del Cron"
380
"Time between verifications","Tiempo entre verificaciones"
381
+ "Interval","Intervalo"
382
+ "A interval is X hours before cron execution instant. Orders between this interval are updated.","Un intervalo son las X horas antes de la ejecucion del cron. Las ordenes dentro de este intervalo se actualizaran."
383
384
"The cancellation will be made through Magento. It wasn't possible to cancel on MercadoPago","La cancelación se realizó a través de Magento. No fue posible cancelarla en MercadoPago"
app/locale/es_CL/MercadoPago_Core.csv CHANGED
@@ -127,4 +127,17 @@
127
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
128
129
"Consider Discounts","Considerar descuentos"
130
- "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
127
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
128
129
"Consider Discounts","Considerar descuentos"
130
+ "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
131
+
132
+ "Mercado Pago Payment Id: %s","Id transacción Mercado Pago: %s"
133
+ "Payment Status: approved","Estado del Pago: Aprobado"
134
+ "Payment Status: in_process", "Estado del Pago: en proceso"
135
+ "Payment Status: rejected", "Estado del Pago: rechazado"
136
+ "Payment Detail: accredited","Detalle del Pago: acreditado"
137
+ "Payment Detail: pending_contingency","Detalle del Pago: pendiente"
138
+ "Payment Detail: cc_rejected_call_for_authorize","Detalle del Pago: Tarjeta de crédito rechazada. Llamar para autorizar."
139
+ "Payment Detail: cc_rejected_insufficient_amount","Detalle del Pago: Tarjeta de crédito rechazada por monto insuficiente."
140
+ "Payment Detail: cc_rejected_bad_filled_security_code","Detalle del Pago: Tarjeta de crédito rechazada por código de seguridad."
141
+ "Payment Detail: cc_rejected_bad_filled_other","Detalle del Pago: Tarjeta de crédito rechazada por error en formulario."
142
+ "Payment Detail: cc_rejected_other_reason","Detalle del Pago: Rechazo general"
143
+ "Payment Detail: cc_rejected_bad_filled_date","Detalle del Pago: Tarjeta de crédito rechazada por fecha de expiración."
app/locale/es_CO/MercadoPago_Core.csv CHANGED
@@ -139,4 +139,17 @@
139
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
140
141
"Consider Discounts","Considerar descuentos"
142
- "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
139
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
140
141
"Consider Discounts","Considerar descuentos"
142
+ "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
143
+
144
+ "Mercado Pago Payment Id: %s","Id transacción Mercado Pago: %s"
145
+ "Payment Status: approved","Estado del Pago: Aprobado"
146
+ "Payment Status: in_process", "Estado del Pago: en proceso"
147
+ "Payment Status: rejected", "Estado del Pago: rechazado"
148
+ "Payment Detail: accredited","Detalle del Pago: acreditado"
149
+ "Payment Detail: pending_contingency","Detalle del Pago: pendiente"
150
+ "Payment Detail: cc_rejected_call_for_authorize","Detalle del Pago: Tarjeta de crédito rechazada. Llamar para autorizar."
151
+ "Payment Detail: cc_rejected_insufficient_amount","Detalle del Pago: Tarjeta de crédito rechazada por monto insuficiente."
152
+ "Payment Detail: cc_rejected_bad_filled_security_code","Detalle del Pago: Tarjeta de crédito rechazada por código de seguridad."
153
+ "Payment Detail: cc_rejected_bad_filled_other","Detalle del Pago: Tarjeta de crédito rechazada por error en formulario."
154
+ "Payment Detail: cc_rejected_other_reason","Detalle del Pago: Rechazo general"
155
+ "Payment Detail: cc_rejected_bad_filled_date","Detalle del Pago: Tarjeta de crédito rechazada por fecha de expiración."
app/locale/es_ES/MercadoPago_Core.csv CHANGED
@@ -69,7 +69,6 @@
69
"Generate the ticket and pay it wherever you want.","Genere el ticket de pago y pague"
70
"Will be approved within 2 business days.","Será aprobado en hasta 2 días hábiles"
71
72
-
73
"Thank you for your purchase!","Gracias por su compra!"
74
"Your order %s has been successfully generated.","Su pedido con el numero %s fué generado con éxito."
75
"Done, your payment was accredited!","¡Listo, se acreditó tu pago!"
@@ -134,4 +133,17 @@
134
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
135
136
"Consider Discounts","Considerar descuentos"
137
- "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
69
"Generate the ticket and pay it wherever you want.","Genere el ticket de pago y pague"
70
"Will be approved within 2 business days.","Será aprobado en hasta 2 días hábiles"
71
72
"Thank you for your purchase!","Gracias por su compra!"
73
"Your order %s has been successfully generated.","Su pedido con el numero %s fué generado con éxito."
74
"Done, your payment was accredited!","¡Listo, se acreditó tu pago!"
133
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
134
135
"Consider Discounts","Considerar descuentos"
136
+ "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
137
+
138
+ "Mercado Pago Payment Id: %s","Id transacción Mercado Pago: %s"
139
+ "Payment Status: approved","Estado del Pago: Aprobado"
140
+ "Payment Status: in_process", "Estado del Pago: en proceso"
141
+ "Payment Status: rejected", "Estado del Pago: rechazado"
142
+ "Payment Detail: accredited","Detalle del Pago: acreditado"
143
+ "Payment Detail: pending_contingency","Detalle del Pago: pendiente"
144
+ "Payment Detail: cc_rejected_call_for_authorize","Detalle del Pago: Tarjeta de crédito rechazada. Llamar para autorizar."
145
+ "Payment Detail: cc_rejected_insufficient_amount","Detalle del Pago: Tarjeta de crédito rechazada por monto insuficiente."
146
+ "Payment Detail: cc_rejected_bad_filled_security_code","Detalle del Pago: Tarjeta de crédito rechazada por código de seguridad."
147
+ "Payment Detail: cc_rejected_bad_filled_other","Detalle del Pago: Tarjeta de crédito rechazada por error en formulario."
148
+ "Payment Detail: cc_rejected_other_reason","Detalle del Pago: Rechazo general"
149
+ "Payment Detail: cc_rejected_bad_filled_date","Detalle del Pago: Tarjeta de crédito rechazada por fecha de expiración."
app/locale/es_MX/MercadoPago_Core.csv CHANGED
@@ -140,4 +140,17 @@
140
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
141
142
"Consider Discounts","Considerar descuentos"
143
- "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
140
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
141
142
"Consider Discounts","Considerar descuentos"
143
+ "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
144
+
145
+ "Mercado Pago Payment Id: %s","Id transacción Mercado Pago: %s"
146
+ "Payment Status: approved","Estado del Pago: Aprobado"
147
+ "Payment Status: in_process", "Estado del Pago: en proceso"
148
+ "Payment Status: rejected", "Estado del Pago: rechazado"
149
+ "Payment Detail: accredited","Detalle del Pago: acreditado"
150
+ "Payment Detail: pending_contingency","Detalle del Pago: pendiente"
151
+ "Payment Detail: cc_rejected_call_for_authorize","Detalle del Pago: Tarjeta de crédito rechazada. Llamar para autorizar."
152
+ "Payment Detail: cc_rejected_insufficient_amount","Detalle del Pago: Tarjeta de crédito rechazada por monto insuficiente."
153
+ "Payment Detail: cc_rejected_bad_filled_security_code","Detalle del Pago: Tarjeta de crédito rechazada por código de seguridad."
154
+ "Payment Detail: cc_rejected_bad_filled_other","Detalle del Pago: Tarjeta de crédito rechazada por error en formulario."
155
+ "Payment Detail: cc_rejected_other_reason","Detalle del Pago: Rechazo general"
156
+ "Payment Detail: cc_rejected_bad_filled_date","Detalle del Pago: Tarjeta de crédito rechazada por fecha de expiración."
app/locale/es_VE/MercadoPago_Core.csv CHANGED
@@ -71,7 +71,6 @@
71
"Generate the ticket and pay it wherever you want.","Genere el ticket de pago y pague"
72
"Will be approved within 2 business days.","Será aprobado en hasta 2 días hábiles"
73
74
-
75
"Thank you for your purchase!","Gracias por su compra!"
76
"Your order %s has been successfully generated.","Su pedido con el numero %s fué generado con éxito."
77
"Done, your payment was accredited!","¡Listo, se acreditó tu pago!"
@@ -141,4 +140,17 @@
141
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
142
143
"Consider Discounts","Considerar descuentos"
144
- "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
71
"Generate the ticket and pay it wherever you want.","Genere el ticket de pago y pague"
72
"Will be approved within 2 business days.","Será aprobado en hasta 2 días hábiles"
73
74
"Thank you for your purchase!","Gracias por su compra!"
75
"Your order %s has been successfully generated.","Su pedido con el numero %s fué generado con éxito."
76
"Done, your payment was accredited!","¡Listo, se acreditó tu pago!"
140
"MercadoEnvíos - Please enable a shipping method at least","MercadoEnvíos - Por favor habilita un método de envío al menos"
141
142
"Consider Discounts","Considerar descuentos"
143
+ "Consider discount of Mercado Pago to invoicing","Considerar descuento de Mercado Pago en la facturación"
144
+
145
+ "Mercado Pago Payment Id: %s","Id transacción Mercado Pago: %s"
146
+ "Payment Status: approved","Estado del Pago: Aprobado"
147
+ "Payment Status: in_process", "Estado del Pago: en proceso"
148
+ "Payment Status: rejected", "Estado del Pago: rechazado"
149
+ "Payment Detail: accredited","Detalle del Pago: acreditado"
150
+ "Payment Detail: pending_contingency","Detalle del Pago: pendiente"
151
+ "Payment Detail: cc_rejected_call_for_authorize","Detalle del Pago: Tarjeta de crédito rechazada. Llamar para autorizar."
152
+ "Payment Detail: cc_rejected_insufficient_amount","Detalle del Pago: Tarjeta de crédito rechazada por monto insuficiente."
153
+ "Payment Detail: cc_rejected_bad_filled_security_code","Detalle del Pago: Tarjeta de crédito rechazada por código de seguridad."
154
+ "Payment Detail: cc_rejected_bad_filled_other","Detalle del Pago: Tarjeta de crédito rechazada por error en formulario."
155
+ "Payment Detail: cc_rejected_other_reason","Detalle del Pago: Rechazo general"
156
+ "Payment Detail: cc_rejected_bad_filled_date","Detalle del Pago: Tarjeta de crédito rechazada por fecha de expiración."
js/mercadopago/mercadopago.js CHANGED
@@ -68,6 +68,7 @@ var MercadoPagoCustom = (function () {
68
mercadopagoCustom: 'mercadopago_custom',
69
validateDiscount: 'validate-discount',
70
validateDocNumber: 'mp-validate-docnumber',
71
validateCC: 'mp-validate-cc-exp',
72
invalidCoupon: 'invalid_coupon',
73
cost: 'cost',
@@ -111,6 +112,7 @@ var MercadoPagoCustom = (function () {
111
paymentMethodSelect: '#mercadopago_checkout_custom #paymentMethod',
112
paymentMethodId: '#mercadopago_checkout_custom .payment_method_id',
113
paymenMethodNotFound: '.error-payment-method-not-found',
114
mercadoPagoTextChoice: '#mercadopago_checkout_custom .mercadopago-text-choice',
115
errorMethodMinAmount: '.error-payment-method-min-amount',
116
textDefaultIssuer: '#mercadopago_checkout_custom .mercadopago-text-default-issuer',
@@ -120,11 +122,13 @@ var MercadoPagoCustom = (function () {
120
baseUrl: '.mercado_base_url',
121
loading: '#mercadopago-loading',
122
messageError: '.message-error',
123
customDiscountAmount: '#mercadopago_checkout_custom .mercadopago-discount-amount',
124
discountAmount: '.mercadopago-discount-amount',
125
token: '#mercadopago_checkout_custom .token',
126
- errorFormat: '#mercadopago_checkout_custom .error-{0}',
127
- errorFormatSecondCard: '#second_card_mercadopago_checkout_custom .error-{0}',
128
couponActionApply: '.mercadopago-coupon-action-apply',
129
couponActionRemove: '.mercadopago-coupon-action-remove',
130
ticketActionApply: '#mercadopago_checkout_custom_ticket .mercadopago-coupon-action-apply',
@@ -147,6 +151,8 @@ var MercadoPagoCustom = (function () {
147
firstCardAmount: '#first_card_amount',
148
secondCardAmount: '#second_card_amount',
149
firstCardAmountFields:'#first_card_amount_fields',
150
secondCardReturnToCardList: '#second_card_return_list_card_mp',
151
secondCardCustomCard: '#second_card_mercadopago_checkout_custom_card',
152
secondCardUseOtherCard: '#second_card_use_other_card_mp',
@@ -177,7 +183,8 @@ var MercadoPagoCustom = (function () {
177
firstCardTotalBuy: ".total_buy",
178
secondCardTotalBuy: ".second_card_total_buy",
179
secondCardPayment: "#second_card_payment",
180
- paymentMethodSelectSecondCard: '#second_card_paymentMethod'
181
182
},
183
url: {
@@ -297,6 +304,8 @@ var MercadoPagoCustom = (function () {
297
return checkDocNumber(v);
298
});
299
300
Validation.add(self.constants.validateCC, self.messages.incorrectExpDate, function (v, element) {
301
var ccExpMonth = v;
302
var ccExpYear = TinyJ(self.selectors.cardExpYear).val();
@@ -1150,7 +1159,7 @@ var MercadoPagoCustom = (function () {
1150
1151
} else {
1152
1153
- showMessageErrorForm(self.selectors.paymenMethodNotFound);
1154
1155
}
1156
@@ -1258,7 +1267,7 @@ var MercadoPagoCustom = (function () {
1258
1259
showLogMercadoPago(self.messages.getInstallment);
1260
1261
- hideMessageError();
1262
showLoading();
1263
1264
var route = TinyJ(self.selectors.mercadoRoute).val();
@@ -1318,7 +1327,7 @@ var MercadoPagoCustom = (function () {
1318
1319
function getInstallmentsSecondCard(options) {
1320
1321
- hideMessageError();
1322
showLoading();
1323
1324
var route = TinyJ(self.selectors.mercadoRoute).val();
@@ -1460,42 +1469,26 @@ var MercadoPagoCustom = (function () {
1460
}
1461
selectorInstallments.enable();
1462
} else {
1463
- showMessageErrorForm(self.selectors.paymenMethodNotFound);
1464
}
1465
}
1466
1467
1468
- function releaseEventCreateCardToken() {
1469
showLogMercadoPago(self.messages.releaseCardTokenEvent);
1470
1471
var dataCheckout = TinyJ(self.selectors.dataCheckout);
1472
- var dataCheckoutSecondCard = TinyJ(self.selectors.dataCheckoutSecondCard);
1473
1474
if (Array.isArray(dataCheckout)) {
1475
for (var x = 0; x < dataCheckout.length; x++) {
1476
- if ((dataCheckout[x].getElem().id).indexOf("second") >= 0) {
1477
- dataCheckout[x].focusout(checkCreateCardTokenSecondCard);
1478
- dataCheckout[x].change(checkCreateCardTokenSecondCard);
1479
- } else {
1480
dataCheckout[x].focusout(checkCreateCardToken);
1481
dataCheckout[x].change(checkCreateCardToken);
1482
- }
1483
}
1484
} else {
1485
dataCheckout.focusout(checkCreateCardToken);
1486
dataCheckout.change(checkCreateCardToken);
1487
}
1488
1489
- if (Array.isArray(dataCheckoutSecondCard)) {
1490
- for (var y = 0; y < dataCheckoutSecondCard.length; y++) {
1491
- //dataCheckoutSecondCard[y].focusout(checkCreateCardTokenSecondCard);
1492
- //dataCheckoutSecondCard[y].change(checkCreateCardTokenSecondCard);
1493
- }
1494
- } else {
1495
- //dataCheckoutSecondCard.focusout(checkCreateCardTokenSecondCard);
1496
- //dataCheckoutSecondCard.change(checkCreateCardTokenSecondCard);
1497
- }
1498
-
1499
}
1500
1501
function checkCreateCardToken() {
@@ -1527,6 +1520,10 @@ var MercadoPagoCustom = (function () {
1527
console.log(TinyJ(selector).getElem());
1528
Mercadopago.createToken(TinyJ(selector).getElem(), sdkResponseHandler);
1529
}
1530
}
1531
1532
function checkCreateCardTokenSecondCard() {
@@ -1566,7 +1563,7 @@ var MercadoPagoCustom = (function () {
1566
showLogMercadoPago(response);
1567
1568
//hide all errors
1569
- hideMessageError();
1570
hideLoading();
1571
1572
if (status == http.status.OK || status == http.status.CREATED) {
@@ -1589,7 +1586,7 @@ var MercadoPagoCustom = (function () {
1589
showLogMercadoPago(status);
1590
showLogMercadoPago(response);
1591
//hide all errors
1592
- hideMessageError();
1593
hideLoading();
1594
1595
if (status == http.status.OK || status == http.status.CREATED) {
@@ -1608,9 +1605,10 @@ var MercadoPagoCustom = (function () {
1608
};
1609
1610
1611
- function hideMessageError() {
1612
showLogMercadoPago(self.messages.hideErrors);
1613
- var allMessageErrors = TinyJ(self.selectors.messageError);
1614
if (Array.isArray(allMessageErrors)) {
1615
for (var x = 0; x < allMessageErrors.length; x++) {
1616
allMessageErrors[x].hide();
@@ -1635,6 +1633,25 @@ var MercadoPagoCustom = (function () {
1635
1636
}
1637
1638
function showLoading() {
1639
showLogMercadoPago(self.messages.showLoading);
1640
TinyJ(self.selectors.loading).show();
68
mercadopagoCustom: 'mercadopago_custom',
69
validateDiscount: 'validate-discount',
70
validateDocNumber: 'mp-validate-docnumber',
71
+ validateCardNumber: 'mp-validate-cardnumber',
72
validateCC: 'mp-validate-cc-exp',
73
invalidCoupon: 'invalid_coupon',
74
cost: 'cost',
112
paymentMethodSelect: '#mercadopago_checkout_custom #paymentMethod',
113
paymentMethodId: '#mercadopago_checkout_custom .payment_method_id',
114
paymenMethodNotFound: '.error-payment-method-not-found',
115
+ secondCardPaymenMethodNotFound: '.second_card_error-payment-method-not-found',
116
mercadoPagoTextChoice: '#mercadopago_checkout_custom .mercadopago-text-choice',
117
errorMethodMinAmount: '.error-payment-method-min-amount',
118
textDefaultIssuer: '#mercadopago_checkout_custom .mercadopago-text-default-issuer',
122
baseUrl: '.mercado_base_url',
123
loading: '#mercadopago-loading',
124
messageError: '.message-error',
125
+ messageErrorSecond: 'message-error-second',
126
+ messageErrorFirst: 'message-error-first',
127
customDiscountAmount: '#mercadopago_checkout_custom .mercadopago-discount-amount',
128
discountAmount: '.mercadopago-discount-amount',
129
token: '#mercadopago_checkout_custom .token',
130
+ errorFormat: '.first-card .error-{0}',
131
+ errorFormatSecondCard: '#mercadopago_checkout_custom_second_card .error-{0}',
132
couponActionApply: '.mercadopago-coupon-action-apply',
133
couponActionRemove: '.mercadopago-coupon-action-remove',
134
ticketActionApply: '#mercadopago_checkout_custom_ticket .mercadopago-coupon-action-apply',
151
firstCardAmount: '#first_card_amount',
152
secondCardAmount: '#second_card_amount',
153
firstCardAmountFields:'#first_card_amount_fields',
154
+ firstCardErrors: '.first-card .message-error',
155
+
156
secondCardReturnToCardList: '#second_card_return_list_card_mp',
157
secondCardCustomCard: '#second_card_mercadopago_checkout_custom_card',
158
secondCardUseOtherCard: '#second_card_use_other_card_mp',
183
firstCardTotalBuy: ".total_buy",
184
secondCardTotalBuy: ".second_card_total_buy",
185
secondCardPayment: "#second_card_payment",
186
+ paymentMethodSelectSecondCard: '#second_card_paymentMethod',
187
+ secondCardErrors: '#mercadopago_checkout_custom_second_card .message-error'
188
189
},
190
url: {
304
return checkDocNumber(v);
305
});
306
307
+ Validation.add('co-payment-form', ' ', formHasErrors);
308
+
309
Validation.add(self.constants.validateCC, self.messages.incorrectExpDate, function (v, element) {
310
var ccExpMonth = v;
311
var ccExpYear = TinyJ(self.selectors.cardExpYear).val();
1159
1160
} else {
1161
1162
+ showMessageErrorForm(self.selectors.secondCardPaymenMethodNotFound);
1163
1164
}
1165
1267
1268
showLogMercadoPago(self.messages.getInstallment);
1269
1270
+ //hideMessageError();
1271
showLoading();
1272
1273
var route = TinyJ(self.selectors.mercadoRoute).val();
1327
1328
function getInstallmentsSecondCard(options) {
1329
1330
+ //hideMessageError();
1331
showLoading();
1332
1333
var route = TinyJ(self.selectors.mercadoRoute).val();
1469
}
1470
selectorInstallments.enable();
1471
} else {
1472
+ showMessageErrorForm(self.selectors.secondCardPaymenMethodNotFound);
1473
}
1474
}
1475
1476
1477
+ function releaseEventCreateCardToken() {
1478
showLogMercadoPago(self.messages.releaseCardTokenEvent);
1479
1480
var dataCheckout = TinyJ(self.selectors.dataCheckout);
1481
1482
if (Array.isArray(dataCheckout)) {
1483
for (var x = 0; x < dataCheckout.length; x++) {
1484
dataCheckout[x].focusout(checkCreateCardToken);
1485
dataCheckout[x].change(checkCreateCardToken);
1486
}
1487
} else {
1488
dataCheckout.focusout(checkCreateCardToken);
1489
dataCheckout.change(checkCreateCardToken);
1490
}
1491
1492
}
1493
1494
function checkCreateCardToken() {
1520
console.log(TinyJ(selector).getElem());
1521
Mercadopago.createToken(TinyJ(selector).getElem(), sdkResponseHandler);
1522
}
1523
+
1524
+ if (isSecondCardUsed) {
1525
+ checkCreateCardTokenSecondCard();
1526
+ }
1527
}
1528
1529
function checkCreateCardTokenSecondCard() {
1563
showLogMercadoPago(response);
1564
1565
//hide all errors
1566
+ hideMessageError(self.selectors.firstCardErrors);
1567
hideLoading();
1568
1569
if (status == http.status.OK || status == http.status.CREATED) {
1586
showLogMercadoPago(status);
1587
showLogMercadoPago(response);
1588
//hide all errors
1589
+ hideMessageError(self.selectors.secondCardErrors);
1590
hideLoading();
1591
1592
if (status == http.status.OK || status == http.status.CREATED) {
1605
};
1606
1607
1608
+ function hideMessageError(selector) {
1609
+ selector = selector || self.selectors.messageError;
1610
showLogMercadoPago(self.messages.hideErrors);
1611
+ var allMessageErrors = TinyJ(selector);
1612
if (Array.isArray(allMessageErrors)) {
1613
for (var x = 0; x < allMessageErrors.length; x++) {
1614
allMessageErrors[x].hide();
1633
1634
}
1635
1636
+ function formHasErrors() {
1637
+ console.log('checking errors...');
1638
+ var allMessageErrors = jQuery('p.message-error');
1639
+ if (allMessageErrors.length > 1) {
1640
+ for (var x = 0; x < allMessageErrors.length; x++) {
1641
+ if (jQuery(allMessageErrors[x]).css('display') !== 'none') {
1642
+ return false;
1643
+ }
1644
+ }
1645
+ } else {
1646
+ if (jQuery(allMessageErrors).css('display') !== 'none') {
1647
+ alert('Form has errors');
1648
+ return false;
1649
+ }
1650
+ }
1651
+
1652
+ return true;
1653
+ }
1654
+
1655
function showLoading() {
1656
showLogMercadoPago(self.messages.showLoading);
1657
TinyJ(self.selectors.loading).show();
package.xml CHANGED
@@ -1,169 +1,36 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>MercadoPagoTransparent</name>
4
- <version>2.7.6</version>
5
<stability>stable</stability>
6
- <license>OSL</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>MercadoPago payment extension for Magento: receive payments with our customizable checkout</summary>
10
- <description>&lt;b&gt;Credit Card Customized Checkout&lt;/b&gt;&#xD;
11
&#xD;
12
- &lt;p&gt;&#xD;
13
- This feature will allow merchants to have a customized checkout for credit card payment. Thus, it will be possible to customize its look and feel, customers won&#x2019;t be redirected away to complete the payment, and it will also reduce the checkout steps improving conversion rates.&#xD;
14
- &lt;/p&gt;&#xD;
15
- &lt;p&gt;&#xD;
16
- Available for &lt;i&gt;Argentina&lt;/i&gt;, &lt;i&gt;Brazil&lt;/i&gt;, &lt;i&gt;Colombia&lt;/i&gt;, &lt;i&gt;Mexico&lt;/i&gt; and &lt;i&gt;Venezuela&lt;/i&gt;&#xD;
17
- &lt;/p&gt;&#xD;
18
&#xD;
19
- &lt;b&gt;Customized Bar Code Payment&lt;/b&gt;&#xD;
20
&#xD;
21
- &lt;p&gt;&#xD;
22
- This feature allows merchants to have a customized bar code payment. It reduces the checkout steps improving conversion rates. The bar code payment will have merchant's logo.&#xD;
23
- &lt;/p&gt;&#xD;
24
- &lt;p&gt;&#xD;
25
- Available for &lt;i&gt;Argentina&lt;/i&gt;, &lt;i&gt;Brazil&lt;/i&gt;, &lt;i&gt;Colombia&lt;/i&gt;, &lt;i&gt;Mexico&lt;/i&gt; and &lt;i&gt;Venezuela&lt;/i&gt;&#xD;
26
- &lt;/p&gt;&#xD;
27
&#xD;
28
- &lt;b&gt;Standard Checkout&lt;/b&gt;&#xD;
29
&#xD;
30
- &lt;p&gt;&#xD;
31
- This feature allows merchants to have a standard checkout. It includes all payment methods (i.e. all credit cards, bar code payment, account money) and all window types (i.e. redirect, iframe, modal, blank and popup). Customization is not allowed.&#xD;
32
- &lt;/p&gt;&#xD;
33
- &lt;p&gt;&#xD;
34
- Available for &lt;i&gt;Argentina&lt;/i&gt;, &lt;i&gt;Brazil&lt;/i&gt;, &lt;i&gt;Chile&lt;/i&gt;, &lt;i&gt;Colombia&lt;/i&gt;, &lt;i&gt;Mexico&lt;/i&gt; and &lt;i&gt;Venezuela&lt;/i&gt;&#xD;
35
- &lt;/p&gt;&#xD;
36
&#xD;
37
- &lt;b&gt;OneClick Pay&lt;/b&gt;&#xD;
38
- &#xD;
39
- &lt;p&gt;&#xD;
40
- This feature allows to store credit card information for the customer, so that the next time there is no need to enter all the card details. Customers will just need to re-enter the security code of the credit card they want to use.&#xD;
41
- &lt;/p&gt;&#xD;
42
- &#xD;
43
- &lt;b&gt; Compatibility with OSC extensions &lt;/b&gt;&#xD;
44
- &lt;p&gt;&#xD;
45
- This feature allows easy integration with two of the most used One Step Checkout extensions in the market: &lt;br /&gt;&lt;br /&gt;&#xD;
46
- &#xD;
47
- - Inovarti OSC&lt;br /&gt;&#xD;
48
- - Idecheckoutvm&lt;br /&gt;&#xD;
49
- &lt;/p&gt;&#xD;
50
- &#xD;
51
- &lt;b&gt;Shipment integration&lt;/b&gt;&#xD;
52
- &lt;p&gt;&#xD;
53
- This feature allows to setup and integrate with MercadoEnvios shipment method as another shipment option for customers. It includes the possibility to print the shipping label directly from the Magento Admin Panel. Free shipping is also available.&#xD;
54
- &lt;/p&gt;&#xD;
55
- &lt;p&gt;&#xD;
56
- Available for &lt;i&gt;Argentina&lt;/i&gt;, &lt;i&gt;Brazil&lt;/i&gt; and &lt;i&gt;Mexico&lt;/i&gt; only with &lt;u&gt;Standard Checkout&lt;/u&gt;&#xD;
57
- &lt;/p&gt;&#xD;
58
- &#xD;
59
- &lt;b&gt;Setup MercadoPago&lt;/b&gt;&#xD;
60
- &lt;ol&gt;&#xD;
61
- &lt;li&gt;Go to System &gt; Configuration &gt; Sales &gt; Payment Methods. Select Mercado Pago - Global Configuration.&lt;/li&gt;&#xD;
62
- &#xD;
63
- &lt;li&gt;Set your Country to the same where your account was created on, and save config. Note: If you change the Country where your account was created you need save configuration in order to refresh the excluded payment methods.&lt;/li&gt;&#xD;
64
- &#xD;
65
- &lt;li&gt;Other general configurations: &lt;br /&gt;&#xD;
66
- &lt;b&gt;Category of your store&lt;/b&gt;: Sets up the category of the store.&lt;br /&gt;&#xD;
67
- &lt;b&gt;Choose the status of approved orders&lt;/b&gt;: Sets up the order status when payments are approved.&lt;br /&gt;&#xD;
68
- &lt;b&gt;Choose the status of refunded orders&lt;/b&gt;: Sets up the order status when payments are refunded.&lt;br /&gt;&#xD;
69
- &lt;b&gt;Choose the status when payment is pending&lt;/b&gt;: Sets up the order status when payments are pending.&lt;br /&gt;&#xD;
70
- &lt;b&gt;Choose the status when client open a mediation&lt;/b&gt;: Sets up the order status when client opens a mediation.&lt;br /&gt;&#xD;
71
- &lt;b&gt;Choose the status when payment was reject&lt;/b&gt;: Sets up the order status when payments are rejected.&lt;br /&gt;&#xD;
72
- &lt;b&gt;Choose the status when payment was canceled&lt;/b&gt;: Sets up the order status when payments are canceled.&lt;br /&gt;&#xD;
73
- &lt;b&gt;Choose the status when payment was chargeback&lt;/b&gt;: Sets up the order status when payments are chargeback.&lt;br /&gt;&#xD;
74
- &lt;b&gt;Logs&lt;/b&gt;: Enables/disables system logs.&lt;br /&gt;&#xD;
75
- &lt;b&gt;Debug Mode&lt;/b&gt;: If enabled, displays the raw response from the API instead of a friendly message.&lt;br /&gt;&#xD;
76
- &lt;b&gt;Onestepcheckout Active&lt;/b&gt; (Only available if MercadoPago_OneStepCheckout Module is installed): Enables/disables compatibility with one step checkout modules.&lt;br /&gt;&#xD;
77
- &lt;/li&gt;&#xD;
78
- &lt;/ol&gt;&#xD;
79
- &#xD;
80
- &#xD;
81
- &lt;b&gt;Custom Checkout Payment Solution&lt;/b&gt;&#xD;
82
- &lt;ol&gt;&#xD;
83
- &lt;li&gt;Go to System &gt; Configuration &gt; Sales &gt; Payment Methods. Select Mercado Pago - Custom Checkout. &lt;/li&gt;&#xD;
84
- &lt;li&gt;Set your Public Key and Access Token.&#x2028; In order to get them check the following links according to the country you are opperating in:&lt;br /&gt;&#xD;
85
- Argentina: &lt;a href="https://www.mercadopago.com/mla/account/credentials"&gt;https://www.mercadopago.com/mla/account/credentials&lt;/a&gt;&lt;br /&gt;&#xD;
86
- Brazil: &lt;a href="https://www.mercadopago.com/mlb/account/credentials"&gt;https://www.mercadopago.com/mlb/account/credentials&lt;/a&gt;&lt;br /&gt;&#xD;
87
- Chile: &lt;a href="https://www.mercadopago.com/mlc/account/credentials"&gt;https://www.mercadopago.com/mlc/account/credentials&lt;/a&gt;&lt;br /&gt;&#xD;
88
- Colombia: &lt;a href="https://www.mercadopago.com/mco/account/credentials"&gt;https://www.mercadopago.com/mco/herramientas/aplicaciones&lt;/a&gt;&lt;br /&gt;&#xD;
89
- exico: &lt;a href="https://www.mercadopago.com/mlm/account/credentials"&gt;https://www.mercadopago.com/mlm/account/credentials&lt;/a&gt;&lt;br /&gt;&#xD;
90
- Venezuela: &lt;a href="https://www.mercadopago.com/mlv/account/credentials"&gt;https://www.mercadopago.com/mlv/account/credentials&lt;/a&gt;&lt;br /&gt;&#xD;
91
- &lt;/li&gt;&#xD;
92
- &lt;/ol&gt;&#xD;
93
- &#xD;
94
- &lt;p&gt;&#xD;
95
- If you want to enable credit card solution, check the configurations under Checkout Custom - Credit Card: &lt;br /&gt;&lt;br /&gt;&#xD;
96
- &lt;b&gt;Enabled&lt;/b&gt;: Enables/disables this payment solution.&lt;br /&gt;&#xD;
97
- &lt;b&gt;Payment Title&lt;/b&gt;: Sets the payment title.&lt;br /&gt;&#xD;
98
- &lt;b&gt;Statement Descriptor&lt;/b&gt;: Sets the label as the customer will see the charge for amount in his/her bill.&lt;br /&gt;&#xD;
99
- &lt;b&gt;Binary Mode&lt;/b&gt;: When set to true, the payment can only be approved or rejected. Otherwise in_process status is added.&lt;br /&gt;&#xD;
100
- &lt;b&gt;Banner Checkout&lt;/b&gt;: Sets the URL for the banner image in the payment method selection in the checkout process.&lt;br /&gt;&#xD;
101
- &lt;b&gt;Checkout Position&lt;/b&gt;: The position of the payment solution in the checkout process.&lt;br /&gt;&#xD;
102
- &lt;b&gt;Marketing - Coupon Mercado Pago&lt;/b&gt;: Enables/disables the coupon form.&lt;br /&gt;&#xD;
103
- &lt;/p&gt;&#xD;
104
- &#xD;
105
- &lt;p&gt;&#xD;
106
- If you want to enable ticket solution, check the configurations under Checkout Custom - Ticket:&lt;br /&gt;&lt;br /&gt;&#xD;
107
- &lt;b&gt;Enabled&lt;/b&gt;: Enables/disables this payment solution.&lt;br /&gt;&#xD;
108
- &lt;b&gt;Payment Title&lt;/b&gt;: Sets the payment title.&lt;br /&gt;&#xD;
109
- &lt;b&gt;Banner Checkout&lt;/b&gt;: Sets the URL for the banner image in the payment method selection in the checkout process.&lt;br /&gt;&#xD;
110
- &lt;b&gt;Checkout Position&lt;/b&gt;: The position of the payment solution in the checkout process.&lt;br /&gt;&#xD;
111
- &lt;b&gt;Marketing - Coupon Mercado Pago&lt;/b&gt;: Enables/disables the coupon form.&lt;br /&gt;&#xD;
112
- &lt;/p&gt;&#xD;
113
- &#xD;
114
- &lt;b&gt;Standard Checkout Payment Solution&lt;/b&gt;&#xD;
115
- &#xD;
116
- &lt;ol&gt;&#xD;
117
- &lt;li&gt;Go to System &gt; Configuration &gt; Sales &gt; Payment Methods. Select Mercado Pago - Classic Checkout.Go to System &gt; Configuration &gt; Sales &gt; Payment Methods. Select Mercado Pago - Classic Checkout.&lt;/li&gt;&#xD;
118
- &lt;li&gt;&#xD;
119
- Enable the solution and set your Client Id and Client Secret. Get them in the following address: &#xD;
120
- Argentina: &lt;a href="https://www.mercadopago.com/mla/herramientas/aplicaciones"&gt;https://www.mercadopago.com/mla/herramientas/aplicaciones&lt;/a&gt;&lt;br /&gt;&#xD;
121
- Brazil: &lt;a href="https://www.mercadopago.com/mlb/ferramentas/aplicacoes"&gt;https://www.mercadopago.com/mlb/ferramentas/aplicacoes&lt;/a&gt;&lt;br /&gt;&#xD;
122
- Chile: &lt;a href="https://www.mercadopago.com/mlc/herramientas/aplicaciones"&gt;https://www.mercadopago.com/mlc/herramientas/aplicaciones&lt;/a&gt;&lt;br /&gt;&#xD;
123
- Colombia: &lt;a href="https://www.mercadopago.com/mco/herramientas/aplicaciones"&gt;https://www.mercadopago.com/mco/herramientas/aplicaciones&lt;/a&gt;&lt;br /&gt;&#xD;
124
- Mexico: &lt;a href="https://www.mercadopago.com/mlm/herramientas/aplicaciones"&gt;https://www.mercadopago.com/mlm/herramientas/aplicaciones&lt;/a&gt;&lt;br /&gt;&#xD;
125
- Venezuela: &lt;a href="https://www.mercadopago.com/mlv/herramientas/aplicaciones"&gt;https://www.mercadopago.com/mlv/herramientas/aplicaciones&lt;/a&gt;&lt;br /&gt;&#xD;
126
- &lt;/li&gt;&#xD;
127
- &lt;li&gt;&#xD;
128
- Check the additional configurations: &lt;br /&gt;&#xD;
129
- &lt;b&gt;Payment Title&lt;/b&gt;: Sets the payment title.&lt;br /&gt;&#xD;
130
- &lt;b&gt;Banner Checkout&lt;/b&gt;: Sets the URL for the banner image in the payment method selection in the checkout process.&lt;br /&gt;&#xD;
131
- &lt;b&gt;Checkout Position&lt;/b&gt;: The position of the payment solution in the checkout process.&lt;br /&gt;&#xD;
132
- &lt;b&gt;Type Checkout&lt;/b&gt;: Sets the type of checkout, the options are:&lt;br /&gt;&#xD;
133
- &lt;i&gt;Iframe&lt;/i&gt;: Opens a Magento URL with a iframe as the content.&lt;br /&gt;&#xD;
134
- &lt;i&gt;Redirect&lt;/i&gt;: Redirects to Mercado Pago URL.&lt;br /&gt;&#xD;
135
- &lt;i&gt;Lightbox&lt;/i&gt;: Similar to Iframe option but opens a lightbox instead of an iframe. &lt;br /&gt;&#xD;
136
- &lt;/li&gt;&#xD;
137
- &lt;/ol&gt;&#xD;
138
- &#xD;
139
- &#xD;
140
- &lt;b&gt;MercadoEnvios&lt;/b&gt;&#xD;
141
- &#xD;
142
- &lt;p&gt;In order to setup MercadoEnvios follow these instructions: &#xD;
143
- &lt;ol&gt;&#xD;
144
- &lt;li&gt;Setup MercadoPago Standard Checkout. &lt;/li&gt;&#xD;
145
- &lt;li&gt;Go to System &gt; Configuration &gt; Sales &gt; Shipping Methods &gt; MercadoEnvios. &lt;/li&gt;&#xD;
146
- &lt;li&gt;&#xD;
147
- Setup the plugin: &lt;br /&gt;&#xD;
148
- &lt;b&gt;Enabled&lt;/b&gt;: Enables/disables this MercadoEnvios solution.&lt;br /&gt;&#xD;
149
- &lt;b&gt;Title&lt;/b&gt;: Sets up the shipping method label displayed in the shipping section in checkout process.&lt;br /&gt;&#xD;
150
- &lt;b&gt;Product attributes mapping&lt;/b&gt;: Maps the system attributes with the dimensions and weight. Also allows to set up the attribute unit.&lt;br /&gt;&#xD;
151
- &lt;b&gt;Available shipping methods&lt;/b&gt;: Sets up the shipping options visible in the checkout process.&lt;br /&gt;&#xD;
152
- &lt;b&gt;Free Method&lt;/b&gt;: Sets up the method to use as free shipping.&lt;br /&gt;&#xD;
153
- &lt;b&gt;Free Shipping with Minimum Order Amount&lt;/b&gt;: Enables/disables the order minimum for free shipping to be available.&lt;br /&gt;&#xD;
154
- &lt;b&gt;Show method if not applicable&lt;/b&gt;: If enabled, the shipping method is displayed when it's not available.&lt;br /&gt;&#xD;
155
- &lt;b&gt;Displayed Error Message&lt;/b&gt;: Sets up the text to be displayed when the shipping method is not available.&lt;br /&gt;&#xD;
156
- &lt;b&gt;Debug Mode&lt;/b&gt;: If enabled, displays the raw response from the API instead of a friendly message.&lt;br /&gt;&#xD;
157
- &lt;b&gt;Sort order&lt;/b&gt;: Sets up the sort order to be displayed in the shipping step in checkout process.&lt;br /&gt;&#xD;
158
- &lt;/li&gt;&#xD;
159
- &lt;/ol&gt;&#xD;
160
- &lt;/p&gt;&#xD;
161
- </description>
162
- <notes>Updated php version compatibility</notes>
163
- <authors><author><name>MercadoPago</name><user>MercadoPago</user><email>developer@mercadopago.com.br</email></author></authors>
164
- <date>2017-06-07</date>
165
- <time>18:05:33</time>
166
- <contents><target name="magecommunity"><dir name="MercadoPago"><dir><dir name="Core"><dir name="Block"><file name="AbstractForm.php" hash="37bbd650b14574dee9f1296bf67ffd10"/><file name="AbstractSuccess.php" hash="6aa920d8b886d22410f50b9625847699"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="5ecbfb51b488a3e3211dfaec5d8c0efe"/></dir></dir></dir></dir><dir name="Analytics"><file name="AfterCheckout.php" hash="450b2a0f3cea4504a93f9c52ebf21659"/><file name="Checkout.php" hash="e77bd0dd16bdc91d63dc49525645f436"/></dir><dir name="Calculator"><file name="CalculatorForm.php" hash="18025dc69fd9aae6226b22f551f7220c"/><file name="CalculatorLink.php" hash="bd5c57db8de7e29c3b9ff89be5b0a08d"/></dir><dir name="Custom"><file name="Form.php" hash="733c5dccf752493b9fe24938433ff9fd"/><file name="Info.php" hash="51771218b04b7a41d83adec76e393311"/><file name="Success.php" hash="2ab918e6b2415018d780b1a58d5b6d04"/></dir><dir name="Customticket"><file name="Form.php" hash="84fdf10e464cebbc89f5204f15d68f94"/><file name="Info.php" hash="f23e8a204e431e95a7bb0e9b409c1df4"/><file name="Success.php" hash="325fc24f1c0d220a95abe238ec583ee5"/></dir><file name="Discount.php" hash="a17b7f08dd57c31d27e57b3acbe03188"/><dir name="Recurring"><file name="Form.php" hash="92fd8e52f8cf52ea40d7a500d16c0286"/><file name="Info.php" hash="bad1e825f1dccbabf8802539fcbd180c"/><file name="Pay.php" hash="33d1cb94bd944f11cf9c8e217086057b"/><file name="Success.php" hash="e069c3c6be1bf2f15b5192dee0d95e44"/></dir><dir name="Sales"><dir name="Order"><dir name="Totals"><dir name="Discount"><file name="Coupon.php" hash="a2d6ce9b14d91481e55dbcac1bb111e7"/></dir><dir name="Finance"><file name="Cost.php" hash="7cf8b32dfb95d965b7f2c14973267311"/></dir></dir></dir></dir><dir name="Standard"><file name="Form.php" hash="e6845e293d0c0ca1a6ac04acf79edd1e"/><file name="Info.php" hash="db81d01579b66fbd8251883967768320"/><file name="Pay.php" hash="8ebb3cd8ef5df082343cfe33eadf17e0"/><file name="Success.php" hash="409dd3e16db4ebd5bd22599b7271062c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="4bc78d1b6f70b5a7e177ce9ed2f8e536"/><dir name="Message"><file name="Abstract.php" hash="1f4f37e4a2cd0d1a18dff6f3e96ca84d"/></dir><file name="Response.php" hash="3b4cb87e25993ba952b100751aadd9ce"/><file name="StatusDetailMessage.php" hash="f56549a427452d4e67351274032885db"/><file name="StatusMessage.php" hash="3a7860b8dc843f8f9620852113fc5093"/><file name="StatusOrderMessage.php" hash="f17c394be7b8a795ee05342109c93fe4"/><file name="StatusUpdate.php" hash="646c4f57215a0b3e04ebfc833040e775"/><file name="Validate.php" hash="fbd97ce0c5db7fd7fe0e088610792198"/></dir><dir name="Model"><dir name="Api"><file name="Exception.php" hash="8093747fa6e2244c3f59a188911d47c3"/><dir name="V0"><file name="Exception.php" hash="026642775cab4873176aaf28493a9159"/></dir><dir name="V1"><file name="Exception.php" hash="022c7e5ff52d04a91990bdb230f97e73"/></dir></dir><file name="Core.php" hash="f8df8d24d945571169b4357b5eb07946"/><dir name="Cron"><file name="Order.php" hash="afa501b5c0b2962fd3dd2a5c1e724e3f"/></dir><dir name="Custom"><dir name="Finance"><dir name="Cost"><file name="Creditmemo.php" hash="4e75bb8d2c34e9758a27d9e9db3f6b36"/><file name="Invoice.php" hash="d8123b798f25c119739b9ac16817619c"/></dir><file name="Cost.php" hash="9fab08c5253d19b4106ef9070580f42e"/></dir><file name="Payment.php" hash="788712afd6508e5d29b489b6727ed89a"/></dir><file name="CustomPayment.php" hash="bc92b4a75716d1fab5c30ae2240c127d"/><dir name="CustomTicket"><file name="Payment.php" hash="f5f26b99096cdd7cb24e8eee7f098f3d"/></dir><dir name="Discount"><dir name="Coupon"><file name="Creditmemo.php" hash="87dc7aaac390633ddf87c27e3d097130"/><file name="Invoice.php" hash="a586d210a2b8b57a8dffe9fdb69b5363"/></dir><file name="Coupon.php" hash="54d8cbfb2fd73db87fbe3f93e483a8d8"/></dir><file name="Observer.php" hash="a2454b8b82a3a4e55f27e4faccfde9b0"/><dir name="Recurring"><file name="Payment.php" hash="372ffa6bec87328e9642602e1ee062da"/></dir><dir name="Source"><file name="CategoryId.php" hash="5728ee8c2bb1f41e10103c4ff4b939cb"/><file name="Country.php" hash="d55e621726633f3c765192c51da55e44"/><file name="Installments.php" hash="7c7efe8ef187ff1e2ab00bf7dbcc8cab"/><file name="ListPages.php" hash="b0d645e6f98b1c5f1c93d6e32abb5d22"/><dir name="Order"><file name="Status.php" hash="a367d9b6bfe1e35268f04f0257612725"/></dir><file name="PaymentMethods.php" hash="d799c877f358c2218e0a65a085c0427b"/><file name="TypeCheckout.php" hash="36496d11ce7fbb1d87f27eb705525b61"/></dir><dir name="Standard"><file name="Payment.php" hash="70d35ce0883cba3dae742e30239116e0"/></dir></dir><dir name="controllers"><file name="ApiController.php" hash="2901e45bb90b472bc81b0353c4acb824"/><file name="CalculatorPaymentController.php" hash="87ff9536177530e294abf4b9853735bf"/><file name="CheckoutController.php" hash="4b44aa159a1d7441bc1ae574c57777b8"/><file name="NotificationsController.php" hash="82e6def69dc0e0ebf4816b0245e7334a"/><file name="PayController.php" hash="bfa751fb97ffd2d81bbffcc564d7cd0c"/><file name="RecurringPaymentController.php" hash="14baee15f6cec92db59075d49ba534e5"/></dir><dir name="etc"><file name="config.xml" hash="56ba80f9e7c3dc9b400d527be4995e4e"/><file name="jstranslator.xml" hash="75f60813a72e33e999a15a02dc7e152e"/><file name="system.xml" hash="c177c939b8e6353ae2e1993509f0582d"/></dir><dir name="sql"><dir name="mercadopago_setup"><file name="install-2.1.0.php" hash="12ecf80fa3ceaf2e4065bda76cf07a4d"/><file name="upgrade-2.1.0-2.1.1.php" hash="abf330b2171e90fc25f0cfe668bd051d"/><file name="upgrade-2.1.1-2.1.2.php" hash="805656e780e56feb6567c6c310bd9b7b"/></dir></dir></dir><dir name="MercadoEnvios"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Carrier.php" hash="f8a32cf354e44f90e7ce9e64017438f9"/><file name="Mapping.php" hash="b00a1ff552b99b744d29365570b33257"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="CarrierData.php" hash="4532a9efcec29f1106569e4a63ab2a1b"/><file name="Data.php" hash="6b997724247f93ed51031254e5884989"/><file name="ItemData.php" hash="ec05bfdc7839e3d1af6089fd0ec17e83"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="Attribute"><dir name="Validation"><file name="Mapping.php" hash="7e405906299a7b94cc286f68357207a1"/></dir></dir><dir name="Source"><dir name="Shipping"><file name="FreeMethod.php" hash="e8740f8d1b3a67c8cee79b77e40cf7db"/><file name="Method.php" hash="f0dde5407e7b8efb31c6e71065138800"/><dir name="Print"><file name="Mode.php" hash="70f65b1c619863cbabe81086a13d1896"/></dir></dir></dir></dir><file name="Observer.php" hash="988d72c51b8d1ea2d1b17452e7926f32"/><dir name="Shipping"><dir name="Carrier"><file name="MercadoEnvios.php" hash="ffa13a64f24cb02ff52512b6b3212e3d"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="a63e11caacbff0d1be6f3fb449e0f0cb"/><file name="system.xml" hash="dd4d92f75a34954cdf13b5913f438a33"/></dir></dir><dir name="OneStepCheckout"><dir name="Block"><dir name="Custom"><file name="Form.php" hash="34033d6813650d77c75c8c3e9a9cd88a"/></dir><dir name="Customticket"><file name="Form.php" hash="9deffc44f4ae97765ba02a4885dbe7e5"/></dir></dir><dir name="Helper"><file name="Data.php" hash="c0a0af8a83dc71a0ccf1a5f1a3235c8a"/></dir><dir name="Model"><file name="Observer.php" hash="2cfb65eada297e55f59cc490507bd4e3"/></dir><dir name="etc"><file name="config.xml" hash="8832b6ac1594d06133f886fa068ea016"/><file name="system.xml" hash="5dc985a1a6219700248e59678a6c7ba8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mercadopago.xml" hash="3c49e00ad8174bde8e10eb7ac4a72348"/></dir><dir name="template"><dir name="mercadopago"><file name="array_dropdown.phtml" hash="84c83c98f33de9530517adeb391011ab"/><dir name="custom"><file name="info.phtml" hash="c1a6c2f8725f5e3c49acefdce87d6ba3"/></dir><dir name="custom_ticket"><file name="info.phtml" hash="1c9a896cbd7d2539c2d142fa579f2d90"/></dir><dir name="standard"><file name="info.phtml" hash="c1a6c2f8725f5e3c49acefdce87d6ba3"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="mercadopago.xml" hash="e8dbd718ecae013346cc430d45fb3fe3"/></dir><dir name="template"><dir name="mercadopago"><dir name="analytics"><file name="after_checkout.phtml" hash="beed5dbde3abdb4f54a1b714c73172d5"/><file name="checkout.phtml" hash="43131db04ee760c48c4e28111b644a47"/></dir><dir name="calculator"><file name="calculatorForm.phtml" hash="8be6dcb0ab4e0ea1a68c9d6b5579da13"/><file name="calculatorLink.phtml" hash="3e99a37084c7252faedf6e6ec0a7e37d"/></dir><file name="clean.phtml" hash="fc92035839e69f52192eb9c3063a6864"/><dir name="custom"><file name="form.phtml" hash="88c9c43238417b809169633433eeeb01"/><file name="info.phtml" hash="70a72da32d8d0a952bb6bf3e21df1100"/><file name="secondCard.phtml" hash="7ec27b4a932891162c7a010a94d6389f"/><file name="success.phtml" hash="aad02aca4abe256e3c628580b0e7642c"/></dir><dir name="custom_ticket"><file name="form.phtml" hash="9f7149cc1646fd7c849c5f6142800849"/><file name="info.phtml" hash="ab580075fca55962463cbb17628b736d"/><file name="success.phtml" hash="17a8e81b84431e61bbf2d5d45740da91"/></dir><file name="discount.phtml" hash="310ed2fcc7620c97002e4af155c5aecc"/><dir name="onestepcheckout"><dir name="custom"><file name="form.phtml" hash="9f92472b8dac93417a1fa995e9d14171"/></dir></dir><dir name="standard"><file name="form.phtml" hash="4250cbf8b4416ed2996956645556b84a"/><file name="info.phtml" hash="70a72da32d8d0a952bb6bf3e21df1100"/><file name="pay.phtml" hash="3e3b83363e355778b98908847a56ab28"/><file name="success.phtml" hash="07a248b28e8465861d2b6ab7e43cbf45"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="MercadoPago_Core.csv" hash="3b4e9d379ad74ebf0d047cfce18e6314"/></dir><dir name="es_AR"><file name="MercadoPago_Core.csv" hash="884b9da5e2f00731e0eb1cfe5c567adf"/></dir><dir name="es_CL"><file name="MercadoPago_Core.csv" hash="3bad45438b3470bbf554ea99bd59df1c"/></dir><dir name="es_CO"><file name="MercadoPago_Core.csv" hash="3ebaf8f04ca58d7b1bf95818ba7f4108"/></dir><dir name="es_ES"><file name="MercadoPago_Core.csv" hash="50a9d4b198689cf8d48772e9b69a7d7d"/></dir><dir name="es_MX"><file name="MercadoPago_Core.csv" hash="124f4eb06508f77d6d2633ed3aa71a91"/></dir><dir name="es_VE"><file name="MercadoPago_Core.csv" hash="9adc7b82ad3f4b0806a07262b087bcc0"/></dir><dir name="pt_BR"><file name="MercadoPago_Core.csv" hash="97e678d6d2305b85fbef672cbd2d3ad5"/></dir></target><target name="mageweb"><dir name="js"><dir name="mercadopago"><file name="jquery-1.11.0.min.js" hash="52d16e147b5346147d0f3269cd4d0f80"/><file name="mercadopago.js" hash="b30b2f4260ed66840f60405e9e4f0757"/><file name="mercadopago_calculator.js" hash="05c76965e58be631fb3a1f5ffe25bdde"/><file name="mercadopago_osc.js" hash="190e0d2aaf0e0957be4a1ea8cc68b1b5"/><file name="tiny.min.js" hash="71bce92ef942b0ac15683f94e1f3e3a5"/><file name="tinyJ.js" hash="3318ec214b9a21fe954ce5675de013f3"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="mercadopago"><dir name="images"><file name="cards.jpg" hash="53b06cbec7b20d95cdcaaf3b49bd2aa5"/><file name="logo.png" hash="460a0815c67a23da265f42c8bab0842a"/><file name="mercadoenvios.png" hash="006cd6ddfa8e5a19354942f79b659b5e"/></dir><file name="styles.css" hash="cac25e698c010f73dc3af01ef3377320"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="mercadopago"><dir name="css"><file name="style-calculator.css" hash="bf0ceced0fe34d9394b779fff081d86c"/><file name="style-success.css" hash="6e7b8fd0bf1b17a5804b5466e9cd4b89"/><file name="style.css" hash="d47817e60756a817545c483c7584825a"/></dir><dir name="images"><file name="loading.gif" hash="5c43434f066c2fbc4714c768b8f83853"/><file name="logo.png" hash="460a0815c67a23da265f42c8bab0842a"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="MercadoPago"><dir name="Lib"><file name="Api.php" hash="7149abfb4a2e07522fd99d2a3934c894"/><file name="RestClient.php" hash="13d49937d6ba8b7e245179c74a762940"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MercadoPago_Core.xml" hash="0770f2e1dd0110c2c13a330d3411fd68"/><file name="MercadoPago_MercadoEnvios.xml" hash="f7e8607c78d8b39075eb8f7700691a44"/><file name="MercadoPago_OneStepCheckout.xml" hash="9e05c392d8f00c9604ac9ad748977489"/></dir></target></contents>
167
<compatible/>
168
- <dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php></required></dependencies>
169
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>MercadoPagoTransparent</name>
4
+ <version>2.7.8</version>
5
<stability>stable</stability>
6
+ <license>OSL v3.0</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>MercadoPago payment extension for Magento: receive payments with our customizable checkout</summary>
10
+ <description>"Credit Card Customized Checkout&#xD;
11
+ This feature will allow merchants to have a customized checkout for credit card payment. Thus, it will be possible to customize its look and feel, customers won&#x2019;t be redirected away to complete the payment, and it will also reduce the checkout steps improving conversion rates.&#xD;
12
&#xD;
13
+ Available for Argentina, Brazil, Colombia, Mexico and Venezuela&#xD;
14
&#xD;
15
+ Customized Bar Code Payment&#xD;
16
+ This feature allows merchants to have a customized bar code payment. It reduces the checkout steps improving conversion rates. The bar code payment will have merchant's logo.&#xD;
17
&#xD;
18
+ Available for Argentina, Brazil, Colombia, Mexico and Venezuela&#xD;
19
&#xD;
20
+ Standard Checkout&#xD;
21
+ This feature allows merchants to have a standard checkout. It includes all payment methods (i.e. all credit cards, bar code payment, account money) and all window types (i.e. redirect, iframe, modal, blank and popup). Customization is not allowed.&#xD;
22
&#xD;
23
+ Available for Argentina, Brazil, Chile, Colombia, Mexico and Venezuela&#xD;
24
&#xD;
25
+ OneClick Pay &#xD;
26
+ This feature allows to store credit card information for the customer, so that the next time there is no need to enter all the card details. Customers will just need to re-enter the security code of the credit card they want to use."</description>
27
+ <notes>- Module adapted for new rule Boleto - Febraban&#xD;
28
+ - Added the version field in the settings screen&#xD;
29
+ - Changed status for payment not found in payment notifications</notes>
30
+ <authors><author><name>Developers MercadoPago Brasil</name><user>developers_mercadopago</user><email>modulos@mercadopago.com</email></author></authors>
31
+ <date>2017-08-01</date>
32
+ <time>20:23:46</time>
33
+ <contents><target name="magecommunity"><dir name="MercadoPago"><dir name="Core"><dir name="Block"><file name="AbstractForm.php" hash="37bbd650b14574dee9f1296bf67ffd10"/><file name="AbstractSuccess.php" hash="6aa920d8b886d22410f50b9625847699"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="5ecbfb51b488a3e3211dfaec5d8c0efe"/></dir></dir></dir><file name="Version.php" hash="c33d07c15fbd2f6f7af85219459cb34c"/></dir><dir name="Analytics"><file name="AfterCheckout.php" hash="450b2a0f3cea4504a93f9c52ebf21659"/><file name="Checkout.php" hash="e77bd0dd16bdc91d63dc49525645f436"/></dir><dir name="Calculator"><file name="CalculatorForm.php" hash="18025dc69fd9aae6226b22f551f7220c"/><file name="CalculatorLink.php" hash="bd5c57db8de7e29c3b9ff89be5b0a08d"/></dir><dir name="Custom"><file name="Form.php" hash="733c5dccf752493b9fe24938433ff9fd"/><file name="Info.php" hash="51771218b04b7a41d83adec76e393311"/><file name="Success.php" hash="2ab918e6b2415018d780b1a58d5b6d04"/></dir><dir name="Customticket"><file name="Form.php" hash="84fdf10e464cebbc89f5204f15d68f94"/><file name="Info.php" hash="f23e8a204e431e95a7bb0e9b409c1df4"/><file name="Success.php" hash="325fc24f1c0d220a95abe238ec583ee5"/></dir><file name="Discount.php" hash="a17b7f08dd57c31d27e57b3acbe03188"/><dir name="Recurring"><file name="Form.php" hash="92fd8e52f8cf52ea40d7a500d16c0286"/><file name="Info.php" hash="bad1e825f1dccbabf8802539fcbd180c"/><file name="Pay.php" hash="33d1cb94bd944f11cf9c8e217086057b"/><file name="Success.php" hash="e069c3c6be1bf2f15b5192dee0d95e44"/></dir><dir name="Sales"><dir name="Order"><dir name="Totals"><dir name="Discount"><file name="Coupon.php" hash="a2d6ce9b14d91481e55dbcac1bb111e7"/></dir><dir name="Finance"><file name="Cost.php" hash="7cf8b32dfb95d965b7f2c14973267311"/></dir></dir></dir></dir><dir name="Standard"><file name="Form.php" hash="e6845e293d0c0ca1a6ac04acf79edd1e"/><file name="Info.php" hash="db81d01579b66fbd8251883967768320"/><file name="Pay.php" hash="8ebb3cd8ef5df082343cfe33eadf17e0"/><file name="Success.php" hash="409dd3e16db4ebd5bd22599b7271062c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="e76f6a8719a09f1cc0540ee03dfb7102"/><dir name="Message"><file name="Abstract.php" hash="1f4f37e4a2cd0d1a18dff6f3e96ca84d"/></dir><file name="Response.php" hash="3b4cb87e25993ba952b100751aadd9ce"/><file name="StatusDetailMessage.php" hash="f56549a427452d4e67351274032885db"/><file name="StatusMessage.php" hash="3a7860b8dc843f8f9620852113fc5093"/><file name="StatusOrderMessage.php" hash="f17c394be7b8a795ee05342109c93fe4"/><file name="StatusUpdate.php" hash="646c4f57215a0b3e04ebfc833040e775"/><file name="Validate.php" hash="fbd97ce0c5db7fd7fe0e088610792198"/></dir><dir name="Model"><dir name="Api"><file name="Exception.php" hash="8093747fa6e2244c3f59a188911d47c3"/><dir name="V0"><file name="Exception.php" hash="026642775cab4873176aaf28493a9159"/></dir><dir name="V1"><file name="Exception.php" hash="022c7e5ff52d04a91990bdb230f97e73"/></dir></dir><file name="Core.php" hash="f8df8d24d945571169b4357b5eb07946"/><dir name="Cron"><file name="Order.php" hash="afa501b5c0b2962fd3dd2a5c1e724e3f"/></dir><dir name="Custom"><dir name="Finance"><dir name="Cost"><file name="Creditmemo.php" hash="4e75bb8d2c34e9758a27d9e9db3f6b36"/><file name="Invoice.php" hash="d8123b798f25c119739b9ac16817619c"/></dir><file name="Cost.php" hash="9fab08c5253d19b4106ef9070580f42e"/></dir><file name="Payment.php" hash="788712afd6508e5d29b489b6727ed89a"/></dir><file name="CustomPayment.php" hash="bc92b4a75716d1fab5c30ae2240c127d"/><dir name="CustomTicket"><file name="Payment.php" hash="63885717a99d5d008dd43500884a2a9e"/></dir><dir name="Discount"><dir name="Coupon"><file name="Creditmemo.php" hash="87dc7aaac390633ddf87c27e3d097130"/><file name="Invoice.php" hash="a586d210a2b8b57a8dffe9fdb69b5363"/></dir><file name="Coupon.php" hash="54d8cbfb2fd73db87fbe3f93e483a8d8"/></dir><file name="Observer.php" hash="5b472b46340e544a44e872f023eeced3"/><dir name="Recurring"><file name="Payment.php" hash="372ffa6bec87328e9642602e1ee062da"/></dir><dir name="Source"><file name="CategoryId.php" hash="5728ee8c2bb1f41e10103c4ff4b939cb"/><file name="Country.php" hash="d55e621726633f3c765192c51da55e44"/><file name="Installments.php" hash="7c7efe8ef187ff1e2ab00bf7dbcc8cab"/><file name="ListPages.php" hash="b0d645e6f98b1c5f1c93d6e32abb5d22"/><dir name="Order"><file name="Status.php" hash="a367d9b6bfe1e35268f04f0257612725"/></dir><file name="PaymentMethods.php" hash="d799c877f358c2218e0a65a085c0427b"/><file name="TypeCheckout.php" hash="36496d11ce7fbb1d87f27eb705525b61"/></dir><dir name="Standard"><file name="Payment.php" hash="70d35ce0883cba3dae742e30239116e0"/></dir></dir><dir name="controllers"><file name="ApiController.php" hash="2901e45bb90b472bc81b0353c4acb824"/><file name="CalculatorPaymentController.php" hash="87ff9536177530e294abf4b9853735bf"/><file name="CheckoutController.php" hash="d69891d57ada32ddc389e8da5140600a"/><file name="NotificationsController.php" hash="8533c95cf347f5c3766584333d1a6c2d"/><file name="PayController.php" hash="bfa751fb97ffd2d81bbffcc564d7cd0c"/><file name="RecurringPaymentController.php" hash="14baee15f6cec92db59075d49ba534e5"/></dir><dir name="etc"><file name="config.xml" hash="4ae922cae043426c54b2aee8bc4afc03"/><file name="jstranslator.xml" hash="75f60813a72e33e999a15a02dc7e152e"/><file name="system.xml" hash="e54549663741ac187d040f4049795e43"/></dir><dir name="sql"><dir name="mercadopago_setup"><file name="install-2.1.0.php" hash="12ecf80fa3ceaf2e4065bda76cf07a4d"/><file name="upgrade-2.1.0-2.1.1.php" hash="abf330b2171e90fc25f0cfe668bd051d"/><file name="upgrade-2.1.1-2.1.2.php" hash="805656e780e56feb6567c6c310bd9b7b"/></dir></dir></dir><dir name="MercadoEnvios"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Carrier.php" hash="f8a32cf354e44f90e7ce9e64017438f9"/><file name="Mapping.php" hash="b00a1ff552b99b744d29365570b33257"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="CarrierData.php" hash="4532a9efcec29f1106569e4a63ab2a1b"/><file name="Data.php" hash="6b997724247f93ed51031254e5884989"/><file name="ItemData.php" hash="ec05bfdc7839e3d1af6089fd0ec17e83"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="Attribute"><dir name="Validation"><file name="Mapping.php" hash="7e405906299a7b94cc286f68357207a1"/></dir></dir><dir name="Source"><dir name="Shipping"><file name="FreeMethod.php" hash="e8740f8d1b3a67c8cee79b77e40cf7db"/><file name="Method.php" hash="f0dde5407e7b8efb31c6e71065138800"/><dir name="Print"><file name="Mode.php" hash="70f65b1c619863cbabe81086a13d1896"/></dir></dir></dir></dir><file name="Observer.php" hash="988d72c51b8d1ea2d1b17452e7926f32"/><dir name="Shipping"><dir name="Carrier"><file name="MercadoEnvios.php" hash="ffa13a64f24cb02ff52512b6b3212e3d"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="d376ed4087556a369d3a66ebba35152f"/><file name="system.xml" hash="dd4d92f75a34954cdf13b5913f438a33"/></dir></dir><dir name="OneStepCheckout"><dir name="Block"><dir name="Custom"><file name="Form.php" hash="34033d6813650d77c75c8c3e9a9cd88a"/></dir><dir name="Customticket"><file name="Form.php" hash="9deffc44f4ae97765ba02a4885dbe7e5"/></dir></dir><dir name="Helper"><file name="Data.php" hash="c0a0af8a83dc71a0ccf1a5f1a3235c8a"/></dir><dir name="Model"><file name="Observer.php" hash="2cfb65eada297e55f59cc490507bd4e3"/></dir><dir name="etc"><file name="config.xml" hash="0d68e898da76fb469ba0c7c00204b9ec"/><file name="system.xml" hash="5dc985a1a6219700248e59678a6c7ba8"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mercadopago"><file name="array_dropdown.phtml" hash="84c83c98f33de9530517adeb391011ab"/><dir name="custom"><file name="info.phtml" hash="c1a6c2f8725f5e3c49acefdce87d6ba3"/></dir><dir name="custom_ticket"><file name="info.phtml" hash="1c9a896cbd7d2539c2d142fa579f2d90"/></dir><dir name="standard"><file name="info.phtml" hash="c1a6c2f8725f5e3c49acefdce87d6ba3"/></dir></dir></dir><dir name="layout"><file name="mercadopago.xml" hash="3c49e00ad8174bde8e10eb7ac4a72348"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="mercadopago"><dir name="analytics"><file name="after_checkout.phtml" hash="beed5dbde3abdb4f54a1b714c73172d5"/><file name="checkout.phtml" hash="43131db04ee760c48c4e28111b644a47"/></dir><dir name="calculator"><file name="calculatorForm.phtml" hash="8be6dcb0ab4e0ea1a68c9d6b5579da13"/><file name="calculatorLink.phtml" hash="3e99a37084c7252faedf6e6ec0a7e37d"/></dir><file name="clean.phtml" hash="fc92035839e69f52192eb9c3063a6864"/><dir name="custom"><file name="form.phtml" hash="21f7a8037533dcf71dd0a6897b62cd45"/><file name="info.phtml" hash="70a72da32d8d0a952bb6bf3e21df1100"/><file name="secondCard.phtml" hash="6a6dec940a275d4d0098e2db4aa8bb4f"/><file name="success.phtml" hash="aad02aca4abe256e3c628580b0e7642c"/></dir><dir name="custom_ticket"><file name="form.phtml" hash="1484ff3d2c1ae12d3cfcb0456b213310"/><file name="info.phtml" hash="ab580075fca55962463cbb17628b736d"/><file name="success.phtml" hash="17a8e81b84431e61bbf2d5d45740da91"/></dir><file name="discount.phtml" hash="310ed2fcc7620c97002e4af155c5aecc"/><dir name="onestepcheckout"><dir name="custom"><file name="form.phtml" hash="0e429880a66f1439cd77157901d81145"/></dir></dir><dir name="standard"><file name="form.phtml" hash="58c5c0d3e127ce454307f398ef92a294"/><file name="info.phtml" hash="70a72da32d8d0a952bb6bf3e21df1100"/><file name="pay.phtml" hash="3e3b83363e355778b98908847a56ab28"/><file name="success.phtml" hash="07a248b28e8465861d2b6ab7e43cbf45"/></dir></dir></dir><dir name="layout"><file name="mercadopago.xml" hash="60110429683338f7742f00c803c75be5"/></dir></dir></dir></dir></target><target name="magelib"><dir name="MercadoPago"><dir name="Lib"><file name="Api.php" hash="7149abfb4a2e07522fd99d2a3934c894"/><file name="RestClient.php" hash="13d49937d6ba8b7e245179c74a762940"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="mercadopago"><dir name="css"><file name="MPv1.css" hash="1cf00ede8f44bb95cba4130e18ac2a66"/><file name="style-calculator.css" hash="bf0ceced0fe34d9394b779fff081d86c"/><file name="style-success.css" hash="6e7b8fd0bf1b17a5804b5466e9cd4b89"/><file name="style.css" hash="02d16c1cb9a0211f4cc8eebd0490d288"/></dir><dir name="images"><file name="loading.gif" hash="5c43434f066c2fbc4714c768b8f83853"/><file name="logo.png" hash="460a0815c67a23da265f42c8bab0842a"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="mercadopago"><dir name="images"><file name="cards.jpg" hash="53b06cbec7b20d95cdcaaf3b49bd2aa5"/><file name="logo.png" hash="460a0815c67a23da265f42c8bab0842a"/><file name="mercadoenvios.png" hash="006cd6ddfa8e5a19354942f79b659b5e"/></dir><file name="styles.css" hash="cac25e698c010f73dc3af01ef3377320"/></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="mercadopago"><file name="jquery-1.11.0.min.js" hash="52d16e147b5346147d0f3269cd4d0f80"/><file name="mercadopago.js" hash="c65253b002b3dd90d893c6382f1f3101"/><file name="mercadopago_calculator.js" hash="05c76965e58be631fb3a1f5ffe25bdde"/><file name="mercadopago_osc.js" hash="190e0d2aaf0e0957be4a1ea8cc68b1b5"/><file name="tiny.min.js" hash="71bce92ef942b0ac15683f94e1f3e3a5"/><file name="tinyJ.js" hash="3318ec214b9a21fe954ce5675de013f3"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MercadoPago_Core.xml" hash="0770f2e1dd0110c2c13a330d3411fd68"/><file name="MercadoPago_MercadoEnvios.xml" hash="f7e8607c78d8b39075eb8f7700691a44"/><file name="MercadoPago_OneStepCheckout.xml" hash="9e05c392d8f00c9604ac9ad748977489"/></dir></target><target name="magelocale"><dir name="en_US"><file name="MercadoPago_Core.csv" hash="b9f55b66ba3cdf1d2844d51143560509"/></dir><dir name="es_AR"><file name="MercadoPago_Core.csv" hash="76f98227c1d8f5c34904dcb473f97627"/></dir><dir name="es_CL"><file name="MercadoPago_Core.csv" hash="57a370e8b09169c74a1537239803dc96"/></dir><dir name="es_CO"><file name="MercadoPago_Core.csv" hash="6259089740d5711120aa8bcff15deb6e"/></dir><dir name="es_ES"><file name="MercadoPago_Core.csv" hash="b36e8495c95405dbef05a8036e01ffb2"/></dir><dir name="es_MX"><file name="MercadoPago_Core.csv" hash="4d0539ae7c52583f2be7a355686aca0a"/></dir><dir name="es_VE"><file name="MercadoPago_Core.csv" hash="e101f17f978551d2d2ddca498ac34c8a"/></dir><dir name="pt_BR"><file name="MercadoPago_Core.csv" hash="97e678d6d2305b85fbef672cbd2d3ad5"/></dir></target></contents>
34
<compatible/>
35
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
36
</package>
skin/frontend/base/default/mercadopago/css/MPv1.css ADDED
@@ -0,0 +1,115 @@