Skip to content

Commit

Permalink
Merge pull request #365 from enupal/develop
Browse files Browse the repository at this point in the history
v5.3.1
  • Loading branch information
andrelopez authored Sep 2, 2023
2 parents 8926ea0 + 64161d0 commit 2d66eec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "enupal/stripe",
"description": "Allows customers # 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",
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/StripeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2d66eec

Please # to comment.