force token_billing=always for system created gateways

This commit is contained in:
David Bomba 2021-06-22 08:01:50 +10:00
parent 2ae0b1bb22
commit f258ccec16
5 changed files with 2 additions and 5 deletions

View File

@ -1,5 +1,4 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
@ -98,6 +97,7 @@ class StripeConnectController extends BaseController
$company_gateway->gateway_key = 'd14dd26a47cecc30fdd65700bfb67b34';
$company_gateway->fees_and_limits = $fees_and_limits;
$company_gateway->setConfig([]);
$company_gateway->token_billing = 'always';
// $company_gateway->save();
$payload = [

View File

@ -29,7 +29,6 @@ class StripeController extends BaseController
}
return response()->json(['message' => 'Unauthorized'], 403);
}
@ -44,7 +43,6 @@ class StripeController extends BaseController
return response()->json(['message' => 'Processing'], 200);
}
return response()->json(['message' => 'Unauthorized'], 403);
}

View File

@ -1,5 +1,4 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*

View File

@ -105,6 +105,7 @@ class WepaySignup extends Component
$cg->update_details = false;
$cg->config = encrypt(config('ninja.testvars.checkout'));
$cg->fees_and_limits = $fees_and_limits;
$cg->token_billing = 'always';
$cg->save();
}

View File

@ -1,5 +1,4 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*