Learn more in plugin documentation.
- Build your plugin
dotnet build BTCPayServer.Plugins.Galoy
- Open btcpayserver in a new vscode instance (need a new instance for debugging later on)
code btcpayserver
- Add settings
touch BTCPayServer/appsettings.dev.json
File
{
"DEBUG_PLUGINS": "/full/path/to/btcpayserver-plugin-galoy/BTCPayServer.Plugins.Galoy/bin/Debug/net6.0/BTCPayServer.Plugins.Galoy.dll"
}
- Build btcpayserver
dotnet build btcpayserver
- Add ref to your plugin (if you have not already done this)
dotnet sln add ../BTCPayServer.Plugins.Galoy -s Plugins
- Debug
- Click the debug button in vscode
- Click "Play" button (.NET Core launch (web))
- Enable plugin in web. This will open the web browser. Add the Galoy plugin
- [] make galoy instance configurable (mainnet, staging, bitcoin jungle, custom endpoint etc...)
- [] tighter integration with BTCPay data, like BTCPay invoices id's