{"id":27054785,"url":"https://github.com/bitkarrot/satspaysession","last_synced_at":"2026-03-07T05:32:59.759Z","repository":{"id":173529430,"uuid":"650895078","full_name":"bitkarrot/satspaysession","owner":"bitkarrot","description":"A micro app that delivers a URL to a custom Invoice from the SatsPayExtension by LNbits ","archived":false,"fork":false,"pushed_at":"2025-03-06T04:52:31.000Z","size":673,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T09:17:00.341Z","etag":null,"topics":["bitcoin","invoice","lightning","lnbits","microapp","payments"],"latest_commit_sha":null,"homepage":"https://satspaylink.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitkarrot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-08T03:36:15.000Z","updated_at":"2025-03-06T04:52:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"aeb2a5b0-d2ad-4960-932c-2725bc7e20a3","html_url":"https://github.com/bitkarrot/satspaysession","commit_stats":null,"previous_names":["bitkarrot/satspaysession"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitkarrot/satspaysession","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fsatspaysession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fsatspaysession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fsatspaysession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fsatspaysession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitkarrot","download_url":"https://codeload.github.com/bitkarrot/satspaysession/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fsatspaysession/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30208731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","invoice","lightning","lnbits","microapp","payments"],"created_at":"2025-04-05T09:17:03.748Z","updated_at":"2026-03-07T05:32:59.733Z","avatar_url":"https://github.com/bitkarrot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Satspay Session\n\nThis micro app delivers a custom Invoice amount from the SatsPayExtension fron LNbits via an FastAPI endpoint.\n\nWhy do this? Because we want to be able to specify a lightning invoice in sats with the USD amount (or any other fiat equivalent amount) with a link instead of creating it manually from within the LNBits web interface. \n\nThis is a personal service, so in order to use it with your LNBits account you'll need to put in your credentials and then 1 Click deploy to vercel ( See below ) or self host it yourself.\n\n### Flow Diagram:\n\nCreate LINK ---\u003e convert fiat amt to sats, add optional message  ----\u003e \n\n----\u003e forward to SatsPayServer on LNBits --\u003e Display Timed QR Code\n\n### LINK Pattern:\n\nhttps://satspaylink.vercel.app/fiat/{currency}/amt/{value}\n\n### You can also just specify the sats amount if you want: \n\nhttps://satspaylink.vercel.app/amt/100000\n\nthis will autogenerate an invoice for 100,000 Sats \n\n\n### Example: \n\n\u003cimg width=\"525\" alt=\"Screenshot 2023-06-19 at 2 26 50 PM\" src=\"https://github.com/lightningames/satspaysession/assets/73979971/661cdc20-417d-472b-8870-e5f4898ee518\"\u003e\n\n\nThis is a live example, where the repo is deployed at satspaylink.vercel.app and the user specifies currency type and amount at the url: \n\nhttps://satspaylink.vercel.app/fiat/usd/amt/100 \n\nThe above link, given the parameters of 100 USD, will calculate the equivalent amount of sats and \nthen redirect the user to a lightning invoice created by the satspayserver extension.\n\nClicking on the above link will redirect to the lnbits satspay extension with the lightning invoice conversion automatically. \n\n\u003cimg width=\"545\" alt=\"Screenshot 2023-06-08 at 10 29 07 AM\" src=\"https://github.com/bitkarrot/satspaysession/assets/73979971/e958e4a7-779c-443d-82cf-842ad181eb86\"\u003e\n\n## Environment variables\n\nFor More information about how SatsPay Server works in LNBits, please visit the [extension page](https://github.com/lnbits/satspay)\nand the [LNbits.com website](https://lnbits.com)\n\nset your LNBits environment variables in vercel\n\n```sh\nLNBITS_WALLET='your data here'\nONCHAIN_WALLET='your data here'\nLNBITS_URL='https://legend.lnbits.com'\nINVOICE_API_KEY='your data here'\nWEBHOOK='https://yoururlhere.com'\n```\n\n```\n  headers =  {\n          \"Content-Type\": \"application/json\",\n          \"X-Api-Key\": INVOICE_API_KEY,\n        }\n```\n\n## Json passed in body \n```\n{\n  \"onchainwallet\": \"string\",\n  \"lnbitswallet\": \"string\",\n  \"description\": \"string\",\n  \"webhook\": \"string\",\n  \"completelink\": \"string\",\n  \"completelinktext\": \"string\",\n  \"custom_css\": \"string\",\n  \"time\": 1,\n  \"amount\": 1,\n  \"extra\": \"{\\\"mempool_endpoint\\\": \\\"https://mempool.space\\\", \\\"network\\\": \\\"Mainnet\\\"}\"\n}\n```\n\n\n# FastAPI + Vercel\n\nThis example shows how to use FastAPI on Vercel with Serverless Functions using the [Python Runtime](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python).\n\n## 1-Click Deploy to Vercel \n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fbitkarrot%2Fsatspaysession\u0026env=LNBITS_WALLET,ONCHAIN_WALLET,LNBITS_URL,WEBHOOK,INVOICE_API_KEY)\n\n\n## To install\n\n```sh\npython3 -m venv venv \nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## To run this app locally\n\n```sh\nuvicorn src.app:app --reload\n```\n\nYour application is now available at `http://localhost:8000`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Fsatspaysession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitkarrot%2Fsatspaysession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Fsatspaysession/lists"}