Razorpay

Power your finance, grow your business. Accept payments from customers. Automate payouts to vendors & employees. Never run out of working capital.

Go to site
Explore
/
Apps
/
Razorpay

Razorpay API Integrations

Build and run workflows using the Razorpay API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

The Razorpay API provides a wealth of possibilities for developers to build payment solutions for a vast range of use-cases. With the API, you can implement payment functionalities for Mobile and Web applications, simplify digital payments and allow customers to securely store digital wallets on your platform. Here are some of the things you can do using Razorpay's API:

  • Create an online store with a modern checkout process
  • Enable customers to pay online with a QR code
  • Integrate banking systems to process payments
  • Allow customers to pay with their preferred payment mode
  • Collect recurring payments securely
  • Send and receive payments with ease
  • Collect payments on behalf of other merchants
  • Automate payment flows and subscription management
  • Monitor all transactions on your platform
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    razorpay: {
      type: "app",
      app: "razorpay",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.razorpay.com/v1/items`,
      auth: {
        username: `${this.razorpay.$auth.key_id}`,
        password: `${this.razorpay.$auth.key_secret}`,
      },
    })
  },
})

Authentication

Razorpay uses API keys for authentication. When you connect your Razorpay account, Pipedream securely stores the keys so you can easily authenticate to Razorpay APIs in both code and no-code steps.

To connect your Razorpay account to Pipedream, log into your Razorpay dashboard and follow the below steps to retrieve your key_id and key_secret:

  • Select the mode (Test or Live) for which you want to generate the API key.
  • Test Mode: The test mode is a simulation mode that you can use to test your integration flow. Your customers will not be able to make payments in this mode.
  • Live Mode: When your integration is complete, switch to live mode and generate live mode API keys. Replace test mode keys with live mode keys in the integration to accept payments from customers.
  • Navigate to Settings → API Keys → Generate Key to generate key for the selected mode.
  • The Key Id and Key Secret appear on a pop-up page.

For more information, refer to Razorpay's docs: https://razorpay.com/docs/api/authentication#generate-api-keys