diff --git a/app/PaymentDrivers/Stripe/CreditCard.php b/app/PaymentDrivers/Stripe/CreditCard.php index c86707b4d8c4..50c2089b15c7 100644 --- a/app/PaymentDrivers/Stripe/CreditCard.php +++ b/app/PaymentDrivers/Stripe/CreditCard.php @@ -179,7 +179,7 @@ class CreditCard $payment_type = PaymentType::parseCardType($payment_method_object['card']['brand']); - if ($state['save_card'] == true) { + if ($state['save_card'] == true || $state['save_card'] == 'true') { $this->saveCard($state); } diff --git a/resources/views/portal/ninja2020/gateways/stripe/add_credit_card.blade.php b/resources/views/portal/ninja2020/gateways/stripe/add_credit_card.blade.php index 5532e5730ee7..587ea00a4414 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/add_credit_card.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/add_credit_card.blade.php @@ -22,7 +22,7 @@

{{ ctrans('texts.add_credit_card') }}

-

+

{{ ctrans('texts.authorize_for_future_use') }}

@@ -43,18 +43,30 @@
-
+
- {{ ctrans('texts.save_as_default') }} + {{ ctrans('texts.token_billing_checkbox') }}
-
diff --git a/resources/views/portal/ninja2020/gateways/stripe/credit_card.blade.php b/resources/views/portal/ninja2020/gateways/stripe/credit_card.blade.php index 77c91ba8e5c3..8410aa0f72ee 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/credit_card.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/credit_card.blade.php @@ -65,6 +65,7 @@ placeholder="{{ ctrans('texts.name') }}">
+
{{ ctrans('texts.credit_card') }} @@ -73,14 +74,35 @@
-
+ +
{{ ctrans('texts.token_billing_checkbox') }}
- + +
+