Skip to content

BTCPay plugin to get P2P bitcoin buy offers from B2P Central, according to the store onchain and lightning wallets balances

License

Notifications You must be signed in to change notification settings

Nisaba/BTCPayServer.Plugins.B2PCentral

Repository files navigation

BTCPayServer.Plugins.B2PCentral

If you want to sell bitcoins in your store, this plugin allows you to get P2P bitcoin buy offers from B2P Central, according to your onchain and lightning wallets balances and the store's default currency. Offers are provided by HodlHodl, Paxful, LocalCoinSwap and Peach for onchain bitcoins. And by LNp2pBot and RoboSats for Lightning bitcoins.

First, you need to get a B2P Central API key here. The configuration section is available for users having CanModifyStoreSettings rights. Click on Save button, then you have a Test button to check it's OK.

image

Then you have 2 tabs for onchain and Lightning, if the walets are configured in the current store. These tabs are available for users having CanViewStoreSettings rights.

Each wallet shows the current balance in BTC and in store fiat currency.

So you have to select providers you want and choose the percent of the balance you want to sell. Then click on Search. After a few seconds, result is displayed. You can sort the offers by amount.

Click on the offer you want (column id) to open it in a new browser tab and make the deal if you want.

image

About

BTCPay plugin to get P2P bitcoin buy offers from B2P Central, according to the store onchain and lightning wallets balances

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published