title: Paypal Website payment Pro DoDirect Payment Integration issue.This transaction cannot be processed due to an invalid merchant configuration
body: <p>I had called WebSitePayment Pro doDirectPayment API with all valid inputs but in API Response I get below error</p>
  <p><strong>&quot;This transaction cannot be processed due to an invalid merchant configuration.&quot;</strong></p>
  <p>for more help i wrote down my application code here</p>
  <pre><code>PayPalResponse oResponse = new PayPalResponse ( );
  Profile oProfile = new Profile ( );
  RequestDetail oRequestDetail = new RequestDetail ( );
  DoDirectPayment oDoPayment = new DoDirectPayment ( );
  string Responsestring = &quot;&quot;;
  oProfile.APIUsername = ConfigurationManager.AppSettings[&quot;apiusername&quot;];
  oProfile.APIPassword = ConfigurationManager.AppSettings[&quot;apipassword&quot;];
  oProfile.APISignature = ConfigurationManager.AppSettings[&quot;apisignature&quot;];
  oProfile.Environment = ConfigurationManager.AppSettings[&quot;environment&quot;];
  
  oRequestDetail.IPAddress = Request.ServerVariables[&quot;LOCAL_ADDR&quot;].ToString ( );
  oRequestDetail.MerchantSessionId = Session.SessionID;
  
  oResponse = oDoPayment.DoDirectPaymentCode ( &quot;1.0&quot;, txtlastname.Text, txtFirstname.Text, txtaddress1.Text , txtaddress2.Text , txtCity.Text ,txtState.Text ,txtzipcode.Text,
                                           &quot;Visa&quot;, txtcardno.Text,txtcvv2.Text, Convert.ToInt32(txtExpMonth.Text), Convert.ToInt32(txtExpYear.Text), PaymentActionCodeType.Sale, oProfile, &quot;USA&quot;, CountryCodeType.US, CurrencyCodeType.USD, oRequestDetail );
  if (oResponse.ErrorLog.Count &gt; 0)
  {
      foreach (KeyValuePair&lt;string, string&gt; o in oResponse.ErrorLog)
      {
          Response.Write ( o.Value.ToString ( ) + &quot;&lt;br/&gt;&quot; );
      }
  }
  </code></pre>
  <p>can any body help me to resolve this issue,this code is work with Sandbox but don't work with Live environment. I have complete all billing agreement for business account.</p>