Authorize.net API对getTransactionDetails
调用返回了很多,但没有迹象表明该事务是CREDIT还是DEBIT类型。我可以看到交易金额,但似乎总是积极的。
我想获得DEBIT / CREDIT标志或任何其他有关如何获得它的建议。
以下是getTransactionDetails
电话的示例:
[messages] => SimpleXMLElement Object
(
[resultCode] => Ok
[message] => SimpleXMLElement Object
(
[code] => I00001
[text] => Successful.
)
)
[transaction] => SimpleXMLElement Object
(
[transId] => 123456789
[submitTimeUTC] => 2015-07-22T10:36:54.413Z
[submitTimeLocal] => 2015-07-22T09:36:54.413
[transactionType] => authCaptureTransaction
[transactionStatus] => settledSuccessfully
[responseCode] => 1
[responseReasonCode] => 1
[responseReasonDescription] => Approval
[authCode] => 143500
[AVSResponse] => Y
[batch] => SimpleXMLElement Object
(
[batchId] => 330390000
[settlementTimeUTC] => 2015-07-23T00:45:46.757Z
[settlementTimeLocal] => 2015-07-22T12:45:46.757
[settlementState] => settledSuccessfully
)
[order] => SimpleXMLElement Object
(
[invoiceNumber] => 0002
)
[authAmount] => 1.39
[settleAmount] => 1.39
[taxExempt] => false
[payment] => SimpleXMLElement Object
(
[creditCard] => SimpleXMLElement Object
(
[cardNumber] => XXXX2211
[expirationDate] => XXXX
[cardType] => Visa
)
)
[billTo] => SimpleXMLElement Object
(
[firstName] => John
[lastName] => Doe
[company] => Food Ind., LLC
[address] => 221b Baker Street
[city] => New York
[state] => New York
[zip] => 10004
[country] => USA
)
[shipTo] => SimpleXMLElement Object
(
[firstName] => John
[lastName] => Doe
[company] => Food Ind., LLC
[address] => 221b Baker Street
[city] => New York
[state] => New York
[zip] => 10004
[country] => USA
)
[recurringBilling] => false
[product] => Card Not Present
[marketType] => eCommerce
)
答案 0 :(得分:1)
总是信用,因为Authorize.Net 不处理基于PIN的借记卡。基于PIN的借记卡通过信用卡处理世界之外的完全不同的系统。带有Visa或MasterCard徽标的银行卡在没有PIN码时使用的信用卡和借记卡。但是当用作信用卡时,它们并不特别,并且不会像名片和奖励卡那样被注意到。
答案 1 :(得分:0)
我写信给Authorize.net支持,他们接下来回答:
每当收取费用存入您的帐户时,其状态应为“已成功结算”。对于从您的银行帐户中移除资金的费用,状态将在交易状态中显示为“退款”。
因此,如果交易状态是“已结算” - 这是货币到账的交易。如果状态为“退款” - 这是货币从帐户中转出的交易。