Fix token error
This commit is contained in:
parent
07966f5e6b
commit
9727fac3d9
@ -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; ?>', {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user