Is it possible to use the RestApiSDK to get a secure token when using "Hosted Checkout Pages"? If so please show example. (C# preferred.)
The secure token I am referring to is described on page 31 here: https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/payflowgateway_guide.pdf
Please realize that I am not using "Express Checkout". (There is a lot of confusion between the old PayPal products and the new products in the PayPal documentation.)
One example I found here on StackOverflow has the following issues: The links to the SDK and docs are dead. The DOSecureTokenAuth.cs file does not exist in any SDK or example that I can find. PayPal's Payflow Gateway SDK Example not working
In this example the author was not able to copy the code from the source files. http://forums.asp.net/t/1798900.aspx/1
Thank you, Chuck
It is not currentlypossible. The REST API's do not support the Hosted Checkout payment method. The REST process allows for PayPal transactions (very similar to Express Checkout) and credit card payments (where you pass the billing information to PayPal for verification).
The post you mentioned - PayPal's Payflow Gateway SDK Example not working - is for the Payflow SDK and Payflow does not support REST.
https://github.com/paypal/rest-api-sdk-dotnet please look into this
or you can use
Please look into this code of payflow_dotnet.dll
Add this to Web Config
<add key="PAYFLOW_HOST" value="pilot-payflowpro.paypal.com" />