ouldfella Posted May 14, 2020 Share Posted May 14, 2020 hello, i executed the callback fille of the gateway in new page <?php use WHMCS\ClientArea; use WHMCS\Database\Capsule; define('CLIENTAREA', true); require __DIR__ . '/init.php'; $ca = new ClientArea(); $ca->setPageTitle('Your Page Title Goes Here'); $ca->addToBreadCrumb('index.php', Lang::trans('globalsystemname')); $ca->addToBreadCrumb('mypage.php', 'Your Custom Page Name'); $ca->initPage(); require __DIR__ . '/modules/gateways/callback/gatewaysatimmodule.php'; ...... it works, and i collect informations in variables from gateway callbak fille like( errorcode , ErrorMessage, depositAmount, cardholderName,...) i need to display this varibles in tpl (mypage.tpl) i created a hook but doesn't work : <?php function satim_confirm_vars($vars) { $extraTemplateVariables = array(); //$resultConfirm variable filled in callback file $extraTemplateVariables['resultConfirm'] = $resultConfirm; $extraTemplateVariables['orderId'] = $orderId; $extraTemplateVariables['invoiceId'] = vars['invoiceId']; return $extraTemplateVariables; } add_hook('AddInvoicePayment', 1, 'satim_confirm_vars'); in tpl i can't display it 0 Quote Link to comment Share on other sites More sharing options...
ouldfella Posted May 19, 2020 Author Share Posted May 19, 2020 can someone help me ? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.