title: Authorize.net Payment Gateway Integration
body: <p>I am trying to integrate Authorize.net payment  api in my app.There is no libraries for iphone in the website <a href="http://developer.authorize.net/downloads/samplecode" rel="nofollow">http://developer.authorize.net/downloads/samplecode</a>.I am searching some other website and test login authentication like this.</p>
  
  <pre><code>NSString *soapMessage=[NSString stringWithFormat:
                         @"&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n"
                         "&lt;soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchemainstance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"&gt;\n"
                         "&lt;soap:Body&gt;\n"
                         "&lt;FunctionName xmlns=\"https://apitest.authorize.net/soap/v1/\"&gt;\n"
                         "&lt;merchantAuthentication&gt;\n"
                         "&lt;name&gt;%@&lt;/name&gt;\n"
                         "&lt;transactionKey&gt;%@&lt;/transactionKey&gt;\n"
                         "&lt;/merchantAuthentication&gt;\n"
                         "&lt;/FunctionName&gt;\n"
                         "&lt;/soap:Body&gt;\n"
                         "&lt;/soap:Envelope&gt;\n"
                  ,@"7uiT3456",@"6TyperT234"];
  NSURL *url = [NSURL URLWithString:@"https://test.authorize.net/gateway/transact.dll"];
  </code></pre>
  
  <p>I get an output always</p>
  
  <p><H3>The following errors have occurred.</H3>(13) The merchant login ID or password is invalid or the account is inactive.<BR></p>
  
  <p>I don't know is this the correct way? if any other better way to integrate authorize.net api please guides me. </p>