Closed (fixed)
Project:
Commerce Coinbase
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2014 at 16:31 UTC
Updated:
12 Jan 2015 at 16:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
danharper commentedComment #2
torgospizzaMight be a slight typo, as OAuth and "API Key plus Secret key" are available. You do need two-factor authentication to enable the API key, though, but it's essentially a version 2 of the Simple key.
However after some investigation the module will through a WSOD because the Coinbase API now requires a Secret Key. Without that then the library throws a 401 (unauthorized) error and it will fail during the checkout process.
Comment #3
zhuber commentedI'm preparing a patch for this, since I am looking to use Coinbase for my bitcoin transactions.
Comment #4
zhuber commentedI've patched this module to use the new authentication version (key and secret).
Comment #5
zhuber commentedUpdated patch, without install donation additions.
Comment #6
romank0 commentedI would also replace https://coinbase.com/api/v1/ (since it's deprecated) with https://api.coinbase.com/v1/ in commerce_coinbase.module and commerce_coinbase.install files.
P.S. Did the same fixes in the code a few days ago myself, never got around to learn how to create a patch for Drupal modules :)
By the way, do you have any issues with Coinbase callbacks?
Comment #7
zhuber commentedThe patch from #5 has been ported to the 7.x-1.x branch, it will go out with the next release.
@romank0 - Can you post your patch or create a new ticket for your changes?
Comment #8
romank0 commentedHey @zhuber. Thank you. Tried your patch today everything works except the Coinbase callbacks. For whatever reason I'm getting following error in the logs, every time I receive the callback: Coinbase_ApiException: Status code 401 in Coinbase_Requestor->doCurlRequest() (line 22 of /sites/all/libraries/coinbase-php/lib/Coinbase/Requestor.php).
Do you experience the same behavior by any chance? Thank you.
Comment #9
zhuber commented@romank0 - Please make sure you have the correct API key and secret configured in the 'Coinbase' settings. The 401 issue is an authorization issue. This is actually the issue that is fixed by my patch. You still need to add the correct key/secret combination though.
Comment #11
WillsCreative commentedI applied patch #5 and I get the following error
Fatal error: Class 'Coinbase_ApiKeyAuthentication' not found in /home/mysite/public_html/sites/all/modules/commerce_coinbase/includes/commerce_coinbase.commerce_callbacks.inc on line 178
Comment #12
zhuber commented@WillsCreative
Make sure you have the Coinbase PHP library. This is a prerequisite.
If you are still having trouble, read through the instructions on the project homepage:
https://www.drupal.org/project/commerce_coinbase