Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Expiry date license key set by default to 1970-01-01?
Tagged: expiry date, license manager, renewal
- This topic has 6 replies, 3 voices, and was last updated 6 years, 10 months ago by admin.
-
AuthorPosts
-
January 7, 2018 at 5:51 pm #14635805itsMember
Hello,
I bought both plugins “WP eStore” and “Payment Gateway Bundle”.
I am making a one year subscription downloadable product with the license key created through the software license manager.
It is working but I have one issue. The expiry date is set by default to 1970-01-01 which is obviously wrong: [http://prntscr.com/hx9w5n]
Is should be set to one year after the product has been activated. How can I fix this?
Thank you
January 8, 2018 at 12:30 am #77067adminKeymasterYou can control the license key expiry date from the eStore’s product configuration.
Edit the product in question (the estore product that corresponds to that license key), then check the “Software License Manager Plugin (Click to Expand)” section. There is a field called “Number of Days before Expiry”. Enter a value of 365 in that field (given you want the expiry to be 1 year in the future).
January 8, 2018 at 5:17 am #77068805itsMemberThank you! I have another question. The product that I have is a one year subscription product and customers will get charged automatically every year unless they cancel their subscription.
Is the expiry date going to renew itself automatically for another year once the subscription is renewed?
Thank you
January 8, 2018 at 1:59 pm #77069wzpModeratorIf what you are trying to ask is…
Does renewing a paid subscription automagically change the expiry date of a key, stored on the Software License Manager (SLM)?
The answer is; currently, no.
January 8, 2018 at 11:20 pm #77070805itsMemberThank you. That’s an issue… Would that be something possible to implement in a future version or custom development?
January 9, 2018 at 4:27 am #77071805itsMemberOr if it is possible to develop an addon? Do you have any documentation about this?
January 9, 2018 at 11:35 pm #77072adminKeymasterYeah, its possible to create an addon for it and customize the behavior according to your projects.
You can use the following action hook in the custom addon to receive a notification when a paypal subscription payment is received.
eStore_paypal_recurring_payment_received
You can then update the license expiry according to what you need. That action hook will pass the IPN variables in the hook.
Are you a PHP coder yourself? If you are not a PHP and WordPress developer, you can use the following option:
-
AuthorPosts
- You must be logged in to reply to this topic.