diff --git a/app/Http/Controllers/StoreController.php b/app/Http/Controllers/StoreController.php index 2eb57c18..9fd48ea7 100644 --- a/app/Http/Controllers/StoreController.php +++ b/app/Http/Controllers/StoreController.php @@ -12,9 +12,14 @@ class StoreController extends Controller public function index() { $isPaypalSetup = false; - if (env('PAYPAL_SECRET') && env('PAYPAL_CLIENT_ID')) $isPaypalSetup = true; - if (env('APP_ENV', 'local') == 'local') $isPaypalSetup = true; + $isStripeSetup = false; + if (env('PAYPAL_SECRET') && env('PAYPAL_CLIENT_ID')) $isPaypalSetup = true; + if (env('APP_ENV', 'local') == 'local') { + $isPaypalSetup = true; + $isStripeSetup = true; + } + if (env('STRIPE_SECRET') && env('STRIPE_ENDPOINT_SECRET') && env('STRIPE_METHODS')) $isStripeSetup = true; //Required Verification for creating an server if (Configuration::getValueByKey('FORCE_EMAIL_VERIFICATION', false) === 'true' && !Auth::user()->hasVerifiedEmail()) { @@ -28,7 +33,8 @@ class StoreController extends Controller return view('store.index')->with([ 'products' => CreditProduct::where('disabled', '=', false)->orderBy('price', 'asc')->get(), - 'isPaypalSetup' => $isPaypalSetup + 'isPaypalSetup' => $isPaypalSetup, + 'isStripeSetup' => $isStripeSetup ]); } } diff --git a/resources/views/admin/store/index.blade.php b/resources/views/admin/store/index.blade.php index f8b5fc31..cc09f06b 100644 --- a/resources/views/admin/store/index.blade.php +++ b/resources/views/admin/store/index.blade.php @@ -6,13 +6,13 @@
{{__('To configure PayPal, head to the .env and add your PayPal’s client id and secret.')}}
+{{ __('To configure PayPal, head to the .env and add your PayPal’s client id and secret.') }} +
+{{ __('To configure Stripe, head to the .env and add your Stripüe Secret, Endpoint and supported Payment Methods.') }} +
{{__('Active')}} | -{{__('Type')}} | -{{__('Price')}} | -{{__('Display')}} | -{{__('Description')}} | -{{__('Created at')}} | -- |
---|---|---|---|---|---|---|
{{ __('Active') }} | +{{ __('Type') }} | +{{ __('Price') }} | +{{ __('Display') }} | +{{ __('Description') }} | +{{ __('Created at') }} | ++ |