To familiarize yourself and experiment with PayID, you can set up a local PayID server. Here is a simple method. For more options, including PayID deployment for production environments, see Deployment Overview.
The reference implementation server is available at https://github.com/payid-org/payid. You can download the reference implementation server by cloning the repository at the command line:
git clone https://github.com/payid-org/payid.git
Go to the
/payiddirectory that you just created:
Boot up the PayID HTTP server and a Postgres database to develop against:
npm run devEnvUp
Create a PayID
Now that you have a PayID server running, you can create a PayID. If your server is publicly accessible, other people could query your account information from your PayID server.
To create a PayID, with an XRP Ledger Testnet account, send this request to your server:
PayID supports various payment networks. To create a second user with a Bitcoin testnet account, send this request to your server:
Request a PayID
After setting up a server and creating a PayID on the server, the next step is to request the PayID from the server. The PayID Protocol is what allows you to make these requests. And, when the server is publicly available, other wallets and entities can make similar requests to query any PayID and related account information stored on the server.
To request the PayID you created for Alice:
The response should have the following payload:
To request the PayID you created for Bob:
That's it! You've set up a PayID server locally, created new PayIDs on your server, and requested those PayIDs by using the PayID Protocol.
If you want to clean up the Docker containers, you can run
npm run devDown.
Now that you've set up the basics, learn more about PayID and what you can do with it.