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

PIPRES-329: Use Mollie mapped status for initial subscription order #827

Merged

Conversation

mandan2
Copy link
Contributor

@mandan2 mandan2 commented Oct 16, 2023

Previously this approach was used but temporary we changed initial status to awaiting to let incorrect pricing orders to be submitted. As awaiting status is not logable, transaction ID is not being inserted into payment, so had to change it back.

@mandan2 mandan2 self-assigned this Oct 16, 2023
@@ -258,23 +262,30 @@ private function createSubscription(Payment $transaction, MolRecurringOrder $rec
$newCart->secure_key
);
} catch (\Throwable $exception) {
if (!NumberUtility::isEqual($cartTotal, $subscriptionPaidTotal)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could check it prior and not inside the catch

$specificPrice->delete();

throw $exception;
}

if (!NumberUtility::isEqual($cartTotal, $subscriptionPaidTotal)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, seems like it should be just prior to validateOrder

@mandan2 mandan2 merged commit e672e61 into release-6.0.5 Oct 16, 2023
5 checks passed
@mandan2 mandan2 deleted the PIPRES-329-block-incorrect-pricing-subscription-orders branch October 16, 2023 11:59
JevgenijVisockij pushed a commit that referenced this pull request Jan 16, 2024
…827)

* PIPRES-329: Use Mollie mapped status for initial subscription order

* moved price compare before validateOrder call
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.

2 participants