services.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. return [
  11. /*
  12. |--------------------------------------------------------------------------
  13. | Third Party Services
  14. |--------------------------------------------------------------------------
  15. |
  16. | This file is for storing the credentials for third party services such
  17. | as Stripe, Mailgun, SparkPost and others. This file provides a sane
  18. | default location for this type of information, allowing packages
  19. | to have a conventional place to find your various credentials.
  20. |
  21. */
  22. 'mailgun' => [
  23. 'domain' => env('MAILGUN_DOMAIN'),
  24. 'secret' => env('MAILGUN_SECRET'),
  25. 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
  26. ],
  27. 'ses' => [
  28. 'key' => env('SES_KEY'),
  29. 'secret' => env('SES_SECRET'),
  30. 'region' => env('SES_REGION', 'us-east-1'),
  31. ],
  32. 'sparkpost' => [
  33. 'secret' => env('SPARKPOST_SECRET'),
  34. ],
  35. 'stripe' => [
  36. 'model' => App\User::class,
  37. 'key' => env('STRIPE_KEY'),
  38. 'secret' => env('STRIPE_SECRET'),
  39. 'webhook' => [
  40. 'secret' => env('STRIPE_WEBHOOK_SECRET'),
  41. 'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300),
  42. ],
  43. ],
  44. ];