Revenue
Razorpay
Send Razorpay sales to EarnedStats.
1. Add the webhook
Razorpay Dashboard, Account and Settings, Webhooks, add the address below.
Endpoint
https://earnedstats.com/api/webhooks/razorpay/YOUR_SITE_IDEvents: payment.captured, refund.processed.
2. The secret
Make up a secret, use it there and paste the same one here. Save it in Settings, Revenue, Razorpay.
3. The visitor id
Add the visitor id to the notes of the order (or payment link) your server creates.
Code
notes: { es_visitor_id: body.es_visitor_id }