Payment provider integration: Razorpay and Stripe#118

openedOct 20, 2026byCcapy-aiBot

Description

Connect Razorpay (India) and Stripe so clients can pay a milestone from the review link, and payment status syncs back to that milestone automatically.

Priority: YC demo (Nov 2).

Acceptance criteria

  • The editor connects a Razorpay and/or Stripe account per workspace; test mode and live mode are distinct and clearly labelled.
  • Paying a milestone from the client view opens the correct provider checkout with the milestone amount, currency and description.
  • Payment success, failure and refund webhooks update the milestone state and payment record, and are idempotent against duplicate deliveries.
  • Webhook signatures are verified; unverified payloads are rejected and logged.
  • The platform fee is recorded per transaction and visible to the editor.
  • India-based clients get Razorpay, others get Stripe (INR is routed to Razorpay by default).
  • A reconciliation view lists provider transactions with their Relay project and milestone.