|Posted: Monday Oct 8th, 2012 at 6:21 pm #27834|
I read several threads that recommend using PHP’s date() function to calculate a custom duration based on the current date; but I am still ignorant about how to input this calculated number of days into the rp=”” value of a button shortcode… or if that’s where it goes at all. Several threads spoke of PayPal Pro forms. I do not have a PayPal Pro account.
Where do I store my code, and how do I use it in a PayPal button?
The following code is my logic to calculate the number of days until a date-based expiration. A year is added to the count if the current date is within three months of the expiration date.
- s2Member® Products