Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 3, 20231 yr 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: "
July 4, 20231 yr You havent specified there what part of our API is being called? Or is this custom development?
July 4, 20231 yr Author 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.
July 4, 20231 yr 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.