The APPLE_PROXY_HOST forward runs before the notice is stored, with no timeout and no error handling. When the target is down, every notice throws, Apple gets a 500 and nothing is stored or sent to AppsFlyer. cdlbackend (analytics.mapo.la/webhooks/13) and dmvbackend (/42) have been in that state since 2025-06-16. Now the forward waits at most proxy_timeout seconds (APPLE_PROXY_TIMEOUT, default 5) and a failure is only logged as a warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.5 KiB
PHP
31 lines
1.5 KiB
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
* Apple will send the shared secret with the request that should match
|
|
* the one you use when validating receipts.
|
|
* https://developer.apple.com/documentation/storekit/in-app_purchase/enabling_server-to-server_notifications?language=objc#overview
|
|
*/
|
|
'shared_secret' => env('APPLE_SHARED_SECRET'),
|
|
/*
|
|
* All the events that should be handeled by your application.
|
|
* Typically you should uncomment all jobs
|
|
*
|
|
* You can find a list of all notification types here:
|
|
* https://developer.apple.com/documentation/storekit/in-app_purchase/enabling_server-to-server_notifications?language=objc#3162176
|
|
*/
|
|
'jobs' => [
|
|
// 'initial_buy' => \App\Jobs\AppstoreNotifications\HandleInitialBuy::class,
|
|
// 'cancel' => \App\Jobs\AppstoreNotifications\HandleCancellation::class,
|
|
// 'renewal' => \App\Jobs\AppstoreNotifications\HandleRenewal::class,
|
|
// 'interactive_renewal' => \App\Jobs\AppstoreNotifications\HandleInteractiveRenewal::class,
|
|
// 'did_change_renewal_pref' => \App\Jobs\AppstoreNotifications\HandleDidChangeRenewalPreferences::class,
|
|
// 'did_change_renewal_status' => \App\Jobs\AppstoreNotifications\HandleDidChangeRenewalStatus::class,
|
|
],
|
|
'proxy_host' => env('APPLE_PROXY_HOST'),
|
|
/*
|
|
* Seconds to wait for the proxy_host before giving up (the forward never blocks our own processing).
|
|
*/
|
|
'proxy_timeout' => env('APPLE_PROXY_TIMEOUT', 5),
|
|
];
|