refactor(payment_methods): introduce locker_id column in payment_methods table (#3760)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2024-02-27 13:33:43 +05:30
committed by GitHub
parent 1c6913be74
commit 385622678f
16 changed files with 395 additions and 234 deletions

View File

@ -155,7 +155,7 @@ impl PaymentMethodRetrieve for Oss {
storage::PaymentTokenData::Permanent(card_token) => {
helpers::retrieve_card_with_permanent_token(
state,
&card_token.token,
card_token.locker_id.as_ref().unwrap_or(&card_token.token),
payment_intent,
card_token_data,
)
@ -166,7 +166,7 @@ impl PaymentMethodRetrieve for Oss {
storage::PaymentTokenData::PermanentCard(card_token) => {
helpers::retrieve_card_with_permanent_token(
state,
&card_token.token,
card_token.locker_id.as_ref().unwrap_or(&card_token.token),
payment_intent,
card_token_data,
)