Work on generic payment module
This commit is contained in:
parent
796684713f
commit
55691bfbc2
@ -1225,7 +1225,19 @@ if ($action != 'dopayment')
|
||||
{
|
||||
// Buttons for all payments registration methods
|
||||
|
||||
if (! empty($conf->paypal->enabled))
|
||||
if (! empty($conf->paybox->enabled))
|
||||
{
|
||||
// If STRIPE_PICTO_FOR_PAYMENT is 'cb' we show a picto of a crdit card instead of paybox
|
||||
print '<br><input class="button buttonpayment buttonpayment'.(empty($conf->global->PAYBOX_PICTO_FOR_PAYMENT)?'paybox':$conf->global->PAYBOX_PICTO_FOR_PAYMENT).'" type="submit" name="dopayment_paybox" value="'.$langs->trans("PayBoxDoPayment").'">';
|
||||
}
|
||||
|
||||
if (! empty($conf->stripe->enabled))
|
||||
{
|
||||
// If STRIPE_PICTO_FOR_PAYMENT is 'cb' we show a picto of a crdit card instead of stripe
|
||||
print '<br><input class="button buttonpayment buttonpayment'.(empty($conf->global->STRIPE_PICTO_FOR_PAYMENT)?'stripe':$conf->global->STRIPE_PICTO_FOR_PAYMENT).'" type="submit" name="dopayment__stripe" value="'.$langs->trans("StripeDoPayment").'">';
|
||||
}
|
||||
|
||||
if (! empty($conf->paypal->enabled))
|
||||
{
|
||||
if (empty($conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY)) $conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY='integral';
|
||||
|
||||
@ -1238,16 +1250,6 @@ if ($action != 'dopayment')
|
||||
print '<br><input class="button buttonpayment buttonpaymentpaypal" type="submit" name="dopayment_paypal" value="'.$langs->trans("PaypalDoPayment").'">';
|
||||
}
|
||||
}
|
||||
|
||||
if (! empty($conf->paybox->enabled))
|
||||
{
|
||||
print '<br><input class="button buttonpayment buttonpaymentpaybox" type="submit" name="dopayment_paybox" value="'.$langs->trans("PayBoxDoPayment").'">';
|
||||
}
|
||||
|
||||
if (! empty($conf->stripe->enabled))
|
||||
{
|
||||
print '<br><input class="button buttonpayment buttonpaymentstripe" type="submit" name="dopayment_stripe" value="'.$langs->trans("StripeDoPayment").'">';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
BIN
htdocs/theme/common/credit_card.png
Normal file
BIN
htdocs/theme/common/credit_card.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
@ -347,21 +347,33 @@ input.buttonpayment {
|
||||
width: 300px;
|
||||
margin-bottom: 15px;
|
||||
background-image: none;
|
||||
line-height: 24px;
|
||||
}
|
||||
input.buttonpaymentcb {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/theme/common/credit_card.png',1) ?>);
|
||||
background-size: 26px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 5px 5px;
|
||||
}
|
||||
input.buttonpaymentcheque {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/theme/common/cheque.png',1) ?>);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 8px 7px;
|
||||
}
|
||||
input.buttonpaymentpaypal {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/paypal/img/object_paypal.png',1) ?>);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 5px 4px;
|
||||
background-position: 8px 7px;
|
||||
}
|
||||
input.buttonpaymentpaybox {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/paybox/img/object_paybox.png',1) ?>);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 5px 4px;
|
||||
background-position: 8px 7px;
|
||||
}
|
||||
input.buttonpaymentstripe {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/stripe/img/object_stripe.png',1) ?>);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 5px 3px;
|
||||
background-position: 8px 7px;
|
||||
}
|
||||
span.timesheetalreadyrecorded input {
|
||||
border: none;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user