Files
crewsportswear/config/services.php
Frank John Begornia d1976045db fix: remove hardcoded credentials from source code
- Move PayPal live/sandbox API keys to env variables
- Move hardcoded API token in isAuthorized middleware to env variable
- Add api_token key to config/app.php
- Update .env.example with new required env vars
- Fix isAuthorized response code from 503 to 401
2026-04-24 10:45:54 +08:00

49 lines
991 B
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, Mandrill, and others. This file provides a sane
| default location for this type of information, allowing packages
| to have a conventional place to find your various credentials.
|
*/
'mailgun' => [
'domain' => '',
'secret' => '',
],
'mandrill' => [
'secret' => '',
],
'ses' => [
'key' => '',
'secret' => '',
'region' => 'us-east-1',
],
'stripe' => [
'model' => 'App\User',
'secret' => '',
],
// sandbox
'paypal_sandbox' => [
'client_id' => env('PAYPAL_SANDBOX_CLIENT_ID'),
'secret' => env('PAYPAL_SANDBOX_SECRET'),
],
// live
'paypal_live' => [
'client_id' => env('PAYPAL_LIVE_CLIENT_ID'),
'secret' => env('PAYPAL_LIVE_SECRET'),
],
];