Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Utku Turna
Utku Turna
15,090 Points

HTTP GET for a successful payment

Hi, i'm writing a payment gateway for woocommerce. It redirects users to an external payment page after payment my gateway sends them back to my thankyou page. I need to get "successful payment" info from the provider. They provide it by http get.

www.mysite.com/thankyou/?mpy=&pid=11985711&order=49f025ef-470a-44c5-aef6-a28b28fc652f&op=4

Successful url looks like this.

I can get "order" or "pid" parameters from url with get. But i need the "state" parameter to see if payment successful or not. I think it's hidden from url. How can i get all parameters with http/get in PHP ?

Thanks.