szohan / appstore-server-notifications
请求处理程序:App Store 服务器通知
1.4
2022-09-01 13:38 UTC
Requires
- php: >=7.4
- ext-json: *
- ext-openssl: *
- firebase/php-jwt: ^6.3
- phpseclib/phpseclib: ^3.0
README
处理并解析 App Store 服务器通知到对象。
有关请求的详细信息,可以在官方网站上找到:https://developer.apple.com/documentation/appstoreservernotifications
安装
本项目使用 composer。
$ composer require szohan/appstore-server-notifications
用法
获取 payloadSigned 对象。
<?php
use Szohan\AppstoreServerNotifications\Api\AppStoreNotification;
________________
$appStoreNotification = new AppStoreNotification($rawSignedPayload);
$signedPayload = $appStoreNotification->getPayload();
var_dump($signedPayload);