feat(router): Add support for network token migration (#6300)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Prasunna Soppa
2024-11-20 18:43:12 +05:30
committed by GitHub
parent c04f81e3c4
commit 012e352db0
7 changed files with 487 additions and 47 deletions

View File

@ -973,7 +973,7 @@ pub async fn save_network_token_in_locker(
{
Ok((token_response, network_token_requestor_ref_id)) => {
// Only proceed if the tokenization was successful
let card_data = api::CardDetail {
let network_token_data = api::CardDetail {
card_number: token_response.token.clone(),
card_exp_month: token_response.token_expiry_month.clone(),
card_exp_year: token_response.token_expiry_year.clone(),
@ -988,7 +988,7 @@ pub async fn save_network_token_in_locker(
let (res, dc) = Box::pin(payment_methods::cards::add_card_to_locker(
state,
payment_method_request,
&card_data,
&network_token_data,
&customer_id,
merchant_account,
None,