BTCPay plugin for FOSSBilling
For FOSSBilling versions > 0.6.0
Integration Requirements
This version requires the following:
- A working and up-to-date FOSSBilling instance
- Running BTCPay instance: deployment guide
Installing the Plugin
1). Extension directory
The easiest way to install this extension is by using the FOSSBilling extension directory.
2). Manual installation
- Download the latest release from the releases
- Create a new folder named
BTCPay
in the /library/Payment/Adapter
directory of your FOSSBilling installation
- Extract the archive you've downloaded in the first step into the new directory
- Go to the "Payment gateways" page in your admin panel (under the "System" menu in the navigation bar) and find BTCPay in the "New payment gateway" tab
- Click the cog icon next to BTCPay to install and configure BTCPay
Plugin Configuration
After you have enabled the BTCPay plugin, the configuration steps are:
- Enter your Host URL (for example, https://pay.example.com) without slashes.
- Enter your API Key [Account > Manager Account > Api Keys] Permissions : [btcpay.store.canviewinvoices, btcpay.store.cancreateinvoice]
- Enter your Store id (Settings > General > Store Id)
- Enter your IPN Webhook Secret Key (Settings > Webhook > Create Webhook) [Events : A payment has been settled, An invoice has expired, An invoice has been settled, An invoice became invalid]
- Tax Included
- Speed Policy Options [High,Medium,Low, Low Medium : speed]
Debugging Webhook Callbacks
Enable Debugging:
View Callback Responses
- You can find the responses from callbacks in the log files located at FossBilling /data/log/event/event-date.log.
Example of debugging callbacks
[BTCPay] validation has failed. HTTP_BTCPAY_SIG : "" IPN Secret : "********"
- In this scenario, your IPN Secret is incorrect.
License
This FOSSBilling BTCPay Payment Gateway Integration module is open-source software licensed under the Apache License 2.0.