Giter Site home page Giter Site logo

AppStoreServerAPIClient is connecting to Production when the environment is Xcode or LocalTesting about app-store-server-library-java HOT 3 CLOSED

at9pm avatar at9pm commented on August 25, 2024
AppStoreServerAPIClient is connecting to Production when the environment is Xcode or LocalTesting

from app-store-server-library-java.

Comments (3)

alexanderjordanbaker avatar alexanderjordanbaker commented on August 25, 2024

Xcode environment makes more sense as an environment to the SignedDataVerifier to verify receipts generated in Xcode. LOCAL_TESTING is for unit tests to use an environment that does not correspond to a real environment

from app-store-server-library-java.

at9pm avatar at9pm commented on August 25, 2024

Thanks Alex, that helps. In other words, the Xcode environment is only intended for SignedDataVerifier to decode messages, but not for API server client to request app store server, right? If it is the case, perhaps it should throw exception at the time of constructing the API client if the environment is neither sandbox nor production. I am new to App Store API, it actually spent me quite some time to figure out if the environment is Xcode, some methods cannot be used. (such as get transaction info by transaction id)

from app-store-server-library-java.

alexanderjordanbaker avatar alexanderjordanbaker commented on August 25, 2024

This has been improved in #89 to throw an exception when Xcode is passed as an argument to the AppStoreServerAPIClient. LOCAL_TESTING is kept but added a comment to make it a little clearer that is used for unit testing only.

from app-store-server-library-java.

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.