This commit is contained in:
Pinga 2023-12-29 20:35:23 +02:00
parent bd5ada89b9
commit d5be4841f5
2 changed files with 23 additions and 1 deletions

View file

@ -902,7 +902,7 @@ class EppWriter {
$writer->endElement(); // End of 'resData'
// Begin the extension part if any of the extensions are present
if (isset($resp['rgpstatus']) || isset($resp['secDNS']) || isset($resp['launch_phase'])) {
if (isset($resp['rgpstatus']) || isset($resp['secDNS']) || isset($resp['launch_phase'] || isset($resp['allocation'])) {
$writer->startElement('extension');
// Handle RGP status
@ -978,6 +978,14 @@ class EppWriter {
$writer->endElement(); // End of 'launch:infData'
}
// Handle Allocation Token
if (isset($resp['allocation'])) {
$writer->startElement('allocationToken:allocationToken');
$writer->writeAttribute('xmlns:allocationToken', 'urn:ietf:params:xml:ns:allocationToken-1.0');
$writer->text($resp['allocation']);
$writer->endElement(); // End of 'allocationToken:allocationToken'
}
$writer->endElement(); // End of 'extension'
}