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.

Parameters

ParameterTypeRequiredDescription
payment_idstringYesAuthorized payment ID.
amountnumberYesAmount to capture in the smallest currency unit.
currencystringNoCurrency of the captured amount.

Response

{}

Create a Razorpay order

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

Parameters

ParameterTypeRequiredDescription
amountnumberYesAmount in the smallest currency unit.
currencystringYesThree-letter currency code.
receiptstringNoReceipt identifier for reconciliation.
notesobjectNoKey/value notes to attach to the order.

Response

{}

Fetch a Razorpay order

Retrieve details of a Razorpay order by ID.

Parameters

ParameterTypeRequiredDescription
order_idstringYesRazorpay order ID.

Response

{}

Fetch a Razorpay payment

Retrieve a payment record using its ID.

Parameters

ParameterTypeRequiredDescription
payment_idstringYesRazorpay payment ID.

Response

{}

On this page