Skip to content

VCST-4983: Improve refund flow#494

Merged
OlegoO merged 5 commits into
devfrom
fix/VCST-4983
Apr 29, 2026
Merged

VCST-4983: Improve refund flow#494
OlegoO merged 5 commits into
devfrom
fix/VCST-4983

Conversation

@OlegoO
Copy link
Copy Markdown
Contributor

@OlegoO OlegoO commented Apr 22, 2026

Description

fix: OuterId returned from provider is discarded
fix: Modification failure wrongly rejects the refund
fix: Cancel Document & manual status edit bypass the payment method

References

QA-test:

Jira-link:

https://virtocommerce.atlassian.net/browse/VCST-4983

Artifact URL:

https://vc3prerelease.blob.core.windows.net/packages/VirtoCommerce.Orders_3.1006.0-pr-494-f345.zip


Note

Medium Risk
Touches payment/refund state transitions and provider-callback persistence, which can affect financial operation workflows if edge cases are missed. Changes are localized but impact critical order/payment documents and UI guardrails.

Overview
Fixes refund/capture provider response handling so a non-empty provider OuterId is persisted when saving refund/capture results.

Adjusts refund modification flow to preserve the prior refund status when an update call fails (instead of forcing Rejected), clears reject reason on success, and avoids retriggering provider calls by excluding Status/OuterId from refund-change detection (tracking IsCancelled instead). The UI now blocks cancel and manual status edits for refunds that are Processed or already have an outerId.

Updates test tooling by bumping coverlet.collector to 10.0.0.

Reviewed by Cursor Bugbot for commit f34553c. Bugbot is set up for automated code reviews on this repo. Configure here.

fix: OuterId returned from provider is discarded
fix: Modification failure wrongly rejects the refund
fix: Cancel Document & manual status edit bypass the payment method
@vc-ci
Copy link
Copy Markdown
Contributor

vc-ci commented Apr 22, 2026

🧪 Katalon Test Report — ✅ PASSED

🔢 Total ✅ Passed ❌ Failed
13 13 0
📋 Suite details
Suite Test Suites/Modules/module_Assets
Failures 0
Errors 0
Timestamp 22-04-2026T14:14:39

🔗 View run · Commit: cca47b3

Comment thread src/VirtoCommerce.OrdersModule.Data/Services/PaymentFlowService.cs
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 22, 2026

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f34553c. Configure here.

@OlegoO OlegoO merged commit 943c545 into dev Apr 29, 2026
2 of 3 checks passed
@OlegoO OlegoO deleted the fix/VCST-4983 branch April 29, 2026 06:21
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