I’m trying to make a call to a payment gateway, but I can’t get the parameters right. The API connector responds as if the parameters were empty. This is the call:
Raw response for the API
"{\"errors\":[{\"fieldname\":\"currency\",\"message\":\"Currency is Required\"},{\"fieldname\":\"currency\",\"message\":\"Currency Should be 3 character alphabet, e.g USD\"},{\"fieldname\":\"amount\",\"message\":\"Amount is Required\"},{\"fieldname\":\"amount\",\"message\":\"Amount should be number or decimal\"}]}"
Are there some obvious formatting mistakes here than might cause it? Or something else I’m doing wrong?
Just thinking that the problem might lie in another part of the API connector, not the json. If you do a screenshot of the whole api call in the connector plugin, instead of just the parameters, somebody might spot any error that might exist there.
Other calls are working, so I know the authorization works.
However, I can’t get the other calls to work by posting the JSON body, only by setting up the parameters manually. However, with this call that doesn’t work, as I keep getting the error “”{"errors":[{"fieldname":"charges.redirect","message":"Invalid redirect url"}]}“”
When testing the API on this page, it works fine (Charges → Create charge)
@petter@mebeingken - I am facing similar issue with the API call but my issue is still not resolved after adding shared header for Content-Type. Can you please help?