Il manquait des fichiers dans le module Mercanet (sur Git)

This commit is contained in:
2024-01-12 10:37:52 +01:00
parent 4054fddbe5
commit 485580e0b2
22 changed files with 2034 additions and 0 deletions

View File

@@ -0,0 +1,110 @@
<div class="row">
<div class="col-md-12 general-block-decorator">
<div class="row">
<div class="col-md-12 title title-without-tabs">
{intl d='mercanet.bo.default' l="Mercanet Configuration"}
</div>
</div>
<div class="form-container">
<div class="row">
<div class="col-md-12">
{form name="mercanet_configuration"}
<form action="{url path="/admin/module/mercanet/configure"}" method="post">
{form_hidden_fields form=$form}
{include file = "includes/inner-form-toolbar.html"
hide_flags = true
page_url = "{url path='/admin/module/Mercanet'}"
close_url = "{url path='/admin/modules'}"
}
{if $form_error}
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger">{$form_error_message}</div>
</div>
</div>
{/if}
<div class="row">
<div class="col-md-4">
<p class="title title-without-tabs">{intl d='mercanet.bo.default' l="Mercanet Platform configuration"}</p>
{render_form_field form=$form field="merchantId" value=$merchantId}
{render_form_field form=$form field="secretKey" value=$secretKey}
{render_form_field form=$form field="secretKeyVersion" value=$secretKeyVersion}
</div>
<div class="col-md-4">
<p class="title title-without-tabs">{intl d='mercanet.bo.default' l="Operation mode"}</p>
{render_form_field form=$form field="mode_v2_simplifie" value=$mode_v2_simplifie}
{render_form_field form=$form field="mode" value=$mode}
{render_form_field form=$form field="allowed_ip_list" value=$allowed_ip_list}
<p class="title title-without-tabs">{intl d='mercanet.bo.default' l="Payment by N installment"}</p>
{loop name="multi-plugin-enabled" type="module" code="MercanetNx" active="1"}{/loop}
{elseloop rel="multi-plugin-enabled"}
<div class="alert alert-info">
{intl l="Install and activate Mercanet multiple times payment module (MercanetNx) to get configuration options." d='mercanet.bo'}
</div>
{/elseloop}
{render_form_field form=$form field="nx_nb_installments" value=$nx_nb_installments|default:3}
{render_form_field form=$form field="nx_minimum_amount" value=$nx_minimum_amount|default:0}
{render_form_field form=$form field="nx_maximum_amount" value=$nx_maximum_amount|default:0}
</div>
<div class="col-md-4">
<p class="title title-without-tabs">{intl d='mercanet.bo.default' l="Payment configuration"}</p>
{custom_render_form_field form=$form field="send_confirmation_message_only_if_paid"}
<input type="checkbox" {form_field_attributes form=$form field="send_confirmation_message_only_if_paid"} {if $send_confirmation_message_only_if_paid}checked{/if}>
{$label}
{/custom_render_form_field}
{custom_render_form_field form=$form field="send_payment_confirmation_message"}
<input type="checkbox" {form_field_attributes form=$form field="send_payment_confirmation_message"} {if $send_payment_confirmation_message}checked{/if}>
{$label}
{/custom_render_form_field}
<div class="well well-sm">
<span class="glyphicon glyphicon-info-sign"></span>
{intl d='mercanet.bo.default' l='You can <a href="%url">edit the payment confirmation email</a> sent to the customer after a successful payment.' url={url path="/admin/configuration/messages"}}
</div>
{render_form_field form=$form field="minimum_amount" value=$minimum_amount}
{render_form_field form=$form field="maximum_amount" value=$maximum_amount}
</div>
</div>
</form>
{/form}
<div class="row">
<div class="col-xs-12">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">
<span class="glyphicon glyphicon-cog"></span>
{intl d='mercanet.bo.default' l="Mercanet call log to callback URL"}
</h3>
</div>
<div class="panel-body">
<div id="log-container" style="font-family: monospace; font-size: 12px; max-height: 400px; overflow-y: scroll">
{$trace_content nofilter}
</div>
</div>
<div class="panel-footer">
<a href="{url path='/admin/module/mercanet/log'}" class="btn btn-sm btn-primary">{intl d='mercanet.bo.default' l="Download full log"}</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,23 @@
{extends file="email-layout.tpl"}
{* Do not provide a "Open in browser" link *}
{block name="browser"}{/block}
{* No pre-header *}
{block name="pre-header"}{/block}
{* Subject *}
{block name="email-subject"}{intl d='mercanet.email.default' l="Payment of your order %ref" ref=$order_ref}{/block}
{* Title *}
{block name="email-title"}{intl d='mercanet.email.default' l="The payment of your order %ref with Mercanet is confirmed" ref=$order_ref}{/block}
{* Content *}
{block name="email-content"}
<p>
<a href="{url path="/account"}">
{intl l="View this order in your account at %shop_name" shop_name={config key="store_name"}}
</a>
</p>
<p>{intl d='mercanet.email.default' l='Thank you again for your purchase.'}</p>
<p>{intl d='mercanet.email.default' l='The %store_name team.' store_name={config key="store_name"}}</p>
{/block}

View File

@@ -0,0 +1,5 @@
{intl d='mercanet.email.default' l='Dear customer'},<br>
{intl d='mercanet.email.default' l='This is a confirmation of the payment of your order %ref with Mercanet on our shop.' ref=$order_ref}<br>
{intl d='mercanet.email.default' l='Your invoice is now available in your customer account at %url.'} url={config key="url_site"}}<br>
{intl d='mercanet.email.default' l='Thank you again for your purchase.'}<br>
{intl d='mercanet.email.default' l='The %store_name team.' store_name={config key="store_name"}}<br>