Comments (3)
Ok, after several trial and error you need to call $service->purchases_products->get(...)
instead of $service->products->get(...)
as stated in the source code like in: https://github.com/google/google-api-php-client-services/blob/master/src/Google/Service/AndroidPublisher/Resource/PurchasesProducts.php where the usage example is wrong.
Now the returned result doesn't have an 'orderID' field like it's supposed to have as stated in here:
https://developers.google.com/android-publisher/api-ref/purchases/products
I tested it with a testing purchase (purchase with a test google account that doesn't charge money), maybe it's because of that?
Edit: Also, is there any kind of exception handling when requesting data from the API?
Edit2: So yeah, digging a bit more through the files I found this: https://github.com/google/google-api-php-client/blob/37adb8a6f4d4b27b9900d62d67bf1d54995a755c/src/Google/Service/Exception.php to handle the exceptions. Now my only question is that about the orderID missing from the request answer.
from google-api-php-client-services.
Sorry this slipped through the cracks and went unanswered for so long. Could you try testing this on API Explorer to see if the orderID shows up there?
from google-api-php-client-services.
Thank you for filing this issue. We asked some clarifying questions or suggested a course of action a week or more ago and never heard back from you. We are unable to proceed with this issue until then, so we are closing it. Please feel free to comment with more information and we will re-open this issue.
from google-api-php-client-services.
Related Issues (20)
- BusinessProfilePerformance: Google \ Exception (fetchMultiDailyMetricsTimeSeries) unknown parameter: 'dailyRange' HOT 3
- \Google\Service\Calendar\Event::getDescription() returns NULL instead of "" HOT 3
- chore: update copyright year
- Slow download time impacting our tests. HOT 2
- HangoutsChat - Cannot add user into a space HOT 2
- composer install fails while trying to download "google/apiclient-services" everytime for the last three weeks (duplicate by mistake)
- composer install fails while trying to download "google/apiclient-services" everytime for the last three weeks HOT 6
- Obtain Domains list HOT 1
- Package is difficult to install HOT 1
- User does not have sufficient permissions for this profile. HOT 2
- `ValueRange:getValues()` returns null for empty sheet. HOT 3
- Dynamic property declarations in PHP 8.2 HOT 1
- Method: verificationTokens.generate missing in MyBusinessVerifications HOT 4
- Dynamic property declarations in PHP 8.2 (follow-up) HOT 4
- getResources() now returns null
- Add `@throws \Google\Service\Exception` in method's phpdoc HOT 2
- Safe browsing client refers to non existent v5 version HOT 5
- TransitType enum not generated HOT 4
- Hey, I’ve been working with Swoole and I think there’s an issue when the application runs in a resident memory environment
- Add a script to generate the golden clients from the golden files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-api-php-client-services.