[FIX] Paypal Checkout disabled even if keys are set
This commit is contained in:
parent
65f777baae
commit
e1dbbb21ee
2 changed files with 2 additions and 1 deletions
|
@ -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"),
|
||||
];
|
||||
}
|
||||
|
|
|
@ -80,6 +80,7 @@
|
|||
<p class="lead">{{ __('Payment Methods') }}:</p>
|
||||
|
||||
<div class="d-flex flex-wrap flex-direction-row">
|
||||
|
||||
@foreach ($paymentGateways as $gateway)
|
||||
<div class="ml-2">
|
||||
<label class="text-center" for="{{ $gateway->name }}">
|
||||
|
|
Loading…
Add table
Reference in a new issue