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.
@MihirR 님 안녕하세요. Razorpay의 호스티드 페이지(Hosted Page)는 일시불 결제와 달리 구독형 상품을 지원하지 않습니다. 구독 링크는 사용자별로 생성되어야 하기 때문입니다.
가능한 방법은 두 가지뿐입니다.
- Razorpay 대시보드에서 구독 링크를 수동으로 생성하기:
- 홈 페이지로 이동
- Subscriptions(구독) 선택
- 구독 플랜 생성
- 구독 링크 생성: 고객 정보, 플랜 등을 입력해야 합니다.
- 고객에게 공유할 구독 링크가 발급됩니다.
- 고객이 링크를 클릭하여 구독료를 결제합니다.
- 다른 방식으로 고객을 추가해야 하며, 자동화는 거의 불가능합니다.
- 가장 좋은 방법: 구독 API 사용
- 결제 통합을 실행하려면 상당한 개발 노력과 전용 서버 유지보수가 필요합니다. 전문 개발자라면 직접 구현할 수 있습니다. 그렇지 않다면, 제가 정확히 이 통합 서비스를 제공합니다.
이 정보가 너무 늦게 전달된 것은 아닌지 걱정됩니다.
Stripe가 인도에서 완전히 활성화되지 않은 것이 이러한 맞춤형 개발을 감수해야 하는 이유입니다.
유료든 무료든 도움이 필요하시면 알려주세요.