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

BUGFIX async webhook fix #1026

Merged
merged 13 commits into from
Jan 15, 2025
Merged

BUGFIX async webhook fix #1026

merged 13 commits into from
Jan 15, 2025

Conversation

MarijusCoding
Copy link
Collaborator

@MarijusCoding MarijusCoding commented Jan 14, 2025

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

@MarijusCoding MarijusCoding marked this pull request as ready for review January 15, 2025 08:56
@MarijusCoding MarijusCoding changed the base branch from release-6.2.5 to develop January 15, 2025 10:23
@@ -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);
Copy link
Contributor

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 ?

Copy link
Collaborator Author

@MarijusCoding MarijusCoding Jan 15, 2025

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 🙏

Comment on lines 107 to 109
$data['mollie_info'] = $orderId != 0 ? $paymentMethodRepo->getPaymentBy('order_id', (int) $orderId) : [];
}
if (false === $data['mollie_info']) {
Copy link
Contributor

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🙏

@MarijusCoding MarijusCoding merged commit 1d8a8f1 into develop Jan 15, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants