「Php/アプリストア連携/返金API/AppStore」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==appleのstorekitの返金のドキュメント== https://developer.apple.com/jp/documentation/storekit/in-app_purchase/handling_refund_notifications/ https://developer...」) |
|||
| 行3: | 行3: | ||
https://developer.apple.com/documentation/AppStoreServerNotifications/unified_receipt/Latest_receipt_info-data.dictionary | https://developer.apple.com/documentation/AppStoreServerNotifications/unified_receipt/Latest_receipt_info-data.dictionary | ||
| + | |||
| + | ==返金通知のサーバモックJSON== | ||
| + | <pre> | ||
| + | { | ||
| + | "notificationType": "REFUND", | ||
| + | "subtype": "DISPUTE", // または "OTHER" | ||
| + | "notificationUUID": "a1b2c3d4-5678-90ef-1234-567890abcdef", | ||
| + | "data": { | ||
| + | "appAppleId": 123456789, | ||
| + | "bundleId": "com.example.app", | ||
| + | "bundleVersion": "1.0", | ||
| + | "environment": "Sandbox", | ||
| + | "signedRenewalInfo": "...", // 省略可能(テスト時) | ||
| + | "signedTransactionInfo": "...", // 省略可能(テスト時) | ||
| + | "unifiedReceipt": { | ||
| + | "environment": "Sandbox", | ||
| + | "latest_receipt": "BASE64_ENCODED_RECEIPT_DATA", | ||
| + | "latest_receipt_info": [ | ||
| + | { | ||
| + | "cancellation_date_ms": "1625097600000", | ||
| + | "cancellation_reason": "1", // 1:ユーザー申請, 0:その他 | ||
| + | "product_id": "premium_subscription", | ||
| + | "transaction_id": "1000000123456789", | ||
| + | "original_transaction_id": "1000000123456789", | ||
| + | "purchase_date_ms": "1625000000000", | ||
| + | "expires_date_ms": "1627600000000" | ||
| + | } | ||
| + | ], | ||
| + | "status": 0 | ||
| + | } | ||
| + | }, | ||
| + | "version": "2.0" | ||
| + | } | ||
| + | </pre> | ||
2025年6月4日 (水) 16:33時点における版
appleのstorekitの返金のドキュメント
https://developer.apple.com/jp/documentation/storekit/in-app_purchase/handling_refund_notifications/
返金通知のサーバモックJSON
{
"notificationType": "REFUND",
"subtype": "DISPUTE", // または "OTHER"
"notificationUUID": "a1b2c3d4-5678-90ef-1234-567890abcdef",
"data": {
"appAppleId": 123456789,
"bundleId": "com.example.app",
"bundleVersion": "1.0",
"environment": "Sandbox",
"signedRenewalInfo": "...", // 省略可能(テスト時)
"signedTransactionInfo": "...", // 省略可能(テスト時)
"unifiedReceipt": {
"environment": "Sandbox",
"latest_receipt": "BASE64_ENCODED_RECEIPT_DATA",
"latest_receipt_info": [
{
"cancellation_date_ms": "1625097600000",
"cancellation_reason": "1", // 1:ユーザー申請, 0:その他
"product_id": "premium_subscription",
"transaction_id": "1000000123456789",
"original_transaction_id": "1000000123456789",
"purchase_date_ms": "1625000000000",
"expires_date_ms": "1627600000000"
}
],
"status": 0
}
},
"version": "2.0"
}
