我正在整合一些電子商務網站到不同的銀行,並決定最簡單的方法是在dotnetcharge(www.dotnetcharge.com)庫中添加。它運作良好,意味着我可以保持我的大部分代碼對於每個銀行類型和交易都是一樣的。然而,他們的支持有點糟糕(發送了4封電子郵件,1封回覆),我對3D安全問題感到困惑不解。3D使用dotnetcharge安全處理問題
有沒有人有使用dotnetcharge和3D Secure的經驗?我已經設置了MerchantURL並出現了實際的3D安全屏幕 - 但我不確定如何讓系統正常流動。有沒有人有正確的方向的任何代碼示例,甚至指針?否則,有誰知道如何讓支持迴應!
這種特殊的集成與SagePay,它也有上帝糟糕的文檔和支持。
參考代碼如下;
Dim Amount As Decimal = ordertotal
' ApplySecure3D options:
' 0 = If 3D-Secure checks are possible and rules allow, perform the checks and apply the authorization rules.
' 1 = Force 3D-Secure checks for this transaction only (if your account is 3D-enabled) and apply rules for authorization.
' 2 = Do not perform 3D-Secure checks for this transaction only and always authorize.
' 3 = Force 3D-Secure checks for this transaction (if your account is 3D-enabled) but ALWAYS obtain an auth code, irrespective of rule base.
Dim ProtxLogin As String = "xxx"
Dim ProtxPassword As String = "xxx"
Dim ProtxApply3DSecure As Integer = 1
Dim ProtxMerchantURL As String = "https://www.mydomain.com/processing/"
Dim Number As String = txtCardNo.Text '//luhn/mod10 here.
Dim AVS As String = txtCVN.Text
Dim DD As String = "01"
Dim MM As String = ddlValidTo_month.SelectedValue.ToString()
Dim YY As String = ddlValidTo_year.SelectedValue.ToString()
Dim ProcessingResult As Integer = 0
Dim Protx As New dotnetCHARGE.CC()
Protx.Login = ProtxLogin
Protx.Password = ProtxPassword
Protx.ApplySecure3D = ProtxApply3DSecure
Protx.MerchantUrl = ProtxMerchantURL
Dim AVSResponse As String = ""
Dim CVV2 As String = ""
Protx.OrderID = GoogleOrderNumber
Protx.Month = MM
Protx.Year = YY
Protx.TransactionType = dotnetCHARGE.TransactionType.Sale
Protx.Amount = ordertotal
Protx.Number = Number
Protx.Currency = "GBP"
Protx.CustomerID = CustomerId
'//loads of params removed for brevity
Protx.ClientIP = Request.UserHostAddress.ToString()
Protx.CardType = ddlCardType.SelectedValue.ToString()
Protx.Description = "My Order"
Protx.Code = AVS
Protx.TestMode = True
Protx.TransactionType = dotnetCHARGE.TransactionType.Sale
ProcessingResult = Protx.Charge(Processor.Protx)
幫助感謝。
恕我直言 - 我不會推薦dotnetcharge。我發現他們的產品是低標準的,支持粗魯和文檔差。 – Robs 2010-08-28 15:00:43
作爲對此的後續行動;路西法我完全同意你的看法。 dotnetcharge的支持是一個完全的笑話,它們會讓客戶感覺到他們「在路上」或「浪費他們的時間」。 – dooburt 2010-11-02 14:21:02