coinbase / coinbase-commerce-whmcs Goto Github PK
View Code? Open in Web Editor NEWCoinbase Commerce module for WHMCS
Home Page: https://commerce.coinbase.com/integrate
Coinbase Commerce module for WHMCS
Home Page: https://commerce.coinbase.com/integrate
getting this error while running cronjob
93% 2 mins/2 mins 46.5 MiBTypeError: Argument 1 passed to GuzzleHttp\Ring\Client\StreamHandler::__invoke() must be of the type array, object given, called in /home/username/public_html/billing/modules/gateways/Coinbase/vendor/guzzlehttp/guzzle/src/Client.php on line 277 in /home/username/public_html/billing/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php:26
#0 /home/username/public_html/billing/modules/gateways/Coinbase/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\Ring\Client\StreamHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#1 /home/username/public_html/billing/modules/gateways/Coinbase/vendor/guzzlehttp/guzzle/src/Client.php(125): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#2 /home/username/public_html/billing/modules/gateways/Coinbase/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Client->requestAsync('get', Object(GuzzleHttp\Psr7\Uri), Array)
#3 /home/username/public_html/billing/modules/gateways/Coinbase/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request('get', 'https://pki.whm...', Array)
#4 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): GuzzleHttp\Client->__call('get', Array)
#5 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getUrl('https://pki.whm...')
#6 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getPathFromKeyserver('certs.json')
#7 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getCertMetadata()
#8 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->obtainCertificate('0C12A820D7DD9ED...', 1)
#9 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getTrustedCertificate('0C12A820D7DD9ED...', 1)
#10 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/PackagesFile.php(0): WHMCS\Installer\Composer\CertificateManager->getValidCodeSigningCertificateContent('0C12A820D7DD9ED...')
#11 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/WhmcsRepository.php(0): WHMCS\Installer\Composer\PackagesFile->validateNotificationSignatures(Array)
#12 /home/username/public_html/billing/vendor/composer/composer/src/Composer/Repository/ComposerRepository.php(462): WHMCS\Installer\Composer\WhmcsRepository->fetchFile('https://release...', 'UpdatePackagesD...')
#13 /home/username/public_html/billing/vendor/composer/composer/src/Composer/Repository/ComposerRepository.php(256): Composer\Repository\ComposerRepository->loadRootServerFile()
#14 /home/username/public_html/billing/vendor/composer/composer/src/Composer/DependencyResolver/Pool.php(99): Composer\Repository\ComposerRepository->hasProviders()
#15 /home/username/public_html/billing/vendor/composer/composer/src/Composer/Installer.php(402): Composer\DependencyResolver\Pool->addRepository(Object(WHMCS\Installer\Composer\WhmcsRepository), Array)
#16 /home/username/public_html/billing/vendor/composer/composer/src/Composer/Installer.php(228): Composer\Installer->doInstall(Object(Composer\Repository\InstalledArrayRepository), Object(Composer\Repository\CompositeRepository), Object(Composer\Repository\PlatformRepository), Array, false)
#17 /home/username/public_html/billing/vendor/composer/composer/src/Composer/Command/UpdateCommand.php(173): Composer\Installer->run()
#18 /home/username/public_html/billing/vendor/symfony/console/Command/Command.php(259): Composer\Command\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))
#19 /home/username/public_html/billing/vendor/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))
#20 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/WhmcsComposerApplication.php(0): Symfony\Component\Console\Application->doRunCommand(Object(Composer\Command\UpdateCommand), Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))
#21 /home/username/public_html/billing/vendor/symfony/console/Application.php(192): WHMCS\Installer\Composer\WhmcsComposerApplication->doRunCommand(Object(Composer\Command\UpdateCommand), Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))
#22 /home/username/public_html/billing/vendor/composer/composer/src/Composer/Console/Application.php(189): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))
#23 /home/username/public_html/billing/vendor/symfony/console/Application.php(123): Composer\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))
#24 /home/username/public_html/billing/vendor/composer/composer/src/Composer/Console/Application.php(99): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))
#25 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerWrapper.php(0): Composer\Console\Application->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))
#26 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerWrapper.php(0): WHMCS\Installer\Composer\ComposerWrapper->update()
#27 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerUpdate.php(0): WHMCS\Installer\Composer\ComposerWrapper->getLatestVersion()
#28 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerUpdate.php(0): WHMCS\Installer\Composer\ComposerUpdate->WHMCS\Installer\Composer{closure}()
#29 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerUpdate.php(0): WHMCS\Installer\Composer\ComposerUpdate->doComposerCommand(Object(Closure))
#30 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Installer/Update/Updater.php(0): WHMCS\Installer\Composer\ComposerUpdate->getLatestVersion(true)
#31 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Cron/Task/CheckForWhmcsUpdate.php(0): WHMCS\Installer\Update\Updater->fetchComposerLatestVersion()
#32 [internal function]: WHMCS\Cron\Task\CheckForWhmcsUpdate->__invoke()
#33 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): call_user_func_array(Object(WHMCS\Cron\Task\CheckForWhmcsUpdate), Array)
#34 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Scheduling\Task\AbstractTask->execute()
#35 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Scheduling\Task\AbstractTask->run()
#36 /home/username/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Cron\Console\Command\AbstractCronCommand->executeCollection(Object(WHMCS\Scheduling\Task\Collection))
#37 /home/username/public_html/billing/vendor/symfony/console/Command/Command.php(259): WHMCS\Cron\Console\Command\AbstractCronCommand->execute(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#38 /home/username/public_html/billing/vendor/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#39 /home/username/public_html/billing/vendor/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(WHMCS\Cron\Console\Command\AllCommand), Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#40 /home/username/public_html/billing/vendor/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#41 /home/username/public_html/billing/crons/cron.php(0): Symfony\Component\Console\Application->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
We upgraded our WHMCS version to 7.10.1 a month ago, and the Coinbase Commerce WHMCS addon stopped working correctly. The webhook is set correctly, but the payments are not marked as "Paid" in WHMCS automatically any more.
Here is what our WHMCS logs say. Also, when we are testing our webhook and sending test requests, we get the following error.
We have the latest released version of the Coinbase Commerce WHMCS addon, which we got from this link:.
On your website, we see that Coinbase Commerce was tested on WHMCS up to version 7.4.2. WHMCS is at version 7.10.2 now. Could you update the Coinbase Commerce addon for WHMCS to work with this latest version of WHMCS?
If that's harder to do, could you at least help us solve this webhook problem that we are facing with?
hi
is there someone with version compatible on whmcs 10.7.2 this one not working
Here is the error:
Oops!
Something went wrong and we couldn't process your request.
Please go back to the previous page and try again.
For additional assistance, please reference the WHMCS TroubleShooting Guide »
Error: Undefined class constant 'MAJOR_VERSION' in /home/customer/www/omnisoftit.com/public_html/myaccount/vendor/guzzlehttp/guzzle/src/Utils.php:121
Stack trace:
#0 /home/customer/www/omnisoftit.com/public_html/myaccount/vendor/guzzlehttp/guzzle/src/functions.php(61): GuzzleHttp\Utils::defaultUserAgent()
#1 /home/customer/www/omnisoftit.com/public_html/myaccount/modules/gateways/Coinbase/vendor/guzzlehttp/guzzle/src/Client.php(194): GuzzleHttp\default_user_agent()
#2 /home/customer/www/omnisoftit.com/public_html/myaccount/modules/gateways/Coinbase/vendor/guzzlehttp/guzzle/src/Client.php(75): GuzzleHttp\Client->configureDefaults(Array)
#3 /home/customer/www/omnisoftit.com/public_html/myaccount/modules/gateways/Coinbase/vendor/coinbase/coinbase-commerce/src/ApiClient.php(257): GuzzleHttp\Client->__construct()
#4 /home/customer/www/omnisoftit.com/public_html/myaccount/modules/gateways/Coinbase/vendor/coinbase/coinbase-commerce/src/ApiClient.php(236): CoinbaseCommerce\ApiClient->getHttpClient()
#5 /home/customer/www/omnisoftit.com/public_html/myaccount/modules/gateways/Coinbase/vendor/coinbase/coinbase-commerce/src/ApiClient.php(292): CoinbaseCommerce\ApiClient->makeRequest('POST', 'https://api.com...', Array)
#6 /home/customer/www/omnisoftit.com/public_html/myaccount/modules/gateways/Coinbase/vendor/coinbase/coinbase-commerce/src/Resources/Operations/CreateMethodTrait.php(21): CoinbaseCommerce\ApiClient->post('charges', Array, Array)
#7 /home/customer/www/omnisoftit.com/public_html/myaccount/modules/gateways/coinbase.php(111): CoinbaseCommerce\Resources\Charge::create(Array)
#8 /home/customer/www/omnisoftit.com/public_html/myaccount/vendor/whmcs/whmcs-foundation/lib/Module/AbstractModule.php(0): coinbase_link(Array)
#9 /home/customer/www/omnisoftit.com/public_html/myaccount/vendor/whmcs/whmcs-foundation/lib/Module/Gateway.php(0): WHMCS\Module\AbstractModule->call('link', Array)
#10 /home/customer/www/omnisoftit.com/public_html/myaccount/vendor/whmcs/whmcs-foundation/lib/Invoice.php(0): WHMCS\Module\Gateway->call('link', Array)
#11 /home/customer/www/omnisoftit.com/public_html/myaccount/viewinvoice.php(0): WHMCS\Invoice->getPaymentLink()
#12 {main}
The module throws errors relating to the MaxMind module on WHMCS 8.0.0, even when the Coinbase Module is not being used to process the checkout. Stacktrace references Guzzle. I'm not sure what is going on here, but the stacktrace is below for those who understand this better than I do.
0 /var/www/html/whmcs/vendor/guzzlehttp/guzzle/src/functions.php(61): GuzzleHttp\Utils::defaultUserAgent()
1 /var/www/html/whmcs/modules/gateways/Coinbase/vendor/guzzlehttp/guzzle/src/Client.php(194): GuzzleHttp\default_user_agent()
2 /var/www/html/whmcs/modules/gateways/Coinbase/vendor/guzzlehttp/guzzle/src/Client.php(75): GuzzleHttp\Client->configureDefaults(Array)
3 /var/www/html/whmcs/vendor/whmcs/whmcs-foundation/lib/Http/Client/HttpClient.php(0): GuzzleHttp\Client->__construct(Array)
4 /var/www/html/whmcs/vendor/whmcs/whmcs-foundation/lib/Module/Fraud/AbstractRequest.php(0): WHMCS\Http\Client\HttpClient->__construct()
5 /var/www/html/whmcs/modules/fraud/maxmind/lib/Request.php(0): WHMCS\Module\Fraud\AbstractRequest->getClient()
6 /var/www/html/whmcs/modules/fraud/maxmind/maxmind.php(0): WHMCS\Module\Fraud\MaxMind\Request->call(Array)
7 /var/www/html/whmcs/vendor/whmcs/whmcs-foundation/lib/Module/AbstractModule.php(0): maxmind_doFraudCheck(Array)
8 /var/www/html/whmcs/vendor/whmcs/whmcs-foundation/lib/Module/Fraud.php(0): WHMCS\Module\AbstractModule->call('doFraudCheck', Array)
9 /var/www/html/whmcs/vendor/whmcs/whmcs-foundation/lib/Module/Fraud.php(0): WHMCS\Module\Fraud->call('doFraudCheck', Array)
10 /var/www/html/whmcs/cart.php(0): WHMCS\Module\Fraud->doFraudCheck(220)
11
However, seeing this on many transactions... not sure how to proceed.
No signatures found matching the expected signature 58421f81afc8a79c9a1f4928b2778c6c812cc0449683c9e834ee5ecc4e7b3c0f for payload {"attempt_number":7,"event":{"api_version":"2018-03-22","created_at":"2019-02-24T02:56:17Z","data":{"id":"8247e132-7ef5-4799-82af-98344a7dbcbd","code":"Z5G9TQ6D","name":" - Invoice #11422620","pricing":{"local":{"amount":"16.00","currency":"GBP"},"bitcoin":{"amount":"0.00503831","currency":"BTC"},"ethereum":{"amount":"0.128516000","currency":"ETH"},"litecoin":{"amount":"0.40042960","currency":"LTC"},"bitcoincash":{"amount":"0.13450361","currency":"BCH"}},"metadata":{"email":"[email protected]","source":"whmcs","clientid":"16015","lastName":"xxx","firstName":"Xxxx","invoiceid":"11422620"},"payments":[],"resource":"charge","timeline":[{"time":"2019-02-24T02:56:17Z","status":"NEW"}],"addresses":{"bitcoin":"15QG5F4fuP3dqG44Fx6uS5Eb8tT2xYLBGL","ethereum":"0x793825700efe3d8d083be1d5156b1c599d6e3e4b","litecoin":"LTZxVZivqq1yixqrUADKXeEDJFnNwfDttN","bitcoincash":"qr8fmp4d6hwnvs2nv7cjxen4k9qmxhuscszaphydy3"},"cancel_url":"https://xxxx/viewinvoice.php?id=11422620&paymentfailed=true","created_at":"2019-02-24T02:56:17Z","expires_at":"2019-02-24T03:56:17Z","hosted_url":"https://commerce.coinbase.com/charges/Z5G9TQ6D","description":"prodcut (23/02/2019 - 22/05/2019)","pricing_type":"fixed_price","redirect_url":"https://xxxx/viewinvoice.php?id=11422620&paymentsuccess=true"},"id":"49c29b0c-
Fatal error: require_once(): Failed opening required '/home/hosting/public_html/billing/modules/gateways/Coinbase/vendor/autoload.php' (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/hosting/public_html/billing/modules/gateways/coinbase.php on line 2
Oops!
Something went wrong and we couldn't process your request.
Please go back to the previous page and try again.
Whoops\Exception\ErrorException: require_once(): Failed opening required '/home/hosting/public_html/billing/modules/gateways/Coinbase/vendor/autoload.php' (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/hosting/public_html/billing/modules/gateways/coinbase.php:2
Stack trace:
#0 /home/hosting/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(64, 'require_once():...', '/home/hosting...', 2)
#1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown()
transaction return not paid
coinbainse return test Webhook subscriptions error
Remote server at whmcs.example.com returned an HTTP 302
my whmcs required ssl url send using in my account https://whmcs.example.com
whmcs 7.7 and php 7.3 linux sysytem cenntos 6
please solve problem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.