fix: return nick name for each card while listing saved cards (#1391)

Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2023-07-04 11:42:00 +05:30
committed by GitHub
parent d5b3f7c030
commit 4808af3750
20 changed files with 37 additions and 1 deletions

View File

@ -834,6 +834,7 @@ pub(crate) async fn get_payment_method_create_request(
card_exp_month: card.card_exp_month.clone(),
card_exp_year: card.card_exp_year.clone(),
card_holder_name: Some(card.card_holder_name.clone()),
nick_name: card.nick_name.clone(),
};
let customer_id = customer.customer_id.clone();
let payment_method_request = api::PaymentMethodCreate {