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
- Host: GitHub
- URL: https://github.com/bitkarrot/simple-reg-lnbits-form
- Owner: bitkarrot
- Created: 2023-06-22T04:33:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T22:01:57.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T01:57:48.656Z (almost 2 years ago)
- Language: Svelte
- Homepage: https://simple-lnbits-reg-form.vercel.app/
- Size: 452 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

## 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.

## 3 - Pay with LNBits Sats Pay extension

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