How to get data after redirect from checkout to payment provider page?

Hello all. We have created a payment app extension. when the user checkout any product then the payment session URL is hit. and it redirects the user to the hosted payment page. but now the problem is how can I get the checkout data on the payment provider page. as the URL is not a post method. it’s a redirect URL.

we can’t use HPSDK as it is deprecating. How can we get it? plz someone help

hello, Actually i want to take your’s help.. I am not able to redirect user to the hosted payment page.. but it hits my app url, whenever i tries to redirect on payment page it returns to checkout page with error “Your payment can’t be processed for technical reasons. Try again or use a different payment method.” and on my app url I am just getting session and user data not order data https://prnt.sc/91nyOqNK3YJ- in log file only, It not redirects me on my app url but app url hits.

Can you please help me on this if you are aware about it. Thanks!