mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
122 lines
5.1 KiB
PHP
122 lines
5.1 KiB
PHP
<?php
|
||
|
||
use Imdhemy\Purchases\Events\AppStore\DidRenew;
|
||
use App\Listeners\Subscription\AppStoreRenewSubscription;
|
||
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRenewed;
|
||
|
||
return [
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Routing configuration
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| This configuration is used to determine the routing behavior of the
|
||
| Server notifications handler endpoint.
|
||
|
|
||
| You can find more information on documentation.
|
||
| @see https://imdhemy.com/laravel-iap-docs/docs/get-started/routing
|
||
*/
|
||
|
||
'routing' => [
|
||
'signed' => false,
|
||
'middleware' => [],
|
||
'prefix' => '',
|
||
],
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Google Play Default Package name
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| This value is the default package name used when the package name is not
|
||
| provided while verifying the receipts.
|
||
|
|
||
*/
|
||
'google_play_package_name' => env('GOOGLE_PLAY_PACKAGE_NAME', 'com.invoiceninja.app'),
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Google Application Credentials
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| This value is the path to the Google Application Credentials file.
|
||
| @see https://imdhemy.com/laravel-iap-docs/docs/credentials/google-play
|
||
|
|
||
*/
|
||
'google_application_credentials' => env('GOOGLE_APPLICATION_CREDENTIALS', base_path('VERSION.txt')),
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| App Store Password
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| This value is the app-specific share password generated by the app store.
|
||
| @see https://imdhemy.com/laravel-iap-docs/docs/credentials/app-store
|
||
|
|
||
*/
|
||
'appstore_password' => env('APPSTORE_PASSWORD', ''),
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Event Listeners
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| This configuration is used to determine the event listeners that will be
|
||
| registered with the application.
|
||
| You can find a list of all available events of the documentation
|
||
|
|
||
| @see https://imdhemy.com/laravel-iap-docs/docs/server-notifications/event-list
|
||
| @see https://imdhemy.com/laravel-iap-docs/docs/get-started/event-listeners
|
||
|
|
||
*/
|
||
'eventListeners' => [
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| App Store Events
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| These event listeners are triggered when a new notification is received from App Store.
|
||
| @see https://imdhemy.com/laravel-iap-docs/docs/server-notifications/event-list#app-store-events
|
||
|
|
||
*/
|
||
|
||
/* \Imdhemy\Purchases\Events\AppStore\Cancel::class => [
|
||
\App\Listeners\AppStore\Cancel::class,
|
||
],*/
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Google Play Events
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| These event listeners are triggered when a new notification is received from Google Play
|
||
| @see @see https://imdhemy.com/laravel-iap-docs/docs/server-notifications/event-list#google-play-events
|
||
*/
|
||
|
||
/* \Imdhemy\Purchases\Events\GooglePlay\SubscriptionRecovered::class => [
|
||
\App\Listeners\GooglePlay\SubscriptionRecovered::class,
|
||
],*/
|
||
|
||
DidRenew::class => class_exists(\Modules\Admin\Listeners\Subscription\AppleAutoRenew::class) ? [\Modules\Admin\Listeners\Subscription\AppleAutoRenew::class] : [],
|
||
SubscriptionRenewed::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleAutoRenew::class) ? [\Modules\Admin\Listeners\Subscription\GoogleAutoRenew::class] : [],
|
||
|
||
],
|
||
|
||
/*
|
||
| --------------------------------------------------------------------------
|
||
| App store JWT configuration
|
||
| --------------------------------------------------------------------------
|
||
|
|
||
| The following configuration is used to generate the JWT token used to
|
||
| authenticate with the App Store server.
|
||
*/
|
||
// Your private key ID from App Store Connect (Ex: 2X9R4HXF34)
|
||
'appstore_private_key_id' => env('APPSTORE_PRIVATE_KEY_ID'),
|
||
// The path to your private key file (Ex: /path/to/SuperSecretKey_ABC123.p8)
|
||
'appstore_private_key' => env('APPSTORE_PRIVATE_KEY'),
|
||
// Your issuer ID from the Keys page in App Store Connect (Ex: "57246542-96fe-1a63-e053-0824d011072a")
|
||
'appstore_issuer_id' => env('APPSTORE_ISSUER_ID'),
|
||
// Your app’s bundle ID (Ex: “com.example.testbundleid2021”)
|
||
'appstore_bundle_id' => env('APPSTORE_BUNDLE_ID'),
|
||
];
|