[英]Authorize.Net CardPresentVoid not initializing properly
這是此問題的第二部分,這里https://stackoverflow.com/questions/17922957/authorize-net-works-in-sandbox-but-not-in-production-code我認為這是相同的問題,只是將其包裹起來我不是想分開這些問題嗎?
從生產代碼中的照片中可以看到,AuthorizeNet.CardPresentVoid對象未正確初始化。 但是,在沙盒代碼中可以。 這遠遠超出了我的歲數。任何人都有線索嗎?
這是代碼(減去實際值)
AuthorizeNet.CardPresentVoid cpv = new AuthorizeNet.CardPresentVoid(TransactionID);
var cpg = new AuthorizeNet.CardPresentGateway(LoginID, TransactionKey, true);
AuthorizeNet.IGatewayResponse response = cpg.Send(cpv);
抱歉,照片很明顯,但是如果您嘗試在VS中消失,則屏幕截圖中的信息會消失
問題是我指向的是不同的DLL版本。 在我的沙箱中,我指向1.7.0,在生產代碼中,我指向1.3.0
當我將生產代碼指向1.7.0 dll時,它工作正常
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.