From 3f3b797dc65c1bc6f710b122ef00d5bcb409e600 Mon Sep 17 00:00:00 2001
From: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com>
Date: Tue, 21 Nov 2023 20:25:38 +0530
Subject: [PATCH] fix: status goes from pending to partially captured in psync
(#2915)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
.../src/payments/payment_attempt.rs | 7 ++++--
crates/diesel_models/src/payment_attempt.rs | 17 ++++++++++----
crates/router/src/connector/utils.rs | 20 ++++++++++++----
crates/router/src/core/payments/helpers.rs | 23 +++++++++++++++++++
.../payments/operations/payment_capture.rs | 23 +++++++++++++------
.../payments/operations/payment_create.rs | 14 ++++-------
.../payments/operations/payment_response.rs | 2 ++
crates/router/src/core/payments/retry.rs | 2 ++
crates/router/src/types.rs | 11 +++++++--
crates/router/src/workflows/payment_sync.rs | 2 ++
.../src/payments/payment_attempt.rs | 20 ++++++++++++----
.../Payments - Create/request.json | 2 +-
.../Recurring Payments - Create/request.json | 2 +-
.../Payments - Create/request.json | 2 +-
.../Payments - Create/request.json | 2 +-
15 files changed, 112 insertions(+), 37 deletions(-)
diff --git a/crates/data_models/src/payments/payment_attempt.rs b/crates/data_models/src/payments/payment_attempt.rs
index 1b43177feb5..80ae283be85 100644
--- a/crates/data_models/src/payments/payment_attempt.rs
+++ b/crates/data_models/src/payments/payment_attempt.rs
@@ -321,12 +321,15 @@ pub enum PaymentAttemptUpdate {
error_message: Option