如何使用EMV读卡器跟踪 Authorize.Net 销售点交易



如何使用EMV读卡器跟踪 Authorize.Net 销售点交易。它是否支持任何网络钩子功能特性?

我需要获得以下详细信息

  1. 发票编号
  2. 采购订单编号
  3. 支付金额
  4. 客户编号

无论付款的来源如何,都会发生Webhook。因此,EMV读卡器进行的付款将具有与之关联的网络钩子。

但是,您正在寻找的所有细节都不会在 webhook 本身中。Webhook 将让您的系统了解交易并包含交易 ID。然后,您可以将该事务 ID 与其事务报告 API 一起使用,以检索与该事务关联的任何信息。

查看"交易详细信息"响应,我确实看到了"发票编号"字段,但没有看到"采购订单编号"或"客户 ID"字段。如果您的系统可以发送交易描述,则可以将它们放入"描述"字段中。否则,您将需要自行跟踪此信息。

该调用将getTransactionDetailsRequest,类似于:

{
"getTransactionDetailsRequest":{
"merchantAuthentication":{
"name":"",
"transactionKey":""
},
"transId":"2162566217"
}
}

响应为

{
"transaction":{
"transId":"2162566217",
"submitTimeUTC":"2011-09-01T16:30:49.39Z",
"submitTimeLocal":"2011-09-01T10:30:49.39",
"transactionType":"authCaptureTransaction",
"transactionStatus":"settledSuccessfully",
"responseCode":1,
"responseReasonCode":1,
"responseReasonDescription":"Approval",
"authCode":"JPG9DJ",
"AVSResponse":"Y",
"batch":{
"batchId":"1221577",
"settlementTimeUTC":"2011-09-01T16:38:54.52Z",
"settlementTimeUTCSpecified":true,
"settlementTimeLocal":"2011-09-01T10:38:54.52",
"settlementTimeLocalSpecified":true,
"settlementState":"settledSuccessfully"
},
"order":{
"invoiceNumber":"60",
"description":"Auto-charge for Invoice #60"
},
"requestedAmountSpecified":false,
"authAmount":1018.88,
"settleAmount":1018.88,
"prepaidBalanceRemainingSpecified":false,
"taxExempt":false,
"taxExemptSpecified":true,
"payment":{
"creditCard":{
"cardNumber":"XXXX4444",
"expirationDate":"XXXX",
"cardType":"MasterCard"
}
},
"customer":{
"typeSpecified":false,
"id":"4"
},
"billTo":{
"phoneNumber":"(619) 274-0494",
"firstName":"Matteo",
"lastName":"Bignotti",
"address":"625 BroadwaynSuite 1025",
"city":"San Diego",
"state":"CA",
"zip":"92101",
"country":"United States"
},
"recurringBilling":false,
"recurringBillingSpecified":true,
"product":"Card Not Present",
"marketType":"eCommerce"
},
"messages":{
"resultCode":"Ok",
"message":[
{
"code":"I00001",
"text":"Successful."
}
]
}
}

最新更新