Testing Your Integration
For a basic integration that only redirects the buyer to PayU, the public test point of sale (POS) is enough. To test all API messages, including refunds, set up your own account in the Sandbox environment.
The public test POS below works in the production environment (https://secure.payu.com). For the Sandbox environment, use the public Sandbox POS.
Public Test POS Credentials (Production)
POS ID (pos_id): 145227
Second key (MD5): 13a980d4f851f3d9a1cfc792fb1f5e50
OAuth protocol - client_id: 145227
OAuth protocol - client_secret: 12f071174cb7eb79d4aac5bc2f07563f
Test Cases
Use the following test cases to make sure your website handles these scenarios correctly:
- Verify that the buyer is redirected to PayU when PayU responds with HTTP 302 to your POST request to the
/api/v2_1/ordersendpoint. - Confirm that you receive and parse PayU notifications correctly and respond with HTTP 200.
- Ensure you correctly establish the order status during its lifecycle. Keep in mind that order status is provided only via notifications, while the status returned in the response applies only to the request, not to the order.
- Check that you provide the
continueUrlparameter and that the buyer is redirected to this URL after the payment. - Be prepared to handle the error message passed in the query string added to the
continueUrl. - For card tokenization, make sure your website handles all payment authorization scenarios.
Test cases 1 and 2 can be performed in the Management Panel or through the API.
Topics in this Section
Sandbox Environment
The Sandbox environment is a near-replica of PayU's production system, designed for integration and testing purposes.