Preparation for prices per registrar

This commit is contained in:
Pinga 2024-07-28 18:42:41 +03:00
parent 0799781491
commit 76f8c52f3a
8 changed files with 13 additions and 13 deletions

View file

@ -117,7 +117,7 @@ function processHostCheck($conn, $db, $xml, $trans) {
sendEppResponse($conn, $xml);
}
function processDomainCheck($conn, $db, $xml, $trans) {
function processDomainCheck($conn, $db, $xml, $trans, $clid) {
$domains = $xml->command->check->children('urn:ietf:params:xml:ns:domain-1.0')->check->name;
$clTRID = (string) $xml->command->clTRID;
@ -374,7 +374,7 @@ function processDomainCheck($conn, $db, $xml, $trans) {
$tld_id = $result['id'];
// Calculate or retrieve fee for this command
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, $commandName);
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, $commandName, $clid);
$price = $returnValue['price'];
$sth = $db->prepare("SELECT price FROM domain_restore_price WHERE tldid = ? LIMIT 1");