1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/config/liap.php

147 lines
8.4 KiB
PHP
Raw Normal View History

2023-03-08 01:27:13 +01:00
<?php
2023-05-21 12:31:55 +02:00
use Imdhemy\Purchases\Events\AppStore\Refund;
2023-03-15 01:41:59 +01:00
use Imdhemy\Purchases\Events\AppStore\DidRenew;
2023-05-21 12:31:55 +02:00
use Imdhemy\Purchases\Events\AppStore\DidFailToRenew;
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPaused;
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionExpired;
2023-03-15 01:41:59 +01:00
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRenewed;
2023-05-21 12:31:55 +02:00
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRevoked;
use Imdhemy\Purchases\Events\AppStore\DidChangeRenewalStatus;
2023-06-23 09:22:29 +02:00
use Imdhemy\Purchases\Events\AppStore\InitialBuy;
use Imdhemy\Purchases\Events\AppStore\InteractiveRenewal;
2023-05-21 12:31:55 +02:00
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionCanceled;
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPurchased;
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRecovered;
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRestarted;
2023-03-15 01:41:59 +01:00
2023-03-08 01:27:13 +01:00
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')),
2023-03-08 01:27:13 +01:00
/*
|--------------------------------------------------------------------------
| 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,
],*/
2023-03-17 03:55:46 +01:00
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] : [],
2023-05-21 12:31:55 +02:00
DidChangeRenewalStatus::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleChangeRenewalStaus::class) ? [\Modules\Admin\Listeners\Subscription\GoogleChangeRenewalStaus::class] : [],
DidFailToRenew::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleFailedToRenew::class) ? [\Modules\Admin\Listeners\Subscription\GoogleFailedToRenew::class] : [],
Refund::class => class_exists(\Modules\Admin\Listeners\Subscription\AppleRefund::class) ? [\Modules\Admin\Listeners\Subscription\AppleRefund::class] : [],
SubscriptionRecovered::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleSubscriptionRecovered::class) ? [\Modules\Admin\Listeners\Subscription\GoogleSubscriptionRecovered::class] : [],
SubscriptionCanceled::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleSubscriptionCanceled::class) ? [\Modules\Admin\Listeners\Subscription\GoogleSubscriptionCanceled::class] : [],
SubscriptionPurchased::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleSubscriptionPurchased::class) ? [\Modules\Admin\Listeners\Subscription\GoogleSubscriptionPurchased::class] : [],
SubscriptionRestarted::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleSubscriptionRestarted::class) ? [\Modules\Admin\Listeners\Subscription\GoogleSubscriptionRestarted::class] : [],
SubscriptionPaused::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleSubscriptionPaused::class) ? [\Modules\Admin\Listeners\Subscription\GoogleSubscriptionPaused::class] : [],
SubscriptionRevoked::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleSubscriptionRevoked::class) ? [\Modules\Admin\Listeners\Subscription\GoogleSubscriptionRevoked::class] : [],
SubscriptionExpired::class => class_exists(\Modules\Admin\Listeners\Subscription\GoogleSubscriptionExpired::class) ? [\Modules\Admin\Listeners\Subscription\GoogleSubscriptionExpired::class] : [],
2023-06-23 09:22:29 +02:00
Cancel::class => class_exists(\Modules\Admin\Listeners\Subscription\AppleCancel::class) ? [\Modules\Admin\Listeners\Subscription\AppleCancel::class] : [],
DidRecover::class => class_exists(\Modules\Admin\Listeners\Subscription\AppleRecover::class) ? [\Modules\Admin\Listeners\Subscription\AppleRecover::class] : [],
InitialBuy::class => class_exists(\Modules\Admin\Listeners\Subscription\AppleInitialBuy::class) ? [\Modules\Admin\Listeners\Subscription\AppleInitialBuy::class] : [],
InteractiveRenewal::class => class_exists(\Modules\Admin\Listeners\Subscription\AppleInteractiveRenewal::class) ? [\Modules\Admin\Listeners\Subscription\AppleInteractiveRenewal::class] : [],
2023-03-08 01:27:13 +01:00
],
/*
| --------------------------------------------------------------------------
| 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 apps bundle ID (Ex: “com.example.testbundleid2021”)
'appstore_bundle_id' => env('APPSTORE_BUNDLE_ID'),
];