This is a collection of PHP scripts implementing a basic version of the server required to support auto-renewable subscriptions in Baker Framework.
This server conforms to the Baker Server API.
This server is provided as an example and it should never be used in production.
To verify receipt with the App Store you need to put your app shared secret in the shared_secret.txt file. See shared_secret.txt.example for instructions.
You can generate/retrieve your app shared secret in iTunes Connect.
You also need a SQLite database. You can get an empty one by renaming baker.sqlite3.example to baker.sqlite3 inside the db/ folder.
The server provides the following endpoints:
purchase_confirmation.php: acceptsPOSTrequests to save transaction receipts in the databasepurchases.php: acceptsGETrequests to return a list of purchased issuesshelf.php: acceptsGETrequests to return a list of available issuespost_apns_token.php: acceptsPOSTrequests to save APNS device tokens in the databaseissue.php: acceptsGETrequests to return the HPUB for a given issue (if the user is allowed to access it)
The server will create logs in the log/ folder.