1 post / 0 new
tommymanley6409
Tokens using payeezy.php

I've written some code using the Payeezy class to authorize and purchase with credit card data.

I'm now trying to develop code using the Payeezy class to generate tokens for credit card processing.

I've successfully gotten a response to my token request using curl but now I'm getting the following error returned. This is a var_dump of the curl result.

undefined({ "status":400, "results":{"correlation_id":"228.1475700165121","Error":{"messages":[{"code":"invalid.tatoken","description":"Invalid ta_token provided"}]}} })

This is the array that I use to create the query string.

$transactionTokenData = array(
"apikey"=> $api_key,
"type"=> "FDToken",
"js_security_key" => $js_security_key,
"auth" => "false", // Do not do a $0 auth
"ta_token" => "NOIW",
"card_type"=>"visa",
"cardholder_name" =>"John Smith",
"card_number" =>"4788250000028291",
"exp_date" =>"1030",
"cvv" =>"123",
"street"=>"X123 Street",
"city"=>"Orlando",
"state_province"=>"FL",
"country"=>"US",
"zip_postal_code"=>"32835",
"email"=>"jame@smith.com",
"phone.type"=>"mobile",
"phone.number"=>"407-555-1234"
);

and this is the url that is used by curl.

https://api-cert.payeezy.com/v1/securitytokens?apikey=vi5Nt0j0p4fu6AvW7q6GFXG0GIl5Nyw1&type=FDToken&js_security_key=js-d5b9169ba8e9e0973b2a8567d93b01d3d5b9169ba8e9e097&auth=false&callback=Payeezy.callback&ta_token=NOIW&card_type=visa&cardholder_name=John+Smith&card_number=4788250000028291&exp_date=1030&cvv=123&street=X123+Street&city=Orlando&state_province=FL&country=US&zip_postal_code=32835&email=jame%40smith.com&phone.type=mobile&phone.number=407-555-1234

What is incorrect in my process?

Thanks.