Lordest Posted July 3, 2023 Share Posted July 3, 2023 Hi, I'm working on integrating my payment provider for my website. As a callback URL, I created an API endpoint that works fine. The code lines below are the last two lines of my POSTindex function in API code. $output = "OK"; return new \IPS\Api\Response( 200, $output); My payment provider wants a plain text response as: OK But IPS API returns it like this on the page: "OK" How can I remove these signs: " Link to comment Share on other sites More sharing options...
Marc Posted July 4, 2023 Share Posted July 4, 2023 You havent specified there what part of our API is being called? Or is this custom development? Link to comment Share on other sites More sharing options...
Lordest Posted July 4, 2023 Author Share Posted July 4, 2023 11 minutes ago, Marc Stridgen said: You havent specified there what part of our API is being called? Or is this custom development? This is custom development, and belongs to a file inside my application's API folder. Link to comment Share on other sites More sharing options...
Stuart Silvester Posted July 4, 2023 Share Posted July 4, 2023 The REST API is a JSON-based API, it'll always return JSON. It sounds like an odd request from your payment gateway, but it's probably not suitable to use the REST API for this. Link to comment Share on other sites More sharing options...
Recommended Posts