Update payment state based on "transactionSummary" property data

Created on 5 October 2022, about 2 years ago
Updated 12 December 2023, about 1 year ago

There is the logic:
If capturedAmount > 0 and refundedAmount = 0 then transaction status should be completed
if capturedAmount = 0 and remainingAmountToCapture > 0 then status authorization
if capturedAmount = 0 and remainingAmountToCapture = 0 then status authorization_voided
If refundedAmount > 0 and remainingAmountToRefund > 0 then status partially_refunded
If refundedAmount > 0 and remainingAmountToRefund = 0 then status refunded

πŸ› Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine teodorakis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024