From 503e70fae9373a6f46246b9537e194ae4d6405f7 Mon Sep 17 00:00:00 2001 From: Andre Date: Sat, 2 Sep 2023 14:06:35 +0100 Subject: [PATCH] Fixes issue on legacy stripe checkout --- src/controllers/StripeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/StripeController.php b/src/controllers/StripeController.php index 9cf090a..10f1f5a 100644 --- a/src/controllers/StripeController.php +++ b/src/controllers/StripeController.php @@ -116,7 +116,7 @@ public function actionSaveOrder() private function validateStripeToken($token, array $postData): bool { try { - if (!empty($token) && !is_null(StripePlugin::$app->tokens->getStripeToken($token)) && (int)$postData['paymentType'] == PaymentType::CC) { + if (!empty($token) && !is_null(StripePlugin::$app->tokens->getStripeToken($token))) { return true; }