Razorpay and Stripe to HubSpot: Payments and Subscriptions

Article · 10 min read

November 27, 2026 · By Ranjith Kumar S, CRM Implementation Consultant, Unleash Tech Worx

If your team collects payments through Razorpay or Stripe but manages relationships in HubSpot, the gap between those systems costs you visibility. Deals close in the CRM while payment outcomes sit in a separate dashboard. Failed charges, cancellations, and refunds go unnoticed until someone reconciles by hand. That delay can make follow-up less informed.

This guide from Unleash Tech Worx walks through the event categories, security requirements, CRM data modelling, and workflow logic involved in connecting Razorpay or Stripe payment events to HubSpot.

Key Takeaways: Razorpay and Stripe to HubSpot Payments

  • For Razorpay, assess a connector or webhook integration against the events and CRM updates you need.
  • Stripe offers three distinct HubSpot paths: payment processing, the data sync app, and optional subscription migration.
  • HubSpot stores payments and subscriptions as CRM objects with system-generated IDs and one-to-many associations.
  • MRR reporting requires interval normalisation and must separate one-off collections from normalised recurring revenue.
  • Unleash Tech Worx helps RevOps teams scope and design webhook-to-CRM pipelines that keep payment data accurate.

Five Payment Event Categories Your Integration Should Handle

Payment gateways fire events that fall into five operational categories. Missing any one leaves a blind spot in your CRM reporting and follow-up.

Paid events confirm that a charge succeeded. In Razorpay, payment.captured confirms the funds were captured (distinct from payment.authorized, which only reserves them). order.paid confirms all payments on an order are captured. Stripe fires charge.succeeded when a charge completes; note that invoice.paid can also fire for invoices settled by means other than a live card charge, such as applied credit.

Failed events flag declined cards, insufficient funds, or bank rejections. Razorpay sends payment.failed; Stripe sends invoice.payment_failed. Your integration can use these to create a HubSpot task for the account owner. Any customer-facing notification must respect the contact's communication preferences and consent status.

Subscription charge events track recurring billing. Razorpay uses subscription.charged each time a successful charge occurs on a subscription, including the first charge, not exclusively renewals. Stripe uses invoice.paid with a subscription ID attached. Multiple event types can reference the same underlying transaction, so deduplication requires the entity ID (payment ID, invoice ID), not the event ID alone.

Cancellation events signal a subscription ending. Razorpay sends subscription.cancelled; Stripe sends customer.subscription.deleted. In Razorpay, failed-payment retries that exhaust the retry schedule move the subscription to halted, not cancelled. Halted and cancelled are distinct states with different recovery options.

Refund events reverse prior transactions. Razorpay fires refund.created, refund.processed, refund.failed, and refund.speed_changed as documented in its webhook reference. Stripe fires charge.refunded. Partial refunds need separate handling so the original payment record retains its gross amount.

Razorpay Webhook Security and Processing

A Razorpay webhook integration uses a middleware layer, either a custom service or an automation platform such as Make or n8n, that receives Razorpay webhooks, validates them, and writes to HubSpot through its API.

Razorpay signs every webhook payload with HMAC-SHA256 using your webhook secret. The signature arrives in the X-Razorpay-Signature header. Your middleware must compute the HMAC over the raw request body (not a parsed or re-serialised version) and compare it in constant time.

This is different from Razorpay's checkout payment signature, which uses the API key secret and signs a concatenation of order ID and payment ID. Confusing the two is a common failure point.

Razorpay does not guarantee delivery order or exactly-once delivery. Your middleware should store the event ID and skip duplicate deliveries of the same event. It should also handle out-of-order arrivals.

A refund.processed event may arrive before the corresponding refund.created if your endpoint was temporarily slow. Use the event timestamp and the entity's current status to reconcile state rather than relying on arrival sequence.

Stripe to HubSpot: Processing, Sync, and Custom Options

Stripe connects to HubSpot through three distinct mechanisms. Pick the wrong one and you create data gaps that are expensive to fix later.

Payment processing connects your Stripe account as HubSpot's payment processor. HubSpot invoices, payment links, quotes, and subscriptions collect money through Stripe. This path writes new transactions into HubSpot natively, but it does not import any existing Stripe billing history.

The Stripe data sync app copies existing Stripe records into HubSpot. Customers sync bi-directionally to contacts. Invoices, products, and payment transactions sync one-way from Stripe into HubSpot.

Subscriptions sync one-way into a HubSpot custom object, not into HubSpot's native subscription object. That custom object does not populate HubSpot's built-in subscription revenue reports.

Subscription migration is an optional path that moves eligible Stripe subscriptions into HubSpot's native subscription object. Eligibility criteria, supported subscription types, and geographic requirements are documented in HubSpot's migration guide and should be evaluated per your account before committing.

A fourth path is a custom integration using Stripe webhooks and the HubSpot API, similar to the Razorpay approach. This gives you full control over which events create or update which objects, at the cost of building and maintaining the middleware.

CRM Data Model: Where Payment Records Live in HubSpot

HubSpot treats payments (object type 0-101) and subscriptions (object type 0-69) as CRM objects on the same framework as contacts, companies, and deals. These native commerce objects are populated by HubSpot's own revenue tools (payment links, invoices, quotes, and subscriptions created through HubSpot).

External payment events from Razorpay or Stripe webhooks cannot create records on these native commerce objects through public APIs without restriction. Your integration will typically write to custom objects or custom properties on deals or contacts.

The Stripe data sync app has designated sync destinations. Confirm write support for your target object based on your HubSpot plan and API scopes.

For record deduplication, use a composite key built from the gateway's account identifier, the entity type, and the entity's stable ID (such as Razorpay's pay_ or sub_ ID, or Stripe's ch_ or sub_ ID). The webhook event ID is useful for skipping duplicate event deliveries but is not sufficient for record-level deduplication, because multiple event types can reference the same underlying transaction.

The relationship between subscriptions and payments is one-to-many. HubSpot's payment and subscription properties documentation lists every available field on the native objects.

When you write payment data into HubSpot, associate each record with the correct contact, company, and deal. Missing associations break reporting and make it difficult for finance to trace a transaction back to the account that generated it.

Event-Driven Workflows: Tasks and Stale Alerts

Payment events unlock workflow automation that your team cannot build from CRM data alone. When a failed-payment property updates on a record, a HubSpot workflow can create a task for the deal owner and flag the record for review.

A later success event on the same subscription should cancel or close the failure follow-up task. Design your workflow to check the entity's current state before acting, so a delayed success does not leave stale failure tasks open.

Subscription status changes can trigger retention tasks: a task for the customer success owner, a property update that marks the contact for winback campaigns. Do not automatically update deal stages or contact lifecycle stages from payment events without explicit business rules, because a payment failure or cancellation may not correspond to a deal-stage change.

Stale-record alerts protect against integration failures. Build a workflow that enrols records where a date property (such as "next expected charge date") is in the past and no corresponding recent payment property update exists. Configure the enrolment criteria using HubSpot's available date-based filters. Workflow scheduling and trigger capabilities depend on your implementation design tier.

MRR Reporting: Separate Intervals, Normalise, Do Not Sum Cash

Monthly Recurring Revenue (MRR) measures normalized recurring subscription value, not cash received. Agree what counts before building the report.

Normalise every subscription to a monthly value before summing. For illustration: a subscription billed at $600 every three months contributes $200 MRR; one billed at $2,400 annually also contributes $200 MRR. These are arithmetic examples, not prices.

Exclude one-off charges and separately collected taxes from recurring revenue. Define how recurring discounts reduce subscription value, how temporary promotions are treated, and whether processor fees are reported separately. Apply the policy consistently.

Do not sum cash collected in a calendar month and call it MRR, because an annual prepayment inflates the month it lands in and leaves the next eleven months empty. Define your currency treatment and conversion policy before combining multi-currency subscriptions.

Separate MRR into movement categories: new, expansion, contraction, churn, and reactivation. Each category tells a different operational story. Churn MRR triggers retention reviews. Expansion MRR validates subscription analysis. Mixing them into a single net number hides the signals your team needs.

If you use HubSpot's native subscription object with Stripe payment processing or migrated subscriptions, HubSpot can calculate MRR and ARR in its revenue reports. For custom integrations, MRR reporting options include HubSpot custom reports built on calculated properties, an external BI tool, or a combination. The available approach depends on your HubSpot plan and the objects your data lives on.

Testing and Edge Cases for Production Reliability

Before going live, run your integration through these scenarios in a test environment using Razorpay's test mode or Stripe's test clocks.

Duplicate event deliveries. Both gateways may deliver the same webhook event more than once. Send the same event ID twice and confirm your middleware creates only one action. Use the event ID for delivery deduplication and the entity's stable ID for record-level deduplication in your datastore.

Delayed and reordered events. Introduce a delay between a subscription charge and the corresponding payment event. Confirm your workflow does not fire a stale alert prematurely and that a late success cancels the failure follow-up.

Partial refund. Issue a partial refund on a captured payment and verify that the original record retains its gross amount while a refund entry records the returned portion.

Failed renewal. Let a test subscription's card fail on its renewal date. In Razorpay, confirm the subscription moves to pending and then to halted after retries exhaust, not to cancelled. In Stripe, confirm the subscription status reflects the configured retry and dunning behaviour.

Reconciliation. At the end of your test cycle, export payment totals from the gateway and compare them against your CRM records. Discrepancies reveal missed events, duplicate records, or currency-handling errors that your team should fix before launch.

Scope Your Integration and Get Started

A payment integration touches sales, finance, RevOps, and customer success. Start with the two or three event types that cause the most manual work today. Build those handlers, validate the data in HubSpot, and expand from there.

Unleash Tech Worx provides CRM integration and implementation services for teams connecting payment platforms to HubSpot. If your Razorpay or Stripe events are not reaching your CRM, or your MRR numbers do not reconcile with your gateway, contact Unleash Tech Worx to scope the work.

Want this handled, not just explained?