Solana Pay for Commerce Platforms
documentation
|
walkthroughs
|
installation
|
live store
|
merchant loginTransact on Shopify using Solana
Pre Setup Dependencies:
Installation:
git clone https://github.com/solana-labs/solana-payments-app
yarn install
yarn setup:envIn apps/backend-serverless/.env.dev, add a Keypair secret for a wallet with SOL to pay for gas
In apps/backend-serverless/.env.dev, setup a Helius API key
To run:
yarn dev
yarn seedUse these links to test out the local development flow
** Note **
These links redirect you to the frontend local deployments. We included sample development certificates in backend-serverless and mock-shopify-serverless, however, you might need to ignore browser errors. Follow this guide to setup your own local dev certificates
For various helper scripts you might need while extending the code, in apps/backend-serverless, you can run
node --loader ts-node/esm scripts/nft-setup.tsWe use the Serverless Framework, follow their directions to setup your appropriate aws & serverless credentials.
Ensure you setup the following dependencies in the respective .env files
In apps/backend-serverless, deploy with
yarn deploy:production:purple
yarn deploy:production:greenIn apps/transaction-request-serverless, deploy with
yarn deploy:production(change production to staging for a staging environment)
Make sure to use more secure JWTs in the .envs when deploying to staging and production
No open issues yet, or sync has not completed.