# Razorpay integrations: orders and payments

> Create an order, update a payment and create a refund in Razorpay, and start a workflow when Razorpay sends “Payment authorized”.

**Canonical page:** https://tray.ai/connectors/razorpay-integrations/
**Categories:** Finance
**Connects through:** HTTP Connector

## Overview

Razorpay is an Indian payments platform for accepting online payments, sending invoices and payment links, issuing refunds and running subscriptions. Tray.ai connects to Razorpay through the HTTP Connector, so your workflows can call the Razorpay API alongside the rest of your stack.

## Use cases

### Orders

Read, create, and update orders in Razorpay from any Tray.ai workflow. The Razorpay API covers calls such as create an order and list orders.

- Create an order
- List orders
- Get an order

### Payments

Read, update, and manage payments in Razorpay from any Tray.ai workflow. The Razorpay API covers calls such as capture a payment and list payments.

- Capture a payment
- List payments
- Get a payment

### Refunds

Read, create, and update refunds in Razorpay from any Tray.ai workflow. The Razorpay API covers calls such as create a refund and list refunds.

- Create a refund
- List refunds
- Get a refund

### Invoices

Read, create, and delete invoices in Razorpay from any Tray.ai workflow. The Razorpay API covers calls such as create an invoice and list invoices.

- Create an invoice
- List invoices
- Issue an invoice

### Razorpay events

Start a Tray.ai workflow the moment something happens in Razorpay. Razorpay sends events such as payment authorized and payment failed to a Tray.ai webhook trigger.

- Payment authorized
- Payment failed
- Order paid

## Challenges Tray.ai solves

### Keeping Razorpay credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Razorpay credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Razorpay API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Razorpay API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Razorpay?

Yes. Tray.ai connects to Razorpay through the HTTP Connector, which calls the Razorpay API directly. Any call the Razorpay API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with Razorpay?

The Razorpay API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated Razorpay connector?

Razorpay runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Razorpay connector from the Razorpay API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
