mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
Bitcoin Switch Plugin
This plugin allows you to connect your BTCPay Server to the Bitcoin Switch hardware, developed by the amazing LNURL team.
Installation
- Go to the "Plugins" page of your BTCPay Server
- Click on install under the "Bitcoin Switch" plugin listing
- Restart BTCPay Server
- Go to your point of sale or crowdfund app settings
- Click on "Edit" on the item/perk you'd like to enable Bitcoin Switch for.
- Specify the hardware GPIO pin and duration of activation
- Close the editor
- Choose Print Display in Point of Sale style (if you want to be able to print LNURL QR codes for each item specifically).
- Save the app
- Your websocket url is the point of sale url, appended with "/bitcoinswitch" and the scheme set to wss:// (e.g. wss://mybtcpay.com/apps/A9xD2nxuWzQTh33E9U6YvyyXrvA/pos/bitcoinswitch)
- Upon purchase (invoice marked as settled), any open websockets will receive the message to activate (io-duration)
- Configure your hardware using https://bitcoinswitch.lnbits.com/