mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:07:33 -05:00 
			
		
		
		
	INA-9 | purchase.php config for imdhemy/laravel-purchases package
This commit is contained in:
		
							parent
							
								
									0de69b6b74
								
							
						
					
					
						commit
						dd3e1d8c13
					
				
							
								
								
									
										72
									
								
								config/purchase.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								config/purchase.php
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,72 @@
 | 
				
			|||||||
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\Cancel;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\DidChangeRenewalPref;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\DidChangeRenewalStatus;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\DidFailToRenew;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\DidRecover;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\DidRenew;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\InitialBuy;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\InteractiveRenewal;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\PriceIncreaseConsent;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\Refund;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\AppStore\Revoke;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionCanceled;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionDeferred;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionExpired;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionInGracePeriod;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionOnHold;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPaused;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPauseScheduleChanged;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPriceChangeConfirmed;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPurchased;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRecovered;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRenewed;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRestarted;
 | 
				
			||||||
 | 
					use Imdhemy\Purchases\Events\GooglePlay\SubscriptionRevoked;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					return [
 | 
				
			||||||
 | 
					    'routing' => [],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    'google_play_package_name' => env('GOOGLE_PLAY_PACKAGE_NAME', 'com.example.name'),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    'appstore_password' => env('APPSTORE_PASSWORD', ''),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    'eventListeners' => [
 | 
				
			||||||
 | 
					        /**
 | 
				
			||||||
 | 
					         * --------------------------------------------------------
 | 
				
			||||||
 | 
					         * Google Play Events
 | 
				
			||||||
 | 
					         * --------------------------------------------------------
 | 
				
			||||||
 | 
					         */
 | 
				
			||||||
 | 
					        SubscriptionPurchased::class => [],
 | 
				
			||||||
 | 
					        SubscriptionRenewed::class => [],
 | 
				
			||||||
 | 
					        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 => [],
 | 
				
			||||||
 | 
					        DidRenew::class => [],
 | 
				
			||||||
 | 
					        InitialBuy::class => [],
 | 
				
			||||||
 | 
					        InteractiveRenewal::class => [],
 | 
				
			||||||
 | 
					        PriceIncreaseConsent::class => [],
 | 
				
			||||||
 | 
					        Refund::class => [],
 | 
				
			||||||
 | 
					        Revoke::class => [],
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user