{"title":"Get transaction data from TxStoreReport","category":"default","creationDate":1776961627,"content":"<h2 id=\"peddevice-object\">PedDevice Object<\/h2>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/com-extension-for-windows-objects\/peddevice\">PedDevice<\/a><\/td>\n<td>PED object representing the terminal.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"method\">Method<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 15%\"><col style=\"width: 84%\"><\/colgroup><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>GetTxStoreReport<\/code><\/p>\n<\/td><td>\n<p>Used to retrieve the <code>TxStoreReport<\/code> object, which contains results from past transactions.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"parameters\">Parameters<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 19%\"><col style=\"width: 9%\"><col style=\"width: 6%\"><col style=\"width: 65%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th><p>Type<\/p><\/th><th><p>Required<\/p><\/th><th><p>Description<\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>tenderReference<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/p>\n<\/td><td>\n<p>Reference for the tender. Specify a <code>tenderReference<\/code> to return a report for that tender.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>maxTransaction<\/code><\/p>\n<\/td><td>\n<p>Long<\/p>\n<\/td><td>\n<p><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/p>\n<\/td><td>\n<p>Number of transaction reports to return.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"callback\">Callback<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 25%\"><col style=\"width: 74%\"><\/colgroup><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>TxStoreReportCB<\/code><\/p>\n<\/td><td>\n<p>Callback to <code>GetTxStoreReport<\/code> that provides the reports.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"parameters-1\">Parameters<\/h2>\n<table style=\"width:93%;\"><colgroup><col style=\"width: 19%\"><col style=\"width: 9%\"><col style=\"width: 65%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th><p>Type<\/p><\/th><th><p>Description<\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>reportObj<\/code><\/p>\n<\/td><td>\n<p><a href=\"\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/com-extension-for-windows-objects\/txstorereport\">TxStoreReport<\/a><\/p>\n<\/td><td>\n<p>The <code>TxStoreReport<\/code> object that contains the reports.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>pedResult<\/code><\/p>\n<\/td><td>\n<p>int<\/p>\n<\/td><td>\n<p>Result denoting whether an error occurred on the PED.\u00a0A value of 0 means no error occurred.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>pspResult<\/code><\/p>\n<\/td><td>\n<p>int<\/p>\n<\/td><td>\n<p>Result denoting whether an error occurred on the PSP.\u00a0A value of 0 means no error occurred.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>libResult<\/code><\/p>\n<\/td><td>\n<p>int<\/p>\n<\/td><td>\n<p>Result denoting whether an error occurred in the Library. A value of 0 means no error occurred.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>errorMessage<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p>Error message describing what went wrong.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"txstorereport-parameters\">TxStoreReport Parameters<\/h2>\n<table><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th><p>Type<\/p><\/th><th><p>Description<\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>tenderReference<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p>Reference for the tender. Specify a\u00a0<code>tenderReference<\/code>\u00a0to return a report for that tender.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>currency<\/code><\/p>\n<\/td><td>\n<p>string<\/p>\n<\/td><td><p>The transaction currency<br>\n<\/p><\/td><\/tr><tr><td>\n<p><code>amount<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><td>\n<p>The transaction amount in minor units (100 is 1.00 with EUR).<ul><li markdown=\"1\">For a normal authorization, this contains the authorized amount.<\/li><li markdown=\"1\">For a partial authorization, this contains the authorized amount.<\/li><li markdown=\"1\">For a DCC transaction, this contains the pre-DCC total.<\/li><\/ul><\/p>\n<\/td><\/tr><tr><td>\n<p><code>referenceAmount<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>The transaction amount in minor units (100 is 1.00 with EUR).\u00a0<ul><li markdown=\"1\">For a normal authorization, this field is empty.<\/li><li markdown=\"1\">For a partial authorization, this contains the initial amount.<\/li><li markdown=\"1\">For a DCC transaction, this contains the final, post-conversion, total.<\/li><\/ul><p><br><br \/>\n<\/p><\/p>\n<\/td><\/tr><tr><td>\n<p><code>timestamp<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p>The date and time at which the tender was created.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>state<\/code><\/p>\n<\/td><td>\n<p>Transaction.TenderState<\/p>\n<\/td><td>\n<p>The state of the transaction.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>capturePending<\/code><\/p>\n<\/td><td>\n<p>boolean<\/p>\n<\/td><td>\n<p>Is set to true if a pending transaction exists on the PED, to be sent to the plataforma de pagamentos da Adyen and captured.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<p>An extended report also contains:<\/p>\n<table><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th><p>Type<\/p><\/th><th><p>Description<\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>merchantReference<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p>The transaction reference provided by the Merchant (reported in the plataforma de pagamentos da Adyen).<\/p>\n<\/td><\/tr><tr><td>\n<p><code>pspReference<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p>Adyen's unique 16-character string associated with the transaction\/the request.\u00a0<div class=\"sc-notice warning\"><div><\/p>\n<p>A <code>pspReference<\/code> and <code>authCode<\/code> will not be visible if the transaction was performed offline.<\/p>\n<\/div><\/div>\n<\/td><\/tr><tr><td>\n<p><code>maskedPan<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p>The PAN, masked so that sensitive information is not visible. The first six and last four digits are the maximum number of digits to be displayed.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>posEntryMode<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p>POS entry mode (ICC\/MSR\/MKE\/CLESS_CHIP\/CLESS_SWIPE).<\/p>\n<\/td><\/tr><tr><td>\n<p><code>receiptSets<\/code><\/p>\n<\/td><td>\n<p>List<receiptset><\/receiptset><\/p>\n<\/td><td>\n<p>Set used to hold\u00a0a list of receipt information.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<p>Some helper methods are provided in the reportObj:<\/p>\n<h2 id=\"helper-methods-and-parameters\">Helper methods and parameters<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 18%\"><col style=\"width: 7%\"><col style=\"width: 4%\"><col style=\"width: 48%\"><col style=\"width: 11%\"><col style=\"width: 9%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th><p>Input Parameters<\/p><\/th><th>Type<\/th><th><p>Description<\/p><\/th><th>Returned Parameters<\/th><th>Type<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>GetRequestedTenderReference<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns the specified tender reference.<\/p>\n<\/td><td>\n<p><code>tenderReference<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetRequestedMaxTransaction<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Number of transaction reports to return.<\/p>\n<\/td><td>\n<p><code>maxTransaction<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetReportCount<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns the number of reports in the TXStoreReport object.<\/p>\n<\/td><td>\n<p><code>reportCount<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetReport<\/code><\/p>\n<\/td><td>\n<p><code>reportId<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><td>\n<p>Returns an report object which contains the specified report.<\/p>\n<\/td><td>\n<p><code>reportObj<\/code><\/p>\n<\/td><td>\n<p>TxStoreReport<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetTenderReference<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns tender reference for the transaction.<\/p>\n<\/td><td>\n<p><code>tenderReference<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetState<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns the state of the transaction.<\/p>\n<\/td><td>\n<p><code>state<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetTimestamp<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns the time the transaction was processed.<\/p>\n<\/td><td>\n<p><code>timestamp<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetCapturePending<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns transaction where the capture is still pending.<\/p>\n<\/td><td>\n<p><code>pending<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetAmount<\/code><\/p>\n<\/td><td>\n<p><code>currency<\/code><\/p>\n<\/td><td>\n<p>Variant<\/p>\n<\/td><td>\n<p>Returns the transaction amount in the specified currency.<\/p>\n<\/td><td>\n<p><code>value, currency<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetMerchantReference<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns the merchant reference for the transactions<\/p>\n<\/td><td>\n<p><code>reference<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetPspReference<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns the PSP reference for the transactions<div class=\"sc-notice warning\"><div><\/p>\n<p>A <code>pspReference<\/code> and <code>authCode<\/code> will not be visible if the transaction was performed offline.<\/p>\n<\/div><\/div>\n<\/td><td>\n<p><code>reference<\/code>\u00a0<\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetMaskedPan<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>The PAN associated with the transaction, masked such that only personnel with a legitimate business need can see the full PAN.\u00a0<\/p>\n<\/td><td>\n<p><code>maskPan<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetPosEntryMode<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns the entry mode used, ICC, magstripe, NFC, or MKE.<\/p>\n<\/td><td>\n<p><code>mode<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetReceiptCount<\/code><\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>\u00a0<\/p>\n<\/td><td>\n<p>Returns the number of receipts stored in the TxStoreReport<\/p>\n<\/td><td>\n<p><code>receiptTotal<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><\/tr><tr><td>\n<p><code>GetReceipt<\/code><\/p>\n<\/td><td>\n<p><code>receiptId<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><td>\n<p>Returns up to 25 receipts, or a specific receipt if you specify an ID.<\/p>\n<\/td><td>\n<p><code>receiptsObj<\/code><\/p>\n<\/td><td>\n<p>Receipts<\/p>\n<\/td><\/tr><\/tbody><\/table>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension\/get-transaction-data-from-txstorereport-com","articleFields":{"id":"25147319","type":"page","_expandable":{"operations":""},"status":"current"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension\/get-transaction-data-from-txstorereport-com","title":"Get transaction data from TxStoreReport","content":"PedDevice Object\n\n\n\nName\nDescription\n\n\n\n\nPedDevice\nPED object representing the terminal.\n\n\n\nMethod\nNameDescription\nGetTxStoreReport\n\nUsed to retrieve the TxStoreReport object, which contains results from past transactions.\n\nParameters\nNameTypeRequiredDescription\ntenderReference\n\nString\n\n\n\nReference for the tender. Specify a tenderReference to return a report for that tender.\n\nmaxTransaction\n\nLong\n\n\n\nNumber of transaction reports to return.\n\nCallback\nNameDescription\nTxStoreReportCB\n\nCallback to GetTxStoreReport that provides the reports.\n\nParameters\nNameTypeDescription\nreportObj\n\nTxStoreReport\n\nThe TxStoreReport object that contains the reports.\n\npedResult\n\nint\n\nResult denoting whether an error occurred on the PED.\u00a0A value of 0 means no error occurred.\n\npspResult\n\nint\n\nResult denoting whether an error occurred on the PSP.\u00a0A value of 0 means no error occurred.\n\nlibResult\n\nint\n\nResult denoting whether an error occurred in the Library. A value of 0 means no error occurred.\n\nerrorMessage\n\nString\n\nError message describing what went wrong.\n\nTxStoreReport Parameters\nNameTypeDescription\ntenderReference\n\nString\n\nReference for the tender. Specify a\u00a0tenderReference\u00a0to return a report for that tender.\n\ncurrency\n\nstring\nThe transaction currency\n\namount\n\nlong\n\nThe transaction amount in minor units (100 is 1.00 with EUR).For a normal authorization, this contains the authorized amount.For a partial authorization, this contains the authorized amount.For a DCC transaction, this contains the pre-DCC total.\n\nreferenceAmount\n\n\u00a0\n\nThe transaction amount in minor units (100 is 1.00 with EUR).\u00a0For a normal authorization, this field is empty.For a partial authorization, this contains the initial amount.For a DCC transaction, this contains the final, post-conversion, total.\n\n\ntimestamp\n\nString\n\nThe date and time at which the tender was created.\n\nstate\n\nTransaction.TenderState\n\nThe state of the transaction.\n\ncapturePending\n\nboolean\n\nIs set to true if a pending transaction exists on the PED, to be sent to the plataforma de pagamentos da Adyen and captured.\n\nAn extended report also contains:\nNameTypeDescription\nmerchantReference\n\nString\n\nThe transaction reference provided by the Merchant (reported in the plataforma de pagamentos da Adyen).\n\npspReference\n\nString\n\nAdyen's unique 16-character string associated with the transaction\/the request.\u00a0\nA pspReference and authCode will not be visible if the transaction was performed offline.\n\n\nmaskedPan\n\nString\n\nThe PAN, masked so that sensitive information is not visible. The first six and last four digits are the maximum number of digits to be displayed.\n\nposEntryMode\n\nString\n\nPOS entry mode (ICC\/MSR\/MKE\/CLESS_CHIP\/CLESS_SWIPE).\n\nreceiptSets\n\nList\n\nSet used to hold\u00a0a list of receipt information.\n\nSome helper methods are provided in the reportObj:\nHelper methods and parameters\nNameInput ParametersTypeDescriptionReturned ParametersType\nGetRequestedTenderReference\n\n\u00a0\n\n\u00a0\n\nReturns the specified tender reference.\n\ntenderReference\n\nString\n\nGetRequestedMaxTransaction\n\n\u00a0\n\n\u00a0\n\nNumber of transaction reports to return.\n\nmaxTransaction\n\nlong\n\nGetReportCount\n\n\u00a0\n\n\u00a0\n\nReturns the number of reports in the TXStoreReport object.\n\nreportCount\n\nlong\n\nGetReport\n\nreportId\n\nlong\n\nReturns an report object which contains the specified report.\n\nreportObj\n\nTxStoreReport\n\nGetTenderReference\n\n\u00a0\n\n\u00a0\n\nReturns tender reference for the transaction.\n\ntenderReference\n\nString\n\nGetState\n\n\u00a0\n\n\u00a0\n\nReturns the state of the transaction.\n\nstate\n\nString\n\nGetTimestamp\n\n\u00a0\n\n\u00a0\n\nReturns the time the transaction was processed.\n\ntimestamp\n\nString\n\nGetCapturePending\n\n\u00a0\n\n\u00a0\n\nReturns transaction where the capture is still pending.\n\npending\n\nlong\n\nGetAmount\n\ncurrency\n\nVariant\n\nReturns the transaction amount in the specified currency.\n\nvalue, currency\n\nlong\n\nGetMerchantReference\n\n\u00a0\n\n\u00a0\n\nReturns the merchant reference for the transactions\n\nreference\n\nString\n\nGetPspReference\n\n\u00a0\n\n\u00a0\n\nReturns the PSP reference for the transactions\nA pspReference and authCode will not be visible if the transaction was performed offline.\n\n\nreference\u00a0\n\nString\n\nGetMaskedPan\n\n\u00a0\n\n\u00a0\n\nThe PAN associated with the transaction, masked such that only personnel with a legitimate business need can see the full PAN.\u00a0\n\nmaskPan\n\nString\n\nGetPosEntryMode\n\n\u00a0\n\n\u00a0\n\nReturns the entry mode used, ICC, magstripe, NFC, or MKE.\n\nmode\n\nString\n\nGetReceiptCount\n\n\u00a0\n\n\u00a0\n\nReturns the number of receipts stored in the TxStoreReport\n\nreceiptTotal\n\nlong\n\nGetReceipt\n\nreceiptId\n\nlong\n\nReturns up to 25 receipts, or a specific receipt if you specify an ID.\n\nreceiptsObj\n\nReceipts\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"COM extension for Windows integration","lvl5":"Extras","lvl6":"Get transaction data from TxStoreReport"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/point-of-sale","lvl2":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation","lvl3":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations","lvl4":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension\/get-transaction-data-from-txstorereport-com"},"levels":7,"category":"In-person payments","category_color":"green","tags":["transaction","TxStoreReport"]}}
