Beam

Beam is a payment solution that allows businesses to easily create and manage checkout links for content or services using the Lightning Network. The paywall will be a checkout link that customers can share directly. Customers will be prompted to pay the required amount in Bitcoin through the Lightning Network when they click the link.

Users can be individuals, businesses, shops, or online vendors. The app will enable users to generate web urls, and track payments made to that url.

Functionalities

  • Generate payment links
  • View payment links
  • Track payments made on the platform

Tools: Programming language: Golang. Backend server: Echo framework. Database: PostgreSQL Deployment: Docker, Docker Compose.

Dependency software:

Dependency libraries: Lnrpc for interacting with lnd. sqlc for database operations.

Backend: RESTful API using Echo framework. Modular file structure. Endpoints:

The payment link is generated and added to the database, this payment link can be sent to multiple people for payment for things.

Running the application

  • Make sure to have golang installed
  • Also have your postgres environment variables set, check .env.example for variables
  • Use this link to setup a lignthning backend, alternatively you can use polar.
  • Start application using the instruction go run cmd/lnd/main.go