Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(router): add fields in payments list response (#1987)

Harsha Pathuriabc736bbc132
diff --git a/crates/router/src/core/payments/transformers.rs b/crates/router/src/core/payments/transformers.rs
index 6eb9b735bc..88907d816b 100644
--- a/crates/router/src/core/payments/transformers.rs
+++ b/crates/router/src/core/payments/transformers.rs
@@ -729,6 +729,13 @@ impl ForeignFrom<(storage::PaymentIntent, storage::PaymentAttempt)> for api::Pay
connector: pa.connector,
payment_method: pa.payment_method,
payment_method_type: pa.payment_method_type,
+ business_label: pi.business_label,
+ business_country: pi.business_country,
+ business_sub_label: pa.business_sub_label,
+ setup_future_usage: pi.setup_future_usage,
+ capture_method: pa.capture_method,
+ authentication_type: pa.authentication_type,
+ connector_transaction_id: pa.connector_transaction_id,
..Default::default()
}
}