/solana-pay

A point-of-sale web app that allows us to take payments from customers in person.first, we present a QR code that they can scan with a Solana wallet to make the payment. As soon as they do our app will update to show that they’ve paid.

Primary LanguageTypeScriptMIT LicenseMIT

Take payments IRL with Solana Pay

Solana Pay is a specification for payments on Solana. It describes a way to encode a payment request in a URL, which can be displayed to users - for example as a QR code. And Solana mobile wallets are adding support for it, so users can seamlessly scan that QR code and make the payment.

GitHub contributors GitHub discussions GitHub issues GitHub pull request

🔍 Table of Contents

💻 Stack

  • solana/wallet-adapter-react: React library for integrating Solana wallets.
  • solana/web3.js: JavaScript library for interacting with the Solana blockchain.
  • tailwindcss: Highly customizable CSS framework for building modern UIs.
  • next: React framework for server-rendered applications.
  • react: JavaScript library for building user interfaces.
  • react-dom: Entry point for rendering React components.
  • typescript: Typed superset of JavaScript that compiles to plain JavaScript.
  • bignumber.js: JavaScript library for arbitrary-precision decimal arithmetic.
image

📝 Project Summary

  • components: Contains reusable UI components used throughout the project.
  • lib: Houses utility functions and helper classes used across the project.
  • pages: Contains the main pages of the application.
  • pages/api: Handles serverless API endpoints for the application.
  • public: Stores static assets like images, fonts, and favicon.
  • styles: Contains global styles and CSS modules used in the project.

Note: As the provided directories are limited, the list of essential directories is also limited.

⚙️ Setting Up

RECIPIENT_PRIVATE_KEY

  • Insert a guide

🚀 Run Locally

1.Clone the solana-pay repository:

git clone https://github.com/sohomx/solana-pay

2.Install the dependencies with one of the package managers listed below:

pnpm install
bun install
npm install
yarn install

3.Start the development mode:

pnpm dev
bun dev
npm run dev
yarn dev

📄 License

This project is licensed under the MIT License - see the MIT License file for details.