mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-19 07:43:49 +02:00
Per registrar currency now fully available
This commit is contained in:
parent
5711546f78
commit
a9e84a855e
20 changed files with 681 additions and 243 deletions
|
@ -373,18 +373,9 @@ function processDomainCheck($conn, $db, $xml, $trans, $clid) {
|
|||
// Calculate or retrieve fee for this command
|
||||
$returnValue = getDomainPrice($db, $domainName, $tld_id, $date_add, $commandName, $clid);
|
||||
$price = $returnValue['price'];
|
||||
|
||||
$sth = $db->prepare("
|
||||
SELECT price
|
||||
FROM domain_restore_price
|
||||
WHERE tldid = ?
|
||||
AND (registrar_id = ? OR registrar_id IS NULL)
|
||||
ORDER BY registrar_id DESC
|
||||
LIMIT 1
|
||||
");
|
||||
$sth->execute([$tld_id, $clid]);
|
||||
$restore_price = $sth->fetchColumn();
|
||||
|
||||
|
||||
$restore_price = getDomainRestorePrice($db, $tld_id, $clid, $currency);
|
||||
|
||||
if ($commandName == 'restore') {
|
||||
$feeResponses[] = [
|
||||
'command' => $commandName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue