Hello I need your help.
I'm using the API for PHP payeezy in the API include some unit tests
... I'm using his methods but to try to get the token gives me this
error:
"Failed to connect to api-cert.payeezy.com port 443: Timed out"
This is my code for get the token:
$payeezy = new Payeezy();
$payeezy->setApiKey("y6pWAJNyJyjGv66IsVuWnklkKUPFbb0a");
$payeezy->setApiSecret("86fbae7030253af3cd15faef2a1f4b67353e41fb6799f576b5093ae52901e6f7");
$payeezy->setMerchantToken("fdoa-a480ce8951daa73262734cf102641994c1e55e7cdf4c02b6");
$payeezy->setTokenUrl("https://api-cert.payeezy.com/v1/transactions/tokens");
$payeezy->setUrl("https://api-cert.payeezy.com/v1/transactions");
$primaryTxResponse_JSON =
json_decode($payeezy->authorize($this->setTokenPayload()));
and this is my method to generate the token to authorize (setTokenPayload):
public function setTokenPayload(){
$card_holder_name = $transaction_type = $auth = $card_number =
$ta_token = $card_type = $card_cvv = $card_expiry = $currency_code =
$merchant_ref="";
$transaction_type = $this->processInput("FDToken");
$auth = $this->processInput("false");
$ta_token = $this->processInput("NOIW");
$card_holder_name = $this->processInput("John Smith");
$card_number = $this->processInput("4788250000028291");
$card_type = $this->processInput("visa");
$card_cvv = $this->processInput("123");
$card_expiry = $this->processInput("1250");
$currency_code = $this->processInput("USD");
$merchant_ref = $this->processInput("Astonishing-Sale");
$getTokenPayload = array(
"type"=> $transaction_type,
"auth" => $auth,
"ta_token" => $ta_token,
"card_type" => $card_type,
"card_holder_name" => $card_holder_name,
"card_number" => $card_number,
"card_exp_date" => $card_expiry,
"card_cvv" => $card_cvv,
);
return $getTokenPayload;
}
Please I need your help ... I have two days with this and I have not
accomplished anything ...
Thanks in advance.
Hello,
Are you able to connect to the following URL from your machine? If not, it is a netowrk issue.
https://api-cert.payeezy.com/v1/securitytokens?apikey=y6pWAJNyJyjGv66IsVuWnklkKUPFbb0a&js_security_key=js-6125e57ce5c46e10087a545b9e9d7354c23e1a1670d9e9c7&ta_token=NOIW&auth=true&callback=Payeezy.callback&type=FDToken&credit_card.type=visa&credit_card.cardholder_name=John%20Smith&credit_card.card_number=4788250000028291&credit_card.exp_date=1030&credit_card.cvv=123
Regards,
Payeezy Team
when i use payeezy with credit card it shows the error like "SSL connect error"
In the sandbox environment you must negotiate the secure handshake with our servers using ONLY TLS 1.2. Any other SSL or TLS protocols will cause an SSL connection error. It will be mandatory in the production environment tentatively on 2/10.