我们如何使用EMV读卡器追踪Authorize.Net销售点的交易。它是否支持任何webhook功能特点?
我需要得到以下细节
一个Webhook发生无论付款的来源。因此,EMV读卡器进行的支付将有一个webhook与他们相关联。
但是,所有你正在寻找的细节将是 不 是在webhook本身。该webhook会让您的系统知道该交易,并包含一个交易ID。然后,您可以使用该交易ID与他们的 交易报告API 来检索与该交易相关的任何信息。
在交易细节响应中,我确实看到了一个发票号码的字段,但没有PO号码或客户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."
}
]
}
}