Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Add Bitcoin as a currency option for Drupal Commerce allowing products, orders, and transactions to be priced in terms of Satoshi.
The entire module is a single function, which hooks the Bitcoin currency characteristics into the Commerce currency options.
function commerce_btc_commerce_currency_info() {
return array(
'BTC' => array(
'code' => 'BTC', // BitPay and Coinbase expect BTC, not XBT for Bitcoin
'symbol' => 'Ƀ', // the symbol is hardly "standardized" yet
'name' => t('Bitcoin'),
'decimals' => 8,
'major_unit' => t('Bitcoin'),
'minor_unit' => t('Satoshi'),
'code_placement' => 'after',
'symbol_placement' => 'before',
),
);
}
Project information
- Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects - No further development
No longer developed by its maintainers. - Module categories: E-commerce
- 1 site reports using this module
- Created by deekayen on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.