A payment gateway delivers a payload upon transaction. I created a table for this payload, when the payload is posted it returns an ‘Invalid Header’ error.
Due to error which you receive seems like there is missed a header in your request. You should first test calling the business logic method from the console. If everything is fine there, the request is being processed and you don’t see any errors you need to export the request to CURL and check the headers.
I would also recommend you to generate your API-key which you sent us, as the key has been compromised.
What would be the best approach in accepting this payload, an API service or Business logic… please kindly advise?
Make sure you have the correct permissions for this table. Just for the testing, grant access for the NotAuthenticatedUser to create objects in this table. If so, is the query successful?
Make sure that you pass a valid user-token of the user.
Thank you for your advice and assistance, managed to solve this by sending the payload to a PHP page, JSON decoding payload and posting to backendless.