Lodol Docs

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

ParameterTypeRequiredDescription
payment_idstringYesID of the authorized payment to capture.
amountnumberYesAmount to capture, in the smallest currency unit. For example, enter 50000 for ₹500.
currencystringNoCurrency of the captured amount.

Response

{}

Create a Razorpay order

Create a payment order with amount, currency, and optional receipt.

Parameters

ParameterTypeRequiredDescription
amountnumberYesAmount to collect, in the smallest currency unit. For example, enter 50000 for ₹500.
currencystringYesThree-letter currency code, for example INR.
receiptstringNoYour own receipt number for this order, to help match it against your records.
notesobjectNoExtra 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

ParameterTypeRequiredDescription
order_idstringYesRazorpay order ID.

Response

{}

Get a Razorpay payment

Look up the details of a payment using its payment ID.

Parameters

ParameterTypeRequiredDescription
payment_idstringYesRazorpay payment ID.

Response

{}

On this page