Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/btcpayserver/commerce_btcpay
BTCPay server plugin for Drupal Commerce 2.x
https://github.com/btcpayserver/commerce_btcpay
bitcoin btcpayserver drupal drupal-commerce lightning-network
Last synced: about 1 month ago
JSON representation
BTCPay server plugin for Drupal Commerce 2.x
- Host: GitHub
- URL: https://github.com/btcpayserver/commerce_btcpay
- Owner: btcpayserver
- Created: 2018-06-18T12:49:49.000Z (over 6 years ago)
- Default Branch: 8.x-1.x
- Last Pushed: 2024-09-09T07:59:42.000Z (3 months ago)
- Last Synced: 2024-09-09T09:37:27.751Z (3 months ago)
- Topics: bitcoin, btcpayserver, drupal, drupal-commerce, lightning-network
- Language: PHP
- Size: 56.6 KB
- Stars: 9
- Watchers: 4
- Forks: 13
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Accept Bitcoin on your Drupal Commerce Store using BTCPay Server
Introducing BTCPay Server payment module for [Drupal Commerce 2.x](https://www.drupal.org/project/commerce). 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](https://docs.btcpayserver.org/Trocador/), [SideShift](https://docs.btcpayserver.org/SideShift/), and FixedFloat.Want to accept Bitcoin on your Drupal Commerce store? Visit the [project page on Drupal.org](https://drupal.org/project/commerce_btcpay)
## Demo store
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](http://drupal.demo.btcpay.tech/)## Requirements
* BTCPay Server ([self hosted or 3rd party](https://docs.btcpayserver.org/deployment/deployment) or [quick start with a testserver](https://docs.btcpayserver.org/btcpay-basics/tryitout))
* Drupal Commerce 2.x installed ([installation guide](https://docs.drupalcommerce.org/commerce2/developer-guide/install-update/installation))
* Drupal: [configured and writable private file system](https://www.drupal.org/docs/8/core/modules/file/overview#content-accessing-private-files)## Installation and configuration Guide for the BTCPay Server - Drupal Commerce Integration
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:
[![BTCPay Server - Drupal Commerce 2.x quick walkthrough](https://img.youtube.com/vi/XBZwyC2v48s/mqdefault.jpg)](https://youtube.com/watch?v=XBZwyC2v48s)
### Easy setup steps
#### Generate pairing code on BTCPay server
1. **Setup your store:** You'd need a BTCPay server instance to get started. Don't have one? click [here](https://docs.btcpayserver.org/RegisterAccount/) for a step by step guide.
2. **Access Tokens:** Once you have your BTCPay Server instance setup and store created, navigate to the store settings and select "**Access Tokens**"
3. Create a new token by clicking on **[Create a new token]**
4. **Label:** enter some label (eg. my store)
5. **Public key:** this needs to be left **empty**
6. **Facade:** Type in "merchant"
7. Click on **[Request pairing]**
8. On the next screen choose your configured store in ** Pair to** select dropdown and click on **[approve]**
9. 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)#### Commerce BTCPay: Installation + configuration
1. Install module: `composer require drupal/commerce_btcpay`
2. Enable the module: `drush en commerce_btcpay -y`
3. Make sure you have configured [private file system](https://www.drupal.org/docs/8/core/modules/file/overview#content-accessing-private-files) (needed to store encrypted public+private key)
4. Commerce BTCPay configuration (**Commerce -> Configuration -> Payment -> Payment gateways**):
5. 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.## Status
**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](https://drupal.org/project/commerce_btcpay)## About BTCPay Server
>[BTCPay Server](https://btcpayserver.org/) 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](https://docs.btcpayserver.org).**## Compatible with BitPay API
BTCPay was created to be an alternative to 3rd party payment provider [BitPay](https://bitpay.com). 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.
## Get Support
You can open an issue on our [Github repository](https://github.com/btcpayserver/commerce_btcpay/issues) or reach us on [Telegram](https://t.me/btcpayserver) or [Mattermost chat](http://chat.btcpayserver.org/)