Add expiry year and month to get_all_cards_list
This commit is contained in:
parent
59c45492a9
commit
fe44908868
1 changed files with 2 additions and 0 deletions
|
@ -597,6 +597,8 @@ class UserCardDetail(AssignPermissionsMixin, models.Model):
|
|||
for card in user_card_details:
|
||||
cards_list.append({
|
||||
'last4': card.last4, 'brand': card.brand, 'id': card.id,
|
||||
'exp_year': card.exp_year,
|
||||
'exp_month': card.exp_month,
|
||||
'preferred': card.preferred
|
||||
})
|
||||
return cards_list
|
||||
|
|
Loading…
Reference in a new issue