| Tools |
| Authorizations: |
| remove |
The duration attribute defines for how long the user can access the content, after having paid for it. We say the content is "unlocked" during that time.
While the content is unlocked, the link may be clicked again any number of times, without the user having to pay again. After that time has passed the content will be "locked" again, and the link will again display its price, allowing for a new payment.
Values in the duration attribute must be given in minutes.
To help reducing the user's MTC (Mental Transaction Costs) always follow the rules below:
In the duration attribute, your time count must use multiples of 5 from 5 to 90 and, after that, multiples of 60, until 1440 (24 hours). Any duration longer than 90 that is not a multiple of 60 is invalid.
However, to help reducing the MCT (see considerations on MCT above), you should only use the following recommended values:
As you can see above, instead of duration="1440" you can use duration="1day". Both unlock the content for 24 hours, yet while the first one displays the message "access for 1 day", the second displays the message "access for 24 hours".
After the link is paid, and while it is unlocked, the link displays a countdown timer, which shows the time left to complete its duration.
If you want, you can eliminate this countdown by means of the countdown attribute, using countdown="off". In this case, the already paid link appears like a regular link and does not display the price or the timer during the specified time. When the specified time ends, the link displays the price again.
Alternatively, you can have the countdown timer appear only in the last minutes. For example, if you use countdown="15", the countdown will only appear in the last 15 minutes, regardless of the value in the duration attribute.