Google service "Walletobjects" does not exist or was removed previously
Hello,
I am going to add google wallet feature in my laravel website, i did follow instruction which added in readme file. I update my composer file as bellow :
{ "require": { "google/auth": "^1.18", "guzzlehttp/guzzle": "*", "google/apiclient": "^2.15", "google/apiclient-services": "~0.300" }, "scripts": { "pre-autoload-dump": "Google\Task\Composer::cleanup" }, "extra": { "google/apiclient-services": [ "Walletobjects" ] } }
ut when i am trying to run "composer install" command in my mac terminal return error :
[InvalidArgumentException]
Google service "Walletobjects" does not exist or was removed previously
Please give me some ideal how to resolve this problem or add this missing "Walletobjects" file?
Hi
It works for me, please check your composer.json
{
"name": "eo/passbook",
"type": "library",
"description": "iOS Passbook for PHP",
"keywords": [
"passbook",
"ios",
"android",
"pass",
"mobile",
"wallet",
"coupons",
"tickets"
],
"homepage": "https://github.com/eymengunay/php-passbook",
"license": "MIT",
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"php": ">=8.1",
"ext-zip": "*",
"ext-openssl": "*",
"psr/log": "^3",
"google/apiclient": "^2.17.0",
"google/apiclient-services": "~0.365.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"nunomaduro/phpinsights": "dev-master",
"squizlabs/php_codesniffer": "3.*",
"phpstan/phpstan": "^1.10"
},
"suggest": {
"google/cloud-storage": "Allows interaction with Google Cloud Storage for storing Pass images"
},
"autoload": {
"psr-4": {
"Passbook\\": "src/Passbook/"
}
},
"scripts": {
"pre-autoload-dump": "Google\\Task\\Composer::cleanup"
},
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev"
},
"google/apiclient-services": [
"Walletobjects",
"Storage"
]
}
}