Skip to content

Commit

Permalink
Se forza el redondeo a 2 decimales de los montos a transaccionar
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Balderas committed Mar 20, 2019
1 parent 390e422 commit 70231fe
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 22 deletions.
Binary file modified PS_1.7/openpaybanks.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion PS_1.7/openpaybanks/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>openpaybanks</name>
<displayName><![CDATA[Openpay]]></displayName>
<version><![CDATA[3.0.1]]></version>
<version><![CDATA[3.0.2]]></version>
<description><![CDATA[Acepta transferencias bancarias con Openpay]]></description>
<author><![CDATA[Openpay SAPI de CV]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
4 changes: 2 additions & 2 deletions PS_1.7/openpaybanks/openpaybanks.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct()

$this->name = 'openpaybanks';
$this->tab = 'payments_gateways';
$this->version = '3.0.1';
$this->version = '3.0.2';
$this->author = 'Openpay SAPI de CV';
$this->module_key = '23c1a97b2718ec0aec28bb9b3b2fc6d5';

Expand Down Expand Up @@ -519,7 +519,7 @@ public function offlinePayment($payment_method)

$charge_request = array(
'method' => $payment_method,
'amount' => $cart->getOrderTotal(),
'amount' => round($cart->getOrderTotal(), 2),
'description' => $this->l('PrestaShop Cart ID:').' '.(int) $cart->id,
'due_date' => $due_date
);
Expand Down
Binary file modified PS_1.7/openpayprestashop.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion PS_1.7/openpayprestashop/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>openpayprestashop</name>
<displayName><![CDATA[Openpay]]></displayName>
<version><![CDATA[3.0.1]]></version>
<version><![CDATA[3.0.2]]></version>
<description><![CDATA[Acepta pagos con tarjeta de crédito con Openpay.]]></description>
<author><![CDATA[Openpay SAPI de CV]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
13 changes: 0 additions & 13 deletions PS_1.7/openpayprestashop/config_mx.xml

This file was deleted.

4 changes: 2 additions & 2 deletions PS_1.7/openpayprestashop/openpayprestashop.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct() {

$this->name = 'openpayprestashop';
$this->tab = 'payments_gateways';
$this->version = '3.0.1';
$this->version = '3.0.2';
$this->author = 'Openpay SAPI de CV';
$this->module_key = '23c1a97b2718ec0aec28bb9b3b2fc6d5';

Expand Down Expand Up @@ -427,7 +427,7 @@ public function processPayment($token = null, $device_session_id = null, $intere
'currency' => $this->context->currency->iso_code,
'source_id' => $token,
'device_session_id' => $device_session_id,
'amount' => $cart->getOrderTotal(),
'amount' => round($cart->getOrderTotal(), 2),
'description' => $this->l('PrestaShop Cart ID:').' '.(int) $cart->id,
'use_card_points' => $use_card_points,
'capture' => $capture
Expand Down
Binary file modified PS_1.7/openpaystores.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion PS_1.7/openpaystores/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>openpaystores</name>
<displayName><![CDATA[Openpay]]></displayName>
<version><![CDATA[3.0.1]]></version>
<version><![CDATA[3.0.2]]></version>
<description><![CDATA[Acepta pagos en efectivo con Openpay]]></description>
<author><![CDATA[Openpay SAPI de CV]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
4 changes: 2 additions & 2 deletions PS_1.7/openpaystores/openpaystores.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct()

$this->name = 'openpaystores';
$this->tab = 'payments_gateways';
$this->version = '3.0.1';
$this->version = '3.0.2';
$this->author = 'Openpay SAPI de CV';
$this->module_key = '23c1a97b2718ec0aec28bb9b3b2fc6d5';

Expand Down Expand Up @@ -528,7 +528,7 @@ public function offlinePayment($payment_method)

$charge_request = array(
'method' => $payment_method,
'amount' => $cart->getOrderTotal(),
'amount' => round($cart->getOrderTotal(), 2),
'description' => $this->l('PrestaShop Cart ID:').' '.(int) $cart->id,
'due_date' => $due_date
);
Expand Down

0 comments on commit 70231fe

Please sign in to comment.