Skip to content

Commit

Permalink
Fixes issue on legacy stripe checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelopez committed Sep 2, 2023
1 parent 8fb021b commit 503e70f
Showing 1 changed file with 1 addition and 1 deletion.
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 503e70f

Please # to comment.