Razorpay
API actions for the Razorpay integration.
Razorpay
Collect payments, manage orders, and reconcile payouts with Razorpay.
Capture a Razorpay payment
Capture a previously authorized payment.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
payment_id | string | Yes | Authorized payment ID. |
amount | number | Yes | Amount to capture in the smallest currency unit. |
currency | string | No | Currency of the captured amount. |
Response
{}Create a Razorpay order
Create a payment order with amount, currency, and optional receipt.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Amount in the smallest currency unit. |
currency | string | Yes | Three-letter currency code. |
receipt | string | No | Receipt identifier for reconciliation. |
notes | object | No | Key/value notes to attach to the order. |
Response
{}Fetch a Razorpay order
Retrieve details of a Razorpay order by ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | string | Yes | Razorpay order ID. |
Response
{}Fetch a Razorpay payment
Retrieve a payment record using its ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
payment_id | string | Yes | Razorpay payment ID. |
Response
{}