title: How to get SecureToken using Payflow Gateway SDK for Payflow Link integration
body: <p>I am trying to figure out how to receive the SecureToken to be used in a Payflow Link IFrame using the PayPal Payflow Gateway SDK. I am also using Paypal's Layout C so that the user enters their credit card information in the PayPal IFrame while it is embedded in my site (thus preventing my site from ever having CC information).</p>
  
  <p>The code to generate the HTML for the IFrame would ideally look something like this:</p>
  
  <pre><code>iframeHTML = "&lt;iframe src='https://payflowlink.paypal.com?SECURETOKEN="
      + secureToken + "&amp;SECURETOKENID=" + secureTokenID + "&amp;MODE=" + mode
      + "' width='490' height='565' border='0' frameborder='0' scrolling='no'"
      + " allowtransparency='true'&gt;\n&lt;/iframe&gt;";
  </code></pre>
  
  <p>I have read the <a href="https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/payflowgateway_guide.pdf" rel="nofollow noreferrer">Developer Guide</a> and have been unable to find what object I can do this with. I have tried creating various transactions, but they all require a tender (full credit card info) to be sent, as well. I have also looked at the questions <a href="https://stackoverflow.com/questions/9171166/paypals-payflow-gateway-sdk-example-not-working">PayPal&#39;s Payflow Gateway SDK Example not working</a> and <a href="https://stackoverflow.com/questions/17842213/how-to-get-secure-token-when-using-hosted-checkout-pages-and-restapisdk-asp">How to get secure token when using &quot;Hosted Checkout Pages&quot; and RestApiSDK - ASP.Net</a> but was not able to find the answer I wanted.</p>
  
  <p>Is there some object or function I am missing? I would prefer not to use a Name-Value Collection and manually create the request and response to retreive the SecureToken but will if it is the only way.</p>