我有一些ColdFusion应用程序,它们使用Authorize.Net的支付网关的AIM方法。该方法使用通过CFHTTP标记传递的表单字段。
不久前,我们了解到AIM的端点将发生变化,如下所示:
https://secure.authorize.net/gateway/transact.dll
要这样做:
https://secure2.authorize.net/gateway/transact.dll
在几次失败的尝试之后,我们让它工作了。我们必须将委托证书绑定到ColdFusion应用服务器。
在过去的几个月里,"secure2“端点一直运行得很好。
然后在6月12日和6月15日之间的某个时候,订单停止处理。我们进行了调查,发现发生了连接故障。对于临时解决方案,我们将应用程序切换回“安全”端点。
我们目前不确定6月30日之后会发生什么,我们团队中的一些人认为不会发生任何事情,另一些人认为所有付款都会停止。
有没有其他ColdFusion开发人员已经弄清楚为什么"secure2“端点会给我带来问题。
下面是我的代码的简化版本
<cfset postToThisURL = "https://secure.authorize.net/gateway/transact.dll">
<cfset testTrans = "FALSE">
<cfhttp method="Post" url="#postToThisURL#">
<cfhttpparam type="Formfield" name="x_login" value="#authLoginID#">
<cfhttpparam type="Formfield" name="x_tran_key" value="#hashingKey#">
<cfhttpparam type="Formfield" name="x_version" value="3.1">
<cfhttpparam type="Formfield" name="x_type" value="AUTH_CAPTURE">
<cfhttpparam type="Formfield" name="x_method" value="CC">
<cfhttpparam type="Formfield" name="x_recurring_billing" value="FALSE">
<cfhttpparam type="Formfield" name="x_amount" value="#chargeTotal#">
<cfhttpparam type="Formfield" name="x_test_request" value="#testTrans#">
<cfhttpparam type="Formfield" name="x_duplicate_window" value="0">
<cfhttpparam type="Formfield" name="x_invoice_num" value="#left(invoiceNumber,20)#">
<cfhttpparam type="Formfield" name="x_description" value="#descriptionTxt# - #dateFormat(now(),'mm/dd/yyyy')#">
<cfhttpparam type="Formfield" name="x_customer_ip" value="#userIP#">
<cfhttpparam type="Formfield" name="x_delim_data" value="TRUE">
<cfhttpparam type="Formfield" name="x_delim_char" value="|">
<cfhttpparam type="Formfield" name="x_encap_char" value="">
<cfhttpparam type="Formfield" name="x_relay_response" value="FALSE">
<cfhttpparam type="Formfield" name="x_first_name" value="#left(listFirst(tempBuyer.ccName,' '),50)#">
<cfhttpparam type="Formfield" name="x_last_name" value="#left(listRest(tempBuyer.ccName,' '),50)#">
<cfhttpparam type="Formfield" name="x_address" value="#tempBuyer.ccAddress#">
<cfhttpparam type="Formfield" name="x_city" value="#tempBuyer.ccCity#">
<cfhttpparam type="Formfield" name="x_state" value="#tempBuyer.ccState#">
<cfhttpparam type="Formfield" name="x_zip" value="#tempBuyer.ccZip#">
<cfhttpparam type="Formfield" name="x_phone" value="#tempBuyer.ccPhone#">
<cfhttpparam type="Formfield" name="x_email" value="#tempBuyer.ccEmail#">
<cfhttpparam type="Formfield" name="x_card_num" value="#tempCardInfo.ccNumber#">
<cfhttpparam type="Formfield" name="x_exp_date" value="#tempCardInfo.ccExpireMo##tempCardInfo.ccExpireYr#">
<cfhttpparam type="Formfield" name="x_card_code" value="#tempCardInfo.ccSecurity#">
</cfhttp>这是从HTTP响应返回的消息。
Error Detail: Connect Exception: Connect to secure2.authorize.net:443 [secure2.authorize.net/23.218.121.147] failed: Connection timed out: connect
File Content: Connection Failure
Statuscode: Connection Failure. Status code unavailable.
Mimetype: Unable to determine MIME type of file.环境是安装了ColdFusion 10的Windows2012服务器。
发布于 2016-06-25 20:35:37
消息:
连接到secure2.authorize.net:443 secure2.authorize.net/23.218.121.147失败:连接超时:连接
告知您HTTP客户端(<cfhttp>)无法与指定主机( url属性中的secure2.authorize.net)的解析IP (23.218.121.147)建立连接。
我假设主机名解析(DNS)指向一个旧IP (23.218.121.147)。确保目标IP正确(解析来自不同网络的主机或咨询Authorize.NET支持)。此外,尝试使用IP而不是主机名(用于测试目的),如下所示:https://23.218.121.147/gateway/transact.dll
https://stackoverflow.com/questions/38021235
复制相似问题