mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed issue when setting payment API key
This commit is contained in:
parent
0da7a1a6d1
commit
6662950e51
@ -645,10 +645,13 @@ class AccountController extends \BaseController {
|
||||
}
|
||||
|
||||
$cardCount = 0;
|
||||
if ($creditcards)
|
||||
{
|
||||
foreach($creditcards as $card => $value)
|
||||
{
|
||||
$cardCount += intval($value);
|
||||
}
|
||||
}
|
||||
|
||||
$accountGateway->config = json_encode($config);
|
||||
$accountGateway->accepted_credit_cards = $cardCount;
|
||||
|
Loading…
x
Reference in New Issue
Block a user