diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b4ff8e..bf0de6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Stripe Payments Changelog +## 5.3.1 - 2023.09.02 +### Fixed +- Fixed issue on legacy Stripe Checkout ## 5.3.0 - 2023.09.01 [CRITICAL] ### Fixed diff --git a/composer.json b/composer.json index 66e058f..b81cec7 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "enupal/stripe", "description": "Allows customers sign up for recurring and one-time payments with Stripe, perfect for orders, donations, subscriptions, and events. Create simple payment forms in seconds easily without coding. For Craft CMS 3.x", "type": "craft-plugin", - "version": "5.3.0", + "version": "5.3.1", "keywords": [ "craft", "cms", 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; }