瀏覽代碼

fix: 🐛 Enable Stripe on local environment

IceToast 2 年之前
父節點
當前提交
663e2370a2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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",
     ];
 }