【发布时间】:2016-10-27 12:51:46
【问题描述】:
我有一些使用 Authorize.NET 支付网关的 AIM 方法的 ColdFusion 应用程序。该方法使用通过 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 的 Windows 2012 服务器。
【问题讨论】:
标签: coldfusion payment-gateway authorize.net akamai