Compropago_Payment_Extension - Version 2.1.3

Version Notes

* update sdk and structure view cash

Download this release

Release Info

Developer Eduardo Aguilar
Extension Compropago_Payment_Extension
Version 2.1.3
Comparing to
See all releases


Code changes from version 2.1.2.3 to 2.1.3

app/code/community/Compropago/CpPayment/Model/Standard.php CHANGED
@@ -81,7 +81,6 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
81
  return $this;
82
  }
83
 
84
-
85
  /**
86
  * Generacion de la orden
87
  *
@@ -110,6 +109,7 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
110
 
111
  $quote = Mage::getSingleton('checkout/session')->getQuote($quoteId);
112
  $orderId = $quote->getReservedOrderId();
 
113
 
114
  $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
115
  $grandTotal = (float)$order->getBaseGrandTotal();
@@ -131,8 +131,7 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
131
  $infoIntance = $this->getInfoInstance();
132
  $info = unserialize($infoIntance->getAdditionalData());
133
 
134
- try
135
- {
136
  $order_info = [
137
  'order_id' => $orderNumber,
138
  'order_name' => $name,
@@ -143,9 +142,18 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
143
  'currency' => Mage::app()->getStore()->getCurrentCurrencyCode(),
144
  'image_url' => null,
145
  'app_client_name' => 'magento',
146
- 'app_client_version' => Mage::getVersion()
 
147
  ];
148
 
 
 
 
 
 
 
 
 
149
  $order = Factory::getInstanceOf('PlaceOrderInfo', $order_info);
150
 
151
  $client = new Client(
@@ -246,7 +254,6 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
246
  return $this;
247
  }
248
 
249
-
250
  /**
251
  * Envio de proveedores filtrados a la vista
252
  *
@@ -295,7 +302,6 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
295
  }
296
  }
297
 
298
-
299
  /**
300
  * verificacion de muestra de logos
301
  *
@@ -306,6 +312,14 @@ class Compropago_CpPayment_Model_Standard extends Mage_Payment_Model_Method_Abst
306
  return (int)trim($this->getConfigData("compropago_showlogo")) == 1 ? true : false;
307
  }
308
 
 
 
 
 
 
 
 
 
309
 
310
  /**
311
  * Despliegue de retroalimentacion en el panel de administración
81
  return $this;
82
  }
83
 
 
84
  /**
85
  * Generacion de la orden
86
  *
109
 
110
  $quote = Mage::getSingleton('checkout/session')->getQuote($quoteId);
111
  $orderId = $quote->getReservedOrderId();
112
+ $shipping = $quote->getShippingAddress();
113
 
114
  $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
115
  $grandTotal = (float)$order->getBaseGrandTotal();
131
  $infoIntance = $this->getInfoInstance();
132
  $info = unserialize($infoIntance->getAdditionalData());
133
 
134
+ try {
 
135
  $order_info = [
136
  'order_id' => $orderNumber,
137
  'order_name' => $name,
142
  'currency' => Mage::app()->getStore()->getCurrentCurrencyCode(),
143
  'image_url' => null,
144
  'app_client_name' => 'magento',
145
+ 'app_client_version' => Mage::getVersion(),
146
+ 'cp' => $shipping->getData('postcode')
147
  ];
148
 
149
+ if (isset($info['latitude'])) {
150
+ $order_info['latitude'] = $info['latitude'];
151
+ }
152
+
153
+ if (isset($info['longitude'])) {
154
+ $order_info['longitude'] = $info['longitude'];
155
+ }
156
+
157
  $order = Factory::getInstanceOf('PlaceOrderInfo', $order_info);
158
 
159
  $client = new Client(
254
  return $this;
255
  }
256
 
 
257
  /**
258
  * Envio de proveedores filtrados a la vista
259
  *
302
  }
303
  }
304
 
 
305
  /**
306
  * verificacion de muestra de logos
307
  *
312
  return (int)trim($this->getConfigData("compropago_showlogo")) == 1 ? true : false;
313
  }
314
 
315
+ /**
316
+ * Validate if have persion for obtain Glocation
317
+ *
318
+ * @return void
319
+ */
320
+ public function getGlocation() {
321
+ return (int)trim($this->getConfigData("compropago_gloaction")) == 1 ? true : false;
322
+ }
323
 
324
  /**
325
  * Despliegue de retroalimentacion en el panel de administración
app/code/community/Compropago/CpPayment/etc/config.xml CHANGED
@@ -96,6 +96,8 @@
96
  <compropago_order_status_approved>processing</compropago_order_status_approved>
97
  <compropago_order_status_in_process>pending</compropago_order_status_in_process>
98
  <compropago_order_status_cancelled>canceled</compropago_order_status_cancelled>
 
 
99
  </cppayment>
100
  </payment>
101
  </default>
96
  <compropago_order_status_approved>processing</compropago_order_status_approved>
97
  <compropago_order_status_in_process>pending</compropago_order_status_in_process>
98
  <compropago_order_status_cancelled>canceled</compropago_order_status_cancelled>
99
+ <compropago_gloaction>1</compropago_gloaction>
100
+ <sort_order>200</sort_order>
101
  </cppayment>
102
  </payment>
103
  </default>
app/code/community/Compropago/CpPayment/etc/system.xml CHANGED
@@ -12,7 +12,6 @@
12
  <show_in_store>1</show_in_store>
13
 
14
  <fields>
15
-
16
  <active translate="label">
17
  <label>Habilitar</label>
18
  <frontend_type>select</frontend_type>
@@ -134,6 +133,30 @@
134
  <show_in_website>1</show_in_website>
135
  <show_in_store>0</show_in_store>
136
  </compropago_order_status_cancelled>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  </fields>
138
  </cppayment>
139
  </groups>
12
  <show_in_store>1</show_in_store>
13
 
14
  <fields>
 
15
  <active translate="label">
16
  <label>Habilitar</label>
17
  <frontend_type>select</frontend_type>
133
  <show_in_website>1</show_in_website>
134
  <show_in_store>0</show_in_store>
135
  </compropago_order_status_cancelled>
136
+
137
+ <compropago_gloaction translate="label">
138
+ <label>Geolocalizacion</label>
139
+ <frontend_type>select</frontend_type>
140
+ <comment>
141
+ Obtener localizacion del cliente para la rapida ubicacion de los establecimientos cercanos a el,
142
+ agilizar notificacion del pago y maximizacion del tiempo de confirmazion.
143
+ </comment>
144
+ <source_model>adminhtml/system_config_source_yesno</source_model>
145
+ <sort_order>24</sort_order>
146
+ <show_in_default>1</show_in_default>
147
+ <show_in_website>1</show_in_website>
148
+ <show_in_store>0</show_in_store>
149
+ </compropago_gloaction>
150
+
151
+ <sort_order translate="label">
152
+ <label>Sort Order</label>
153
+ <frontend_type>text</frontend_type>
154
+ <sort_order>100</sort_order>
155
+ <show_in_default>1</show_in_default>
156
+ <show_in_website>1</show_in_website>
157
+ <show_in_store>0</show_in_store>
158
+ <frontend_class>validate-number</frontend_class>
159
+ </sort_order>
160
  </fields>
161
  </cppayment>
162
  </groups>
app/design/frontend/base/default/template/compropago/cppayment/cash.phtml CHANGED
@@ -4,52 +4,55 @@ $_model = $this->getMethod();
4
  $_getProviders = $_model->getProviders();
5
  ?>
6
 
7
- <script> setBack(document.getElementById("store_code_selected").value.toLowerCase()); </script>
8
-
9
  <div>
10
-
11
  <ul id="payment_form_<?php echo $_code; ?>" style="display: none">
12
  <?php if (!empty($_getProviders)){ ?>
13
-
14
- <h2>Selecciona el establecimiento para realizar tu pago:</h2>
15
-
16
- <?php if (!$_model->showLogoProviders()) { ?>
17
-
18
- <li>
19
  <div id="<?php echo $_code; ?>_store">
20
- <select class="provider-select" id="store_code_selected" name="payment[store_code]">
21
  <?php foreach ($_getProviders as $_provider){ ?>
22
  <option value="<?php echo $_provider->internal_name; ?>"><?php echo $_provider->name; ?></option>
23
  <?php } ?>
24
  </select>
25
- <input type="hidden" id="customer_phone" name="payment[customer_phone]" value="">
26
  </div>
27
- </li>
28
-
29
- <?php } else { ?>
30
- <li>
31
  <div class="row stores-compact" id="<?php echo $_code; ?>_store">
32
- <?php foreach ($_getProviders as $_provider){ ?>
33
-
34
- <label class="cp-provider"
35
- onclick="seleccionar(this);"
36
- data-provider="<?php echo $_provider->internal_name; ?>"
37
- >
38
- <img src="<?php echo $_provider->image_medium; ?>"
39
- alt="<?php echo $_provider->name; ?>"
40
- >
41
- </label>
42
-
43
- <?php } ?>
44
  <input id="store_code_selected" type="hidden" name="payment[store_code]" value="">
45
- <input type="hidden" id="customer_phone" name="payment[customer_phone]" value="">
46
  </div>
47
- </li>
48
- <?php } ?>
49
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  <?php } else { ?>
51
  <div style="text-align:center;"><h3>Servicio temporalmente inactivo.</h3></div>
52
  <?php } ?>
53
  </ul>
54
-
55
  </div>
4
  $_getProviders = $_model->getProviders();
5
  ?>
6
 
 
 
7
  <div>
 
8
  <ul id="payment_form_<?php echo $_code; ?>" style="display: none">
9
  <?php if (!empty($_getProviders)){ ?>
10
+ <li>
11
+ <h2>Selecciona el establecimiento para realizar tu pago:</h2>
12
+ <?php if (!$_model->showLogoProviders()) { ?>
 
 
 
13
  <div id="<?php echo $_code; ?>_store">
14
+ <select name="payment[store_code]">
15
  <?php foreach ($_getProviders as $_provider){ ?>
16
  <option value="<?php echo $_provider->internal_name; ?>"><?php echo $_provider->name; ?></option>
17
  <?php } ?>
18
  </select>
 
19
  </div>
20
+ <?php } else { ?>
 
 
 
21
  <div class="row stores-compact" id="<?php echo $_code; ?>_store">
22
+ <?php foreach ($_getProviders as $_provider){ ?>
23
+ <label class="cp-provider"
24
+ onclick="seleccionar(this);"
25
+ data-provider="<?php echo $_provider->internal_name; ?>">
26
+ <img src="<?php echo $_provider->image_medium; ?>"
27
+ alt="<?php echo $_provider->name; ?>">
28
+ </label>
29
+ <?php } ?>
 
 
 
 
30
  <input id="store_code_selected" type="hidden" name="payment[store_code]" value="">
 
31
  </div>
32
+ <?php } ?>
33
+
34
+ <input type="hidden" id="customer_phone" name="payment[customer_phone]" value="">
35
+ <input type="hidden" id="cp_latitude" name="payment[cp_latitude]" value="">
36
+ <input type="hidden" id="cp_longitude" name="payment[cp_longitude]" value="">
37
+
38
+ <?php if ($_model->getGlocation()) { ?>
39
+ <script>
40
+ if (navigator.geolocation) {
41
+ navigator.geolocation.getCurrentPosition(function(pos){
42
+ var latitud = pos.coords.latitude;
43
+ var longitud = pos.coords.longitude;
44
+ document.getElementById("cp_latitude").value = latitud;
45
+ document.getElementById("cp_longitude").value = longitud;
46
+ }, function(errorCode){
47
+ console.log("Error code localization: ");
48
+ console.log(errorCode);
49
+ });
50
+ }
51
+ </script>
52
+ <?php } else { echo "No localization"; } ?>
53
+ </li>
54
  <?php } else { ?>
55
  <div style="text-align:center;"><h3>Servicio temporalmente inactivo.</h3></div>
56
  <?php } ?>
57
  </ul>
 
58
  </div>
js/compropago/compropago.js CHANGED
@@ -19,67 +19,3 @@ window.onload = function(){
19
  });
20
  };
21
 
22
-
23
- document.addEventListener("click", someListener);
24
- var flagC = false;
25
-
26
- function setBack(types) {
27
- var dropShops = document.getElementById("store_code_selected"),
28
- back = '';
29
- switch (types) {
30
- case 'oxxo':
31
- back = 'https://compropago.com/assets/print/receipt-oxxo-btn-mini.png';
32
- break;
33
- case 'seven_eleven':
34
- back = 'https://compropago.com/assets/print/receipt-seven-btn-mini.png';
35
- break;
36
- case 'coppel':
37
- back = 'https://compropago.com/assets/print/receipt-coppel-btn-mini.png';
38
- break;
39
- case 'chedraui':
40
- back = 'https://compropago.com/assets/print/receipt-chedraui-btn-mini.png';
41
- break;
42
- case 'extra':
43
- back = 'https://compropago.com/assets/print/receipt-extra-btn-mini.png';
44
- break;
45
- case 'farmacia_esquivar':
46
- back = 'https://compropago.com/assets/print/receipt-esquivar-btn-mini.png';
47
- break;
48
- case 'farmacia_benavides':
49
- back = 'https://compropago.com/assets/print/receipt-benavides-btn-mini.png';
50
- break;
51
- case 'elektra':
52
- back = 'https://compropago.com/assets/print/receipt-elektra-btn-mini.png';
53
- break;
54
- case 'casa_ley':
55
- back = 'https://compropago.com/assets/print/receipt-ley-btn-mini.png';
56
- break;
57
- case 'pitico':
58
- back = 'https://compropago.com/assets/print/receipt-pitico-btn-mini.png';
59
- break;
60
- case 'telecomm':
61
- back = 'https://compropago.com/assets/print/receipt-telecomm-btn-mini.png';
62
- break;
63
- case 'farmacia_abc':
64
- back = 'https://compropago.com/assets/print/receipt-abc-btn-mini.png';
65
- break;
66
- }
67
- dropShops.style.backgroundImage = 'url(\'' + back + '\')';
68
- }
69
-
70
- function someListener(event) {
71
- var element = event.target,
72
- dropShops = document.getElementById("store_code_selected"),
73
- back = '';
74
- if (dropShops) {
75
- setBack(dropShops.value.toLowerCase());
76
- }
77
- if (element.classList.contains("provider-select")) {
78
- if (flagC === false) {
79
- flagC = true;
80
- dropShops.addEventListener("change", function() {
81
- setBack(dropShops.value.toLowerCase());
82
- });
83
- }
84
- }
85
- }
19
  });
20
  };
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/Compropago/composer.lock CHANGED
@@ -8,16 +8,16 @@
8
  "packages": [
9
  {
10
  "name": "compropago/php-sdk",
11
- "version": "3.0.4",
12
  "source": {
13
  "type": "git",
14
  "url": "https://github.com/compropago/compropago-php.git",
15
- "reference": "d8ddde3edfa2b4b2a237112fcd46612a276ef0a7"
16
  },
17
  "dist": {
18
  "type": "zip",
19
- "url": "https://api.github.com/repos/compropago/compropago-php/zipball/d8ddde3edfa2b4b2a237112fcd46612a276ef0a7",
20
- "reference": "d8ddde3edfa2b4b2a237112fcd46612a276ef0a7",
21
  "shasum": ""
22
  },
23
  "require": {
@@ -48,7 +48,7 @@
48
  "pagos internet",
49
  "payment gateway"
50
  ],
51
- "time": "2017-02-16T20:38:48+00:00"
52
  }
53
  ],
54
  "packages-dev": [],
8
  "packages": [
9
  {
10
  "name": "compropago/php-sdk",
11
+ "version": "3.0.5",
12
  "source": {
13
  "type": "git",
14
  "url": "https://github.com/compropago/compropago-php.git",
15
+ "reference": "4e4dc8826d8614ad8d76cb82b6d36273a0a3c2d7"
16
  },
17
  "dist": {
18
  "type": "zip",
19
+ "url": "https://api.github.com/repos/compropago/compropago-php/zipball/4e4dc8826d8614ad8d76cb82b6d36273a0a3c2d7",
20
+ "reference": "4e4dc8826d8614ad8d76cb82b6d36273a0a3c2d7",
21
  "shasum": ""
22
  },
23
  "require": {
48
  "pagos internet",
49
  "payment gateway"
50
  ],
51
+ "time": "2017-05-08T21:55:22+00:00"
52
  }
53
  ],
54
  "packages-dev": [],
lib/Compropago/vendor/composer/ClassLoader.php CHANGED
@@ -374,9 +374,13 @@ class ClassLoader
374
 
375
  $first = $class[0];
376
  if (isset($this->prefixLengthsPsr4[$first])) {
377
- foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
378
- if (0 === strpos($class, $prefix)) {
379
- foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
 
 
 
 
380
  if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
381
  return $file;
382
  }
374
 
375
  $first = $class[0];
376
  if (isset($this->prefixLengthsPsr4[$first])) {
377
+ $subPath = $class;
378
+ while (false !== $lastPos = strrpos($subPath, '\\')) {
379
+ $subPath = substr($subPath, 0, $lastPos);
380
+ $search = $subPath.'\\';
381
+ if (isset($this->prefixDirsPsr4[$search])) {
382
+ foreach ($this->prefixDirsPsr4[$search] as $dir) {
383
+ $length = $this->prefixLengthsPsr4[$first][$search];
384
  if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
385
  return $file;
386
  }
lib/Compropago/vendor/composer/LICENSE CHANGED
@@ -1,5 +1,5 @@
1
 
2
- Copyright (c) 2016 Nils Adermann, Jordi Boggiano
3
 
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
  of this software and associated documentation files (the "Software"), to deal
1
 
2
+ Copyright (c) Nils Adermann, Jordi Boggiano
3
 
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
  of this software and associated documentation files (the "Software"), to deal
lib/Compropago/vendor/composer/autoload_classmap.php CHANGED
@@ -6,28 +6,4 @@ $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
- 'CompropagoSdk\\Client' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Client.php',
10
- 'CompropagoSdk\\Extern\\TransactTables' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Extern/TransactTables.php',
11
- 'CompropagoSdk\\Factory\\Factory' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Factory.php',
12
- 'CompropagoSdk\\Factory\\Models\\CpOrderInfo' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/CpOrderInfo.php',
13
- 'CompropagoSdk\\Factory\\Models\\Customer' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Customer.php',
14
- 'CompropagoSdk\\Factory\\Models\\EvalAuthInfo' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/EvalAuthInfo.php',
15
- 'CompropagoSdk\\Factory\\Models\\Exchange' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Exchange.php',
16
- 'CompropagoSdk\\Factory\\Models\\FeeDetails' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/FeeDetails.php',
17
- 'CompropagoSdk\\Factory\\Models\\InstructionDetails' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/InstructionDetails.php',
18
- 'CompropagoSdk\\Factory\\Models\\Instructions' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Instructions.php',
19
- 'CompropagoSdk\\Factory\\Models\\NewOrderInfo' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/NewOrderInfo.php',
20
- 'CompropagoSdk\\Factory\\Models\\OrderInfo' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/OrderInfo.php',
21
- 'CompropagoSdk\\Factory\\Models\\PlaceOrderInfo' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/PlaceOrderInfo.php',
22
- 'CompropagoSdk\\Factory\\Models\\Provider' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Provider.php',
23
- 'CompropagoSdk\\Factory\\Models\\SmsData' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/SmsData.php',
24
- 'CompropagoSdk\\Factory\\Models\\SmsInfo' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/SmsInfo.php',
25
- 'CompropagoSdk\\Factory\\Models\\SmsObject' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/SmsObject.php',
26
- 'CompropagoSdk\\Factory\\Models\\Webhook' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Webhook.php',
27
- 'CompropagoSdk\\Factory\\Serialize' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Factory/Serialize.php',
28
- 'CompropagoSdk\\Service' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Service.php',
29
- 'CompropagoSdk\\Tools\\Http' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Tools/Http.php',
30
- 'CompropagoSdk\\Tools\\Request' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Tools/Request.php',
31
- 'CompropagoSdk\\Tools\\Validations' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/Tools/Validations.php',
32
- 'CompropagoSdk\\UnitTest\\Test' => $vendorDir . '/compropago/php-sdk/CompropagoSdk/UnitTest/Test.php',
33
  );
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  );
lib/Compropago/vendor/composer/autoload_static.php CHANGED
@@ -20,39 +20,11 @@ class ComposerStaticInitafea82d3c9dea57010619a6a5628092f
20
  ),
21
  );
22
 
23
- public static $classMap = array (
24
- 'CompropagoSdk\\Client' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Client.php',
25
- 'CompropagoSdk\\Extern\\TransactTables' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Extern/TransactTables.php',
26
- 'CompropagoSdk\\Factory\\Factory' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Factory.php',
27
- 'CompropagoSdk\\Factory\\Models\\CpOrderInfo' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/CpOrderInfo.php',
28
- 'CompropagoSdk\\Factory\\Models\\Customer' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Customer.php',
29
- 'CompropagoSdk\\Factory\\Models\\EvalAuthInfo' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/EvalAuthInfo.php',
30
- 'CompropagoSdk\\Factory\\Models\\Exchange' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Exchange.php',
31
- 'CompropagoSdk\\Factory\\Models\\FeeDetails' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/FeeDetails.php',
32
- 'CompropagoSdk\\Factory\\Models\\InstructionDetails' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/InstructionDetails.php',
33
- 'CompropagoSdk\\Factory\\Models\\Instructions' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Instructions.php',
34
- 'CompropagoSdk\\Factory\\Models\\NewOrderInfo' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/NewOrderInfo.php',
35
- 'CompropagoSdk\\Factory\\Models\\OrderInfo' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/OrderInfo.php',
36
- 'CompropagoSdk\\Factory\\Models\\PlaceOrderInfo' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/PlaceOrderInfo.php',
37
- 'CompropagoSdk\\Factory\\Models\\Provider' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Provider.php',
38
- 'CompropagoSdk\\Factory\\Models\\SmsData' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/SmsData.php',
39
- 'CompropagoSdk\\Factory\\Models\\SmsInfo' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/SmsInfo.php',
40
- 'CompropagoSdk\\Factory\\Models\\SmsObject' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/SmsObject.php',
41
- 'CompropagoSdk\\Factory\\Models\\Webhook' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Models/Webhook.php',
42
- 'CompropagoSdk\\Factory\\Serialize' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Factory/Serialize.php',
43
- 'CompropagoSdk\\Service' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Service.php',
44
- 'CompropagoSdk\\Tools\\Http' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Tools/Http.php',
45
- 'CompropagoSdk\\Tools\\Request' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Tools/Request.php',
46
- 'CompropagoSdk\\Tools\\Validations' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/Tools/Validations.php',
47
- 'CompropagoSdk\\UnitTest\\Test' => __DIR__ . '/..' . '/compropago/php-sdk/CompropagoSdk/UnitTest/Test.php',
48
- );
49
-
50
  public static function getInitializer(ClassLoader $loader)
51
  {
52
  return \Closure::bind(function () use ($loader) {
53
  $loader->prefixLengthsPsr4 = ComposerStaticInitafea82d3c9dea57010619a6a5628092f::$prefixLengthsPsr4;
54
  $loader->prefixDirsPsr4 = ComposerStaticInitafea82d3c9dea57010619a6a5628092f::$prefixDirsPsr4;
55
- $loader->classMap = ComposerStaticInitafea82d3c9dea57010619a6a5628092f::$classMap;
56
 
57
  }, null, ClassLoader::class);
58
  }
20
  ),
21
  );
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  public static function getInitializer(ClassLoader $loader)
24
  {
25
  return \Closure::bind(function () use ($loader) {
26
  $loader->prefixLengthsPsr4 = ComposerStaticInitafea82d3c9dea57010619a6a5628092f::$prefixLengthsPsr4;
27
  $loader->prefixDirsPsr4 = ComposerStaticInitafea82d3c9dea57010619a6a5628092f::$prefixDirsPsr4;
 
28
 
29
  }, null, ClassLoader::class);
30
  }
lib/Compropago/vendor/composer/installed.json CHANGED
@@ -1,17 +1,17 @@
1
  [
2
  {
3
  "name": "compropago/php-sdk",
4
- "version": "3.0.4",
5
- "version_normalized": "3.0.4.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/compropago/compropago-php.git",
9
- "reference": "d8ddde3edfa2b4b2a237112fcd46612a276ef0a7"
10
  },
11
  "dist": {
12
  "type": "zip",
13
- "url": "https://api.github.com/repos/compropago/compropago-php/zipball/d8ddde3edfa2b4b2a237112fcd46612a276ef0a7",
14
- "reference": "d8ddde3edfa2b4b2a237112fcd46612a276ef0a7",
15
  "shasum": ""
16
  },
17
  "require": {
@@ -20,7 +20,7 @@
20
  "require-dev": {
21
  "phpunit/phpunit": ">=4.8"
22
  },
23
- "time": "2017-02-16T20:38:48+00:00",
24
  "type": "library",
25
  "installation-source": "dist",
26
  "autoload": {
1
  [
2
  {
3
  "name": "compropago/php-sdk",
4
+ "version": "3.0.5",
5
+ "version_normalized": "3.0.5.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/compropago/compropago-php.git",
9
+ "reference": "4e4dc8826d8614ad8d76cb82b6d36273a0a3c2d7"
10
  },
11
  "dist": {
12
  "type": "zip",
13
+ "url": "https://api.github.com/repos/compropago/compropago-php/zipball/4e4dc8826d8614ad8d76cb82b6d36273a0a3c2d7",
14
+ "reference": "4e4dc8826d8614ad8d76cb82b6d36273a0a3c2d7",
15
  "shasum": ""
16
  },
17
  "require": {
20
  "require-dev": {
21
  "phpunit/phpunit": ">=4.8"
22
  },
23
+ "time": "2017-05-08T21:55:22+00:00",
24
  "type": "library",
25
  "installation-source": "dist",
26
  "autoload": {
lib/Compropago/vendor/compropago/php-sdk/CompropagoSdk/Client.php CHANGED
@@ -37,4 +37,4 @@ class Client
37
  {
38
  return $this->publickey;
39
  }
40
- }
37
  {
38
  return $this->publickey;
39
  }
40
+ }
lib/Compropago/vendor/compropago/php-sdk/CompropagoSdk/Extern/TransactTables.php DELETED
@@ -1,63 +0,0 @@
1
- <?php
2
-
3
- namespace CompropagoSdk\Extern;
4
-
5
-
6
- class TransactTables
7
- {
8
- /**
9
- * SQL query for Droping ComproPago Tables
10
- * @return string[]
11
- * @since 1.0.2
12
- */
13
- public static function sqlDropTables($prefix=null)
14
- {
15
- return array(
16
- 'DROP TABLE IF EXISTS `' . $prefix . 'compropago_orders`;',
17
- 'DROP TABLE IF EXISTS `' . $prefix . 'compropago_transactions`;',
18
- 'DROP TABLE IF EXISTS `' . $prefix . 'compropago_webhook_transactions`'
19
- );
20
- }
21
- /**
22
- * SQL query for Creating ComproPago Tables
23
- * @return string[]
24
- * @since 1.0.2
25
- */
26
- public static function sqlCreateTables($prefix=null)
27
- {
28
- return array(
29
- 'CREATE TABLE `' . $prefix . 'compropago_orders` (
30
- `id` int(11) NOT NULL AUTO_INCREMENT,
31
- `date` int(11) NOT NULL,
32
- `modified` int(11) NOT NULL,
33
- `compropagoId` varchar(50) NOT NULL,
34
- `compropagoStatus`varchar(50) NOT NULL,
35
- `storeCartId` varchar(255) NOT NULL,
36
- `storeOrderId` varchar(255) NOT NULL,
37
- `storeExtra` varchar(255) NOT NULL,
38
- `ioIn` mediumtext,
39
- `ioOut` mediumtext,
40
- PRIMARY KEY (`id`), UNIQUE KEY (`compropagoId`)
41
- )ENGINE=MyISAM DEFAULT CHARSET=utf8 DEFAULT COLLATE utf8_general_ci AUTO_INCREMENT=1 ;',
42
- 'CREATE TABLE `' . $prefix . 'compropago_transactions` (
43
- `id` int(11) NOT NULL AUTO_INCREMENT,
44
- `orderId` int(11) NOT NULL,
45
- `date` int(11) NOT NULL,
46
- `compropagoId` varchar(50) NOT NULL,
47
- `compropagoStatus` varchar(50) NOT NULL,
48
- `compropagoStatusLast` varchar(50) NOT NULL,
49
- `ioIn` mediumtext,
50
- `ioOut` mediumtext,
51
- PRIMARY KEY (`id`)
52
- )ENGINE=MyISAM DEFAULT CHARSET=utf8 DEFAULT COLLATE utf8_general_ci AUTO_INCREMENT=1 ;',
53
- 'CREATE TABLE `' . $prefix . 'compropago_webhook_transactions` (
54
- `id` integer not null auto_increment,
55
- `webhookId` varchar(50) not null,
56
- `updated` integer not null,
57
- `status` varchar(50) not null,
58
- `url` text not null,
59
- primary key(id)
60
- )ENGINE=MyISAM DEFAULT CHARSET=utf8 DEFAULT COLLATE utf8_general_ci AUTO_INCREMENT=1 ;'
61
- );
62
- }
63
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/Compropago/vendor/compropago/php-sdk/CompropagoSdk/Factory/Models/PlaceOrderInfo.php CHANGED
@@ -3,6 +3,9 @@
3
  namespace CompropagoSdk\Factory\Models;
4
 
5
  use CompropagoSdk\Client;
 
 
 
6
 
7
  class PlaceOrderInfo
8
  {
@@ -17,6 +20,10 @@ class PlaceOrderInfo
17
  public $image_url;
18
  public $app_client_name;
19
  public $app_client_version;
 
 
 
 
20
 
21
  public function __construct(
22
  $order_id,
@@ -29,8 +36,11 @@ class PlaceOrderInfo
29
  $expiration_time=null,
30
  $image_url=null,
31
  $app_client_name="phpsdk",
32
- $app_client_version=Client::VERSION
33
- )
 
 
 
34
  {
35
  $this->order_id = $order_id;
36
  $this->order_name = $order_name;
@@ -43,5 +53,9 @@ class PlaceOrderInfo
43
  $this->image_url = $image_url;
44
  $this->app_client_name = $app_client_name;
45
  $this->app_client_version = $app_client_version;
 
 
 
 
46
  }
47
  }
3
  namespace CompropagoSdk\Factory\Models;
4
 
5
  use CompropagoSdk\Client;
6
+ use CompropagoSdk\Service;
7
+
8
+
9
 
10
  class PlaceOrderInfo
11
  {
20
  public $image_url;
21
  public $app_client_name;
22
  public $app_client_version;
23
+ public $latitude;
24
+ public $longitude;
25
+ public $cp;
26
+ public $cutomer_phone;
27
 
28
  public function __construct(
29
  $order_id,
36
  $expiration_time=null,
37
  $image_url=null,
38
  $app_client_name="phpsdk",
39
+ $app_client_version=Client::VERSION,
40
+ $latitude = null,
41
+ $longitude = null,
42
+ $cp = null
43
+ )
44
  {
45
  $this->order_id = $order_id;
46
  $this->order_name = $order_name;
53
  $this->image_url = $image_url;
54
  $this->app_client_name = $app_client_name;
55
  $this->app_client_version = $app_client_version;
56
+ $this->latitude = $latitude;
57
+ $this->longitude = $longitude;
58
+ $this->cp = $cp;
59
+
60
  }
61
  }
lib/Compropago/vendor/compropago/php-sdk/CompropagoSdk/Factory/Serialize.php CHANGED
@@ -224,7 +224,10 @@ class Serialize
224
  empty($data['expiration_time']) ? null : $data['expiration_time'],
225
  empty($data['image_url']) ? '': $data['image_url'],
226
  empty($data['app_client_name']) ? 'php-sdk' : $data['app_client_name'],
227
- empty($data['app_client_version']) ? Client::VERSION : $data['app_client_version']
 
 
 
228
  );
229
  }
230
  }
224
  empty($data['expiration_time']) ? null : $data['expiration_time'],
225
  empty($data['image_url']) ? '': $data['image_url'],
226
  empty($data['app_client_name']) ? 'php-sdk' : $data['app_client_name'],
227
+ empty($data['app_client_version']) ? Client::VERSION : $data['app_client_version'],
228
+ empty($data['latitude']) ? '' : $data['latitude'],
229
+ empty($data['longitude']) ? '' : $data['longitude'],
230
+ empty($data['cp']) ? '' : $data['cp']
231
  );
232
  }
233
  }
lib/Compropago/vendor/compropago/php-sdk/CompropagoSdk/Service.php CHANGED
@@ -26,6 +26,19 @@ class Service
26
  ];
27
  }
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  /**
30
  * @param int $limit
31
  * @param string $currency
@@ -48,18 +61,6 @@ class Service
48
  return Factory::getInstanceOf('ListProviders', $response);
49
  }
50
 
51
- /**
52
- * @return array
53
- */
54
- public function listDefaultProviders()
55
- {
56
- $url = $this->client->deployUri . 'providers/true/';
57
-
58
- $response = Request::get($url);
59
-
60
- return Factory::getInstanceOf('ListProviders', $response);
61
- }
62
-
63
  /**
64
  * @param $orderId
65
  * @return \CompropagoSdk\Factory\Models\CpOrderInfo
@@ -76,6 +77,7 @@ class Service
76
  */
77
  public function placeOrder(PlaceOrderInfo $neworder)
78
  {
 
79
  $params = [
80
  'order_id' => $neworder->order_id,
81
  'order_name' => $neworder->order_name,
@@ -87,7 +89,20 @@ class Service
87
  'expiration_time' => $neworder->expiration_time,
88
  'image_url' => $neworder->image_url,
89
  'app_client_name' => $neworder->app_client_name,
90
- 'app_client_version' => $neworder->app_client_version
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  ];
92
 
93
  $response = Request::post($this->client->deployUri.'charges/', $params, $this->getAuth());
@@ -150,4 +165,18 @@ class Service
150
  $response = Request::delete($this->client->deployUri.'webhooks/stores/'.$webhookId.'/', null, $this->getAuth());
151
  return Factory::getInstanceOf('Webhook', $response);
152
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  }
26
  ];
27
  }
28
 
29
+ /**
30
+ * Get default providers
31
+ *
32
+ * @return void
33
+ */
34
+ public function listDefaultProviders()
35
+ {
36
+ $url = $this->client->deployUri . 'providers/true';
37
+ $response = Request::get($url);
38
+
39
+ return Factory::getInstanceOf('ListProviders', $response);
40
+ }
41
+
42
  /**
43
  * @param int $limit
44
  * @param string $currency
61
  return Factory::getInstanceOf('ListProviders', $response);
62
  }
63
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  /**
65
  * @param $orderId
66
  * @return \CompropagoSdk\Factory\Models\CpOrderInfo
77
  */
78
  public function placeOrder(PlaceOrderInfo $neworder)
79
  {
80
+ $ip = self::getIp();
81
  $params = [
82
  'order_id' => $neworder->order_id,
83
  'order_name' => $neworder->order_name,
89
  'expiration_time' => $neworder->expiration_time,
90
  'image_url' => $neworder->image_url,
91
  'app_client_name' => $neworder->app_client_name,
92
+ 'app_client_version' => $neworder->app_client_version,
93
+ 'customer' => [
94
+ 'name'=> $neworder->customer_name,
95
+ 'email'=> $neworder->customer_email,
96
+ 'phone'=> $neworder->cutomer_phone,
97
+ 'cp'=> $neworder->cp,
98
+ 'ip_address'=> $ip,
99
+ 'glocation' => [
100
+ 'lat'=> $neworder->latitude,
101
+ 'lon'=> $neworder->longitude
102
+ ]
103
+
104
+ ]
105
+
106
  ];
107
 
108
  $response = Request::post($this->client->deployUri.'charges/', $params, $this->getAuth());
165
  $response = Request::delete($this->client->deployUri.'webhooks/stores/'.$webhookId.'/', null, $this->getAuth());
166
  return Factory::getInstanceOf('Webhook', $response);
167
  }
168
+
169
+ private function getIp(){
170
+ if(isset($_SERVER['HTTP_CLIENT_IP'])) {
171
+ $ip = $_SERVER['HTTP_CLIENT_IP'];
172
+ } else if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
173
+ $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
174
+ } else if(isset($_SERVER['REMOTE_ADDR'])) {
175
+ $ip = $_SERVER['REMOTE_ADDR'];
176
+ } else{
177
+ $ip = '';
178
+ }
179
+
180
+ return $ip;
181
+ }
182
  }
lib/Compropago/vendor/compropago/php-sdk/README.md CHANGED
@@ -6,7 +6,7 @@ La librería de `ComproPago PHP SDK` le permite interactuar con el API de Compro
6
  También cuenta con los métodos necesarios para facilitarle su desarrollo por medio de los servicios
7
  más utilizados (SDK).
8
 
9
- Con ComproPago puede recibir pagos en OXXO, 7Eleven y muchas tiendas más en todo México.
10
 
11
  [Registrarse en ComproPago](https://compropago.com)
12
 
@@ -158,7 +158,7 @@ de la variable **client** como se muestra a continuación.
158
  * @param float order_price Monto total de la orden
159
  * @param string customer_name Nombre completo del cliente
160
  * @param string customer_email Correo electronico del cliente
161
- * @param string payment_type (default = OXXO) Valor del atributo internal_name' de un objeto 'Provider'
162
  * @param string currency (default = MXN) Codigo de la moneda con la que se esta creando el cargo
163
  * @param int expiration_time (default = null) Fecha en formato Epoch la cual indica la fecha de expiración de la orden
164
  */
@@ -168,7 +168,7 @@ $order_info = [
168
  'order_price' => 123.45,
169
  'customer_name' => 'Eduardo',
170
  'customer_email' => 'asd@asd.com',
171
- 'payment_type' => 'OXXO',
172
  'currency' => 'MXN',
173
  'expiration_time' => 1484799158
174
  ];
6
  También cuenta con los métodos necesarios para facilitarle su desarrollo por medio de los servicios
7
  más utilizados (SDK).
8
 
9
+ Con ComproPago puede recibir pagos en 7Eleven, Extra y muchas tiendas más en todo México.
10
 
11
  [Registrarse en ComproPago](https://compropago.com)
12
 
158
  * @param float order_price Monto total de la orden
159
  * @param string customer_name Nombre completo del cliente
160
  * @param string customer_email Correo electronico del cliente
161
+ * @param string payment_type (default = SEVEN_ELEVEN) Valor del atributo internal_name' de un objeto 'Provider'
162
  * @param string currency (default = MXN) Codigo de la moneda con la que se esta creando el cargo
163
  * @param int expiration_time (default = null) Fecha en formato Epoch la cual indica la fecha de expiración de la orden
164
  */
168
  'order_price' => 123.45,
169
  'customer_name' => 'Eduardo',
170
  'customer_email' => 'asd@asd.com',
171
+ 'payment_type' => 'SEVEN_ELEVEN',
172
  'currency' => 'MXN',
173
  'expiration_time' => 1484799158
174
  ];
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Compropago_Payment_Extension</name>
4
- <version>2.1.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>ComproPago Payment Gateway</summary>
10
- <description>Pagos en efectivo en tiendas de conveniencia</description>
11
- <notes>* Fixing Providers</notes>
12
- <authors><author><name>Eduardo Aguilar</name><user>eduardoay</user><email>eduardo.aguilar@compropago.com</email></author><author><name>Christian Aguirre</name><user>christian8aguirre</user><email>christian@compropago.com</email></author></authors>
13
- <date>2017-04-25</date>
14
- <time>18:36:07</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Compropago_CpPayment.xml" hash="39b519aeecb171cb993e0ee4e064f29a"/></dir></target><target name="magecommunity"><dir name="Compropago"><dir name="CpPayment"><dir name="Block"><file name="Form.php" hash="fedfa50d8860395445eec7e4def4df7d"/><file name="Info.php" hash="d34706306b26afc91b7b0190edbe73a0"/></dir><dir name="Helper"><file name="Data.php" hash="0ae647f79d66d82cc976408c120fcbb6"/></dir><dir name="Model"><file name="Observer.php" hash="240cb5799b8ed42ff62f7f43e14c648f"/><file name="Providers.php" hash="9574ca518ea2ed5e3dbf07f567285257"/><file name="Standard.php" hash="6a57e173dc4a294b64a5f21125e99903"/></dir><dir name="controllers"><file name="IndexController.php" hash="296a30fd79631eee84865c413eba88d4"/></dir><dir name="etc"><file name="config.xml" hash="52df200ca4eff7a4c7b5aad8dca3e822"/><file name="system.xml" hash="8a96aa67ae243dfb980fefb94066143a"/></dir><dir name="sql"><dir name="cppayment_setup"><file name="install-2.0.0.php" hash="3a1215b9adb72418e27ee6fffd604d73"/><file name="install-2.1.0.php" hash="3a1215b9adb72418e27ee6fffd604d73"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="compropago"><dir name="cppayment"><file name="info.phtml" hash="cef0629238404e0441a56af1d072ba82"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cppayment.xml" hash="aadfc4eed58b61274c257d022363e0bb"/></dir><dir name="template"><dir name="compropago"><dir name="cppayment"><file name="cash.phtml" hash="ebaa9f0caadc56cfb39af058c83bf763"/><file name="info.phtml" hash="717385b1db73eed01c81e64e8dafb0a6"/><file name="mark.phtml" hash="4eb1668734994184ea2a2f10c9bf8e13"/><file name="success.phtml" hash="1292183b370d80bddf50b67b9b8f13f0"/><file name=".DS_Store" hash="6d26a77bb0aa1f0b0471ffbeb4126011"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="compropago"><file name="compropago.js" hash="ffdf6e940b91554944656fff2cbdb6c5"/></dir></dir></target><target name="magelib"><dir name="Compropago"><file name="composer.json" hash="bf6638c9ddfed8bcdb7596a5e64d1aca"/><file name="composer.lock" hash="a0a2093b8d9044e1fa6fe4fa1b7e41e7"/><dir name="vendor"><file name="autoload.php" hash="8570695b211c779dba07dd6a2c07be3b"/><dir name="composer"><file name="ClassLoader.php" hash="d925befc389a2a2d5ecb76b81899d775"/><file name="LICENSE" hash="9b01fc9e0129adc080344653fbcbbc0f"/><file name="autoload_classmap.php" hash="07846ed23a0f5d3faa8d72a48d50e89c"/><file name="autoload_namespaces.php" hash="35e12c7d76c4a81633bcf547c0e229a9"/><file name="autoload_psr4.php" hash="94c7252625076c04000283666cfd7cc0"/><file name="autoload_real.php" hash="246736bc78177bb6b76761ca8d555228"/><file name="autoload_static.php" hash="77d190713c337e2a0068b4889be056cd"/><file name="installed.json" hash="94f41624ca9ee66445e5c0cf2bed8819"/></dir><dir name="compropago"><dir name="php-sdk"><file name="CHANGELOG.md" hash="bbaebfede967523edfa97b0afc17e6c9"/><dir name="CompropagoSdk"><file name="Client.php" hash="0dc58113b889f9646be290251357f6a2"/><dir name="Extern"><file name="TransactTables.php" hash="562a011e9c460131f3db8949744c6234"/></dir><dir name="Factory"><file name="Factory.php" hash="eb741f422a6abc7731787abba202d776"/><dir name="Models"><file name="CpOrderInfo.php" hash="5913e6adaf32b974f6048ececb0b64cc"/><file name="Customer.php" hash="063820ab5593af6ca1f5651faefd1f7d"/><file name="EvalAuthInfo.php" hash="f20efd78c8444de1319ffcdff6fe17a6"/><file name="Exchange.php" hash="6ea4dff1aa9686a68580c370926b9bad"/><file name="FeeDetails.php" hash="abb7dd814c9406c8b3c3140b49603594"/><file name="InstructionDetails.php" hash="f62a708998cb78b5fadf3ba06c7ff499"/><file name="Instructions.php" hash="d791bb0c351ba5527d2c42052d264d49"/><file name="NewOrderInfo.php" hash="5cba9b129567b0e8430f7a2de845e526"/><file name="OrderInfo.php" hash="1a8331117aff23655230a1e483271ea2"/><file name="PlaceOrderInfo.php" hash="054e6d46c5ac9783a91dbdcaff24d978"/><file name="Provider.php" hash="3d337431ed60cded52053b120bd793a2"/><file name="SmsData.php" hash="79485fd7121b5220df4ccc913fe1e8d2"/><file name="SmsInfo.php" hash="53b5d46bc67e9ff9e3e0fb6154bd5b12"/><file name="SmsObject.php" hash="ac4a5eb8cf4c22850e89491544b4506d"/><file name="Webhook.php" hash="8e8f101d6ffe2493e3bdfc4cd2290bec"/></dir><file name="Serialize.php" hash="72563586862511c363c0c0cf38c3182a"/></dir><file name="Service.php" hash="3d36dec2e3fb0d756edfed1e17ebf3c8"/><dir name="Tools"><file name="Http.php" hash="ae5f0911464eedbb3708d26a8ee04fcf"/><file name="Request.php" hash="6f1942e3fae6fc6ca9821b7c693e35d9"/><file name="Validations.php" hash="db3d42e0abc7855012c52126c69d67ff"/><file name="cacerts.pem" hash="a527b93e71b94759d99643641ff3b531"/></dir><dir name="UnitTest"><file name="Test.php" hash="c7d75c6edbedadc836e3ffb935f976ea"/><file name="autoload.php" hash="8d0f9e165df15f4e81541e976af3d0f1"/></dir></dir><file name="LICENSE" hash="abac77493634e3d1c15493847c602b03"/><file name="README.md" hash="bdbdb17b5b905b9f6af904b07ba7e0e1"/><file name="composer.json" hash="495a25c62fd7a965ce220d473cb6ce5c"/><file name=".gitignore" hash="34ac7e14eb103b0316bf4efc1ddb8bc0"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="cppayment"><file name="compropago-logo.png" hash="2a3e98095b5c9df0669b7dc70f0682cd"/><file name="gitmerge.gif" hash="31c57faf2960d93d98e9d39bd71df00b"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="compropago"><file name="compropago.css" hash="5a4b5271ef09e42b63eaeabb73d7d9e8"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0</min><max>8.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Compropago_Payment_Extension</name>
4
+ <version>2.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Precision algorithm</summary>
10
+ <description>* precision algorithm</description>
11
+ <notes>* update sdk and structure view cash</notes>
12
+ <authors><author><name>Eduardo Aguilar</name><user>danetay</user><email>eduardo.aguilar@compropago.com</email></author></authors>
13
+ <date>2017-05-09</date>
14
+ <time>01:03:45</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Compropago_CpPayment.xml" hash="39b519aeecb171cb993e0ee4e064f29a"/></dir></target><target name="magecommunity"><dir name="Compropago"><dir name="CpPayment"><dir name="Block"><file name="Form.php" hash="fedfa50d8860395445eec7e4def4df7d"/><file name="Info.php" hash="d34706306b26afc91b7b0190edbe73a0"/></dir><dir name="Helper"><file name="Data.php" hash="0ae647f79d66d82cc976408c120fcbb6"/></dir><dir name="Model"><file name="Observer.php" hash="240cb5799b8ed42ff62f7f43e14c648f"/><file name="Providers.php" hash="9574ca518ea2ed5e3dbf07f567285257"/><file name="Standard.php" hash="3c955cc65d0148c5da8ceaf5ab3ba4e1"/></dir><dir name="controllers"><file name="IndexController.php" hash="296a30fd79631eee84865c413eba88d4"/></dir><dir name="etc"><file name="config.xml" hash="a98afd06c64fd3ace95957eabe6f29f5"/><file name="system.xml" hash="ac98ab636f0bbc3bbd21aa5fbad11968"/></dir><dir name="sql"><dir name="cppayment_setup"><file name="install-2.0.0.php" hash="3a1215b9adb72418e27ee6fffd604d73"/><file name="install-2.1.0.php" hash="3a1215b9adb72418e27ee6fffd604d73"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="compropago"><dir name="cppayment"><file name="info.phtml" hash="cef0629238404e0441a56af1d072ba82"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cppayment.xml" hash="aadfc4eed58b61274c257d022363e0bb"/></dir><dir name="template"><dir name="compropago"><dir name="cppayment"><file name="cash.phtml" hash="de176c62ad0fa768d711d397997b0222"/><file name="info.phtml" hash="717385b1db73eed01c81e64e8dafb0a6"/><file name="mark.phtml" hash="4eb1668734994184ea2a2f10c9bf8e13"/><file name="success.phtml" hash="1292183b370d80bddf50b67b9b8f13f0"/><file name=".DS_Store" hash="6d26a77bb0aa1f0b0471ffbeb4126011"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="compropago"><file name="compropago.js" hash="375309f8d2baa5727be0ae5c39cb4e18"/></dir></dir></target><target name="magelib"><dir name="Compropago"><file name="composer.json" hash="bf6638c9ddfed8bcdb7596a5e64d1aca"/><file name="composer.lock" hash="5cbcd1c6f450e00f9f3990b1a57512bc"/><dir name="vendor"><file name="autoload.php" hash="8570695b211c779dba07dd6a2c07be3b"/><dir name="composer"><file name="ClassLoader.php" hash="292c079dbe63ba06bfbf37fd99fe4bf9"/><file name="LICENSE" hash="955d5fe58c231244f6b49000f383b5e2"/><file name="autoload_classmap.php" hash="8645d3a4e3ad87e7cf4d88a46717aab4"/><file name="autoload_namespaces.php" hash="35e12c7d76c4a81633bcf547c0e229a9"/><file name="autoload_psr4.php" hash="94c7252625076c04000283666cfd7cc0"/><file name="autoload_real.php" hash="246736bc78177bb6b76761ca8d555228"/><file name="autoload_static.php" hash="173ab2ec0d562e1e540c4374bd6f23c2"/><file name="installed.json" hash="b19c48ccd093e2314e0c858427bddf57"/></dir><dir name="compropago"><dir name="php-sdk"><file name="CHANGELOG.md" hash="bbaebfede967523edfa97b0afc17e6c9"/><dir name="CompropagoSdk"><file name="Client.php" hash="cf60f6e91a84edea5ac91aec1ab53c1a"/><dir name="Factory"><file name="Factory.php" hash="eb741f422a6abc7731787abba202d776"/><dir name="Models"><file name="CpOrderInfo.php" hash="5913e6adaf32b974f6048ececb0b64cc"/><file name="Customer.php" hash="063820ab5593af6ca1f5651faefd1f7d"/><file name="EvalAuthInfo.php" hash="f20efd78c8444de1319ffcdff6fe17a6"/><file name="Exchange.php" hash="6ea4dff1aa9686a68580c370926b9bad"/><file name="FeeDetails.php" hash="abb7dd814c9406c8b3c3140b49603594"/><file name="InstructionDetails.php" hash="f62a708998cb78b5fadf3ba06c7ff499"/><file name="Instructions.php" hash="d791bb0c351ba5527d2c42052d264d49"/><file name="NewOrderInfo.php" hash="5cba9b129567b0e8430f7a2de845e526"/><file name="OrderInfo.php" hash="1a8331117aff23655230a1e483271ea2"/><file name="PlaceOrderInfo.php" hash="06595becd9475ddde9a8a23e265ad4b9"/><file name="Provider.php" hash="3d337431ed60cded52053b120bd793a2"/><file name="SmsData.php" hash="79485fd7121b5220df4ccc913fe1e8d2"/><file name="SmsInfo.php" hash="53b5d46bc67e9ff9e3e0fb6154bd5b12"/><file name="SmsObject.php" hash="ac4a5eb8cf4c22850e89491544b4506d"/><file name="Webhook.php" hash="8e8f101d6ffe2493e3bdfc4cd2290bec"/></dir><file name="Serialize.php" hash="8a1f74cae3320226d780a8b3430e0f28"/></dir><file name="Service.php" hash="87b4876585388117be9afadd18698b9b"/><dir name="Tools"><file name="Http.php" hash="ae5f0911464eedbb3708d26a8ee04fcf"/><file name="Request.php" hash="6f1942e3fae6fc6ca9821b7c693e35d9"/><file name="Validations.php" hash="db3d42e0abc7855012c52126c69d67ff"/><file name="cacerts.pem" hash="a527b93e71b94759d99643641ff3b531"/></dir><dir name="UnitTest"><file name="Test.php" hash="c7d75c6edbedadc836e3ffb935f976ea"/><file name="autoload.php" hash="8d0f9e165df15f4e81541e976af3d0f1"/></dir></dir><file name="LICENSE" hash="abac77493634e3d1c15493847c602b03"/><file name="README.md" hash="76d5706abf649fca25eeecc698605a1e"/><file name="composer.json" hash="495a25c62fd7a965ce220d473cb6ce5c"/><file name=".gitignore" hash="34ac7e14eb103b0316bf4efc1ddb8bc0"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="cppayment"><file name="compropago-logo.png" hash="2a3e98095b5c9df0669b7dc70f0682cd"/><file name="gitmerge.gif" hash="31c57faf2960d93d98e9d39bd71df00b"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="compropago"><file name="compropago.css" hash="e01dfd782c15525a4acbe59c3ab241d5"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0</min><max>8.0.0</max></php></required></dependencies>
18
  </package>
skin/frontend/base/default/compropago/compropago.css CHANGED
@@ -6,22 +6,6 @@
6
  background-size: 100% auto;
7
  max-width: 100%
8
  }
9
- #cppayment_store .provider-select {
10
- -webkit-appearance: none;
11
- -moz-appearance: none;
12
- outline: 0;
13
- border: 0;
14
- background: none;
15
- height: 100%;
16
- width: 100%;
17
- padding-left: 62px;
18
- box-sizing: border-box;
19
- text-transform: uppercase;
20
- font-size: 14px;
21
- background-size: auto 70%;
22
- background-position: 2px 6px;
23
- background-repeat: no-repeat
24
- }
25
  #payment_form_cppayment h2 {
26
  font-size: 16px;
27
  margin: .5em 0
6
  background-size: 100% auto;
7
  max-width: 100%
8
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  #payment_form_cppayment h2 {
10
  font-size: 16px;
11
  margin: .5em 0