feat(api): add browser information in payments response (#3963)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Narayan Bhat
2024-04-03 15:16:18 +05:30
committed by GitHub
parent ae37b059e0
commit 4051cbb4e7
9 changed files with 254 additions and 310 deletions

View File

@ -736,12 +736,11 @@ pub fn add_apple_pay_payment_status_metrics(
}
#[allow(clippy::too_many_arguments)]
pub async fn trigger_payments_webhook<F, Req, Op>(
pub async fn trigger_payments_webhook<F, Op>(
merchant_account: domain::MerchantAccount,
business_profile: diesel_models::business_profile::BusinessProfile,
key_store: &domain::MerchantKeyStore,
payment_data: crate::core::payments::PaymentData<F>,
req: Option<Req>,
customer: Option<domain::Customer>,
state: &crate::routes::AppState,
operation: Op,
@ -770,7 +769,6 @@ where
| enums::IntentStatus::PartiallyCaptured
) {
let payments_response = crate::core::payments::transformers::payments_to_payments_response(
req,
payment_data,
captures,
customer,