commit
f50c2af105
@ -337,7 +337,7 @@ if ($conf->global->TAKEPOS_NUMPAD == 0) {
|
|||||||
function fetchPaymentIntentClientSecret(amount, invoiceid) {
|
function fetchPaymentIntentClientSecret(amount, invoiceid) {
|
||||||
const bodyContent = JSON.stringify({ amount : amount, invoiceid : invoiceid });
|
const bodyContent = JSON.stringify({ amount : amount, invoiceid : invoiceid });
|
||||||
<?php
|
<?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;
|
if (!empty($stripeacc)) $urlpaymentintent .= '&stripeacc='.$stripeacc;
|
||||||
?>
|
?>
|
||||||
return fetch('<?php echo $urlpaymentintent; ?>', {
|
return fetch('<?php echo $urlpaymentintent; ?>', {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user