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).
The code to generate the HTML for the IFrame would ideally look something like this:
iframeHTML = "<iframe src='https://payflowlink.paypal.com?SECURETOKEN="
+ secureToken + "&SECURETOKENID=" + secureTokenID + "&MODE=" + mode
+ "' width='490' height='565' border='0' frameborder='0' scrolling='no'"
+ " allowtransparency='true'>\n</iframe>";
I have read the Developer Guide 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 PayPal's Payflow Gateway SDK Example not working and How to get secure token when using "Hosted Checkout Pages" and RestApiSDK - ASP.Net but was not able to find the answer I wanted.
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.