Skip to content

Commit

Permalink
Delete paynet map configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-MendezOp committed Dec 22, 2023
1 parent fb42cef commit c20b0a0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 29 deletions.
Binary file modified openpaystores.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion 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[4.3.1]]></version>
<version><![CDATA[4.3.2]]></version>
<description><![CDATA[Acepta pagos en efectivo con Openpay]]></description>
<author><![CDATA[Openpay SA de CV]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
9 changes: 2 additions & 7 deletions openpaystores/openpaystores.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct()

$this->name = 'openpaystores';
$this->tab = 'payments_gateways';
$this->version = '4.3.1';
$this->version = '4.3.2';
$this->author = 'Openpay SA de CV';
$this->module_key = '23c1a97b2718ec0aec28bb9b3b2fc6d5';

Expand Down Expand Up @@ -388,15 +388,13 @@ public function hookPaymentReturn($params)
if($country == 'MX'){
$data = array(
'pdf_url' => $pdf_url,
'show_map' => Configuration::get('OPENPAY_SHOW_MAP') == '1' ? true : false,
'postal_code' => $address['postcode'],
'country' => $country
);
}else{
$address = $address['address1'].' '.$address['address2'].', '.$address['city'];
$data = array(
'pdf_url' => $pdf_url,
'show_map' => Configuration::get('OPENPAY_SHOW_MAP') == '1' ? true : false,
'address' => $address,
'country' => $country
);
Expand Down Expand Up @@ -649,7 +647,6 @@ public function getContent()
'OPENPAY_PRIVATE_KEY_LIVE' => trim(Tools::getValue('openpay_private_key_live')),
'OPENPAY_DEADLINE_STORES' => trim(Tools::getValue('openpay_deadline_stores')),
'OPENPAY_WEBHOOK_URL' => trim(Tools::getValue('openpay_webhook_url')),
'OPENPAY_SHOW_MAP' => Tools::getValue('show_map'),
'OPENPAY_STORE_IVA' => Tools::getValue('openpay_store_iva')
);

Expand All @@ -674,8 +671,7 @@ public function getContent()
Configuration::deleteByName('OPENPAY_MERCHANT_ID_'.$mode);
Configuration::deleteByName('OPENPAY_PRIVATE_KEY_'.$mode);
Configuration::deleteByName('OPENPAY_WEBHOOK_ID_'.$mode);
Configuration::deleteByName('OPENPAY_DEADLINE_STORES');
Configuration::deleteByName('OPENPAY_SHOW_MAP');
Configuration::deleteByName('OPENPAY_DEADLINE_STORES');
}
}

Expand Down Expand Up @@ -721,7 +717,6 @@ public function getContent()
'OPENPAY_PRIVATE_KEY_LIVE',
'OPENPAY_DEADLINE_STORES',
'OPENPAY_WEBHOOK_URL',
'OPENPAY_SHOW_MAP',
'OPENPAY_STORE_IVA'
)
),
Expand Down
10 changes: 0 additions & 10 deletions openpaystores/views/templates/admin/configuration.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,6 @@
<small>{l s="Ingrear el número de horas en que el usuario tendrá como máximo para realizar su pago una vez generada la orden de compra." mod='openpaystores'}</small>
</td>
</tr>
<tr>
<td colspan="2">
<label style="">{l s="Mostrar mapa" mod='openpaystores'}</label>
<select name="show_map" id="show_map" style="width: 100%; margin: 10px 0 0 0;">
<option value="0" {if $openpay_configuration.OPENPAY_SHOW_MAP == '0'} selected="selected"{/if}>NO</option>
<option value="1" {if $openpay_configuration.OPENPAY_SHOW_MAP == '1'} selected="selected"{/if}>SI</option>
</select>
<div><small>Al selccionar esta opción, un mapa se desplegará mostrando las tiendas más cercanas al momento mostrar el recipo de pago.</small></div>
</td>
</tr>
<tr>
<td>
<label style="">{l s="IVA" mod='openpaystores'}</label>
Expand Down
16 changes: 5 additions & 11 deletions openpaystores/views/templates/hook/store_order_confirmation.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,10 @@
*}

<div style="text-align: center">
<div class="mt20 mb20">
<h2 style="font-weight:600;">Localiza tu tienda más cercana dando click
<a target="_blank" href="https://www.paynet.com.mx/mapa-tiendas/index.html" style="font-weight:600;">aqui</a>
</h2>
</div>
<iframe id="pdf" src="{$openpay_order.pdf_url|escape:'htmlall':'UTF-8'}" style="width:70%; height:1000px;" frameborder="0"></iframe>

{if ($openpay_order.show_map)}
<div class="mt20 mb20">
<h2>Mapa de tiendas</h2>
{if $openpay_order.country == MX}
<iframe src="https://www.paynet.com.mx/mapa-tiendas/index.html?locationNotAllowed=true&postalCode={$openpay_order.postal_code}" style="border: 1px solid #000; width:70%; height:300px;" frameborder="0"></iframe>
{else}
<iframe src="https://docs.openpay.co/docs/mapa-de-tiendas.html?locationNotAllowed=true&address={$openpay_order.address}" style="border: 1px solid #000; width:70%; height:300px;" frameborder="0"></iframe>
{/if}
</div>
{/if}
</div>

0 comments on commit c20b0a0

Please sign in to comment.