mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
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:
@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user