Fix token error

This commit is contained in:
ptibogxiv 2022-10-01 14:23:48 +02:00 committed by GitHub
parent 07966f5e6b
commit 9727fac3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,7 +337,7 @@ if ($conf->global->TAKEPOS_NUMPAD == 0) {
function fetchPaymentIntentClientSecret(amount, invoiceid) {
const bodyContent = JSON.stringify({ amount : amount, invoiceid : invoiceid });
<?php
$urlpaymentintent = DOL_URL_ROOT.'/stripe/ajax/ajax.php?action=createPaymentIntent&servicestatus='.$servicestatus;
$urlpaymentintent = DOL_URL_ROOT.'/stripe/ajax/ajax.php?action=createPaymentIntent&token='.newToken().'&servicestatus='.$servicestatus;
if (!empty($stripeacc)) $urlpaymentintent .= '&stripeacc='.$stripeacc;
?>
return fetch('<?php echo $urlpaymentintent; ?>', {