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

fix(connector): [Peachpayments] Revert the Condition of cofData.source for Network Token Passthrough (#13222)

Anurag15e61edf064d
diff --git a/crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs b/crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs
index a3188c56fe..8a2106bc0d 100644
--- a/crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs
@@ -517,11 +517,7 @@ impl
amount: get_amount_details(item),
cof_data: CardOnFileData {
cof_type: get_cof_type(item),
- source: if item.router_data.request.is_cit_mandate_payment() {
- CofSource::Cit
- } else {
- CofSource::Mit
- },
+ source: CofSource::Cit,
mode: CofMode::Initial,
},
rrn: get_rrn(&peachpayments_data),