PayU routes for the hosted-checkout result, the server-to-server payment postback, and the refund notification.
These pages are the routes PayU calls with a payment or refund result. Success, failure, and cancelled are hosted-checkout redirects. The S2S page is the server-to-server payment postback. The refund page is the refund notification. The partner does not host these URLs.
Authentication
PayU calls these routes. A partner Bearer token is not sent to them.
| Page | Route | What PayU does |
|---|---|---|
| Payment Success Redirect Callback | POST /partner/paymentSuccess | Receives a successful hosted-checkout result, then sends the customer to surl. |
| Payment Failure Redirect Callback | POST /partner/paymentFailed | Receives a failed result. error and error_Message carry the gateway reason. The customer is sent to furl. |
| Payment Cancelled Redirect Callback | POST /partner/paymentCancelled | Receives the result when the customer cancels. |
| Payment S2S Callback | POST /partner/paymentCallback | Accepts the server-to-server postback and returns HTTP 200 with an empty body. |
| Partner Refund Callback | POST /partner/refundCallback | Accepts the refund notification as the standard body or the migrated body. |
| Environment | Base URL |
|---|---|
| Test | https://test-partnerapilayer.payu.in/apilayer |
| Production | https://api.payu.in |
Endpoints
These are the Payment Callback pages.
POST /partner/paymentSuccess. PayU receives the hosted-checkout result after a successful payment, then sends the customer to surl.
POST /partner/paymentFailed. PayU receives the failed result. error and error_Message carry the gateway reason, then the customer is sent to furl.
POST /partner/paymentCancelled. PayU receives the hosted-checkout result when the customer cancels.
POST /partner/paymentCallback. Server-to-server payment postback. PayU returns HTTP 200 with an empty body after it notifies the partner webhook configured for the reseller.
POST /partner/refundCallback. Refund notification. The body can be the standard refund callback or the migrated callback with paymentId, refundId, refundAmount, and refundStatus. No field is required.
How It Works
Successful hosted checkout
PayU posts the result to Payment Success Redirect Callback, then sends the customer to the surl from the payment request.
Failed hosted checkout
PayU posts the result to Payment Failure Redirect Callback. The page carries error and error_Message, then the customer is sent to furl.
Customer cancels
PayU posts the result to Payment Cancelled Redirect Callback.
Server-to-server postback
PayU posts the payment result to Payment S2S Callback. The response is HTTP 200 with an empty body. The partner webhook URL is configured for the reseller. It is not this path.
Refund notification
PayU posts the refund result to Partner Refund Callback. Use the standard body or the migrated body. Both are documented on that page.
