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 so the money is collected.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
payment_id | string | Yes | ID of the authorized payment to capture. |
amount | number | Yes | Amount to capture, in the smallest currency unit. For example, enter 50000 for ₹500. |
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 to collect, in the smallest currency unit. For example, enter 50000 for ₹500. |
currency | string | Yes | Three-letter currency code, for example INR. |
receipt | string | No | Your own receipt number for this order, to help match it against your records. |
notes | object | No | Extra notes to save with the order, as pairs of field names and values. |
Response
{}Get a Razorpay order
Look up the details of an order using its order ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | string | Yes | Razorpay order ID. |
Response
{}Get a Razorpay payment
Look up the details of a payment using its payment ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
payment_id | string | Yes | Razorpay payment ID. |
Response
{}