mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user