授权.net付款交易ID和退款交易ID对于一个订单是不同的或相同的 [英] Authorization .net Payment Transaction Id and refund Transaction Id are different or same for one order

查看:116
本文介绍了授权.net付款交易ID和退款交易ID对于一个订单是不同的或相同的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,



i我正在使用授权.net支付网关,我下了一个生成交易ID的订单(例如:24456789)然后我选择退款生成不同的订单

交易ID(例如:24456890)。



同样的订单我有两个交易ID,是否正确。



我怎么能查找以上示例的订单信息

hi friends,

i am using Authorization .net Payment gateway ,I placed an Order that generate a Transaction Id (ex: 24456789) then i select refund the same order that generate different
Transaction id(ex:24456890).

for same order i have two Transaction id, Is it correct or not.

How can i find order information for the above example

推荐答案

ThePhantomUpvoter可能是正确的,但您应该了解一个基本的事情:1)订单不是交易,2)订单可能(并且可能必须)涉及多个交易。



您需要了解交易的性质:这是一些处理单位,应该保证原子性和在系统的开始和结束时保持系统的完整性。换句话说,这应该总是完成,成功或不成功,整个系统在交易结束时保持其完整性。



例如,如果你收到退款,这笔款项从付款人的帐户中扣除并添加到您的帐户中。交易保证没有钱离开付款人账户但没有到达收款人账户的情况。请参阅:

http://en.wikipedia.org/wiki/Transaction [< a href =http://en.wikipedia.org/wiki/Transactiontarget =_ blanktitle =New Window> ^ ],

http://en.wikipedia.org/wiki/Financial_transaction [ ^ ],

http://en.wikipedia.org/wiki/Atomicity_%28programming%29 [ ^ ],

http ://en.wikipedia.org/wiki/Atomicity_%28database_systems%29 [ ^ ],

http://en.wikipedia.org/wiki/Transaction_processing [ ^ ],

http://en.wikipedia.org/ wiki / Atomic_transaction [ ^ ],

http://en.wikipedia.org/wiki/Database_transaction [ ^ ]。



所以,有单独交易退款没有错;这可能是不可避免的。至于订单及其完整性,系统应该生成与每个订单相关联的另一个ID。



-SA
ThePhantomUpvoter is probably right, but you should understand one basic thing: 1) order is not a transaction, 2) an order may (and probably has to) involve more than one transaction.

You need to understand the nature of transaction: this is some unit of processing which is supposed to guarantee atomicity and keep integrity of the system in the beginning and the end of it. In other words, this is something which should always finish, successfully or not, and the whole system preserves its integrity at the end of transaction.

For example, if you receive refund money, the money is subtracted from payer's account and added to your account. The transaction guarantees that there is no situations when money leave payer's account but not arrived to payee's account. Please see:
http://en.wikipedia.org/wiki/Transaction[^],
http://en.wikipedia.org/wiki/Financial_transaction[^],
http://en.wikipedia.org/wiki/Atomicity_%28programming%29[^],
http://en.wikipedia.org/wiki/Atomicity_%28database_systems%29[^],
http://en.wikipedia.org/wiki/Transaction_processing[^],
http://en.wikipedia.org/wiki/Atomic_transaction[^],
http://en.wikipedia.org/wiki/Database_transaction[^].

So, there is nothing wrong with having a separate transaction for your refund; this is probably even unavoidable. As to the order and its integrity, the system should generate another ID associated with each order.

—SA


这篇关于授权.net付款交易ID和退款交易ID对于一个订单是不同的或相同的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆