Search code examples
phpqr-codeprogressive-web-apps

Is there a way to make a QR code that connects to a website, but in order for people to join, they have to pay a fee for a limited time account?


First I wanted to clarify that this is neither a recommendation question nor a problem. I am making a PWA and in general I am new to coding/html/php based stuff. So my concern is if there is a way to make this thing work out. I have already managed to make a login system that someone has to create an account in order to login etc etc. I'm currently thinking that since I have already managed that, if there is a way for someone else (other than the customers that already have accounts), to join the app, by scanning a QR Code that when scanned will ask for a small fee payment in order to join the PWA based website, or even download the app.

The only thing I know and have tried is the QR code creation but I don't think that helps in my request.

Expected results: A QR-code that when scanned, asks for a fee payment, either paypal or whatever in order to gain access to the PWA through a limited time account (say like 3 days).

Is there a way this could be done with php tokens ?


Solution

  • A QR code is just a means of encoding some text so it can be scanned easily.

    It has no mechanisms for taking payment or embedding any kind of software.

    For that, you'll need to look to traditional approaches such as having the QR code contain a URL pointing to a "Login or buy an account" page.