I'm pulling my hair out trying to figure out why I can't seem to get a secure token from PayPal PayFlow Advanced in the sandbox.
Instead of getting parameter type results, I'm getting an html page with the error:
Some required information is missing or incorrect. Please correct the fields below and try again.
Error: Your transaction can no longer be processed. Please return to the merchant's web site or contact the merchant. Error: 160
I've followed several code examples and ready through the PayPal PayFlow guide PDF. I've been searching for several days and haven't been able to find much of anything regarding the error 160 other than one post which said curl was disabled on his server. It's enabled on my server. I also saw a post (from Dec. 2012) about having some of the parameters in a particular order in the request parameters.
I've tried the suggestions I found, but nothing seems to change the results.
Why am I getting an html page instead of the results?
URL: https://pilot-payflowlink.paypal.com
Post Fields: TRXTYPE=S&PARTNER=PayPal&VENDOR=xxxx&USER=xxxx&PWD=xxxx&INVNUM=xxxxxx&AMT=22.34&CREATESECURETOKEN=Y&SECURETOKENID=52895d03afc761.99691257
Curl Options:
$options = array(
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_HEADER => TRUE,
CURLOPT_VERBOSE => TRUE,
CURLOPT_SSL_VERIFYHOST => FALSE,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_POST => TRUE,
CURLOPT_POSTFIELDS => $info
);
Any help would be greatly appreciated!!
Sloan