title: PayPal's Payflow Gateway SDK Example not working
body: <p>I downloaded the <a href="https://www.x.com/sites/default/files/Payflow_dotNET_v4.50RC.zip" rel="nofollow">.NET SDK</a> for Payflow Gateway and followed <a href="https://www.x.com/node/2749" rel="nofollow">these instructions</a> on setting up my Payflow Gateway test account, then modified two lines of DOSecureTokenAuth.cs, the User and Connection variables:</p>
  
  <pre><code>        UserInfo User = new UserInfo("myacctname", "myacctname", 
                                       "PayPal", "passwd");
          PayflowConnectionData Connection = new PayflowConnectionData(
                                       "pilot-payflowpro.paypal.com", 443);
  </code></pre>
  
  <p>When I run DOSecureTokenAuth.cs a commandline window opens saying:</p>
  
  <pre><code>------------------------------------------------------
  Executing Sample from File: DOSecureTokenAuth.cs
  ------------------------------------------------------
  RESULT = 0
  RESPMSG = Approved
  SECURETOKEN = 3BZVLoht6cESPxMkScSau4g4l
  SECURETOKENID = 9e09209a562b43739dd5d1a44a3e2d73
  DUPLICATE =
  Transaction was successful.
  
  The next step would be to redirect to PayPal to display the hosted
  checkout page to allow your customer to select and enter payment.
  
  This is only a simple example, which does not take into account things like
  RETURN or SILENT POST URL, etc.
  
  Press &lt;Enter&gt; to redirect to PayPal.
  
  Transaction Successful.
  Press Enter to Exit ...
  </code></pre>
  
  <p>Clearly successful. Yay. However, the next step, directing the user to PayPal's Hosted Checkout Page always fails with the following error:</p>
  
  <pre><code>Some required information is missing or incorrect. Please correct the fields below and try again.
  Error: An error has occurred. Please contact the system administrator.
  </code></pre>
  
  <p>The Payflow Gateway docs say I should submit my SECURETOKENID and SECURETOKEN to <a href="http://payflowlink.paypal.com" rel="nofollow">http://payflowlink.paypal.com</a> (even if you're wanting to use Payflow PRO???), and here's an example of me trying (below is a GET but POST fails the same way):</p>
  
  <p><a href="https://payflowlink.paypal.com/?securetoken=3BZVLoht6cESPxMkScSau4g4l&amp;securetokenid=9e09209a562b43739dd5d1a44a3e2d73&amp;MODE=test&amp;USER1=testuser1&amp;ACCT=5105105105105100&amp;EXPDATE=1212&amp;CVV2=123" rel="nofollow">https://payflowlink.paypal.com/?securetoken=3BZVLoht6cESPxMkScSau4g4l&amp;securetokenid=9e09209a562b43739dd5d1a44a3e2d73&amp;MODE=test&amp;USER1=testuser1&amp;ACCT=5105105105105100&amp;EXPDATE=1212&amp;CVV2=123</a></p>
  
  <p>I even made a cute little HTML form page based on the PHP example linked above:</p>
  
  <pre><code>&lt;form method='post' action='https://payflowlink.paypal.com/'&gt;
  &lt;input type='text' name='SECURETOKEN' value='3BZVLoht6cESPxMkScSau4g4l' /&gt;
  &lt;input type='text' name='SECURETOKENID' value='9e09209a562b43739dd5d1a44a3e2d73' /&gt;
  &lt;input type='hidden' name='MODE' value='test' /&gt;
  &lt;input type='submit' /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And as expected it died with the same vague error, which implies I have configured my account in some incorrect way. I haven't put in real financial information, because this account is just a developer test account not intended to be used on a live site, but if I read the docs right, this is the expected way to do it.</p>
  
  <p>Since I assume it's configuration, my account is configured with the following settings: </p>
  
  <pre><code>PayPal Express Checkout = Enabled
  PayPal Email Address and PayPal Sandbox Email Address are configured and going to the same address
  Show Confirmation Page = On a PayPal hosted page
  Use Silent Post = No
  Send email = Yes
  AVS Check = No
  CVC Check = No
  Enable Secure Token = Yes
  </code></pre>
  
  <p>Help! What's causing the vague error?!</p>