todordev / CrowdFundingPayment-Coinbase

This is a Bitcoin payment plugin for CrowdFunding, powered by Coinbase.
2 stars 3 forks source link

GuzzleHttp not found #1

Open JulienPlanchetCoineo opened 7 years ago

JulienPlanchetCoineo commented 7 years ago

Hi, I have a problem when GuzzleHttp is called by Coinbase plugin...

Version : Joomla 3.6.5 on 1and1 shared hosting, PHP7

Plugin Crowdfunding http://itprism.com/free-joomla-exten...aising-capital

Plugin for the template : JoomlArt Extensions Manager

Plugin issue : CrowdfundingPayment - Coinbase

The issue is maybe in Configuration.php of Coinbase's plugin, he call GuzzleHttp. Yet it is available in "/libraries/Prism/libs"

Despite this, I find myself with the following error:

0 - Class 'GuzzleHttp\Client' not found

I have already try to type : php5.5 composer.phar require guzzlehttp/guzzle

The composer.json in the joomla root directory :

{
   "require": {
      "guzzlehttp/guzzle": "^6.2"      
   }
}

Thanks for your help !

todordev commented 7 years ago

you can include GuzzleHttp at the beginning of the payment plugin.

jimport("Prism.libs.GuzzleHttp.init");

However, the coinbase plugin does not work with the latest release of the crowdfunding platform.

I will try to fix it and publish it today.

JulienPlanchetCoineo commented 7 years ago

I added this jimport("Prism.libs.GuzzleHttp.init"); into coinbase.php, at the beginning (/plugins/crowdfundingpayment/coinbase) and it doesn't work I tried to insert in Configuration.php (~/libraries/Prism/libs/Coinbase/Wallet) and sadly don't work too.

But thank you for your very fast reply !

todordev commented 7 years ago

I uploaded the plugin. I made it compatible with crowdfunding platform 2.6. However, it is beta version because I have not tested it. Coinbase stopped their sandbox server. Now, I will have to use real bitcoin transactions to test the payment process. I have not available bitcoains.

If you would like, you can test it. You should enable the debug mode to store the payment process data in your logs. That will help you to fix the issues, if there are ones. :)

todordev commented 7 years ago

You can download the plugin from here. http://itprism.com/free-joomla-extensions/ecommerce-gamification/crowdfunding-collective-raising-capital

JulienPlanchetCoineo commented 7 years ago

Hello, thank you for your fast coding ! I would test for transactions, logs and I would postpone problems if there were any. When I arrive on the page of the choice of method of payment, I receive an email where it is written "invalid api key" However, I have verified that the public and private key is the same as the one provided by Coinbase.

JulienPlanchetCoineo commented 7 years ago

No, it was my fault, I had chosen Oauth as the API method.

JulienPlanchetCoineo commented 7 years ago

Hi ! I have my API key generated from Coinbase and plugin filled, but now, I can't have access to "Pay" section, it's loading indefinitely and the result is

The page you are looking for is temporarily unavailable.
Please try again later. 

Thanks for help