【发布时间】:2020-08-28 05:42:05
【问题描述】:
我们如何使用 EMV 读卡器跟踪 Authorize.Net 销售点交易。它是否支持任何 webhook 功能特性?
我需要获取以下详细信息
- 发票号码
- 采购订单编号
- 支付金额
- 客户 ID
【问题讨论】:
标签: webhooks authorize.net emv pos
我们如何使用 EMV 读卡器跟踪 Authorize.Net 销售点交易。它是否支持任何 webhook 功能特性?
我需要获取以下详细信息
【问题讨论】:
标签: webhooks authorize.net emv pos
无论付款来源如何,都会发生 Webhook。因此,EMV 读卡器进行的付款将有一个与之关联的 webhook。
但是,您要查找的所有细节不会在 webhook 本身中。 Webhook 将让您的系统了解交易并包含交易 ID。然后,您可以使用该交易 ID 和他们的Transaction Reporting 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 Broadway\nSuite 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."
}
]
}
}
【讨论】: