Download the PHP package nullform/app-store-server-api-client without Composer
On this page you can find all versions of the php package nullform/app-store-server-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nullform/app-store-server-api-client
More information about nullform/app-store-server-api-client
Files in nullform/app-store-server-api-client
Package app-store-server-api-client
Short Description PHP client for App Store Server API and App Store Server Notifications
License MIT
Homepage https://github.com/nullform/app-store-server-api-client
Informations about the package app-store-server-api-client
Apple App Store Server API PHP Client
Unoffical PHP client for App Store Server API and App Store Server Notifications.
Installation
Requirements
- PHP >= 7.2
Composer
Usage
Create an API Key instance:
Create a Bundle instance(s):
Create an API client instance:
Use client for one or multiple bundles:
You can manually call the App Store Server API via universal callApi() method:
AppStoreServerApiClient methods
Get Transaction History
Get a customer’s in-app purchase transaction history for your app.
https://developer.apple.com/documentation/appstoreserverapi/get_transaction_history
Get All Transactions History
Recursively get FULL transaction history.
Get Transaction Info
Get information about a single transaction for your app.
https://developer.apple.com/documentation/appstoreserverapi/get_transaction_info
Get All Subscription Statuses
Get the statuses for all of a customer’s subscriptions in your app.
https://developer.apple.com/documentation/appstoreserverapi/get_all_subscription_statuses
Send Consumption Information
Send consumption information about a consumable in-app purchase to the App Store after your server receives a consumption request notification.
https://developer.apple.com/documentation/appstoreserverapi/send_consumption_information
Look Up Order Id
Get a customer’s in-app purchases from a receipt using the order ID.
https://developer.apple.com/documentation/appstoreserverapi/look_up_order_id
Get Refund History
Get a list of all refunded in-app purchases in your app for a customer.
https://developer.apple.com/documentation/appstoreserverapi/get_refund_history
Extend a Subscription Renewal Date
Extend the renewal date of a customer’s active subscription using the original transaction identifier.
https://developer.apple.com/documentation/appstoreserverapi/extend_a_subscription_renewal_date
Extend Subscription Renewal Dates for All Active Subscribers
Uses a subscription’s product identifier to extend the renewal date for all of its eligible active subscribers.
Get Status of Subscription Renewal Date Extensions
Checks whether a renewal date extension request completed, and provides the final count of successful or failed extensions.
Request a Test Notification
Ask App Store Server Notifications to send a test notification to your server.
https://developer.apple.com/documentation/appstoreserverapi/request_a_test_notification
Get Test Notification Status
Check the status of the test App Store server notification sent to your server.
https://developer.apple.com/documentation/appstoreserverapi/get_test_notification_status
Get Notification History
Get a list of notifications that the App Store server attempted to send to your server.
https://developer.apple.com/documentation/appstoreserverapi/get_notification_history
Set App Store Bundle
Set App Store bundle for authorize your API calls.
Set Token TTL
Set new value for JWT TTL (in seconds). Maximum value: 3600.
https://developer.apple.com/documentation/appstoreserverapi/generating_tokens_for_api_requests
Set HTTP Client Request Timeout
Set new value for HTTP client request timeout (in seconds).
Call API
Custom call App Store Server API with your previously passed credentials.
Receiving App Store Server Notifications V2
To receive App Store Server Notifications use AppStoreServerNotificationsClient:
Note that AppStoreServerNotificationsClient only for version 2 notifications.
Tests
For unit tests you must create credentials.php and private-key.p8 with the key and sandbox credentials from App Store Connect (see tests/credentials.example.php).
All versions of app-store-server-api-client with dependencies
ext-json Version *
symfony/uid Version ^5.4
guzzlehttp/guzzle Version ^7.5
firebase/php-jwt Version ^6.0
nullform/http-status Version ^1.1