Closed andrezanna closed 2 years ago
Hi @andrezanna, the package cannot find the credentials file path, in the config/queue.php
and the config/pubsub.php
, the keyFilePath
has the storage_path
as a reference, which mean when the package tries to get the file it hits {yout-project-folder}/storage//var/www/html/pc-api-8658230392793226561-324-1fe7077700db.json
.
To solve this issue there are 2 solutions.
1 - Place the credentials file in the laravel storage folder.
2 - Reconfigure the keyFilePath
in config/queue.php
and the config/pubsub.php
to use the correct path.
And yes this package is suitable for your usage. 👍
Ok thanks i figured it out.
Hello, I'm not sure I understood how to setup the package, here i resume my tries.
after composer require i added in config/queue.php
then created the file config/pubsub.php
created the receiver class by doing
php artisan pubsub:make-subscriber PlaySub
pass to the server the service account json (i put it in root of project) and then added this lines to .env
Then i tried to subscribe to this channel, since it will be only receiving updates from the store billing api and I won't send updates to it.
I tried with both commands: php artisan pubsub:subscribe play-billing php artisan pubsub:subscribe pubsub
but in both cases it returned me:
As i'm not sure what the parameter SUBSCRIPTION should be, can you please explain me what I'm doing wrong or if this is not a suitable package for my usage.
Many thanks