mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(payment_methods): Add default payment method column in customers table and last used column in payment_methods table (#3790)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -156,6 +156,10 @@ impl PaymentMethodRetrieve for Oss {
|
||||
helpers::retrieve_card_with_permanent_token(
|
||||
state,
|
||||
card_token.locker_id.as_ref().unwrap_or(&card_token.token),
|
||||
card_token
|
||||
.payment_method_id
|
||||
.as_ref()
|
||||
.unwrap_or(&card_token.token),
|
||||
payment_intent,
|
||||
card_token_data,
|
||||
)
|
||||
@ -167,6 +171,10 @@ impl PaymentMethodRetrieve for Oss {
|
||||
helpers::retrieve_card_with_permanent_token(
|
||||
state,
|
||||
card_token.locker_id.as_ref().unwrap_or(&card_token.token),
|
||||
card_token
|
||||
.payment_method_id
|
||||
.as_ref()
|
||||
.unwrap_or(&card_token.token),
|
||||
payment_intent,
|
||||
card_token_data,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user