Skip to main content

Payment Transactions List

Overview

Component to display a list of payment transactions for a specific payment.

Usage

<justifi-payment-transactions-list
account-id="acc_123"
auth-token="wct_reporting"
filters='{"payment_id":"pay_456"}'
/>

Props, Events & Methods

NameTypeRequiredDefaultDescription
auth-tokenstringYes
columnsstringNodefaultColumnsKeys
payment-idstringYes

Events

  • click-event: Emitted when a row is clicked; surfaces transaction_id.
  • error-event: Surfaces API or token failures.

Theming & Layout

PartDescriptionDOM target
::part(table)
::part(tableRow)
::part(tableFoot)
::part(tableFootRow)
::part(tableFootCell)
::part(tableHead)
::part(tableHeadRow)
::part(tableCell)
::part(loadingSpinner)
::part(tableEmpty)
::part(tableError)
::part(paginationButton)
::part(paginationButtonDisabled)
::part(paginationButtonIconNext)
::part(paginationButtonIconPrevious)
::part(paginationButtonText)

Usage Example



<!DOCTYPE html>
<html dir="ltr" lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<title>justifi-payment-transactions-list</title>

<script
type="module"
src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@6.7.3/dist/webcomponents/webcomponents.esm.js"
></script>

<script
nomodule
src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@6.7.3/dist/webcomponents/webcomponents.js"
></script>

<style>
    ::part(font-family) {
      font-family: georgia;   
    }
      
    ::part(color) {
      color: darkslategray;
    }

    ::part(background-color) {
      background-color: transparent;
    }
  </style>

</head>

<body>
<justifi-payment-transactions-list
  payment-id="py_123"
  auth-token="authToken"
/>
</body>

<script>
(function () {
  const paymentTransactionsList = document.querySelector('justifi-payment-transactions-list');

  paymentTransactionsList.addEventListener('click-event', (event) => {
    // here is where you would handle the click events
    console.log('click-event', event.detail);
  });

  paymentTransactionsList.addEventListener('error-event', (event) => {
    // here is where you would handle the error
    console.error('error-event', event.detail);
  });
})();
</script>

</html>