Giter VIP home page Giter VIP logo

Comments (3)

DaveBamb avatar DaveBamb commented on July 17, 2024

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.

mattwhisenhunt avatar mattwhisenhunt commented on July 17, 2024

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.

mattwhisenhunt avatar mattwhisenhunt commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.