Closed baxterdmutt closed 1 year ago
I think I came up with a better idea to make this work so an answer is not needed. I did notice in all my googling that this question comes up a lot on other frameworks. If someone still wants to answer how this gets done, it could still be useful to other folks. Thanks.
I’m working on updating the deprecated Square payment addon. I’ve come a long way but I’m having an issue. The Square Api requests a token, sends it back as json and then a JS fetch sends it to a completion page. I’ve used the concrete Route to route to the correct page and class. But I’m not able to read the json. By the time that page sees it the JSON is empty. I know it’s full when it’s sent by the fetch. I feel like this has something to do with the route. Here’s the thing though. In all honesty I’m a weak coder. Any chance someone could go through the steps of how to pick up the json data, please. I had no trouble making this work on a test platform where there was no framework like concrete. It works beautifully there with $json=file_get_contents(‘php://input’);
thanks.