Redemption Code Expiration Period
The default expiration period for redemption codes is three days. To customize this duration, follow the steps below.
Updating the Expiration Period
-
Edit the
.env
File- Locate the
.env
file in the root directory of your website.
- Locate the
-
Add or Modify the Expiration Setting
- Ensure the following lines are present in the
.env
file. If they are missing, add them:
# Duration for which a redemption code remains valid (in minutes). # Default is 3 days (60 minutes * 24 hours * 3 days = 4320 minutes) CODE_TO_REDEEM_POINTS_VALID_MINUTES=4320
- Ensure the following lines are present in the
-
Apply the Changes
- After updating the
.env
file, save your changes. - Restart your server or application to apply the new settings.
- After updating the
Example
-
Default (3 Days):
CODE_TO_REDEEM_POINTS_VALID_MINUTES=4320
-
5 Days:
CODE_TO_REDEEM_POINTS_VALID_MINUTES=7200
Notes
- The expiration period is defined in minutes.
- Ensure the value is a positive integer representing the total minutes before a code expires.