Skip to content

P27 — Razorpay subscribe + webhook lifecycle #59

@harsh-pandhe

Description

@harsh-pandhe

Closes Wave 1. /billing/subscribe (POST, authed) creates a Razorpay subscription for the user's chosen tier. /billing/webhook (POST, HMAC-SHA256 verified) updates User.tier on subscription.charged / subscription.cancelled. Repeat OAuth login already preserves tier (P26).

Tests: subscribe-happy-path, webhook tier-set on charged, webhook tier-clear on cancelled, bad-signature 400.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogRoadmap item, not yet startedenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions