2023-01-21 00:04:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Extensions\PaymentGateways\PayPal;
|
|
|
|
|
|
|
|
function getConfig()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
"name" => "PayPal",
|
|
|
|
"description" => "PayPal payment gateway",
|
|
|
|
"RoutesIgnoreCsrf" => [],
|
2023-01-30 10:19:50 +00:00
|
|
|
"enabled" => (config('SETTINGS::PAYMENTS:PAYPAL:SECRET') && config('SETTINGS::PAYMENTS:PAYPAL:CLIENT_ID')) || (config('SETTINGS::PAYMENTS:PAYPAL:SANDBOX_SECRET') && config('SETTINGS::PAYMENTS:PAYPAL:SANDBOX_CLIENT_ID') && env("APP_ENV") === "local"),
|
2023-01-21 00:04:23 +00:00
|
|
|
];
|
|
|
|
}
|