Transactions Web-Component
Provide full payment history visibility to your customers.
You can utilize our transaction form component by specifying the pay-engine web component with type transactions and other necessary properties.
1
<pay-engine id="pf-transactions"
2
type="transactions"
3
merchant-id="d8dfafb5-88d6-46c7-ba14-1ff972564085"
4
hash="0709c7f107ed6326aaeaa3810330834870591f3924943e7bce66a826ac532045"></pay-engine>
Copied!

Properties and Styling

Properties
Styling
Following are properties that can be set on this web-component. You can set the property via a JavaScript object reference, or directly inline as an HTML tag attribute. See the example below:
1
<pay-engine id="pf-transactions"
2
type="transactions"
3
merchant-id="d8dfafb5-88d6-46c7-ba14-1ff972564085"
4
default-filter='{\"amount\":{\"from\":100,\"to\":500},\"statuses\":[\"succeeded\",\"incomplete\",\"uncaptured\"],\"method\":\"Credit Card\"}'
5
hash="0709c7f107ed6326aaeaa3810330834870591f3924943e7bce66a826ac532045"></pay-engine>
Copied!
Following is a list of applicable properties.
Class
Description
merchant-id
Merchant ID (generated by using create merchant API call)
hash
HMAC generated from merchant-id (see securing embedded UIs section)
css
<Style> HTML element id, or URL of CSS file (see Styling specs for this component)
hideFilter
Determinate show or hide the default filter element
defaultFilter
Default filter applying to the transaction table.

Styling

As you build and improve your website, it's important that our UI elements work well with, and similar to, your own user interface. To make the building and programming process easier, we put in work to make our component as flexible and user-friendly as possible for you.
Therefore, we added a customization option with a property called css , simply embed a style element within your html file with all your customizations, and pass the id of this element to our web-component.
1
<style id="custom-transaction-style">
2
.pf-transaction-table{
3
position: relative;
4
background-color: #fff;
5
overflow: hidden;
6
font-size: 1rem;
7
text-align: left;
8
width: 100%;
9
max-width: 100%;
10
transform: translatez(0);
11
border-radius: 0px 0px 0.25rem 0.25rem;
12
}
13
</style>
14
<pay-engine id="pf-transaction"
15
type="transaction"
16
css="#custom-transaction-style"
17
merchant-id="d8dfafb5-88d6-46c7-ba14-1ff972564085"
18
hash="0709c7f107ed6326aaeaa3810330834870591f3924943e7bce66a826ac532045"></pay-engine>
Copied!
Additionally, you can also pass an external stylesheet URL to the css prop, like so:
1
<pay-engine id="pf-dashboard"
2
type="transaction"
3
css="https://mysite.com/custom-transaction-style.css"
4
merchant-id="d8dfafb5-88d6-46c7-ba14-1ff972564085"
5
hash="0709c7f107ed6326aaeaa3810330834870591f3924943e7bce66a826ac532045"></pay-engine>
Copied!
Here you can find a list of customizable classes within the "transaction" web-component
Class
Description
.pf-transaction-card
This class applies to all transaction top blocks
.pf-transaction-table
This class applies to the transaction table
.pf-transactions-table-col-title
This class applies to the transactions table column text
.pf-filter
This class applies to table filter
.pf-filter-search
This class applies to the search field
.pf-filter-field
This class applies to most filter form controls such as text, number, select, etc.
.pf-filter-checkbox
This class applies to the filter fields, that are of type checkbox
.pf-filter-button-done
This class applies to the filter done button
.pf-button-filter
This class applies to the button, that opens a filter
​
Last modified 1mo ago
Copy link