Clone the repository and install the dependencies:
Tip
If you don't have PNPM installed, you can install it using corepack
:
corepack enable
corepack prepare pnpm@8 --activate
- Clone the repository:
git clone https://github.com/pubkeyapp/solana-pay-playground
cd solana-pay-playground
pnpm install
Start the API
pnpm dev:api
Start the web app
pnpm dev:web
Solana Pay requires https to work, so in development you need something like ngrok to expose your local server to the internet.
Be sure to update the allowedHosts
property in web/project.json
to allow the ngrok URL.
pnpm tunnel