post https://xyz.xyz.in/service-api/api/v1/service/bus/generateurl
SNo | HTTP Response Code | Response Code | Description |
---|---|---|---|
1 | 200 | 1 | Data Successfully Generated |
2 | 401 | 2 | Unable to process request |
3 | 401 | 3 | Jwt Token Error |
4 | 401 | 4 | Authentication failed |
PROCESS
Call Generate Url api with valid parameter define above. and In Response, in success case encdata and Url will received .
You have to auto redirect POST form to response url with encdata field having response value
<form method="post" action="URL received from generate url API">
<textarea name="encdata" style="display:none">value received from generate url API</textarea>
<input type="submit" value="Submit">
</form>
Form submit will redirect you to bus seat booking layout and you will get encrypted json response callback url in data field
1- $response = $this->input->post('data');
2- $decrypted_data = decode using JWT decryption with key provide by PAYSPRINT
3- decode JSON using json_decode($decrypted_data,true);