- Basic Payment Links
- Customised Payment Links
Handy Tips
-
After successful completion of the payment, customers can be redirected to a specific URL using the
callback_urlandcallback_methodparameters. Know more about how to use these paramaters. -
Verify the
razorpay_signatureparameter to validate that it is authentic and sent from Razorpay servers. Know more about how to Verify Signature.
Request
Curl
Response
Success
Parameters
amount mandatory
: integer Amount to be paid using the Payment Link. Must be in the smallest unit of the currency. For example, if you want to receive a payment of , you must enter the value 30000. In the case of three decimal currencies, such as KWD, BHD and OMR, to refund a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to refund a payment of 295, pass the value as 295.
Parameters
accept_partial
: boolean Indicates whether customers can make partial payments using the Payment Link. Possible values:
true: Customer can make partial payments.false(default): Customer cannot make partial payments.
amount
: integer Amount to be paid using the Payment Link. Must be in the smallest unit of the currency. For example, if you want to receive a payment of , you must enter the value 30000. In the case of three decimal currencies, such as KWD, BHD and OMR, to refund a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to refund a payment of 295, pass the value as 295.
Errors
The {input field} is required- code: 4xx
- description: A mandatory field is empty.
- solution: Ensure all mandatory fields and values are present.
- code: 400
- description: When wrong input fields are sent during Payment Link creation.
- solution: Ensure that the input fields are added correctly. Refer to these request parameters on how to add correct input fields.
- code: 400
- description: An existing reference id has been passed.
- solution: Ensure that a unique reference id is used for all Payment Links.
- code: 400
- description: The UPI link parameter has been passed with the Test API keys.
- solution: Ensure that you use Live API keys while passing UPI links.
- code: 400
- description: Occurs when you try to create a UPI Payment Link using an international currency.
- solution: Ensure that you create a UPI payment link only in indian currency.
- code: 400
- description: Occurs when you try to create a UPI Payment Link with partial payments enabled.
- solution: Please do not enable partial payments for UPI Payment Links.
- code: 400
- description: The epoch time passed is less than 15 minutes from the current time.
- solution: The
close_bytime should be more than 15 minutes from the current time.
- code: 400
- description: Occurs when you try to create a Payment Link in Live mode, but live mode is disabled for you
- solution: Raise a request to our support team to get live mode enabled for you.
- code: 400
- description: Occurs when you try to create a Payment Link when you have been been suspended.
- solution: Raise a request to our support team to be reinstated.
- code: 400
- description: When the notes length is greater than 255 characters during Payment Link creation.
- solution: Please create a payment link with notes values less than 255 characters.