Verify Razorpay payment and activate policy
POST /api/payments/verify
POST
/api/payments/verify
Verifies the Razorpay signature from Checkout success, fetches payment details when needed, and calls process_razorpay_payment_event to activate the weekly policy.
Primary path for demos and production after the client receives razorpay_order_id, razorpay_payment_id, and razorpay_signature.
Request Body
Section titled “Request Body ”object
razorpay_order_id
required
string
razorpay_payment_id
required
string
razorpay_signature
required
string
Responses
Section titled “ Responses ”Payment verified and policy activated (or already processed).
object
ok
boolean
Example
true