ParadoxLabs-Inc / tokenbase

TokenBase is the foundational package for most ParadoxLabs extensions for Magento®. It provides a tokenized card storage mechanism that is similar to but more featureful than Magento_Vault, and abstract components of a payment gateway implementation for Magento built around those stored cards.
Apache License 2.0
3 stars 3 forks source link

[FEAT] Add support for "default" card. #7

Open damienwebdev opened 7 months ago

damienwebdev commented 7 months ago

:bulb: Feature request

Feature Name

Default stored cards

The Desired Behavior

A new database property (and associated APIs) for reading and updating the "default" card for a customer.

Your Use Case

As a user, I would to be able to choose which of my cards is my "default" card. As a user, I would like to do instant purchases using my "default" card.

Environment



TokenBase version: 4.5.5
Magento version: 2.4.5-p5
PHP version: PHP 8.1.18 (cli) (built: Apr 14 2023 04:39:07) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.18, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.18, Copyright (c), by Zend Technologies

rhoerr commented 7 months ago

Thanks Damien! It's definitely possible, and probably wouldn't be very involved. We would have to add a new flag to the card model. Current behavior is to default to the most recently used card.