Postilion eSocket.POS 结构化 xml 数据标签 [英] Postilion eSocket.POS Structured xml data Tags
问题描述
美好的一天.我希望有人可以帮助我.我们被要求在进行电子卡支付时对我们的 POS 系统进行更改.我们被要求通过结构化 xml 将交易的唯一 GUID 包含到 eSocket.POS.我们为创建请求而生成的当前 xml 工作正常,但是一旦我将结构化 xml 元素包含到末尾,我在执行请求时就会收到错误.
Good day. i am hoping that someone could perhaps help me. We have been requested to make changes to our POS system when doing Electronic card payments. we have been requested to include a unique GUID for the transaction via structured xml to eSocket.POS. the current xml that we generate to create the request works correctly, but as soon as i include the structured xml element to the end i receive errors when doing the request.
这是我要添加的行
<Esp:StructuredData Name=\"TenderDetailGUID\" Value=\"BE6924AC-1379-49F8-9BE7-7A54821EF227\" ></Esp:StructuredData>
这是正在生成的原始 xml,它可以工作
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<Esp:Interface Version=\"1.0\" xmlns:Esp=\"http://www.mosaicsoftware.com/Postilion/eSocket.POS/\">
<Esp:Transaction PosOperatorId=\" 001\" RetrievalRefNr=\"0001\" TerminalId=\"0001\" TransactionAmount=\"10\" TransactionId=\"001\" Type=\"PURCHASE\" ></Esp:Transaction>
</Esp:Interface>
这是我附加的内容(产生错误)
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<Esp:Interface Version=\"1.0\" xmlns:Esp=\"http://www.mosaicsoftware.com/Postilion/eSocket.POS/\">
<Esp:Transaction PosOperatorId=\" 001\" RetrievalRefNr=\"001\" TerminalId=\"001\" TransactionAmount=\"10\" TransactionId=\"001\" Type=\"PURCHASE\" ></Esp:Transaction>
<Esp:StructuredData Name=\"TenderDetailGUID\" Value=\"BE6924AC-1379-49F8-9BE7-7A54821EF227\" ></Esp:StructuredData>
</Esp:Interface>
我收到的错误如下:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<Esp:Interface Version=\"1.0\" xmlns:Esp=\"http://www.mosaicsoftware.com/Postilion/eSocket.POS/\"><Esp:Error ActionCode=\"DECLINE\" ResponseCode=\"30\" MessageReasonCode=\"9791\" Description=\"The content of element type "Esp:Interface" must match "(Esp:Admin|Esp:Error|Esp:Transaction|Esp:Inquiry|Esp:Check|Esp:Merchandise|Esp:Callback|Esp:Event|Esp:Reconciliation|Esp:Network)".\" /></Esp:Interface>
我从以前的开发人员那里接手了这个 POS 开发,并且没有体验过 eSocket.POS.
i have taken this POS development over from a previous developer and have no eSocket.POS experiencing.
如果有人能帮我解决这个问题,我将不胜感激.
i would really appreciate it if any one could help me with this.
推荐答案
美好的一天.我已经通过查看 .dtd 文件了解 xml 的预期格式.对于任何可能感兴趣的人,这是必需的格式.
Good day. i have figured it out by looking at the.dtd file for the expected format of the xml. for anyone who may be interested, this is the required format.
<Transaction TerminalId="" TransactionId="" Type="PURCHASE" MessageType="AUTH" ForceOnline="TRUE" Reversal="TRUE" DateTime="" LocalTime="" LocalDate="" ExtendedTransactionType="" AmountTransactionFee="" CardVerificationResult="" BusinessDate="" RetrievalRefNr="" PosOperatorId="" CardNumber="" StartDate="" ExpiryDate="" CardSequenceNumber="" Cvv2="" Track1="" Track2="" Track3="" PanEntryMode="" PosCondition="" TransactionAmount="" CashbackAmount="" CurrencyCode="" ExtendedPaymentPeriod="" Account="" PinData="" PinKeySequenceNr="" FinalAmount="" MessageReasonCode="" ResponseCode="" PrivateData="" AuthorizationNumber="" CardholderAddress="" PostalCode="" SignatureData="" SignatureFormat="" ChainedTransactionId="" ActionCode="APPROVE" AuthorizingAgent="" AuthorizationProfile="" ServiceRestrictionCode="" CardProductName="" CardholderName="" MerchantId="" ReferralTelephone="" CardholderInformation="" SignatureRequired="TRUE" AddressVerificationResult="" EmvAmount="" EmvAmountOther="" EmvApplicationIdentifier="" EmvApplicationInterchangeProfile="" EmvApplicationLabel="" EmvApplicationPreferredName="" EmvApplicationTransactionCounter="" EmvApplicationUsageControl="" EmvApplicationVersionNumber="" EmvAuthorizationResponseCode="" EmvCryptogram="" EmvCryptogramInformationData="" EmvCvmList="" EmvCvmResults="" EmvInterfaceDeviceSerialNumber="" EmvIssuerActionCodeDefault="" EmvIssuerActionCodeDenial="" EmvIssuerActionCodeOnline="" EmvIssuerApplicationData="" EmvIssuerCodeTableIndex="" EmvIssuerScriptResults="" EmvTerminalApplicationVersionNumber="" EmvTerminalCapabilities="" EmvTerminalCountryCode="" EmvTerminalType="" EmvTerminalVerificationResult="" EmvTransactionCategoryCode="" EmvTransactionCurrencyCode="" EmvTransactionDate="" EmvTransactionSequenceCounter="" EmvTransactionStatusInformation="" EmvTransactionType="" EmvUnpredictableNumber="" FallbackType="" RPS="">
<Esp:PurchasingCardData/>
<Esp:Balance/>
<Esp:PosStructuredData/>
<Esp:StructuredData/>
</Transaction>
这篇关于Postilion eSocket.POS 结构化 xml 数据标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!