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; }