3rd party payment gateway integration

i integrated the my payment gateway but my payment gateway is given response in callback url that is not webhook ,response also encrypt how handle this response to decrypt and go to success page.