feat(router): add confirm flag in kafka payment intent events (#8432)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2025-06-24 14:04:48 +05:30
committed by GitHub
parent 62ec934cf8
commit bc767b9131
5 changed files with 41 additions and 2 deletions

View File

@ -1987,6 +1987,7 @@ impl<F: Clone + Sync> UpdateTracker<F, PaymentData<F>, api::PaymentsRequest> for
is_iframe_redirection_enabled: payment_data
.payment_intent
.is_iframe_redirection_enabled,
is_confirm_operation: true, // Indicates that this is a confirm operation
})),
&m_key_store,
storage_scheme,

View File

@ -941,6 +941,7 @@ impl<F: Clone + Sync> UpdateTracker<F, PaymentData<F>, api::PaymentsRequest> for
is_iframe_redirection_enabled: payment_data
.payment_intent
.is_iframe_redirection_enabled,
is_confirm_operation: false, // this is not a confirm operation
})),
key_store,
storage_scheme,

View File

@ -1854,7 +1854,7 @@ impl PaymentIntentInterface for KafkaStore {
.update_payment_intent(
state,
this.clone(),
payment_intent,
payment_intent.clone(),
key_store,
storage_scheme,
)
@ -1866,7 +1866,7 @@ impl PaymentIntentInterface for KafkaStore {
&intent,
Some(this),
self.tenant_id.clone(),
state.infra_values.clone(),
state.add_confirm_value_in_infra_values(payment_intent.is_confirm_operation()),
)
.await
{