Introducing BTCPay Server payment module for Drupal Commerce 2.x. Drupal Commerce Store owners can now accept payments using Bitcoin and other cryptocurrencies directly through BTCPay Server without any third-party intermediary.
BTCPay Server supports a wide range of cryptocurrencies, with the potential for future extensions. Here are the currencies you can use now on BTCPay Server:
- BTC (Bitcoin)
- Bitcoin layer-two network (the Lightning Network) for fast and zero/low-fee transactions
- Altcoins with full node integration including coins like Monero (XMR) and Litecoin (LTC).
- Other Major Altcoins: Supported through plugins via platforms such as Trocador, SideShift, and FixedFloat.
Want to accept Bitcoin on your Drupal Commerce store? Visit the project page on Drupal.org
A Drupal Commerce demo store connected with a (testnet) BTCPay Server where you can try the checkout (Bitcoin + Lightning Network) can be found here:
http://drupal.demo.btcpay.tech
- BTCPay Server (self hosted or 3rd party or quick start with a testserver)
- Drupal Commerce 2.x installed (installation guide)
- Drupal: configured and writable private file system
Ready to accept Bitcoin on your Drupal Commerce Store? Follow this quick and easy guide to install and configure the BTCPay Drupal Commerce module. For a quick run through, check out our installation and configuration screencast:
- Setup your store: You'd need a BTCPay server instance to get started. Don't have one? click here for a step by step guide.
- Access Tokens: Once you have your BTCPay Server instance setup and store created, navigate to the store settings and select "Access Tokens"
- Create a new token by clicking on [Create a new token]
- Label: enter some label (eg. my store)
- Public key: this needs to be left empty
- Facade: Type in "merchant"
- Click on [Request pairing]
- On the next screen choose your configured store in ** Pair to** select dropdown and click on [approve]
- Note down the displayed 7-digit code at the top status message, e.g. "d7afaXr"
(you will need that code below on gateway configuration, see below)
- Install module:
composer require drupal/commerce_btcpay
- Enable the module:
drush en commerce_btcpay -y
- Make sure you have configured private file system (needed to store encrypted public+private key)
- Commerce BTCPay configuration (Commerce -> Configuration -> Payment -> Payment gateways):
- Add payment method "BTCPay"
- Mode: Test or Live (you can configure both individually)
- Test/Live server host: enter your URL without https:// prefix e.g. btcpay.yourserver.com (Note - valid SSL certificate needed)
- Test/Live Paring code: enter the 7-digit pairing code from BTCPay "Access tokens" page
- Click Save to finalize the setup.
You should see a message that the tokens were successfully created.
This module is currently in alpha stage but has proven stable without issues.
Future updates and releases will be available on the project page on drupal.org
BTCPay Server is a self-hosted, open-source cryptocurrency payment processor know for its security, privacy, and censorship resistance.
It's free to use and allows you to become your own payment processor. To get a full overview check out our documentation.
BTCPay was created to be an alternative to 3rd party payment provider BitPay. Therefore, BTCPay is invoice API compatible and you can use this payment plugin also with the official BitPay API and sites. The power of BTCPay is that you can become your own payment provider.
Teaser: future versions of this plugin will be based on the BTCPay Server Greenfield API which is much more powerful and allows more features.
You can open an issue on our Github repository or reach us on Telegram or Mattermost chat