Upload files to "system/paymentgateway/ui"

Signed-off-by: nestict <icttechnest@gmail.com>
This commit is contained in:
nestict 2025-06-06 16:37:55 +02:00
parent c0f1ed621f
commit 35687ea3d5
3 changed files with 192 additions and 0 deletions

View File

@ -0,0 +1,69 @@
{include file="sections/header.tpl"}
<form class="form-horizontal" method="post" role="form" action="{$_url}paymentgateway/MpesatillStk" >
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="panel panel-primary panel-hovered panel-stacked mb30">
<div class="panel-heading">M-Pesa</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Consumer Key</label>
<div class="col-md-6">
<input type="text" class="form-control" id="mpesa_consumer_key" name="mpesa_consumer_key" placeholder="xxxxxxxxxxxxxxxxx" value="{$_c['mpesa_till_consumer_key']}">
<small class="form-text text-muted"><a href="https://developer.safaricom.co.ke/MyApps" target="_blank">https://developer.safaricom.co.ke/MyApps</a></small>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Consumer Secret</label>
<div class="col-md-6">
<input type="text" class="form-control" id="mpesa_consumer_secret" name="mpesa_consumer_secret" placeholder="xxxxxxxxxxxxxxxxx" value="{$_c['mpesa_till_consumer_secret']}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Business Shortcode(Store number/H.O)</label>
<div class="col-md-6">
<input type="text" class="form-control" id="mpesa_business_code" name="mpesa_business_code" placeholder="xxxxxxx" maxlength="7" value="{$_c['mpesa_till_shortcode_code']}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Business Shortcode(Till number)</label>
<div class="col-md-6">
<input type="text" class="form-control" id="mpesa_business_code" name="mpesa_till" placeholder="xxxxxxx" maxlength="7" value="{$_c['mpesa_till_partyb']}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Pass Key</label>
<div class="col-md-6">
<input type="text" class="form-control" id="mpesa_pass_key" name="mpesa_pass_key" placeholder="bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919" maxlength="" value="{$_c['mpesa_till_pass_key']}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">M-Pesa Environment</label>
<div class="col-md-6">
<select class="form-control" name="mpesa_env">
{foreach $env as $environment}
<option value="{$environment['id']}"
{if $environment['id'] == $_c['mpesa_env']}selected{/if}
>{$environment['id']} - {$environment['name']}</option>
{/foreach}
</select>
<small class="form-text text-muted"><font color="red"><b>Sandbox</b></font> is for testing purpose, please switch to <font color="green"><b>Live</b></font> in production.</small>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light" type="submit">Save</button>
</div>
</div>
<pre>/ip hotspot walled-garden
add dst-host=safaricom.co.ke
add dst-host=*.safaricom.co.ke</pre>
</div>
</div>
</div>
</div>
</form>
{include file="sections/footer.tpl"}

View File

@ -0,0 +1,64 @@
{include file="sections/header.tpl"}
<form class="form-horizontal" method="post" role="form" action="{$_url}paymentgateway/paypal">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="panel panel-primary panel-hovered panel-stacked mb30">
<div class="panel-heading">PayPal Payment Gateway</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Client ID</label>
<div class="col-md-6">
<input type="text" class="form-control" id="paypal_client_id" name="paypal_client_id"
value="{$_c['paypal_client_id']}">
<a href="https://developer.paypal.com/dashboard/applications/live" target="_blank"
class="help-block">https://developer.paypal.com/dashboard/applications/live</a>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Verification Token</label>
<div class="col-md-6">
<input type="text" class="form-control" id="paypal_secret_key" name="paypal_secret_key"
value="{$_c['paypal_secret_key']}">
<a href="https://developer.paypal.com/dashboard/applications/live" target="_blank"
class="help-block">https://developer.paypal.com/dashboard/applications/live</a>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Currency</label>
<div class="col-md-6">
<select class="form-control" name="paypal_currency">
{foreach $currency as $cur}
<option value="{$cur['id']}"
{if $cur['id'] == $_c['paypal_currency']}selected{/if}
>{$cur['id']} - {$cur['name']}</option>
{/foreach}
</select>
<small class="form-text text-muted">* This currency does not support decimals. If you pass a decimal amount, an error occurs.<br>
** This currency is supported as a payment currency and a currency balance for in-country PayPal
accounts only. If the receiver of funds is not from Brazil, then PayPal converts funds into the
primary holding currency of the account with the applicable currency conversion rate. The currency
conversion rate includes PayPal's applicable spread or fee.<br>
*** This currency is supported as a payment currency and a currency balance for in-country PayPal
accounts only.</small>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light"
type="submit">{Lang::T('Save')}</button>
</div>
</div>
<pre>/ip hotspot walled-garden
add dst-host=paypal.com
add dst-host=*.paypal.com</pre>
<small class="form-text text-muted">Set Telegram Bot to get any error and
notification</small>
</div>
</div>
</div>
</div>
</form>
{include file="sections/footer.tpl"}

View File

@ -0,0 +1,59 @@
{include file="sections/header.tpl"}
<form class="form-horizontal" method="post" role="form" action="{$_url}paymentgateway/paystack">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="panel panel-primary panel-hovered panel-stacked mb30">
<div class="panel-heading">Paystack Payment Gateway</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">Paystack Secret Key</label>
<div class="col-md-6">
<input type="text" class="form-control" id="paystack_secret_key" name="paystack_secret_key"
value="{$_c['paystack_secret_key']}">
<a href="https://dashboard.paystack.co/#/settings/developer" target="_blank"
class="help-block">https://dashboard.paystack.co/#/settings/developer</a>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Payment Channels</label>
<div class="col-md-6">
{foreach $channel as $payment_options}
<label class="checkbox-inline"><input type="checkbox" {if strpos($_c['paystack_channel'], $payment_options['id']) !== false}checked="true"{/if} id="paystack_channel" name="paystack_channel[]" value="{$payment_options['id']}"> {$payment_options['name']}</label>
{/foreach}
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Currency</label>
<div class="col-md-6">
<select class="form-control" name="paystack_currency">
{foreach $cur as $currency}
<option value="{$currency['id']}"
{if $currency['id'] == $_c['paystack_currency']}selected{/if}
>{$currency['id']} - {$currency['name']}</option>
{/foreach}
</select>
<small class="form-text text-muted">Attention</small>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary waves-effect waves-light"
type="submit">{$_L['Save']}</button>
</div>
</div>
<pre>/ip hotspot walled-garden
add dst-host=paystack.com
add dst-host=*.paystack.com</pre>
<small class="form-text text-muted">Set Telegram Bot to get any error and
notification</small>
</div>
</div>
</div>
</div>
</form>
{include file="sections/footer.tpl"}