Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google service "Walletobjects" does not exist or was removed previously #114

Open
sanjay-jangid opened this issue Mar 19, 2024 · 2 comments

Comments

@sanjay-jangid
Copy link

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?

@Saleemfarheen
Copy link

Hi

@razvanphp
Copy link
Contributor

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"
    ]
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants