feat(router): add an api to migrate the payment method (#5186)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Shankar Singh C
2024-07-10 22:01:13 +05:30
committed by GitHub
parent f7abcee625
commit 125699f89c
16 changed files with 696 additions and 31 deletions

View File

@ -318,6 +318,10 @@ where
network_transaction_id,
merchant_account.storage_scheme,
encrypted_payment_method_billing_address,
resp.card.and_then(|card| {
card.card_network
.map(|card_network| card_network.to_string())
}),
)
.await
} else {
@ -397,7 +401,7 @@ where
payment_methods::cards::insert_payment_method(
db,
&resp,
payment_method_create_request.clone(),
&payment_method_create_request.clone(),
key_store,
&merchant_account.merchant_id,
&customer_id,
@ -602,6 +606,10 @@ where
network_transaction_id,
merchant_account.storage_scheme,
encrypted_payment_method_billing_address,
resp.card.and_then(|card| {
card.card_network
.map(|card_network| card_network.to_string())
}),
)
.await?;
};