An open API service indexing awesome lists of open source software.

https://github.com/bitkarrot/simple-reg-lnbits-form

basic contact form with pico; data to airtable; registration fee to lnbits
https://github.com/bitkarrot/simple-reg-lnbits-form

Last synced: about 1 year ago
JSON representation

basic contact form with pico; data to airtable; registration fee to lnbits

Awesome Lists containing this project

README

          

# Simple Registration with LNBits pay button + Airtable

What is it?
SvelteKit contact form submission with Airtable and a LNBits Pay Button for the fee in lightning sats.

We use a simple button that creates a satspay invoice using a proxy called satspaysession.
The source code for the proxy is here at https://github.com/bitkarrot/satspaysession/

Set environment variables first. we are using AIRTABLE_API_KEY interchangably with AIRTABLE_TOKEN
in this forked repository

Check out [the blog post](https://scottspence.com/posts/make-a-contact-form-with-sveltekit-and-airtable) on configuration and how to get the
`AIRTABLE_BASE_ID` and `AIRTABLE_TOKEN` for the project.

# Flow in 1-2-3

## 1 - Fill in Form - Data to Airtable
Screenshot 2023-12-31 at 6 39 55 PM

## 2 - Click on Pay Button

This is simplified version using [satspaysession](https://github.com/bitkarrot/satspaysession/) but you can also just use the SatsPay API from LNbits directly.

Screenshot 2023-12-31 at 6 39 00 PM

## 3 - Pay with LNBits Sats Pay extension
Screenshot 2023-12-31 at 6 39 25 PM

## 4 - optional - Completed Page
see [completed link](https://github.com/bitkarrot/satspaysession/blob/main/README.md#json-passed-in-body) setting in LNBits