【发布时间】:2016-12-12 20:55:51
【问题描述】:
我正在尝试将经典的 asp 站点集成到 SagePay 3.00 中,但无法通过状态详细信息:5080:表单交易注册失败错误。 我一直在使用 Sage 提供的示例检查我的加密(使用 Sage 改编的 rijndael.asp 文件),我得到的输出略有不同,即大约前 25% 的输出与 Sage 的示例匹配。除非有人能提出更好或更可靠的生成加密文件的方法,否则不确定从哪里开始。
我正在加密的文本(不与 SagePay 的测试数据进行比较时)是:
spCryptTxt = "VendorTxCode="& datediff("s",DateValue("September 11, 1963"),now()) & "-" & session("****SessionId") & "&Amount=" & formatNumber(rs("totalCost"),2)_
& "&Currency=GBP"_
& "&Description=***Conferenceregistration"_
& "&CustomerName=" & rs("firstname") & rs("surname")_
& "&CustomerEMail=" & rs("email")_
& "&BillingSurname=" & rs("surname")_
& "&BillingFirstnames=" & rs("firstname")_
& "&BillingAddress1=" & rs("contactAddress1")_
& "&BillingCity=" & rs("contactCity")_
& "&BillingPostCode=" & rs("contactPostcode")_
& "&BillingCountry=GB"_
& "&DeliveryFirstnames=" & rs("firstname")_
& "&DeliverySurname=" & rs("surname")_
& "&DeliveryAddress1=" & rs("contactAddress1")_
& "&DeliveryCity=" & rs("contactCity")_
& "&DeliveryPostCode=" & rs("contactPostcode")_
& "&DeliveryCountry=GB"_
& "&SuccessURL=http://www.*****.com/****/success.asp"_
& "&FailureURL=http://www.*****.com/****//failure.asp"
这总是给出 5080 错误。 救命!
【问题讨论】:
-
那么
spCryptTxt的值是多少?这就是这里的重点。 -
抱歉 - 并不是要发布实际的 txt:value="VendorTxCode=1680647122-929896259&Amount=172.00&Currency=GBP&Description=****Conferenceregistration&CustomerName=robt&CustomerEMail=rob@****.com&BillingSurname= tay**n&BillingFirstnames=rob&BillingAddress1=****re&BillingCity=Bewdley&BillingPostCode=D****Y&BillingCountry=GB&DeliveryFirstnames=rob&DeliverySurname=ta*****n&DeliveryAddress1=****e&DeliveryCity=Bewdley&DeliveryPostCode=D****Y&DeliveryCountry=GB&SuccessURL =www.****.com/success.asp&FailureURL=www.****.com/failure.asp"
-
编辑你的问题,不要把它放在 cmets 中。
标签: encryption aes opayo