Explorar o código

fix: 🐛 Enable Stripe on local environment

IceToast %!s(int64=2) %!d(string=hai) anos
pai
achega
663e2370a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Extensions/PaymentGateways/Stripe/config.php

+ 1 - 1
app/Extensions/PaymentGateways/Stripe/config.php

@@ -10,6 +10,6 @@ function getConfig()
         "RoutesIgnoreCsrf" => [
             "payment/StripeWebhooks",
         ],
-        "enabled" => config('SETTINGS::PAYMENTS:STRIPE:SECRET') && config('SETTINGS::PAYMENTS:STRIPE:ENDPOINT_SECRET'),
+        "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",
     ];
 }