metaregistrar / php-epp-client

Object-oriented PHP EPP Client
https://www.metaregistrar.com/docs/
MIT License
214 stars 159 forks source link

Register .eu domain problem #144

Closed jvdmb closed 6 years ago

jvdmb commented 6 years ago

Hello,

How do i configure the onsite contact upon registering .eu domain?

This is not working;

$domain->addContact(new eppContactHandle($admincontact, eppContactHandle::CONTACT_TYPE_ONSITE));

(Error 2001: Command syntax error (line:2 column:1015 cvc-enumeration-valid: Value 'onsite' is not facet-valid with respect to enumeration '[admin, billing, tech]'. It must be a value from the enumeration.))

This is not working;

$domain->addContact(new eppContactHandle($admincontact, eppContactHandle::CONTACT_TYPE_ADMIN));

(Error 2102: Unimplemented option; value:XXXXXXX(Contact type is not supported.))

Please help, thanks ;-)

metaregistrar commented 6 years ago

That is very strange: the message "(Error 2001: Command syntax error (line:2 column:1015 cvc-enumeration-valid: Value 'onsite' is not facet-valid with respect to enumeration '[admin, billing, tech]'. It must be a value from the enumeration.))" is this coming back from the registry? That would mean that they do not accept the value 'onsite' for a contact type. Can you enable logging to see what is sent to the registry and what is coming back?

metaregistrar commented 6 years ago

The 'onsite' parameter should not be set with the ->addContact option, but you specify 'onsite' when creating a new contact (euridEppCreateContactRequest)

jvdmb commented 6 years ago

But when registering a domain we re-use the contact we already have in our database (c163 f.e.). So no need to use euridEppCreateContactRequest right?

Eurid requires extension; `

c163 c164

`

So maybe the standards are not working?

metaregistrar commented 6 years ago

The extension domain-ext-2.1 is partially created in php-epp-client. It seems that only the domain:transfer function is programmed, but not the domain:create function. I will see if this is easy to add in the repository.

jvdmb commented 6 years ago

Any update on this? :-) Thanks!

metaregistrar commented 6 years ago

Hi, I have just tested and committed the euridEppCreateDomain.php command. With this you can create domain names with EurID. Please make sure that you use euridEppCreateContact commands to create the appropriate contacts, and give them the 'registrant', 'onsite', or 'billing' type.