Find a domain registrar which offers an API integration. Their api guides will show examples how to easily buy domains using https requests. However, you are going to run into some tricky issues:
- Who owns the domain? - When a user buys a domain are you holding the domain, or registering for them? If they need to own the domain you will have to register as a domain reseller. Which means you are acting as a proxy between the registrar and end user who is buying the domain. You would never take posesion of the domain.
- Legal Issues - If you are holding ownership of the domain you are opening yourselves to some legal issues. For example, if i register a domain slandering a celebrity, that celebrity could sue the domain holder for damages. I am not a lawyer, and this is not legal advice, you should consult legal coucil.
If this is just a proof of concept then I think you are good to go, most large domain registrars offer an api integration. You should review each api with your team and decide which one you like the best.