Paytm Mini Programs platform requires merchant to mandatorily integrate the login flow for Mini Programs. Essentially meaning merchant can not have a manual sign-in process for the user. For the same whenever in mini program flow user credentials are needed call the paytmFetchAuthCode JS API to get the required details. Paytm will show a popup where users can explicitly provide their consent to proceed with the flow.
The flow for the same works like this:
- User clicks on merchant's Mini Program Icon and lands into the landing page.
- User browses the catalogue/ adds items to their cart.
- When user details are required call paytmFetchAuthCode JS APIand post user consent, login the user seamlessly.
- Once the user is logged into merchant's system, they should manage their session by dropping/managing a secure HTTPS cookie so that there is no need of the authentication steps each time the user opens the mini program.
Integrating Login flow in Mini Programs involves below steps:-