feat(core): customer_details storage in payment_intent (#5007)

Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Prajjwal Kumar
2024-06-28 15:06:19 +05:30
committed by GitHub
parent a172cba5d3
commit bb9a97154c
20 changed files with 380 additions and 110 deletions

View File

@ -210,14 +210,17 @@ where
});
let pm_data_encrypted =
payment_methods::cards::create_encrypted_data(key_store, pm_card_details).await;
payment_methods::cards::create_encrypted_data(key_store, pm_card_details)
.await
.map(|details| details.into());
let encrypted_payment_method_billing_address =
payment_methods::cards::create_encrypted_data(
key_store,
payment_method_billing_address,
)
.await;
.await
.map(|details| details.into());
let mut payment_method_id = resp.payment_method_id.clone();
let mut locker_id = None;
@ -509,7 +512,8 @@ where
key_store,
updated_pmd,
)
.await;
.await
.map(|details| details.into());
let pm_update =
storage::PaymentMethodUpdate::PaymentMethodDataUpdate {