Skip to content
SatsPay

SatsPay

GitHub stars

Payment pages accepting on-chain and Lightning.

Payments & CommerceOpen Source

How it works

Create charges with customizable amounts, expiry times, and payment options. Share the payment page with your customer. When paid, webhooks notify your backend and the user can be redirected to a success page.

Features

  • Lightning and on-chain payment support
  • Configurable invoice expiry
  • Webhook notifications on payment
  • Custom redirect URLs after payment
  • Payment status tracking
  • BIP21 Support

Usage

  1. Create a new charge

    new charge

  2. Fill out the invoice fields

    • Description for the payment
    • Amount in sats
    • Expiry time in minutes
    • Webhook URL for payment notifications
    • Redirect URL after successful payment
    • Button text for the success page
    • Select payment methods (on-chain, Lightning, or both)
    • Choose the receiving wallets

    charge form

  3. The charge appears in the Charges section

    charges

  4. Your customer sees the payment page and can choose Lightning

    offchain payment

    Or on-chain

    onchain payment

  5. Track payment status in LNbits

    invoice state

API Reference

See the SatsPay API documentation for endpoint details.