2022-06-10 00:29:56 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Imdhemy\Purchases\Events\AppStore\Cancel;
|
2023-02-17 05:46:07 +01:00
|
|
|
use Imdhemy\Purchases\Events\AppStore\Refund;
|
|
|
|
use Imdhemy\Purchases\Events\AppStore\Revoke;
|
2022-06-10 00:29:56 +02:00
|
|
|
use Imdhemy\Purchases\Events\AppStore\DidRenew;
|
2023-02-17 05:46:07 +01:00
|
|
|
use Imdhemy\Purchases\Events\AppStore\DidRecover;
|
2022-06-10 00:29:56 +02:00
|
|
|
use Imdhemy\Purchases\Events\AppStore\InitialBuy;
|
2023-02-17 05:46:07 +01:00
|
|
|
use Imdhemy\Purchases\Events\AppStore\DidFailToRenew;
|
|
|
|
use App\Listeners\Subscription\AppStoreRenewSubscription;
|
2022-06-10 00:29:56 +02:00
|
|
|
use Imdhemy\Purchases\Events\AppStore\InteractiveRenewal;
|
2023-02-17 05:46:07 +01:00
|
|
|
use App\Listeners\Subscription\PlayStoreRenewSubscription;
|
|
|
|
use Imdhemy\Purchases\Events\AppStore\DidChangeRenewalPref;
|
2022-06-10 00:29:56 +02:00
|
|
|
use Imdhemy\Purchases\Events\AppStore\PriceIncreaseConsent;
|
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionOnHold;
|
2022-09-09 10:36:54 +02:00
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPaused;
|
2023-02-17 05:46:07 +01:00
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionExpired;
|
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRenewed;
|
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRevoked;
|
|
|
|
use Imdhemy\Purchases\Events\AppStore\DidChangeRenewalStatus;
|
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionCanceled;
|
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionDeferred;
|
2022-06-10 00:29:56 +02:00
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPurchased;
|
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRecovered;
|
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRestarted;
|
2023-02-17 05:46:07 +01:00
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionInGracePeriod;
|
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPauseScheduleChanged;
|
|
|
|
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPriceChangeConfirmed;
|
2022-06-10 00:29:56 +02:00
|
|
|
|
|
|
|
return [
|
|
|
|
'routing' => [],
|
|
|
|
|
2023-02-17 05:25:18 +01:00
|
|
|
'google_play_package_name' => env('GOOGLE_PLAY_PACKAGE_NAME', 'com.invoiceninja.app'),
|
2022-06-10 00:29:56 +02:00
|
|
|
|
|
|
|
'appstore_password' => env('APPSTORE_PASSWORD', ''),
|
|
|
|
|
|
|
|
'eventListeners' => [
|
|
|
|
/**
|
|
|
|
* --------------------------------------------------------
|
|
|
|
* Google Play Events
|
|
|
|
* --------------------------------------------------------
|
|
|
|
*/
|
|
|
|
SubscriptionPurchased::class => [],
|
2023-02-17 05:46:07 +01:00
|
|
|
SubscriptionRenewed::class => [PlayStoreRenewSubscription::class],
|
2022-06-10 00:29:56 +02:00
|
|
|
SubscriptionInGracePeriod::class => [],
|
|
|
|
SubscriptionExpired::class => [],
|
|
|
|
SubscriptionCanceled::class => [],
|
|
|
|
SubscriptionPaused::class => [],
|
|
|
|
SubscriptionRestarted::class => [],
|
|
|
|
SubscriptionDeferred::class => [],
|
|
|
|
SubscriptionRevoked::class => [],
|
|
|
|
SubscriptionOnHold::class => [],
|
|
|
|
SubscriptionRecovered::class => [],
|
|
|
|
SubscriptionPauseScheduleChanged::class => [],
|
|
|
|
SubscriptionPriceChangeConfirmed::class => [],
|
|
|
|
|
|
|
|
/**
|
|
|
|
* --------------------------------------------------------
|
|
|
|
* Appstore Events
|
|
|
|
* --------------------------------------------------------
|
|
|
|
*/
|
|
|
|
Cancel::class => [],
|
|
|
|
DidChangeRenewalPref::class => [],
|
|
|
|
DidChangeRenewalStatus::class => [],
|
|
|
|
DidFailToRenew::class => [],
|
|
|
|
DidRecover::class => [],
|
2022-09-09 10:36:54 +02:00
|
|
|
DidRenew::class => [AppStoreRenewSubscription::class],
|
2022-06-10 00:29:56 +02:00
|
|
|
InitialBuy::class => [],
|
|
|
|
InteractiveRenewal::class => [],
|
|
|
|
PriceIncreaseConsent::class => [],
|
|
|
|
Refund::class => [],
|
|
|
|
Revoke::class => [],
|
|
|
|
],
|
|
|
|
];
|