For FOSSBilling versions > 0.6.0
This version requires the following:
- A working and up-to-date FOSSBilling instance
- Running BTCPay instance: deployment guide
The easiest way to install this extension is by using the FOSSBilling extension directory.
- 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
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]
Enable Debugging:
-
Open config.php and set
debug => true
.- Remember to revert this setting to false once you have finished debugging.
-
View Callback Responses:
- You can find the responses from callbacks in the log files located at FossBilling/data/log/event/event-.log.
-
Example of debugging callbacks
- [BTCPay] validation has failed. HTTP_BTCPAY_SIG : "" IPN Secret : "********"
- In this scenario, your IPN Secret is incorrect.
This FOSSBilling BTCPay Payment Gateway Integration module is open-source software licensed under the Apache License 2.0.