|
@@ -8,6 +8,6 @@ function getConfig()
|
|
|
"name" => "PayPal",
|
|
|
"description" => "PayPal payment gateway",
|
|
|
"RoutesIgnoreCsrf" => [],
|
|
|
- "enabled" => config('SETTINGS::PAYMENTS:STRIPE:SECRET') && true,
|
|
|
+ "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"),
|
|
|
];
|
|
|
}
|