90 lines
2.9 KiB
PHP
90 lines
2.9 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Third Party Services
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This file is for storing the credentials for third party services such
|
|
| as Mailgun, Postmark, AWS and more. This file provides the de facto
|
|
| location for this type of information, allowing packages to have
|
|
| a conventional file to locate the various service credentials.
|
|
|
|
|
*/
|
|
|
|
'mailgun' => [
|
|
'domain' => env('MAILGUN_DOMAIN'),
|
|
'secret' => env('MAILGUN_SECRET'),
|
|
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
|
|
'scheme' => 'https',
|
|
],
|
|
|
|
'postmark' => [
|
|
'token' => env('POSTMARK_TOKEN'),
|
|
],
|
|
|
|
'ses' => [
|
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
|
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
|
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
|
],
|
|
|
|
'stripe' => [
|
|
'model' => App\Models\User::class,
|
|
'key' => env('STRIPE_KEY'),
|
|
'secret' => env('STRIPE_SECRET'),
|
|
],
|
|
|
|
'paypal' => [
|
|
'client_id' => env('PAYPAL_CLIENT_ID'),
|
|
'secret' => env('PAYPAL_SECRET'),
|
|
'sandbox' => env('PAYPAL_SANDBOX', true),
|
|
],
|
|
|
|
'paddle' => [
|
|
'api_key' => env('PADDLE_API_KEY'),
|
|
'client_id' => env('PADDLE_CLIENT_ID'),
|
|
'sandbox' => env('PADDLE_SANDBOX', false),
|
|
'webhook_secret' => env('PADDLE_WEBHOOK_SECRET'),
|
|
],
|
|
|
|
'google' => [
|
|
'client_id' => env('GOOGLE_CLIENT_ID'),
|
|
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
|
|
'redirect' => env('GOOGLE_REDIRECT_URI', rtrim(env('APP_URL', ''), '/').'/checkout/auth/google/callback'),
|
|
],
|
|
|
|
'revenuecat' => [
|
|
'webhook' => env('REVENUECAT_WEBHOOK_SECRET', ''),
|
|
'product_mappings' => env('REVENUECAT_PRODUCT_MAPPINGS', ''),
|
|
'app_user_prefix' => env('REVENUECAT_APP_USER_PREFIX', 'tenant'),
|
|
'queue' => env('REVENUECAT_WEBHOOK_QUEUE', 'webhooks'),
|
|
],
|
|
|
|
'oauth' => [
|
|
'tenant_admin' => [
|
|
'id' => env('VITE_OAUTH_CLIENT_ID', 'tenant-admin-app'),
|
|
'redirects' => (function (): array {
|
|
$redirects = [];
|
|
|
|
$devServer = env('VITE_DEV_SERVER_URL');
|
|
$redirects[] = rtrim($devServer ?: 'http://localhost:5173', '/').'/event-admin/auth/callback';
|
|
|
|
$appUrl = env('APP_URL');
|
|
if ($appUrl) {
|
|
$redirects[] = rtrim($appUrl, '/').'/event-admin/auth/callback';
|
|
} else {
|
|
$redirects[] = 'http://localhost:8000/event-admin/auth/callback';
|
|
}
|
|
|
|
$extra = array_filter(array_map('trim', explode(',', (string) env('TENANT_ADMIN_OAUTH_REDIRECTS', ''))));
|
|
|
|
return array_values(array_unique(array_filter(array_merge($redirects, $extra))));
|
|
})(),
|
|
],
|
|
],
|
|
|
|
];
|