mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
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:
committed by
GitHub
parent
62ec934cf8
commit
bc767b9131
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user