added AdminBonusAddedNotification.php and InsufficientBalanceNotification.php

This commit is contained in:
Čarodej
2022-03-16 17:22:55 +01:00
parent 1d1e6823c7
commit e8c3fd74b1
48 changed files with 295 additions and 281 deletions

62
config/subscription.php Normal file
View File

@@ -0,0 +1,62 @@
<?php
return [
/*
* Get gateway credentials
*/
'credentials' => [
'stripe' => [
'secret' => env('STRIPE_SECRET_KEY'),
'public_key' => env('STRIPE_PUBLIC_KEY'),
'webhook_key' => env('STRIPE_WEBHOOK_SECRET'),
],
'paystack' => [
'secret' => env('PAYSTACK_SECRET'),
'public_key' => env('PAYSTACK_PUBLIC_KEY'),
],
'paypal' => [
'id' => env('PAYPAL_CLIENT_ID'),
'secret' => env('PAYPAL_CLIENT_SECRET'),
'webhook_id' => env('PAYPAL_WEBHOOK_ID'),
'is_live' => env('PAYPAL_IS_LIVE'),
],
],
'notifications' => [
'ChargeFromCreditCardFailedAgainNotification' => \VueFileManager\Subscription\Domain\FailedPayments\Notifications\ChargeFromCreditCardFailedAgainNotification::class,
'ChargeFromCreditCardFailedNotification' => \VueFileManager\Subscription\Domain\FailedPayments\Notifications\ChargeFromCreditCardFailedNotification::class,
'ConfirmStripePaymentNotification' => \VueFileManager\Subscription\Support\Miscellaneous\Stripe\Notifications\ConfirmStripePaymentNotification::class,
'SubscriptionWasCreatedNotification' => \Domain\Subscriptions\Notifications\SubscriptionWasCreatedNotification::class,
'BillingAlertTriggeredNotification' => \Domain\Subscriptions\Notifications\BillingAlertTriggeredNotification::class,
'InsufficientBalanceNotification' => \Domain\Subscriptions\Notifications\InsufficientBalanceNotification::class,
'BonusCreditAddedNotification' => \Domain\Subscriptions\Notifications\BonusCreditAddedNotification::class,
],
/*
* Active drivers to handle subscription
*/
'available_drivers' => [
'paystack',
'paypal',
'stripe',
],
'metered_billing' => [
'settlement_period' => 30,
],
'paystack' => [
/*
* List of allowed ip address to verify paystack webhook request
*/
'allowed_ips' => [
'52.214.14.220',
'52.49.173.169',
'52.31.139.75',
],
],
'driver' => env('SUBSCRIPTION_DRIVER', 'stripe'),
'is_demo' => env('APP_DEMO', false),
];

View File

@@ -1,7 +1,7 @@
<?php
return [
'version' => '2.0.0-Rc.7',
'version' => '2.0.0-Rc.8',
'is_demo' => env('APP_DEMO', false),