Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unwanted coupon field and broken payment link after updating to Craft 3.7.47 #302

Open
romainpoirier opened this issue Jul 7, 2022 · 0 comments
Assignees

Comments

@romainpoirier
Copy link

Description

After updating from Craft 3.7.45.2 to 3.7.47 using Stripe Payments 4.0.4 I ran this issues:

  1. An unwanted coupon field is added, using the class .enupal-hidden (but this field is not hidden);
  2. A wrong URL is target when clicking on the payment button: ends up in a 404 (redirect to homepage) without the redirect to the Stripe form;

This is the stack trace of 2.:

yii\web\NotFoundHttpException: Unable to process the Payment in/vendor/enupal/stripe/src/controllers/StripeController.php:75
Stack trace:
#0 [internal function]: enupal\stripe\controllers\StripeController->actionSaveOrder()
#1/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#2/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#3/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('save-order', Array)
#4/vendor/craftcms/cms/src/web/Application.php(293): yii\base\Module->runAction('enupal-stripe/s...', Array)
#5/vendor/craftcms/cms/src/web/Application.php(602): craft\web\Application->runAction('enupal-stripe/s...', Array)
#6/vendor/craftcms/cms/src/web/Application.php(272): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#7/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest(Object(craft\web\Request))
#8/htdocs/index.php(26): yii\base\Application->run()
#9 {main}

And the code found at /vendor/enupal/stripe/src/controllers/StripeController.php:75:

// Stripe Checkout or Stripe Elements CC
$order = StripePlugin::$app->orders->processPayment($postData);
 
if (is_null($order)) {
    throw new NotFoundHttpException("Unable to process the Payment");
}

Updating to the latest version, Stripe Payments 4.0.5, does not fix this. The only way to revert this was to downgrade to Craft 3.7.45.2.

After downgrading, everything works fine as previously: no unwanted coupon field, and no broken payment link.

Additional info

  • Craft version: 3.7.47
  • PHP version: 7.4.25
  • Database driver & version: MySQL 5.7.34
  • Plugin version: 4.0.4 + 4.0.5
  • Is SCA and Stripe Checkout enabled?: Yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants