froot Posted July 22, 2022 Share Posted July 22, 2022 I'm having a weird issue, at least to me. Long story short: I cannot see the GET variables in the url (nor is it stored in $input->get) but I can see the url with GET variables in the Network-Developer-Tool. How come? Long story, if relevant: I'm currently implementing a paypal payment method on a project. For that, I'm using curl (as described on developer.paypal.com), so the request happens server-side. In a nutshell, it works like this: you send a curl "authentication" request to paypal paypal returns an token for authentication then you send another curl "create order" request to paypal along with the token paypal returns an array containing the "approve" link that link brings the user to paypal.com where they log in and approve the payment the user is then redirected to the site and PayerID and token are passed on as GET-variables (then I need to do some more coding to, finally, withdraw the amount due) So again, the issue now is, I don't see the GET variables in the url but they are present in the Network-Developer-Tool. Is that an issue related to PW? Something with how it handles the urls? .htaccess? Thanks for help! Link to comment Share on other sites More sharing options...
dotnetic Posted July 25, 2022 Share Posted July 25, 2022 Somewhere in your template where you expect the variables to appear try the following code: print_r($_GET); // or echo $_SERVER["QUERY_STRING"]; What do they output? Also you might want to take a look at this module PaymentPaypal (PaymentPaypal) - ProcessWire Module 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now