From 9b422e5c974d80a76a35376a78d02b48b27c0978 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 24 Jul 2024 21:42:20 +0100 Subject: [PATCH] Baremetrics BMPay breaks with CSP turned [sc-25011] Signed-off-by: snipe --- config/services.php | 6 ------ resources/views/layouts/default.blade.php | 3 --- resources/views/partials/bpay.blade.php | 15 --------------- 3 files changed, 24 deletions(-) delete mode 100644 resources/views/partials/bpay.blade.php diff --git a/config/services.php b/config/services.php index 21acb6778a..07b1c1069f 100644 --- a/config/services.php +++ b/config/services.php @@ -44,12 +44,6 @@ return [ 'secret' => env('STRIPE_SECRET'), ], - 'baremetrics' => [ - 'enabled' => env('ENABLE_BMPAY', false), - 'app_key' => env('BMPAY_PUBLIC_KEY', null), - 'stripe_id' => env('BMPAY_STRIPE_ID', null), - ], - 'google' => [ 'maps_api_key' => env('GOOGLE_MAPS_API'), ], diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php index ee235d358e..839d769051 100644 --- a/resources/views/layouts/default.blade.php +++ b/resources/views/layouts/default.blade.php @@ -1136,8 +1136,5 @@ dir="{{ Helper::determineLanguageDirection() }}"> @endif - @include('partials.bpay') - - diff --git a/resources/views/partials/bpay.blade.php b/resources/views/partials/bpay.blade.php deleted file mode 100644 index 0cf0be5403..0000000000 --- a/resources/views/partials/bpay.blade.php +++ /dev/null @@ -1,15 +0,0 @@ -@can('admin') - @if ((config('services.baremetrics.enabled')=='true') && (config('services.baremetrics.app_key')) && (config('services.baremetrics.stripe_id'))) - - @else - @endif -@endcan