add payment link on admin gateway
This commit is contained in:
parent
6e209b550b
commit
b630a97215
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<<?php
|
||||
/* Copyright (C) 2017 Laurent Destailleur <eldy@destailleur.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -118,6 +118,28 @@ if (! empty($conf->adherent->enabled))
|
||||
}
|
||||
print '<br>';
|
||||
}
|
||||
if (! empty($conf->don->enabled))
|
||||
{
|
||||
print img_picto('','object_globe.png').' '.$langs->trans("ToOfferALinkForOnlinePaymentOnDonation",$servicename).':<br>';
|
||||
print '<strong>'.getOnlinePaymentUrl(1,'donation')."</strong><br>\n";
|
||||
if (! empty($conf->global->PAYMENT_SECURITY_TOKEN) && ! empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE))
|
||||
{
|
||||
$langs->load("members");
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||
print $langs->trans("EnterRefToBuildUrl",$langs->transnoentitiesnoconv("Don")).': ';
|
||||
print '<input type="text class="flat" id="generate_donation_ref" name="generate_donation_ref" value="'.GETPOST('generate_donation_ref','alpha').'" size="10">';
|
||||
print '<input type="submit" class="none reposition button" value="'.$langs->trans("GetSecuredUrl").'">';
|
||||
if (GETPOST('generate_donation_ref'))
|
||||
{
|
||||
print '<br> -> <strong>';
|
||||
$url=getOnlinePaymentUrl(0,'donation',GETPOST('generate_donation_ref','alpha'));
|
||||
print $url;
|
||||
print "</strong><br>\n";
|
||||
}
|
||||
print '</form>';
|
||||
}
|
||||
print '<br>';
|
||||
}
|
||||
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
@ -140,3 +162,4 @@ print info_admin($langs->trans("YouCanAddTagOnUrl"));
|
||||
|
||||
print '<!-- END PHP TEMPLATE ONLINEPAYMENTLINKS -->';
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user