Skip to content

PIPRES-757: Add manual capture support for Payments API methods#1378

Merged
GytisZum merged 7 commits intorelease-6.4.3from
PIPRES-757/manual-capture
Apr 22, 2026
Merged

PIPRES-757: Add manual capture support for Payments API methods#1378
GytisZum merged 7 commits intorelease-6.4.3from
PIPRES-757/manual-capture

Conversation

@GytisZum
Copy link
Copy Markdown
Collaborator

Questions Answers
Branch? Master/Release
Description? Please be specific when describing the PR.
Every detail helps: versions, browser/server configuration, specific module/theme, etc. Feel free to add more information below this table.
Type? bug fix / improvement / new feature / refactoring
How to test? Indicate how to verify that this change works as expected.
Fixed issue ? If none leave blank

@TLabutis TLabutis self-requested a review April 21, 2026 09:28
Tadas Labutis and others added 4 commits April 21, 2026 12:37
Per-line Capture button now greys out for the exact line that was
captured (previously only reacted to the global capturable counter,
so a captured line could be clicked again and trigger a duplicate
capture or 422). Refund button is now only enabled on lines that
were actually captured and not yet refunded. Button state is
precomputed in PHP with an epsilon tolerance to avoid float drift
in the template comparison.
With a discount, the authorized amount is lower than the sum of
product lines, so per-line capture cannot work reliably - one line
always ends up stuck (not capturable, not refundable). Hide the
per-line buttons in that case; merchants can still use the top-level
Initiate Capture and Initiate Refund amount inputs.
@GytisZum GytisZum merged commit 8f150b3 into release-6.4.3 Apr 22, 2026
7 checks passed
@GytisZum GytisZum deleted the PIPRES-757/manual-capture branch April 22, 2026 06:50
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