Take a look at
this article. It might be a little bit outdated, but everything you need should be there, including the libraries for various programming languages.
And If you are simply trying to accept payments for goods and services while keeping full control over your funds, privacy and security, then
btcpayserver is what you need.