|
1 | 1 | <?php
|
2 | 2 |
|
3 |
| -use Imdhemy\Purchases\Events\AppStore\Cancel; |
4 |
| -use Imdhemy\Purchases\Events\AppStore\DidChangeRenewalPref; |
5 |
| -use Imdhemy\Purchases\Events\AppStore\DidChangeRenewalStatus; |
6 |
| -use Imdhemy\Purchases\Events\AppStore\DidFailToRenew; |
7 |
| -use Imdhemy\Purchases\Events\AppStore\DidRecover; |
8 |
| -use Imdhemy\Purchases\Events\AppStore\DidRenew; |
9 |
| -use Imdhemy\Purchases\Events\AppStore\InitialBuy; |
10 |
| -use Imdhemy\Purchases\Events\AppStore\InteractiveRenewal; |
11 |
| -use Imdhemy\Purchases\Events\AppStore\PriceIncreaseConsent; |
12 |
| -use Imdhemy\Purchases\Events\AppStore\Refund; |
13 |
| -use Imdhemy\Purchases\Events\AppStore\Revoke; |
14 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionCanceled; |
15 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionDeferred; |
16 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionExpired; |
17 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionInGracePeriod; |
18 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionOnHold; |
19 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPaused; |
20 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPauseScheduleChanged; |
21 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPriceChangeConfirmed; |
22 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPurchased; |
23 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRecovered; |
24 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRenewed; |
25 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRestarted; |
26 |
| -use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRevoked; |
27 |
| - |
28 | 3 | return [
|
29 |
| - 'routing' => [ |
30 |
| - 'signed' => false, |
31 |
| - ], |
| 4 | + /* |
| 5 | + |-------------------------------------------------------------------------- |
| 6 | + | Routing configuration |
| 7 | + |-------------------------------------------------------------------------- |
| 8 | + | |
| 9 | + | This configuration is used to determine the routing behavior of the |
| 10 | + | Server notifications handler endpoint. |
| 11 | + | |
| 12 | + | You can find more information on documentation. |
| 13 | + | @see https://imdhemy.com/laravel-iap-docs/docs/get-started/routing |
| 14 | + */ |
| 15 | + |
| 16 | + 'routing' => [ |
| 17 | + 'signed' => false, |
| 18 | + 'middleware' => [], |
| 19 | + 'prefix' => '', |
| 20 | + ], |
| 21 | + |
| 22 | + /* |
| 23 | + |-------------------------------------------------------------------------- |
| 24 | + | Google Play Default Package name |
| 25 | + |-------------------------------------------------------------------------- |
| 26 | + | |
| 27 | + | This value is the default package name used when the package name is not |
| 28 | + | provided while verifying the receipts. |
| 29 | + | |
| 30 | + */ |
| 31 | + 'google_play_package_name' => env('GOOGLE_PLAY_PACKAGE_NAME', 'com.some.thing'), |
| 32 | + |
| 33 | + /* |
| 34 | + |-------------------------------------------------------------------------- |
| 35 | + | App Store Password |
| 36 | + |-------------------------------------------------------------------------- |
| 37 | + | |
| 38 | + | This value is the app-specific share password generated by the app store. |
| 39 | + | @see https://imdhemy.com/laravel-iap-docs/docs/credentials/app-store |
| 40 | + | |
| 41 | + */ |
| 42 | + 'appstore_password' => env('APPSTORE_PASSWORD', ''), |
32 | 43 |
|
33 |
| - 'google_play_package_name' => env('GOOGLE_PLAY_PACKAGE_NAME', 'com.some.thing'), |
| 44 | + /* |
| 45 | + |-------------------------------------------------------------------------- |
| 46 | + | Event Listeners |
| 47 | + |-------------------------------------------------------------------------- |
| 48 | + | |
| 49 | + | This configuration is used to determine the event listeners that will be |
| 50 | + | registered with the application. |
| 51 | + | You can find a list of all available events of the documentation |
| 52 | + | |
| 53 | + | @see https://imdhemy.com/laravel-iap-docs/docs/server-notifications/event-list |
| 54 | + | @see https://imdhemy.com/laravel-iap-docs/docs/get-started/event-listeners |
| 55 | + | |
| 56 | + */ |
| 57 | + 'eventListeners' => [ |
| 58 | + /* |
| 59 | + |-------------------------------------------------------------------------- |
| 60 | + | App Store Events |
| 61 | + |-------------------------------------------------------------------------- |
| 62 | + | |
| 63 | + | These event listeners are triggered when a new notification is received from App Store. |
| 64 | + | @see https://imdhemy.com/laravel-iap-docs/docs/server-notifications/event-list#app-store-events |
| 65 | + | |
| 66 | + */ |
34 | 67 |
|
35 |
| - 'appstore_password' => env('APPSTORE_PASSWORD', ''), |
| 68 | + /* \Imdhemy\Purchases\Events\AppStore\Cancel::class => [ |
| 69 | + \App\Listeners\AppStore\Cancel::class, |
| 70 | + ],*/ |
36 | 71 |
|
37 |
| - 'eventListeners' => [ |
38 |
| - /** |
39 |
| - * -------------------------------------------------------- |
40 |
| - * Google Play Events |
41 |
| - * -------------------------------------------------------- |
42 |
| - */ |
43 |
| - SubscriptionPurchased::class => [], |
44 |
| - SubscriptionRenewed::class => [], |
45 |
| - SubscriptionInGracePeriod::class => [], |
46 |
| - SubscriptionExpired::class => [], |
47 |
| - SubscriptionCanceled::class => [], |
48 |
| - SubscriptionPaused::class => [], |
49 |
| - SubscriptionRestarted::class => [], |
50 |
| - SubscriptionDeferred::class => [], |
51 |
| - SubscriptionRevoked::class => [], |
52 |
| - SubscriptionOnHold::class => [], |
53 |
| - SubscriptionRecovered::class => [], |
54 |
| - SubscriptionPauseScheduleChanged::class => [], |
55 |
| - SubscriptionPriceChangeConfirmed::class => [], |
| 72 | + /* |
| 73 | + |-------------------------------------------------------------------------- |
| 74 | + | Google Play Events |
| 75 | + |-------------------------------------------------------------------------- |
| 76 | + | |
| 77 | + | These event listeners are triggered when a new notification is received from Google Play |
| 78 | + | @see @see https://imdhemy.com/laravel-iap-docs/docs/server-notifications/event-list#google-play-events |
| 79 | + */ |
56 | 80 |
|
57 |
| - /** |
58 |
| - * -------------------------------------------------------- |
59 |
| - * App Store Events |
60 |
| - * -------------------------------------------------------- |
61 |
| - */ |
62 |
| - Cancel::class => [], |
63 |
| - DidChangeRenewalPref::class => [], |
64 |
| - DidChangeRenewalStatus::class => [], |
65 |
| - DidFailToRenew::class => [], |
66 |
| - DidRecover::class => [], |
67 |
| - DidRenew::class => [], |
68 |
| - InitialBuy::class => [], |
69 |
| - InteractiveRenewal::class => [], |
70 |
| - PriceIncreaseConsent::class => [], |
71 |
| - Refund::class => [], |
72 |
| - Revoke::class => [], |
73 |
| - ], |
| 81 | + /* \Imdhemy\Purchases\Events\GooglePlay\SubscriptionRecovered::class => [ |
| 82 | + \App\Listeners\GooglePlay\SubscriptionRecovered::class, |
| 83 | + ],*/ |
| 84 | + ], |
74 | 85 | ];
|
0 commit comments