Here's the scenario:
A client is selling a product which allows for ONE use of a Web App. The Web App has a simple URL, like wwwpany/app/the-awesome-tool (it's not publicly accessible)
I've been thinking on how to resolve this but can't wrap my head around it... the only thing I can think of is that after the purchase, the client is sent a UNIQUE URL that forwards him or her to wwwpany/app/the-awesome-tool (with masked URL), which then expires after accessing it.
How can I achieve this? We have MemberPress installed, and can also install WooCommerc to resolve this.
Thanks so much for your help!
Here's the scenario:
A client is selling a product which allows for ONE use of a Web App. The Web App has a simple URL, like wwwpany/app/the-awesome-tool (it's not publicly accessible)
I've been thinking on how to resolve this but can't wrap my head around it... the only thing I can think of is that after the purchase, the client is sent a UNIQUE URL that forwards him or her to wwwpany/app/the-awesome-tool (with masked URL), which then expires after accessing it.
How can I achieve this? We have MemberPress installed, and can also install WooCommerc to resolve this.
Thanks so much for your help!
1 Answer
Reset to default 0A simple solution would be creating a unique token upon purchasing a subscription/product.
Save to token somewhere in database.
Present the URL to the app passing the token as a GET variable. For eample,
wwwpany/app/the-awesome-tool/?token=jvp2HBst5V7iHQeE2twq
When accessed, check is the token is there at the database, if not restrict access.
Delete the token from database if the access was granted.
This could be extended by comparing user ID, order id etc.