Skip to content

Commit

Permalink
fix: different parent payment method token for different payment me… (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangamesh26 authored Apr 25, 2023
1 parent 57327b8 commit 2f37834
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 7 deletions.
177 changes: 171 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/router/src/core/payment_methods/cards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1476,8 +1476,8 @@ pub async fn list_customer_payment_method(
));
}
let mut customer_pms = Vec::new();
let parent_payment_method_token = generate_id(consts::ID_LENGTH, "token");
for pm in resp.into_iter() {
let parent_payment_method_token = generate_id(consts::ID_LENGTH, "token");
let hyperswitch_token = generate_id(consts::ID_LENGTH, "token");
let card = if pm.payment_method == enums::PaymentMethod::Card {
let locker_id = merchant_account
Expand Down

0 comments on commit 2f37834

Please sign in to comment.