Expiration date

Created on 8 December 2022, over 2 years ago
Updated 6 August 2024, 11 months ago

Problem/Motivation

Purchasable gift cards usually have expiration date.

Proposed resolution

1. Add expiration_date to gift card. Optional field.
2. Gift card type should have an option to set number of days (months/years) for how long gift cards are valid. Optional field.
3. On purchase (on paid) expiration_date should be calculated: now() + number of configured days (months/years) for this type. This calculation should properly interpret months (which are not 30 days in every case) and years (which are not 365 days in every case).
4. When gift card is expired - display appropriate error for end user if tries to use it.
5. Allow a general expiration duration, for example due to legal regulations (e.g. 3 years) as default

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇵🇱Poland gravisrs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024