Redirection process occurs after successfully creating an order using the Create Order API. Once the order is generated, need to redirect the user to the payment gateway for completing the transaction. The paymentUrl from the API response contains all necessary details for the redirection.
Key Steps in the Redirection Process:
Use the Response from Create Order API: After receiving a successful response from the createOrder API, which includes a unique orderId and paymentUrl (https://uatapi.wowpe.in/gateway/Transact/Auth/ClientId/orderId), use this information to redirect the user to the SecurePay payment page.
Redirect the User: Redirect the user to the payment gateway using the paymentUrl. The following parameters must be passed to ensure the payment is processed correctly:
Redirect to Payment Gateway:
Parameters to Send:
| Name | Description |
|---|---|
| ClientId | Your Client ID. |
| orderId | The orderId from the Create Order API response. |
API Response
Success: Indicates that the payment is validated successfully.
Failure: Returns details about the validation error.
Important Notes
Security:
Ensure that sensitive information such as client_id and secret_key is not exposed in client-side code.
Use secure protocols (HTTPS) for all API calls.
Error Handling:
Handle API failures and duplicate transaction errors gracefully in your application.
Provide user-friendly error messages for failed transactions.
Testing:
Test the integration thoroughly in the sandbox or staging environment before going live.