gpt4 book ai didi

c# - 对 cybersource 的无效交易尝试给出错误

转载 作者:太空狗 更新时间:2023-10-30 01:22:44 25 4
gpt4 key购买 nike

我正在使用 cybersource SOAP 工具包 API 来执行事务。交易捕获工作正常,但每当我尝试取消交易时,我都会收到响应代码 246:“您请求取消无法取消的交易类型”。为什么会这样?我已经包含了作废交易所需的所有参数

 RequestMessage request = new RequestMessage();
request.voidService = new VoidService();
request.voidService.run = "true";
request.voidService.voidRequestID = "value";
request.voidService.voidRequestToken = "value";
request.merchantID = "value";
request.merchantReferenceCode = "value";
TransactionProcessorClient proc = new TransactionProcessorClient();
proc.ChannelFactory.Credentials.UserName.UserName
= "merchantID";
proc.ChannelFactory.Credentials.UserName.Password
= "password";

ReplyMessage reply = proc.runTransaction(request);

最佳答案

我遇到了同样的问题。基本上,错误 246 意味着 the capture information has already been sent to the payment processor .根据Cybersource server release notes :

A transaction can be voided only if we have not already submitted the information to your processor. Usually we submit that type of information to your processor once a day, so your window for successfully performing a void is relatively small. We will decline your void request if we have already sent the transaction information to the processor.

如果您在 Cyber​​source 沙箱上测试 void(就像我一样),我认为正在发生的事情是,由于沙箱是一个测试环境并且付款实际上并未发送到付款处理器,Cyber​​source 将捕获视为它们被立即发送到支付处理器,因此在沙盒环境中无效捕获永远不会起作用。

但是,我做了一些假设,但我找不到任何文档来证实这一点。

关于c# - 对 cybersource 的无效交易尝试给出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12949395/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com