I have a FileMaker Pro database solution that currently uses a payment gateway (not Authorize.net) to handle credit card transactions. The transactions are submitted using XML and a URL Post. I use the Troi URL plugin to do the POST because FileMaker does not have POST capability built in. There is no issue with this gateway, it's worked fine for years.
I am now trying to do the same thing with Authorize.net. Using the AIM XML guide, I have setup an XML "payload" to submit to the test URL. When I submit it I'm getting back the following Error message including the garbage characters at the beginning:
Ôªø<?xml version="1.0" encoding="utf-8"?><ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00002</code><text>The content-type specified is not supported.</text></message></messages></ErrorResponse>
The $XML_Payload is a simply a script variable that contains the sample XML code below. What I'm wondering is if Authorize.net expects some special string or code to say that this is "text/xml" coming in. Note that the string "xml=" precedes the XML code below when it gets submitted. This works fine with the existing gateway and seems to make no difference to Authorize.net whether it's there or not, it still produces the E00002 error.