fix credit card saving with stripe

This commit is contained in:
Benjamin Beganović 2020-10-20 15:02:34 +02:00
parent 08501cceb6
commit 6ae18dac6f

View File

@ -179,7 +179,7 @@ class CreditCard
$payment_type = PaymentType::parseCardType($payment_method_object['card']['brand']); $payment_type = PaymentType::parseCardType($payment_method_object['card']['brand']);
if ($state['save_card'] == true || $state['save_card'] == 'true') { if ($state['save_card'] === true || $state['save_card'] === 'true') {
$this->saveCard($state); $this->saveCard($state);
} }