@justifi/webcomponents 6.5.1-rc.4 → 6.5.1-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/cjs/{check-pkg-version-Bj0XkWnL.js → check-pkg-version-BHAFLsKe.js} +1 -1
  2. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  3. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +2 -2
  4. package/dist/cjs/justifi-apple-pay_7.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
  13. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
  24. package/dist/cjs/{package-Dptg-P5y.js → package-CZK-K7yM.js} +1 -1
  25. package/dist/docs.json +1 -1
  26. package/dist/esm/{check-pkg-version-D6a-vvrO.js → check-pkg-version-ClZuo82s.js} +1 -1
  27. package/dist/esm/hidden-input_2.entry.js +1 -1
  28. package/dist/esm/internal-tokenize-payment-method_7.entry.js +2 -2
  29. package/dist/esm/justifi-apple-pay_7.entry.js +2 -2
  30. package/dist/esm/justifi-business-details.entry.js +2 -2
  31. package/dist/esm/justifi-business-form.entry.js +2 -2
  32. package/dist/esm/justifi-checkout.entry.js +2 -2
  33. package/dist/esm/justifi-checkouts-list.entry.js +2 -2
  34. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  35. package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
  36. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  37. package/dist/esm/justifi-order-terminals.entry.js +2 -2
  38. package/dist/esm/justifi-payment-details.entry.js +2 -2
  39. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  40. package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
  41. package/dist/esm/justifi-payments-list.entry.js +2 -2
  42. package/dist/esm/justifi-payout-details.entry.js +2 -2
  43. package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
  44. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  45. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  46. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  47. package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
  48. package/dist/esm/justifi-terminals-list.entry.js +2 -2
  49. package/dist/esm/{package-czPIvHxt.js → package-C3_8r8V7.js} +1 -1
  50. package/dist/module/package.js +1 -1
  51. package/dist/webcomponents/{p-2bd821a8.entry.js → p-082efda3.entry.js} +1 -1
  52. package/dist/webcomponents/{p-f6ec50c9.entry.js → p-12499226.entry.js} +1 -1
  53. package/dist/webcomponents/p-1ddddc82.entry.js +1 -0
  54. package/dist/webcomponents/p-215ce79e.entry.js +1 -0
  55. package/dist/webcomponents/{p-aec7a3c8.entry.js → p-239d1d07.entry.js} +1 -1
  56. package/dist/webcomponents/{p-0b760c4f.entry.js → p-23a3e38e.entry.js} +1 -1
  57. package/dist/webcomponents/{p-21c060ce.entry.js → p-27b88afd.entry.js} +1 -1
  58. package/dist/webcomponents/{p-75f3161c.entry.js → p-2a347349.entry.js} +1 -1
  59. package/dist/webcomponents/{p-9d67209d.entry.js → p-3787cf63.entry.js} +1 -1
  60. package/dist/webcomponents/{p-db17bc59.entry.js → p-476ebd43.entry.js} +1 -1
  61. package/dist/webcomponents/p-64ddd8ea.entry.js +1 -0
  62. package/dist/webcomponents/p-7becc3d3.entry.js +1 -0
  63. package/dist/webcomponents/p-8071daf3.entry.js +1 -0
  64. package/dist/webcomponents/{p-26e95adb.entry.js → p-93aa2d31.entry.js} +1 -1
  65. package/dist/webcomponents/{p-e07bf523.entry.js → p-9e346c2e.entry.js} +1 -1
  66. package/dist/webcomponents/p-C3_8r8V7.js +1 -0
  67. package/dist/webcomponents/p-a9ea2c82.entry.js +1 -0
  68. package/dist/webcomponents/{p-306c7c33.entry.js → p-aaef1450.entry.js} +1 -1
  69. package/dist/webcomponents/{p-e00fb7b1.entry.js → p-beb0a3c8.entry.js} +1 -1
  70. package/dist/webcomponents/{p-3aaedf9d.entry.js → p-d3697504.entry.js} +1 -1
  71. package/dist/webcomponents/{p-d7a06b34.entry.js → p-d9c090b6.entry.js} +1 -1
  72. package/dist/webcomponents/{p-38ff97ea.entry.js → p-f11eb1bc.entry.js} +1 -1
  73. package/dist/webcomponents/{p-5981869a.entry.js → p-f358610a.entry.js} +1 -1
  74. package/dist/webcomponents/{p-CApezhx9.js → p-sassRpOu.js} +1 -1
  75. package/dist/webcomponents/webcomponents.esm.js +1 -1
  76. package/docs/entities/businessdetails/index.mdx +55 -72
  77. package/docs/entities/businessform/index.mdx +13 -19
  78. package/docs/entities/payment-provisioning/index.mdx +9 -17
  79. package/docs/helpers/PartsTable.jsx +29 -0
  80. package/docs/helpers/PropsTable.jsx +35 -0
  81. package/docs/helpers/{version.ts → version.js} +2 -2
  82. package/docs/merchant-tools/checkouts-list/index.mdx +50 -64
  83. package/docs/merchant-tools/gross-payments-chart/index.mdx +17 -19
  84. package/docs/merchant-tools/order-terminals/index.mdx +13 -17
  85. package/docs/merchant-tools/payment-details/index.mdx +13 -16
  86. package/docs/merchant-tools/payment-transactions-list/index.mdx +13 -17
  87. package/docs/merchant-tools/payments-list/index.mdx +13 -19
  88. package/docs/merchant-tools/payout-details/index.mdx +47 -57
  89. package/docs/merchant-tools/payout-transactions-list/index.mdx +13 -17
  90. package/docs/merchant-tools/payouts-list/index.mdx +13 -19
  91. package/docs/merchant-tools/terminal-orders-list/index.mdx +13 -17
  92. package/docs/merchant-tools/terminals-list/index.mdx +13 -17
  93. package/docs/modular-checkout/index.mdx +0 -5
  94. package/docs/modular-checkout/introduction/index.mdx +13 -15
  95. package/docs/modular-checkout/sub-components/apple-pay.mdx +27 -22
  96. package/docs/modular-checkout/sub-components/bank-account-form.mdx +51 -51
  97. package/docs/modular-checkout/sub-components/card-form.mdx +50 -54
  98. package/docs/modular-checkout/sub-components/payment-method-options.mdx +13 -15
  99. package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +33 -55
  100. package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +56 -55
  101. package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +21 -24
  102. package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +104 -109
  103. package/docs/modular-checkout/sub-components/summary.mdx +13 -14
  104. package/docs/payment-facilitation/dispute-management/index.mdx +13 -17
  105. package/docs/payment-facilitation/refund-payment/index.mdx +22 -15
  106. package/docs/payment-facilitation/tokenize-payment-method/index.mdx +28 -45
  107. package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +104 -123
  108. package/package.json +1 -1
  109. package/dist/webcomponents/p-50a4d4c4.entry.js +0 -1
  110. package/dist/webcomponents/p-7661c41a.entry.js +0 -1
  111. package/dist/webcomponents/p-92a43706.entry.js +0 -1
  112. package/dist/webcomponents/p-9ef4288b.entry.js +0 -1
  113. package/dist/webcomponents/p-c9b50493.entry.js +0 -1
  114. package/dist/webcomponents/p-czPIvHxt.js +0 -1
  115. package/dist/webcomponents/p-deda2e9d.entry.js +0 -1
  116. package/docs/helpers/PartsTable.ts +0 -55
  117. package/docs/helpers/PropsTable.ts +0 -63
  118. package/docs/modular-checkout/docs/index.mdx +0 -32
  119. package/docs/modular-checkout/example/index.mdx +0 -25
@@ -5,8 +5,11 @@ description: Sezzle BNPL rail for Modular Checkout, including disclosure copy an
5
5
  sidebar_position: 24
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
9
- import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
8
+ import {
9
+ PropsTable,
10
+ PartsTable,
11
+ getWebcomponentsVersion,
12
+ } from '@justifi/webcomponents/docs/helpers';
10
13
 
11
14
  ## Overview
12
15
 
@@ -29,48 +32,51 @@ This component exposes **no public methods or properties** and is not intended f
29
32
  <title>justifi-sezzle-payment-method</title>
30
33
 
31
34
  <script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
32
- <script nomodule src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"></script>
33
- <style>
34
- /** These are the available parts for styling the component. */
35
- ::part(text) {
36
- // text styles
37
- }
38
-
39
- ::part(text-danger) {
40
- // text danger styles
41
- }
42
-
43
- ::part(label) {
44
- // label styles
45
- }
46
-
47
- ::part(input-radio) {
48
- // input radio styles
49
- }
50
-
51
- ::part(input-radio-focused) {
52
- // input radio focused styles
53
- }
54
-
55
- ::part(input-radio-checked) {
56
- // input radio checked styles
57
- }
58
-
59
- ::part(input-radio-checked-focused) {
60
- // input radio checked focused styles
61
- }
62
-
63
- ::part(input-radio-invalid) {
64
- // input radio invalid styles
65
- }
66
- </style>
35
+
36
+ <script
37
+ nomodule
38
+ src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
39
+ ></script>
40
+
41
+ <style>
42
+ /** These are the available parts for styling the component. */ ::part(text){' '}
43
+ {
44
+ // text styles
45
+ }
46
+ ::part(text-danger){' '}
47
+ {
48
+ // text danger styles
49
+ }
50
+ ::part(label){' '}
51
+ {
52
+ // label styles
53
+ }
54
+ ::part(input-radio){' '}
55
+ {
56
+ // input radio styles
57
+ }
58
+ ::part(input-radio-focused){' '}
59
+ {
60
+ // input radio focused styles
61
+ }
62
+ ::part(input-radio-checked){' '}
63
+ {
64
+ // input radio checked styles
65
+ }
66
+ ::part(input-radio-checked-focused){' '}
67
+ {
68
+ // input radio checked focused styles
69
+ }
70
+ ::part(input-radio-invalid){' '}
71
+ {
72
+ // input radio invalid styles
73
+ }
74
+ </style>
75
+
67
76
  </head>
68
77
 
69
78
  <body>
70
- <justifi-modular-checkout
71
- auth-token="authToken"
72
- checkout-id="ch_123"
73
- >
79
+ <justifi-modular-checkout auth-token="authToken" checkout-id="ch_123">
74
80
  <justifi-sezzle-payment-method />
75
81
  </justifi-modular-checkout>
76
82
  </body>
@@ -93,33 +99,32 @@ This component exposes **no public methods or properties** and is not intended f
93
99
  });
94
100
  })();
95
101
  </script>
102
+
96
103
  </html>`}</code></pre>
97
104
 
98
105
  ## Props, Events & Methods
99
106
 
100
- <div
101
- dangerouslySetInnerHTML={{
102
- __html: PropsTable([
103
- {
104
- name: 'merchant-id',
105
- type: 'string',
106
- required: true,
107
- description:
108
- 'Sezzle merchant identifier configured in your JustiFi account.',
109
- },
110
- {
111
- name: 'terms-url',
112
- type: 'string',
113
- description: 'Overrides the default Sezzle terms link.',
114
- },
115
- {
116
- name: 'locale',
117
- type: 'string',
118
- defaultValue: 'en-US',
119
- description: 'Controls copy for disclosures.',
120
- },
121
- ]),
122
- }}
107
+ <PropsTable
108
+ rows={[
109
+ {
110
+ name: 'merchant-id',
111
+ type: 'string',
112
+ required: true,
113
+ description:
114
+ 'Sezzle merchant identifier configured in your JustiFi account.',
115
+ },
116
+ {
117
+ name: 'terms-url',
118
+ type: 'string',
119
+ description: 'Overrides the default Sezzle terms link.',
120
+ },
121
+ {
122
+ name: 'locale',
123
+ type: 'string',
124
+ defaultValue: 'en-US',
125
+ description: 'Controls copy for disclosures.',
126
+ },
127
+ ]}
123
128
  />
124
129
 
125
130
  ### Events
@@ -136,49 +141,39 @@ This component exposes **no public methods or properties** and is not intended f
136
141
 
137
142
  - Respect Sezzle's branding by keeping the provided colors and logos intact.
138
143
 
139
- <div
140
- dangerouslySetInnerHTML={{
141
- __html: PartsTable([
142
- {
143
- name: 'text',
144
- description: 'Text styles.',
145
- },
146
- {
147
- name: 'text-danger',
148
- description: 'Danger/error text styles.',
149
- },
150
- {
151
- name: 'label',
152
- description: 'Label styles.',
153
- },
154
- {
155
- name: 'input-radio',
156
- description: 'Radio input styles.',
157
- },
158
- {
159
- name: 'input-radio-focused',
160
- description: 'Radio input styles when focused.',
161
- },
162
- {
163
- name: 'input-radio-checked',
164
- description: 'Radio input styles when checked.',
165
- },
166
- {
167
- name: 'input-radio-checked-focused',
168
- description: 'Radio input styles when checked and focused.',
169
- },
170
- {
171
- name: 'input-radio-invalid',
172
- description: 'Radio input styles when invalid.',
173
- },
174
- ]),
175
- }}
144
+ <PartsTable
145
+ parts={[
146
+ {
147
+ name: 'text',
148
+ description: 'Text styles.',
149
+ },
150
+ {
151
+ name: 'text-danger',
152
+ description: 'Danger/error text styles.',
153
+ },
154
+ {
155
+ name: 'label',
156
+ description: 'Label styles.',
157
+ },
158
+ {
159
+ name: 'input-radio',
160
+ description: 'Radio input styles.',
161
+ },
162
+ {
163
+ name: 'input-radio-focused',
164
+ description: 'Radio input styles when focused.',
165
+ },
166
+ {
167
+ name: 'input-radio-checked',
168
+ description: 'Radio input styles when checked.',
169
+ },
170
+ {
171
+ name: 'input-radio-checked-focused',
172
+ description: 'Radio input styles when checked and focused.',
173
+ },
174
+ {
175
+ name: 'input-radio-invalid',
176
+ description: 'Radio input styles when invalid.',
177
+ },
178
+ ]}
176
179
  />
177
-
178
- ## Static examples
179
-
180
- ### Track redirects
181
-
182
- <pre><code className="language-js">{`const sezzle = document.querySelector('justifi-sezzle-payment-method');
183
-
184
- sezzle.addEventListener('sezzle-redirect', () => analytics.track('sezzle_redirect_started'));`}</code></pre>
@@ -5,8 +5,11 @@ description: Order summary block that lists line items, totals, and ancillary di
5
5
  sidebar_position: 27
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
9
- import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
8
+ import {
9
+ PropsTable,
10
+ PartsTable,
11
+ getWebcomponentsVersion,
12
+ } from '@justifi/webcomponents/docs/helpers';
10
13
 
11
14
  ## Overview
12
15
 
@@ -60,7 +63,8 @@ This component exposes **no public methods or properties** and is not intended f
60
63
 
61
64
  ## Props, Events & Methods
62
65
 
63
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
66
+ <PropsTable
67
+ rows={[
64
68
  {
65
69
  name: 'checkout-id',
66
70
  type: 'string',
@@ -80,7 +84,8 @@ This component exposes **no public methods or properties** and is not intended f
80
84
  defaultValue: 'true',
81
85
  description: 'Hide icons when you want an ultra-minimal summary.',
82
86
  },
83
- ]) }} />
87
+ ]}
88
+ />
84
89
 
85
90
  ### Events
86
91
 
@@ -92,17 +97,11 @@ No custom events; summary listens to the parent checkout for updates automatical
92
97
 
93
98
  ## Theming & Layout
94
99
 
95
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
100
+ <PartsTable
101
+ parts={[
96
102
  {
97
103
  name: 'text',
98
104
  description: 'Text styles for the summary component.',
99
105
  },
100
- ]) }} />
101
-
102
- ## Static examples
103
-
104
- ### Custom refresh
105
-
106
- <pre><code className="language-js">{`const summary = document.querySelector('justifi-modular-checkout-summary');
107
-
108
- document.querySelector('#recalculate').onclick = () => summary.refresh();`}</code></pre>
106
+ ]}
107
+ />
@@ -5,7 +5,7 @@ description: Operator console for reviewing and responding to card disputes.
5
5
  sidebar_position: 34
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -13,15 +13,18 @@ Component to render notification of disputed payments and allow platform to resp
13
13
 
14
14
  ## Usage
15
15
 
16
- <pre><code className="language-html">{`<justifi-dispute-management
16
+ <pre>
17
+ <code className="language-html">{`<justifi-dispute-management
17
18
  account-id="acc_123"
18
19
  auth-token="wct_disputes"
19
20
  dispute-id="dp_456"
20
- />`}</code></pre>
21
+ />`}</code>
22
+ </pre>
21
23
 
22
24
  ## Props, Events & Methods
23
25
 
24
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
26
+ <PropsTable
27
+ rows={[
25
28
  {
26
29
  name: 'account-id',
27
30
  type: 'string',
@@ -46,7 +49,8 @@ Component to render notification of disputed payments and allow platform to resp
46
49
  defaultValue: 'false',
47
50
  description: 'Disable response actions when true.',
48
51
  },
49
- ]) }} />
52
+ ]}
53
+ />
50
54
 
51
55
  ### Events
52
56
 
@@ -60,7 +64,8 @@ Component to render notification of disputed payments and allow platform to resp
60
64
 
61
65
  ## Theming & Layout
62
66
 
63
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
67
+ <PartsTable
68
+ parts={[
64
69
  {
65
70
  name: 'font-family',
66
71
  description: 'Controls the font family for the component.',
@@ -85,14 +90,5 @@ Component to render notification of disputed payments and allow platform to resp
85
90
  name: 'button-disabled',
86
91
  description: 'Disabled button styles.',
87
92
  },
88
- ]) }} />
89
-
90
- ## Static examples
91
-
92
- ### Listening for evidence uploads
93
-
94
- <pre><code className="language-js">{`const disputes = document.querySelector('justifi-dispute-management');
95
-
96
- disputes.addEventListener('evidence-uploaded', ({ detail }) => {
97
- toast.success('Uploaded ' + detail.file_name);
98
- });`}</code></pre>
93
+ ]}
94
+ />
@@ -5,8 +5,11 @@ description: Guided UI for issuing full or partial refunds with reason codes and
5
5
  sidebar_position: 33
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
9
- import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
8
+ import {
9
+ PropsTable,
10
+ PartsTable,
11
+ getWebcomponentsVersion,
12
+ } from '@justifi/webcomponents/docs/helpers';
10
13
 
11
14
  ## Overview
12
15
 
@@ -23,7 +26,12 @@ Component to render a form for partially or fully refunding a payment based on a
23
26
  <title>justifi-refund-payment</title>
24
27
 
25
28
  <script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
26
- <script nomodule src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"></script>
29
+
30
+ <script
31
+ nomodule
32
+ src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
33
+ ></script>
34
+
27
35
  <style>
28
36
  ::part(font-family) {
29
37
  font-family: georgia;
@@ -93,6 +101,7 @@ Component to render a form for partially or fully refunding a payment based on a
93
101
  color: #333;
94
102
  }
95
103
  </style>
104
+
96
105
  </head>
97
106
 
98
107
  <body>
@@ -105,6 +114,7 @@ Component to render a form for partially or fully refunding a payment based on a
105
114
 
106
115
  <!-- Optional external button - this is only needed if the built in button is hidden via the hide-submit-button prop
107
116
  and the refund is submitted via provided refundPayment() method - see below. -->
117
+
108
118
  <button id="submit-refund-button">Submit Refund</button>
109
119
  </body>
110
120
 
@@ -129,11 +139,13 @@ Component to render a form for partially or fully refunding a payment based on a
129
139
  });
130
140
  })();
131
141
  </script>
142
+
132
143
  </html>`}</code></pre>
133
144
 
134
145
  ## Props, Events & Methods
135
146
 
136
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
147
+ <PropsTable
148
+ rows={[
137
149
  {
138
150
  name: 'account-id',
139
151
  type: 'string',
@@ -164,7 +176,8 @@ Component to render a form for partially or fully refunding a payment based on a
164
176
  type: 'string',
165
177
  description: 'Preselects a refund reason code.',
166
178
  },
167
- ]) }} />
179
+ ]}
180
+ />
168
181
 
169
182
  ### Events
170
183
 
@@ -178,7 +191,8 @@ Component to render a form for partially or fully refunding a payment based on a
178
191
 
179
192
  ## Theming & Layout
180
193
 
181
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
194
+ <PartsTable
195
+ parts={[
182
196
  {
183
197
  name: 'font-family',
184
198
  description: 'Controls the font family for the component.',
@@ -219,12 +233,5 @@ Component to render a form for partially or fully refunding a payment based on a
219
233
  name: 'button-primary',
220
234
  description: 'Primary button styles.',
221
235
  },
222
- ]) }} />
223
-
224
- ## Static examples
225
-
226
- ### Programmatic refunds
227
-
228
- <pre><code className="language-js">{`const component = document.querySelector('justifi-refund-payment');
229
-
230
- document.querySelector('#confirm-refund').onclick = () => component.submit();`}</code></pre>
236
+ ]}
237
+ />
@@ -5,8 +5,11 @@ description: Secure standalone card/bank tokenization form with built-in validat
5
5
  sidebar_position: 1
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
9
- import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
8
+ import {
9
+ PropsTable,
10
+ PartsTable,
11
+ getWebcomponentsVersion,
12
+ } from '@justifi/webcomponents/docs/helpers';
10
13
 
11
14
  ## Overview
12
15
 
@@ -23,7 +26,12 @@ Component to render an entire form including a switch to use a credit card or ba
23
26
  <title>justifi-tokenize-payment-method</title>
24
27
 
25
28
  <script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
26
- <script nomodule src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"></script>
29
+
30
+ <script
31
+ nomodule
32
+ src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
33
+ ></script>
34
+
27
35
  <style>
28
36
  ::part(font-family) {
29
37
  font-family: georgia;
@@ -126,16 +134,17 @@ Component to render an entire form including a switch to use a credit card or ba
126
134
  cursor: pointer;
127
135
  }
128
136
  </style>
137
+
129
138
  </head>
130
139
 
131
- <body>
132
- <justifi-tokenize-payment-method
133
- account-id="acc_123"
134
- auth-token="authToken"
135
- payment-method-group-id="pmg_123"
136
- submit-button-text="Tokenize Payment Method"
137
- />
138
- </body>
140
+ <body>
141
+ <justifi-tokenize-payment-method
142
+ account-id="acc_123"
143
+ auth-token="authToken"
144
+ payment-method-group-id="pmg_123"
145
+ submit-button-text="Tokenize Payment Method"
146
+ />
147
+ </body>
139
148
 
140
149
  <script>
141
150
  const justifiTokenizePaymentMethod = document.querySelector("justifi-tokenize-payment-method");
@@ -200,7 +209,8 @@ Component to render an entire form including a switch to use a credit card or ba
200
209
 
201
210
  ## Props, Events & Methods
202
211
 
203
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
212
+ <PropsTable
213
+ rows={[
204
214
  {
205
215
  name: 'account-id',
206
216
  type: 'string',
@@ -246,7 +256,8 @@ Component to render an entire form including a switch to use a credit card or ba
246
256
  type: 'string',
247
257
  description: 'Name of a predefined theme exported by JustiFi (optional).',
248
258
  },
249
- ]) }} />
259
+ ]}
260
+ />
250
261
 
251
262
  ### Events
252
263
 
@@ -262,7 +273,8 @@ Component to render an entire form including a switch to use a credit card or ba
262
273
 
263
274
  - Hosted fields remain inside PCI-safe iframes, so styling focuses on the outer wrapper plus the `::part` hooks listed below.
264
275
 
265
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
276
+ <PartsTable
277
+ parts={[
266
278
  {
267
279
  name: 'font-family',
268
280
  description: 'Controls the font family for the component.',
@@ -327,36 +339,7 @@ Component to render an entire form including a switch to use a credit card or ba
327
339
  name: 'radio-list-item',
328
340
  description: 'Radio list item styles.',
329
341
  },
330
- ]) }} />
331
-
332
- - Slots are not exposed (all inputs are encapsulated in PCI iframes), so styling relies on CSS variables and `::part` hooks for wrapper elements.
333
-
334
- ## Static examples
335
-
336
- ### External submission control
337
-
338
- Hide the internal CTA and trigger tokenization manually (e.g., to combine with a review step).
339
-
340
- <pre><code className="language-html">{`<justifi-tokenize-payment-method
341
- account-id="acc_123"
342
- auth-token="wct_abc123"
343
- hide-submit-button
344
- ref={el => (window.tokenizer = el)}
342
+ ]}
345
343
  />
346
344
 
347
- <button onclick="window.tokenizer.tokenizePaymentMethod()">
348
- Submit Payment
349
- </button>
350
- `}</code></pre>
351
-
352
- ### Prefill billing info
353
-
354
- <pre><code className="language-js">{`const tokenizer = document.querySelector('justifi-tokenize-payment-method');
355
-
356
- tokenizer.fillBillingForm({
357
- name: 'Leslie Knope',
358
- address_line1: '123 Main St',
359
- address_city: 'Pawnee',
360
- address_state: 'IN',
361
- address_postal_code: '47998',
362
- });`}</code></pre>
345
+ - Slots are not exposed (all inputs are encapsulated in PCI iframes), so styling relies on CSS variables and `::part` hooks for wrapper elements.