Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: RightUp 1.0.2 — Minor update available for module rightup (1.0.2). Release: CronWatch 0.12.1 — Minor update available for module cronwatch (0.12.1). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Commerce Coinbase

Security covered

Part of the Commerce ecosystem · 355 projects

View on drupal.org

Bitcoin payment integration for Drupal Commerce using Coinbase.

The Coinbase API supports authentication by API key and OAuth. This module only implements the API key method.

Features

  • Checkout using an embedded iFrame or by redirecting to a hosted invoice on coinbase.com
  • Payments by computer, tablet, or smartphone
  • Identify the Bitcoin checkout method with iconic branding
  • Restrict completion of the checkout process until Coinbase confirms payment was received

Requirements

The Coinbase PHP Client Library is required as a separate download. Copy the coinbase-php files to the libraries directory on the web server: sites/all/libraries/coinbase-php/lib or sites/{domain}/libraries/coinbase-php/lib.

cURL for PHP - the Commerce Coinbase module will check for proper cURL installation and report an error if corrective action is required. cURL is commonly available on standard LAMP-based server installations by default.

Since both Drupal Commerce and Coinbase have separate treatment of orders and transactions, receiving a payment completes the order at Coinbase, triggers a callback to the Commerce Coinbase module, and completes the checkout. Though the order is complete after payment, Coinbase doesn't complete the transaction associated with the order until it is confirmed on the Bitcoin blockchain, approximately one hour after payment, though that can vary. Cron is required to get status updates of pending transactions. Cron is used to poll the Coinbase API to update the Drupal transaction when the Coinbase platform moves a Bitcoin payment from pending to complete.

Getting setup

  • Sign up for a merchant account with Coinbase, at https://coinbase.com. Be sure to read all provided information thoroughly; Coinbase is a for-profit company and you should understand their fee structure.
  • In your Coinbase merchant account, create a Simple API (deprecated) key at https://www.coinbase.com/settings/api.
  • Your website should support HTTPS. Though the invoices from Coinbase are hosted from their domain using their SSL certificate, the callback information to update transaction information in Drupal contains a secret validation hash which should remain confidential to prevent malicious users from spoofing valid payments.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Aug 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.2 Stable Aug 11, 2024
2.0.1 Stable Aug 3, 2024