Add example of test credit card
This commit is contained in:
parent
9355c5a8d7
commit
d8b2d1f8c2
@ -707,6 +707,7 @@ WarningYouAreInMaintenanceMode=Warning, you are in a maintenance mode, so only l
|
|||||||
CoreErrorTitle=System error
|
CoreErrorTitle=System error
|
||||||
CoreErrorMessage=Sorry, an error occurred. Contact your system administrator to check the logs or disable $dolibarr_main_prod=1 to get more information.
|
CoreErrorMessage=Sorry, an error occurred. Contact your system administrator to check the logs or disable $dolibarr_main_prod=1 to get more information.
|
||||||
CreditCard=Credit card
|
CreditCard=Credit card
|
||||||
|
ValidatePayment=Validate payment
|
||||||
FieldsWithAreMandatory=Fields with <b>%s</b> are mandatory
|
FieldsWithAreMandatory=Fields with <b>%s</b> are mandatory
|
||||||
FieldsWithIsForPublic=Fields with <b>%s</b> are shown on public list of members. If you don't want this, check off the "public" box.
|
FieldsWithIsForPublic=Fields with <b>%s</b> are shown on public list of members. If you don't want this, check off the "public" box.
|
||||||
AccordingToGeoIPDatabase=(according to GeoIP convertion)
|
AccordingToGeoIPDatabase=(according to GeoIP convertion)
|
||||||
|
|||||||
@ -39,3 +39,4 @@ STRIPE_LIVE_SECRET_KEY=Secret live key
|
|||||||
STRIPE_LIVE_PUBLISHABLE_KEY=Publishable live key
|
STRIPE_LIVE_PUBLISHABLE_KEY=Publishable live key
|
||||||
StripeLiveEnabled=Stripe live enabled (otherwise test/sandbox mode)
|
StripeLiveEnabled=Stripe live enabled (otherwise test/sandbox mode)
|
||||||
StripeImportPayment=Import Stripe payments
|
StripeImportPayment=Import Stripe payments
|
||||||
|
ExampleOfTestCreditCard=Example of credit card for test: %s (valid), %s (error CVC), %s (expired), %s (charge fails)
|
||||||
@ -1442,7 +1442,7 @@ if (preg_match('/^dopayment/',$action))
|
|||||||
<div id="card-errors" role="alert"></div>
|
<div id="card-errors" role="alert"></div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<button class="button" id="buttontopay">'.$langs->trans("ToPay").'</button>
|
<button class="button" id="buttontopay">'.$langs->trans("ValidatePayment").'</button>
|
||||||
<img id="hourglasstopay" class="hidden" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/working.gif'.'">
|
<img id="hourglasstopay" class="hidden" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/working.gif'.'">
|
||||||
</td></tr></tbody></table>
|
</td></tr></tbody></table>
|
||||||
|
|
||||||
|
|||||||
@ -1168,7 +1168,7 @@ if (preg_match('/^dopayment/',$action))
|
|||||||
<div id="card-errors" role="alert"></div>
|
<div id="card-errors" role="alert"></div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<button class="button" id="buttontopay">'.$langs->trans("ToPay").'</button>
|
<button class="button" id="buttontopay">'.$langs->trans("ValidatePayment").'</button>
|
||||||
<img id="hourglasstopay" class="hidden" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/working.gif'.'">
|
<img id="hourglasstopay" class="hidden" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/working.gif'.'">
|
||||||
</td></tr></tbody></table>
|
</td></tr></tbody></table>
|
||||||
|
|
||||||
|
|||||||
@ -253,6 +253,8 @@ $token='';
|
|||||||
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/onlinepaymentlinks.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/onlinepaymentlinks.tpl.php';
|
||||||
|
|
||||||
|
print info_admin($langs->trans("ExampleOfTestCreditCard", '4242424242424242', '4000000000000101', '4000000000000069', '4000000000000341'));
|
||||||
|
|
||||||
if (! empty($conf->use_javascript_ajax))
|
if (! empty($conf->use_javascript_ajax))
|
||||||
{
|
{
|
||||||
print "\n".'<script type="text/javascript">';
|
print "\n".'<script type="text/javascript">';
|
||||||
|
|||||||
@ -356,23 +356,24 @@ input.buttonpayment {
|
|||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
background: none;
|
background: none;
|
||||||
padding-left: 30px;
|
padding-left: 38px;
|
||||||
text-align: <?php echo $left; ?>;
|
text-align: <?php echo $left; ?>;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
|
box-shadow: 1px 1px 8px #bbb;
|
||||||
}
|
}
|
||||||
input.buttonpaymentcb {
|
input.buttonpaymentcb {
|
||||||
background-image: url(<?php echo dol_buildpath($path.'/theme/common/credit_card.png',1) ?>);
|
background-image: url(<?php echo dol_buildpath($path.'/theme/common/credit_card.png',1) ?>);
|
||||||
background-size: 26px;
|
background-size: 26px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 2px 11px;
|
background-position: 5px 11px;
|
||||||
}
|
}
|
||||||
input.buttonpaymentcheque {
|
input.buttonpaymentcheque {
|
||||||
background-image: url(<?php echo dol_buildpath($path.'/theme/common/cheque.png',1) ?>);
|
background-image: url(<?php echo dol_buildpath($path.'/theme/common/cheque.png',1) ?>);
|
||||||
background-size: 24px;
|
background-size: 24px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 2px 8px;
|
background-position: 5px 8px;
|
||||||
}
|
}
|
||||||
input.buttonpaymentpaypal {
|
input.buttonpaymentpaypal {
|
||||||
background-image: url(<?php echo dol_buildpath($path.'/paypal/img/object_paypal.png',1) ?>);
|
background-image: url(<?php echo dol_buildpath($path.'/paypal/img/object_paypal.png',1) ?>);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user