2023-01-21 00:04:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Extensions\PaymentGateways\Stripe;
|
|
|
|
|
|
|
|
function getConfig()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
"name" => "Stripe",
|
|
|
|
"description" => "Stripe payment gateway",
|
|
|
|
"RoutesIgnoreCsrf" => [
|
|
|
|
"payment/StripeWebhooks",
|
|
|
|
],
|
2023-02-05 20:11:28 +00:00
|
|
|
"enabled" => config('SETTINGS::PAYMENTS:STRIPE:SECRET') && config('SETTINGS::PAYMENTS:STRIPE:ENDPOINT_SECRET') || config('SETTINGS::PAYMENTS:STRIPE:ENDPOINT_TEST_SECRET') && config('SETTINGS::PAYMENTS:STRIPE:TEST_SECRET') && env("APP_ENV") === "local",
|
2023-01-21 00:04:23 +00:00
|
|
|
];
|
|
|
|
}
|