feat: PG Agnostic mandate using network_txns_id (Adyen, Authorizedotnet, Stripe) (#855)

Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
Manoj Ghorela
2023-05-03 15:48:51 +05:30
committed by GitHub
parent 9240e16ae4
commit ed99655ebc
72 changed files with 1129 additions and 101 deletions

View File

@ -63,6 +63,7 @@ pub async fn construct_refund_router_data<'a, F>(
let router_data = types::RouterData {
flow: PhantomData,
merchant_id: merchant_account.merchant_id.clone(),
customer_id: payment_intent.customer_id.to_owned(),
connector: connector_id.to_string(),
payment_id: payment_attempt.payment_id.clone(),
attempt_id: payment_attempt.attempt_id.clone(),
@ -96,6 +97,7 @@ pub async fn construct_refund_router_data<'a, F>(
session_token: None,
reference_id: None,
payment_method_token: None,
connector_customer: None,
};
Ok(router_data)
@ -279,6 +281,8 @@ pub async fn construct_accept_dispute_router_data<'a>(
session_token: None,
reference_id: None,
payment_method_token: None,
connector_customer: None,
customer_id: None,
};
Ok(router_data)
}
@ -336,6 +340,8 @@ pub async fn construct_submit_evidence_router_data<'a>(
session_token: None,
reference_id: None,
payment_method_token: None,
connector_customer: None,
customer_id: None,
};
Ok(router_data)
}
@ -398,6 +404,8 @@ pub async fn construct_upload_file_router_data<'a>(
session_token: None,
reference_id: None,
payment_method_token: None,
connector_customer: None,
customer_id: None,
};
Ok(router_data)
}
@ -457,6 +465,8 @@ pub async fn construct_defend_dispute_router_data<'a>(
session_token: None,
reference_id: None,
payment_method_token: None,
customer_id: None,
connector_customer: None,
};
Ok(router_data)
}