@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.
- package/dist/cjs/{check-pkg-version-Bj0XkWnL.js → check-pkg-version-BHAFLsKe.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +2 -2
- package/dist/cjs/justifi-apple-pay_7.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/{package-Dptg-P5y.js → package-CZK-K7yM.js} +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/{check-pkg-version-D6a-vvrO.js → check-pkg-version-ClZuo82s.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +2 -2
- package/dist/esm/justifi-apple-pay_7.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/{package-czPIvHxt.js → package-C3_8r8V7.js} +1 -1
- package/dist/module/package.js +1 -1
- package/dist/webcomponents/{p-2bd821a8.entry.js → p-082efda3.entry.js} +1 -1
- package/dist/webcomponents/{p-f6ec50c9.entry.js → p-12499226.entry.js} +1 -1
- package/dist/webcomponents/p-1ddddc82.entry.js +1 -0
- package/dist/webcomponents/p-215ce79e.entry.js +1 -0
- package/dist/webcomponents/{p-aec7a3c8.entry.js → p-239d1d07.entry.js} +1 -1
- package/dist/webcomponents/{p-0b760c4f.entry.js → p-23a3e38e.entry.js} +1 -1
- package/dist/webcomponents/{p-21c060ce.entry.js → p-27b88afd.entry.js} +1 -1
- package/dist/webcomponents/{p-75f3161c.entry.js → p-2a347349.entry.js} +1 -1
- package/dist/webcomponents/{p-9d67209d.entry.js → p-3787cf63.entry.js} +1 -1
- package/dist/webcomponents/{p-db17bc59.entry.js → p-476ebd43.entry.js} +1 -1
- package/dist/webcomponents/p-64ddd8ea.entry.js +1 -0
- package/dist/webcomponents/p-7becc3d3.entry.js +1 -0
- package/dist/webcomponents/p-8071daf3.entry.js +1 -0
- package/dist/webcomponents/{p-26e95adb.entry.js → p-93aa2d31.entry.js} +1 -1
- package/dist/webcomponents/{p-e07bf523.entry.js → p-9e346c2e.entry.js} +1 -1
- package/dist/webcomponents/p-C3_8r8V7.js +1 -0
- package/dist/webcomponents/p-a9ea2c82.entry.js +1 -0
- package/dist/webcomponents/{p-306c7c33.entry.js → p-aaef1450.entry.js} +1 -1
- package/dist/webcomponents/{p-e00fb7b1.entry.js → p-beb0a3c8.entry.js} +1 -1
- package/dist/webcomponents/{p-3aaedf9d.entry.js → p-d3697504.entry.js} +1 -1
- package/dist/webcomponents/{p-d7a06b34.entry.js → p-d9c090b6.entry.js} +1 -1
- package/dist/webcomponents/{p-38ff97ea.entry.js → p-f11eb1bc.entry.js} +1 -1
- package/dist/webcomponents/{p-5981869a.entry.js → p-f358610a.entry.js} +1 -1
- package/dist/webcomponents/{p-CApezhx9.js → p-sassRpOu.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/docs/entities/businessdetails/index.mdx +55 -72
- package/docs/entities/businessform/index.mdx +13 -19
- package/docs/entities/payment-provisioning/index.mdx +9 -17
- package/docs/helpers/PartsTable.jsx +29 -0
- package/docs/helpers/PropsTable.jsx +35 -0
- package/docs/helpers/{version.ts → version.js} +2 -2
- package/docs/merchant-tools/checkouts-list/index.mdx +50 -64
- package/docs/merchant-tools/gross-payments-chart/index.mdx +17 -19
- package/docs/merchant-tools/order-terminals/index.mdx +13 -17
- package/docs/merchant-tools/payment-details/index.mdx +13 -16
- package/docs/merchant-tools/payment-transactions-list/index.mdx +13 -17
- package/docs/merchant-tools/payments-list/index.mdx +13 -19
- package/docs/merchant-tools/payout-details/index.mdx +47 -57
- package/docs/merchant-tools/payout-transactions-list/index.mdx +13 -17
- package/docs/merchant-tools/payouts-list/index.mdx +13 -19
- package/docs/merchant-tools/terminal-orders-list/index.mdx +13 -17
- package/docs/merchant-tools/terminals-list/index.mdx +13 -17
- package/docs/modular-checkout/index.mdx +0 -5
- package/docs/modular-checkout/introduction/index.mdx +13 -15
- package/docs/modular-checkout/sub-components/apple-pay.mdx +27 -22
- package/docs/modular-checkout/sub-components/bank-account-form.mdx +51 -51
- package/docs/modular-checkout/sub-components/card-form.mdx +50 -54
- package/docs/modular-checkout/sub-components/payment-method-options.mdx +13 -15
- package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +33 -55
- package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +56 -55
- package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +21 -24
- package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +104 -109
- package/docs/modular-checkout/sub-components/summary.mdx +13 -14
- package/docs/payment-facilitation/dispute-management/index.mdx +13 -17
- package/docs/payment-facilitation/refund-payment/index.mdx +22 -15
- package/docs/payment-facilitation/tokenize-payment-method/index.mdx +28 -45
- package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +104 -123
- package/package.json +1 -1
- package/dist/webcomponents/p-50a4d4c4.entry.js +0 -1
- package/dist/webcomponents/p-7661c41a.entry.js +0 -1
- package/dist/webcomponents/p-92a43706.entry.js +0 -1
- package/dist/webcomponents/p-9ef4288b.entry.js +0 -1
- package/dist/webcomponents/p-c9b50493.entry.js +0 -1
- package/dist/webcomponents/p-czPIvHxt.js +0 -1
- package/dist/webcomponents/p-deda2e9d.entry.js +0 -1
- package/docs/helpers/PartsTable.ts +0 -55
- package/docs/helpers/PropsTable.ts +0 -63
- package/docs/modular-checkout/docs/index.mdx +0 -32
- 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 {
|
|
9
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
<
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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 {
|
|
9
|
-
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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 '
|
|
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
|
|
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
|
|
21
|
+
/>`}</code>
|
|
22
|
+
</pre>
|
|
21
23
|
|
|
22
24
|
## Props, Events & Methods
|
|
23
25
|
|
|
24
|
-
<
|
|
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
|
-
<
|
|
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 {
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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 {
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
|
|
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.
|