Mon, 07/13/2015 - 08:40
#1
Invalid Tokenize Request
Hello,
I am getting the error "Invalid Tokenize Request: Please check your input." when trying to create a token via payeezy.js. I am using the test merchant ID and API key. I have inputted all the same values into the sample.html script and gotten a token back from the sample script and also tried inputting the sample values into my script but same error.
Only difference in my request is the inputs are hidden but I printed out the request address and verified all the inputs are properly referenced and also converted them to visible text inputs and still got the same error.
Not sure what the next move is.
Thanks for any help,
Marcus
Hi Marcus
Can you please send us your request URL, headers and payload?
Regards,
Payeezy Team
Request URL:
https://api-cert.payeezy.com/v1/securitytokens?apikey=y6pWAJNyJyjGv66IsVuWn…k&type=transarmor&credit_card.type=visa&credit_card.cardholder_name=Marcus Levin&credit_card.card_number=4788250000028291&credit_card.exp_date=122015&credit_card.cvv=123
Headers:
POST /checkout.pl HTTP/1.1
Host: beta.dorothylane.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Content-Type: application/x-www-form-urlencoded
Cookie: OrderType=Pickup; OrderDate=07/15/2015; OrderTime=04%3A00pm; OrderStore=2; OrderLocation=Wine%20Bar; __utma=246526481.1467814021.1423579910.1436472180.1436546832.98; __utmc=246526481; __utmz=246526481.1436546832.98.30.utmcsr=CMGO|utmccn=CMGONATCONTOSB|utmcmd=NATCON; __utmt=1; __utma=95493775.1469080302.1423511883.1436798756.1436881409.179; __utmb=95493775.2.10.1436881409; __utmc=95493775; __utmz=95493775.1426798044.56.3.utmcsr=insidedlm|utmccn=(referral)|utmcmd=referral|utmcct=/CentralOrdering.pl; sessionId=C3A2599B-D8A6-49A6-9DAE-B5B52C29EB11
DNT: 1
Origin: http://beta.dorothylane.com
Referer: http://beta.dorothylane.com/checkout.pl
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36
X-DevTools-Emulate-Network-Conditions-Client-Id: 087224B2-0686-4ACE-82B2-A04223EDAB19
HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: keep-alive
Content-Length: 40374
Content-Type: text/html
Date: Tue, 14 Jul 2015 14:00:26 GMT
Expires: now
Pragma: no-cache
Server: Microsoft-IIS/7.5
Via: 1.1 barracuda.wash-square.local (http_scan_byf/3.3.1)
X-Cache: MISS from barracuda.wash-square.local
X-Powered-By: ASP.NET
For payload, do you mean the data in the checkout form (i.e. delivery/billing info)? No form submission is taking place because yet because the payment authentication is failing. Or if there is some other information needed, please elaborate.
Thanks,
Marcus
Hi Marcus,
The expiry date needs to be in the format MMYY. Can you please try that?
Regards,
Payeezy Team
That was it.
Thanks for your help!
Marcus