Developer Management
Razorpay Webhook
Webhook endpoint to handle Razorpay payment status updates. This endpoint will be called by Razorpay when payment status changes.
SETUP INSTRUCTIONS:
-
Configure webhook in Razorpay Dashboard:
- Go to Settings > Webhooks in Razorpay Dashboard
- Add webhook URL: https://yourdomain.com/webhook/razorpay
- Select events: payment.captured, payment.failed, order.paid
- Set webhook secret in environment variable: RAZORPAY_WEBHOOK_SECRET
-
Ensure the following environment variables are set:
- RAZORPAY_KEY_ID: Your Razorpay Key ID
- RAZORPAY_KEY_SECRET: Your Razorpay Key Secret
- RAZORPAY_WEBHOOK_SECRET: Your Razorpay Webhook Secret
- RAZORPAY_MERCHANT_ID: Your Razorpay Merchant ID
WORKFLOW:
- User initiates payment via buy_credits endpoint
- Order is created in Razorpay and stored in database
- User completes payment on Razorpay
- Razorpay sends webhook notification to this endpoint
- Webhook verifies signature and processes payment
- Credits are automatically added to user's account
SUPPORTED EVENTS:
- payment.captured: Payment successful and captured
- payment.failed: Payment failed
- order.paid: Order has been paid (alternative to payment.captured)
post/v1/verification
Request
- Base URL: https://api.oneinfer.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.oneinfer.ai/v1/verification
- Auth: HTTP bearer
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.