-
Notifications
You must be signed in to change notification settings - Fork 44
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
BUGFIX async webhook fix #1026
BUGFIX async webhook fix #1026
Conversation
MarijusCoding
commented
Jan 14, 2025
•
edited
Loading
edited
Questions | Answers |
---|---|
Branch? | release-6.2.6 |
Description? | Fixed issue with latest mollie API changes that made webhook async. |
Type? | bug fix |
How to test? | Try checkouting with different statuses |
Fixed issue ? | PIPRES-526 |
controllers/front/return.php
Outdated
@@ -103,7 +103,8 @@ public function initContent() | |||
// any paid payments for this cart? | |||
|
|||
if (false === $data['mollie_info']) { | |||
$data['mollie_info'] = $paymentMethodRepo->getPaymentBy('order_id', (int) Order::getOrderByCartId($idCart)); | |||
$orderId = (int) Order::getOrderByCartId($idCart); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does mollie support many PS versions ? If I not mistaken this static call in one version exists, in another, named differently. Can someone confirm or deny this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this method is deleted in PS 9 and we already have PR which replaces all those deprecated methods for PS 9 compatibility. Thank you, I replaced it with new one 🙏
controllers/front/return.php
Outdated
$data['mollie_info'] = $orderId != 0 ? $paymentMethodRepo->getPaymentBy('order_id', (int) $orderId) : []; | ||
} | ||
if (false === $data['mollie_info']) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
() $orderId, you already casted it once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you 🙏