mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:54:30 -04:00
add double check for storing card
This commit is contained in:
parent
93f86db148
commit
c03ce4c23a
@ -143,7 +143,7 @@ class CheckoutComPaymentDriver extends BasePaymentDriver
|
||||
{
|
||||
$state['charge_id'] = $state['payment_response']->id;
|
||||
|
||||
if (isset($state['store_card'])) {
|
||||
if (isset($state['store_card']) && $state['store_card']) {
|
||||
$this->saveCard($state);
|
||||
}
|
||||
|
||||
@ -175,7 +175,7 @@ class CheckoutComPaymentDriver extends BasePaymentDriver
|
||||
{
|
||||
$state['charge_id'] = $state['payment_response']->id;
|
||||
|
||||
if (isset($state['store_card'])) {
|
||||
if (isset($state['store_card']) && $state['store_card']) {
|
||||
$this->saveCard($state);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user