mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-29 03:10:51 +00:00
set webhook secret for payment services
This commit is contained in:
@@ -1083,6 +1083,10 @@ class SetupDevEnvironment extends Command
|
||||
'name' => 'allowed_stripe',
|
||||
'value' => 1,
|
||||
],
|
||||
[
|
||||
'name' => 'subscription_type',
|
||||
'value' => 'fixed',
|
||||
],
|
||||
])->each(function ($col) {
|
||||
Setting::updateOrCreate([
|
||||
'name' => $col['name'],
|
||||
|
||||
@@ -43,8 +43,9 @@ class StorePaymentServiceCredentialsController
|
||||
if (! app()->runningUnitTests()) {
|
||||
$credentials = [
|
||||
'stripe' => [
|
||||
'STRIPE_PUBLIC_KEY' => $request->input('key'),
|
||||
'STRIPE_SECRET_KEY' => $request->input('secret'),
|
||||
'STRIPE_PUBLIC_KEY' => $request->input('key'),
|
||||
'STRIPE_SECRET_KEY' => $request->input('secret'),
|
||||
'STRIPE_WEBHOOK_SECRET' => $request->input('webhook'),
|
||||
],
|
||||
'paystack' => [
|
||||
'PAYSTACK_PUBLIC_KEY' => $request->input('key'),
|
||||
@@ -53,6 +54,7 @@ class StorePaymentServiceCredentialsController
|
||||
'paypal' => [
|
||||
'PAYPAL_CLIENT_ID' => $request->input('key'),
|
||||
'PAYPAL_CLIENT_SECRET' => $request->input('secret'),
|
||||
'PAYPAL_WEBHOOK_ID' => $request->input('webhook'),
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user