I tried creating a custom page using the Publish Page option and the Landing Page plug-in, and since I want to add a subscription model using Razorpay, I want to pass the current user’s email or username so that Razorpay knows which user has made a payment and can then add them to a group. I’m facing trouble passing the username or email. Would that be possible, and how?
You’ll need a plugin.
You’d have a hook at got called after login (or some other trigger since people don’t log in that much) that would go to Razorpay and see if they were subscribers. A better solution would be to have Razorpay call a custom webhook when someone’s subscription status had changed and modify the group that way; probably you’d want both the webhook and the login check.
1 Like