@justifi/webcomponents 6.7.0 → 6.7.2
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-nSgWWvdw.js → check-pkg-version-BG-Rfkh5.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 +9 -7
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +10 -8
- 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 +98 -6
- 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/loader.cjs.js +1 -1
- package/dist/cjs/{package-B8gOzTFM.js → package-Df5lTFe6.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/actions/void/void-actions.js +31 -0
- package/dist/collection/api/services/google-pay.service.js +2 -1
- package/dist/collection/api/services/void.service.js +9 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +3 -2
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +6 -3
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +6 -3
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +3 -3
- package/dist/collection/components/refund-payment/refund-payment.js +66 -10
- package/dist/docs.json +15 -10
- package/dist/esm/{check-pkg-version-CmkUoEAo.js → check-pkg-version-c_8fDHCB.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +9 -7
- package/dist/esm/justifi-apple-pay_8.entry.js +10 -8
- 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 +98 -6
- 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/loader.js +1 -1
- package/dist/esm/{package-CsRppqXL.js → package-BzT9OxlN.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/bank-account-form.js +1 -1
- package/dist/module/bank-account.js +5 -2
- package/dist/module/card-form.js +1 -1
- package/dist/module/card-form2.js +5 -2
- package/dist/module/google-pay.js +5 -4
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +1 -1
- package/dist/module/justifi-refund-payment.js +97 -4
- package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
- package/dist/module/modular-checkout.js +3 -2
- package/dist/module/package.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/utils2.js +1 -1
- package/dist/types/actions/void/void-actions.d.ts +10 -0
- package/dist/types/api/services/google-pay.service.d.ts +1 -1
- package/dist/types/api/services/void.service.d.ts +7 -0
- package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +1 -0
- package/dist/types/components/refund-payment/refund-payment.d.ts +6 -2
- package/dist/types/components.d.ts +3 -3
- package/dist/webcomponents/{p-c0bd4e9a.entry.js → p-035a4adc.entry.js} +1 -1
- package/dist/webcomponents/{p-c4585b68.entry.js → p-0935600b.entry.js} +1 -1
- package/dist/webcomponents/{p-fc8f55d7.entry.js → p-0ab9a3ae.entry.js} +1 -1
- package/dist/webcomponents/{p-DISrhs4v.js → p-11wdbrqX.js} +1 -1
- package/dist/webcomponents/{p-fe73b09b.entry.js → p-138ada4a.entry.js} +1 -1
- package/dist/webcomponents/p-148d3327.entry.js +1 -0
- package/dist/webcomponents/p-2cb9edad.entry.js +1 -0
- package/dist/webcomponents/{p-04ec17bb.entry.js → p-2d4a2d26.entry.js} +1 -1
- package/dist/webcomponents/p-3f14d0c4.entry.js +1 -0
- package/dist/webcomponents/{p-d2981754.entry.js → p-5c6727ae.entry.js} +1 -1
- package/dist/webcomponents/{p-eada0422.entry.js → p-622af881.entry.js} +1 -1
- package/dist/webcomponents/{p-50400c5e.entry.js → p-64ebff16.entry.js} +1 -1
- package/dist/webcomponents/p-71577fa1.entry.js +1 -0
- package/dist/webcomponents/p-7ec4838f.entry.js +1 -0
- package/dist/webcomponents/p-BzT9OxlN.js +1 -0
- package/dist/webcomponents/p-af7c219d.entry.js +1 -0
- package/dist/webcomponents/{p-74fea39c.entry.js → p-b752c5bc.entry.js} +1 -1
- package/dist/webcomponents/{p-f23428da.entry.js → p-bbff6196.entry.js} +1 -1
- package/dist/webcomponents/p-c0c36187.entry.js +1 -0
- package/dist/webcomponents/{p-ff5981fb.entry.js → p-d077569e.entry.js} +1 -1
- package/dist/webcomponents/{p-87988b4d.entry.js → p-d7b1b7b5.entry.js} +1 -1
- package/dist/webcomponents/{p-095cedc5.entry.js → p-dc6c9c79.entry.js} +1 -1
- package/dist/webcomponents/p-ecbc83bf.entry.js +1 -0
- package/dist/webcomponents/{p-b2a0cbad.entry.js → p-f56d7b4c.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/docs/.eslintrc.cjs +17 -0
- package/docs/changelog/index.mdx +17 -0
- package/docs/entities/businessdetails/index.mdx +143 -0
- package/docs/entities/businessform/index.mdx +241 -0
- package/docs/entities/index.mdx +19 -0
- package/docs/entities/payment-provisioning/index.mdx +128 -0
- package/docs/frameworks/angular/index.mdx +112 -0
- package/docs/frameworks/index.mdx +18 -0
- package/docs/frameworks/react/index.mdx +125 -0
- package/docs/frameworks/vue/index.mdx +102 -0
- package/docs/helpers/PartsTable.js +50 -0
- package/docs/helpers/PropsTable.js +56 -0
- package/docs/helpers/index.ts +3 -0
- package/docs/helpers/version.js +32 -0
- package/docs/introduction/index.mdx +125 -0
- package/docs/merchant-tools/checkouts-list/index.mdx +97 -0
- package/docs/merchant-tools/gross-payments-chart/index.mdx +83 -0
- package/docs/merchant-tools/index.mdx +25 -0
- package/docs/merchant-tools/order-terminals/index.mdx +84 -0
- package/docs/merchant-tools/payment-details/index.mdx +132 -0
- package/docs/merchant-tools/payment-transactions-list/index.mdx +85 -0
- package/docs/merchant-tools/payments-list/index.mdx +109 -0
- package/docs/merchant-tools/payout-details/index.mdx +84 -0
- package/docs/merchant-tools/payout-transactions-list/index.mdx +84 -0
- package/docs/merchant-tools/payouts-list/index.mdx +92 -0
- package/docs/merchant-tools/terminal-orders-list/index.mdx +85 -0
- package/docs/merchant-tools/terminals-list/index.mdx +93 -0
- package/docs/modular-checkout/complete-examples/index.mdx +20 -0
- package/docs/modular-checkout/index.mdx +20 -0
- package/docs/modular-checkout/introduction/index.mdx +102 -0
- package/docs/modular-checkout/sub-components/apple-pay.mdx +106 -0
- package/docs/modular-checkout/sub-components/bank-account-form.mdx +167 -0
- package/docs/modular-checkout/sub-components/card-form.mdx +178 -0
- package/docs/modular-checkout/sub-components/index.mdx +23 -0
- package/docs/modular-checkout/sub-components/payment-method-options.mdx +87 -0
- package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +158 -0
- package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +183 -0
- package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +221 -0
- package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +183 -0
- package/docs/modular-checkout/sub-components/summary.mdx +111 -0
- package/docs/payment-facilitation/dispute-management/index.mdx +99 -0
- package/docs/payment-facilitation/index.mdx +21 -0
- package/docs/payment-facilitation/refund-payment/index.mdx +241 -0
- package/docs/payment-facilitation/tokenize-payment-method/index.mdx +350 -0
- package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +150 -0
- package/package.json +21 -6
- package/dist/webcomponents/p-0e981c28.entry.js +0 -1
- package/dist/webcomponents/p-15ceeea7.entry.js +0 -1
- package/dist/webcomponents/p-9c1aa22d.entry.js +0 -1
- package/dist/webcomponents/p-CsRppqXL.js +0 -1
- package/dist/webcomponents/p-aa145996.entry.js +0 -1
- package/dist/webcomponents/p-b5b49e86.entry.js +0 -1
- package/dist/webcomponents/p-d9cdd873.entry.js +0 -1
- package/dist/webcomponents/p-ef04f334.entry.js +0 -1
- package/dist/webcomponents/p-f5dd3fa4.entry.js +0 -1
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: modular-checkout/sub-components/season-interruption-insurance
|
|
3
|
+
title: Season Interruption Insurance
|
|
4
|
+
description: Optional insurance add-on rail that pairs with Modular Checkout summaries.
|
|
5
|
+
sidebar_position: 25
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
Component to render a formated list of season interruption insurance for the requested account.
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
<pre><code className="language-html">{`<!DOCTYPE html>
|
|
21
|
+
<html dir="ltr" lang="en">
|
|
22
|
+
|
|
23
|
+
<head>
|
|
24
|
+
<meta charset="utf-8" />
|
|
25
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
|
|
26
|
+
<title>justifi-season-interruption-insurance</title>
|
|
27
|
+
|
|
28
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
|
|
29
|
+
|
|
30
|
+
<script
|
|
31
|
+
nomodule
|
|
32
|
+
src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
|
|
33
|
+
></script>
|
|
34
|
+
|
|
35
|
+
<style>
|
|
36
|
+
::part(font-family) {
|
|
37
|
+
font-family: georgia;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
::part(color) {
|
|
41
|
+
color: darkslategray;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
::part(background-color) {
|
|
45
|
+
background-color: transparent;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
::part(input-radio) {
|
|
49
|
+
background-color: #fff;
|
|
50
|
+
border-color: #333;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
::part(input-radio-checked) {
|
|
54
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-5 -5 30 30" fill="white"><circle cx="10" cy="10" r="10"/></svg>');
|
|
55
|
+
background-color: #000;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
::part(input-radio-focused) {
|
|
59
|
+
background-color: #333;
|
|
60
|
+
border-color: #333;
|
|
61
|
+
box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
::part(input-radio-checked-focused) {
|
|
65
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-5 -5 30 30" fill="white"><circle cx="10" cy="10" r="10"/></svg>');
|
|
66
|
+
background-color: #000;
|
|
67
|
+
border-color: #333;
|
|
68
|
+
box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
71
|
+
|
|
72
|
+
</head>
|
|
73
|
+
|
|
74
|
+
<body>
|
|
75
|
+
<justifi-season-interruption-insurance
|
|
76
|
+
auth-token="your-auth-token"
|
|
77
|
+
checkout-id="your-checkout-id"
|
|
78
|
+
primary-identity-first-name="John"
|
|
79
|
+
primary-identity-last-name="Doe"
|
|
80
|
+
primary-identity-state="CA"
|
|
81
|
+
primary-identity-postal-code="90210"
|
|
82
|
+
primary-identity-country="US"
|
|
83
|
+
primary-identity-email-address="john.doe@email.com"
|
|
84
|
+
policy-attributes-insurable-amount="100000"
|
|
85
|
+
/>
|
|
86
|
+
</body>
|
|
87
|
+
|
|
88
|
+
</html>`}</code></pre>
|
|
89
|
+
|
|
90
|
+
## Props, Events & Methods
|
|
91
|
+
|
|
92
|
+
<div
|
|
93
|
+
dangerouslySetInnerHTML={{
|
|
94
|
+
__html: PropsTable([
|
|
95
|
+
{
|
|
96
|
+
name: 'auth-token',
|
|
97
|
+
type: 'string',
|
|
98
|
+
description:
|
|
99
|
+
'JWT used to call the insurance service. Optional when the checkout store already contains an auth token.',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'checkout-id',
|
|
103
|
+
type: 'string',
|
|
104
|
+
description:
|
|
105
|
+
'Checkout identifier passed to the quote endpoint. Optional when running inside `<justifi-modular-checkout>` where it is pulled from the shared store.',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'primary-identity-first-name',
|
|
109
|
+
type: 'string',
|
|
110
|
+
required: true,
|
|
111
|
+
description: 'First name of the person purchasing the coverage.',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'primary-identity-last-name',
|
|
115
|
+
type: 'string',
|
|
116
|
+
required: true,
|
|
117
|
+
description: 'Last name of the person purchasing the coverage.',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'primary-identity-email-address',
|
|
121
|
+
type: 'string',
|
|
122
|
+
required: true,
|
|
123
|
+
description: 'Email address used in the quote payload.',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'primary-identity-state',
|
|
127
|
+
type: 'string',
|
|
128
|
+
required: true,
|
|
129
|
+
description: '2-letter state or province for the insured person.',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'primary-identity-postal-code',
|
|
133
|
+
type: 'string',
|
|
134
|
+
required: true,
|
|
135
|
+
description: 'Postal or ZIP code for the insured person.',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'primary-identity-country',
|
|
139
|
+
type: 'string',
|
|
140
|
+
required: true,
|
|
141
|
+
description: 'ISO 3166-1 alpha-2 country code for the insured person.',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'policy-attributes-insurable-amount',
|
|
145
|
+
type: 'number',
|
|
146
|
+
required: true,
|
|
147
|
+
description: 'Amount (in cents) that should be covered by the policy.',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'policy-attributes-start-date',
|
|
151
|
+
type: 'string',
|
|
152
|
+
description: 'ISO 8601 start date for the coverage period.',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'policy-attributes-end-date',
|
|
156
|
+
type: 'string',
|
|
157
|
+
description: 'ISO 8601 end date for the coverage period.',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: 'covered-identity-first-name',
|
|
161
|
+
type: 'string',
|
|
162
|
+
description:
|
|
163
|
+
'First name of the person whose season is being covered (if different from the purchaser).',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'covered-identity-last-name',
|
|
167
|
+
type: 'string',
|
|
168
|
+
description: 'Last name of the covered person.',
|
|
169
|
+
},
|
|
170
|
+
]),
|
|
171
|
+
}}
|
|
172
|
+
/>
|
|
173
|
+
|
|
174
|
+
### Events
|
|
175
|
+
|
|
176
|
+
- `insurance-updated`: Fires after the component successfully toggles coverage via the insurance API.
|
|
177
|
+
- `error-event`: Emits a `ComponentErrorEvent` if required props are missing or an API call fails.
|
|
178
|
+
|
|
179
|
+
### Public methods
|
|
180
|
+
|
|
181
|
+
1. `validate()` – Returns `{ isValid: boolean }` indicating whether the customer selected accept or decline. Uses the shared insurance validation helpers.
|
|
182
|
+
|
|
183
|
+
## Theming & Layout
|
|
184
|
+
|
|
185
|
+
- The host inherits the same typography tokens as other Modular Checkout rails via `StyledHost`, so it naturally matches surrounding content.
|
|
186
|
+
- Use the exposed parts to restyle copy or validation messaging without affecting the radios themselves.
|
|
187
|
+
|
|
188
|
+
<div
|
|
189
|
+
dangerouslySetInnerHTML={{
|
|
190
|
+
__html: PartsTable([
|
|
191
|
+
{
|
|
192
|
+
name: 'font-family',
|
|
193
|
+
description: 'Controls the font family for the component.',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'color',
|
|
197
|
+
description: 'Controls the text color.',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: 'background-color',
|
|
201
|
+
description: 'Controls the background color.',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: 'input-radio',
|
|
205
|
+
description: 'Radio input styles.',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: 'input-radio-checked',
|
|
209
|
+
description: 'Radio input styles when checked.',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: 'input-radio-focused',
|
|
213
|
+
description: 'Radio input styles when focused.',
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: 'input-radio-checked-focused',
|
|
217
|
+
description: 'Radio input styles when checked and focused.',
|
|
218
|
+
},
|
|
219
|
+
]),
|
|
220
|
+
}}
|
|
221
|
+
/>
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: modular-checkout/sub-components/sezzle-payment-method
|
|
3
|
+
title: Sezzle Payment Method
|
|
4
|
+
description: Sezzle BNPL rail for Modular Checkout, including disclosure copy and redirect handling.
|
|
5
|
+
sidebar_position: 24
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
Renders a radio input for selecting the Sezzle payment method, if BNPL (Buy Now Pay Later) is enabled for the sub account.
|
|
17
|
+
|
|
18
|
+
This component is **designed to be used within** the `justifi-modular-checkout` and **does not accept props directly**. Instead, it relies on the shared state passed through the Stencil Store, managed by the `justifi-modular-checkout` component.
|
|
19
|
+
|
|
20
|
+
**Authorization** and business context are also handled by `justifi-modular-checkout`, which manages authentication tokens and related configuration.
|
|
21
|
+
|
|
22
|
+
This component exposes **no public methods or properties** and is not intended for standalone use.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
<pre><code className="language-html">{`<!DOCTYPE html>
|
|
27
|
+
<html dir="ltr" lang="en">
|
|
28
|
+
|
|
29
|
+
<head>
|
|
30
|
+
<meta charset="utf-8" />
|
|
31
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
|
|
32
|
+
<title>justifi-sezzle-payment-method</title>
|
|
33
|
+
|
|
34
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
|
|
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
|
+
|
|
76
|
+
</head>
|
|
77
|
+
|
|
78
|
+
<body>
|
|
79
|
+
<justifi-modular-checkout auth-token="authToken" checkout-id="ch_123">
|
|
80
|
+
<justifi-sezzle-payment-method />
|
|
81
|
+
</justifi-modular-checkout>
|
|
82
|
+
</body>
|
|
83
|
+
|
|
84
|
+
<script>
|
|
85
|
+
(function() {
|
|
86
|
+
const modularCheckout = document.querySelector('justifi-modular-checkout');
|
|
87
|
+
const submitButton = document.querySelector('#submit-button');
|
|
88
|
+
|
|
89
|
+
submitButton.addEventListener('click', () => {
|
|
90
|
+
modularCheckout.submitCheckout();
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
modularCheckout.addEventListener('error-event', (event) => {
|
|
94
|
+
console.error(event.detail);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
document.addEventListener('submit-event', (event) => {
|
|
98
|
+
console.log('Checkout completed successfully!', event.detail);
|
|
99
|
+
});
|
|
100
|
+
})();
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
</html>`}</code></pre>
|
|
104
|
+
|
|
105
|
+
## Props, Events & Methods
|
|
106
|
+
|
|
107
|
+
<div
|
|
108
|
+
dangerouslySetInnerHTML={{
|
|
109
|
+
__html: PropsTable([
|
|
110
|
+
{
|
|
111
|
+
name: 'merchant-id',
|
|
112
|
+
type: 'string',
|
|
113
|
+
required: true,
|
|
114
|
+
description:
|
|
115
|
+
'Sezzle merchant identifier configured in your JustiFi account.',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'terms-url',
|
|
119
|
+
type: 'string',
|
|
120
|
+
description: 'Overrides the default Sezzle terms link.',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'locale',
|
|
124
|
+
type: 'string',
|
|
125
|
+
defaultValue: 'en-US',
|
|
126
|
+
description: 'Controls copy for disclosures.',
|
|
127
|
+
},
|
|
128
|
+
]),
|
|
129
|
+
}}
|
|
130
|
+
/>
|
|
131
|
+
|
|
132
|
+
### Events
|
|
133
|
+
|
|
134
|
+
- `sezzle-redirect`: Fires before redirecting the customer to Sezzle.
|
|
135
|
+
- `sezzle-returned`: Emits when the customer comes back to the checkout with approval data.
|
|
136
|
+
- `error`: Surfaces issues retrieving Sezzle offers or redirect URLs.
|
|
137
|
+
|
|
138
|
+
### Public methods
|
|
139
|
+
|
|
140
|
+
1. `begin()` – Trigger Sezzle flow programmatically (useful for custom list UI).
|
|
141
|
+
|
|
142
|
+
## Theming & Layout
|
|
143
|
+
|
|
144
|
+
- Respect Sezzle's branding by keeping the provided colors and logos intact.
|
|
145
|
+
|
|
146
|
+
<div
|
|
147
|
+
dangerouslySetInnerHTML={{
|
|
148
|
+
__html: PartsTable([
|
|
149
|
+
{
|
|
150
|
+
name: 'text',
|
|
151
|
+
description: 'Text styles.',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'text-danger',
|
|
155
|
+
description: 'Danger/error text styles.',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'label',
|
|
159
|
+
description: 'Label styles.',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'input-radio',
|
|
163
|
+
description: 'Radio input styles.',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'input-radio-focused',
|
|
167
|
+
description: 'Radio input styles when focused.',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'input-radio-checked',
|
|
171
|
+
description: 'Radio input styles when checked.',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'input-radio-checked-focused',
|
|
175
|
+
description: 'Radio input styles when checked and focused.',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'input-radio-invalid',
|
|
179
|
+
description: 'Radio input styles when invalid.',
|
|
180
|
+
},
|
|
181
|
+
]),
|
|
182
|
+
}}
|
|
183
|
+
/>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: modular-checkout/sub-components/summary
|
|
3
|
+
title: Modular Checkout Summary
|
|
4
|
+
description: Order summary block that lists line items, totals, and ancillary disclosures.
|
|
5
|
+
sidebar_position: 27
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
Renders a summary of checkout details consisting of the checkout description and amount passed in the [create checkout API request](https://docs.justifi.tech/api-spec#tag/Checkouts/operation/CreateCheckout) as part of a checkout flow.
|
|
17
|
+
|
|
18
|
+
This component is **designed to be used within** the `justifi-modular-checkout` and **does not accept props directly**. Instead, it relies on the shared state passed through the Stencil Store, managed by the `justifi-modular-checkout` component.
|
|
19
|
+
|
|
20
|
+
**Authorization** and business context are also handled by `justifi-modular-checkout`, which manages authentication tokens and related configuration.
|
|
21
|
+
|
|
22
|
+
This component exposes **no public methods or properties** and is not intended for standalone use.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
<pre><code className="language-html">{`<!DOCTYPE html>
|
|
27
|
+
<html dir="ltr" lang="en">
|
|
28
|
+
|
|
29
|
+
<head>
|
|
30
|
+
<meta charset="utf-8" />
|
|
31
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
|
|
32
|
+
<title>justifi-checkout-summary</title>
|
|
33
|
+
|
|
34
|
+
<script
|
|
35
|
+
type="module"
|
|
36
|
+
src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"
|
|
37
|
+
></script>
|
|
38
|
+
|
|
39
|
+
<script
|
|
40
|
+
nomodule
|
|
41
|
+
src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
|
|
42
|
+
></script>
|
|
43
|
+
|
|
44
|
+
<style>
|
|
45
|
+
/** These are the available parts for styling the component. */ ::part(text){' '}
|
|
46
|
+
{
|
|
47
|
+
// text styles
|
|
48
|
+
}
|
|
49
|
+
</style>
|
|
50
|
+
|
|
51
|
+
</head>
|
|
52
|
+
|
|
53
|
+
<body>
|
|
54
|
+
<justifi-modular-checkout
|
|
55
|
+
auth-token="authToken"
|
|
56
|
+
checkout-id="ch_123"
|
|
57
|
+
save-payment-method="true"
|
|
58
|
+
>
|
|
59
|
+
<justifi-checkout-summary />
|
|
60
|
+
</justifi-modular-checkout>
|
|
61
|
+
</body>
|
|
62
|
+
</html>`}</code></pre>
|
|
63
|
+
|
|
64
|
+
## Props, Events & Methods
|
|
65
|
+
|
|
66
|
+
<div
|
|
67
|
+
dangerouslySetInnerHTML={{
|
|
68
|
+
__html: PropsTable([
|
|
69
|
+
{
|
|
70
|
+
name: 'checkout-id',
|
|
71
|
+
type: 'string',
|
|
72
|
+
required: true,
|
|
73
|
+
description: 'Determines the line items and totals to display.',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'show-disclosures',
|
|
77
|
+
type: 'boolean',
|
|
78
|
+
defaultValue: 'false',
|
|
79
|
+
description:
|
|
80
|
+
'Displays compliance copy (e.g., insurance terms, surcharges).',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'show-line-item-icons',
|
|
84
|
+
type: 'boolean',
|
|
85
|
+
defaultValue: 'true',
|
|
86
|
+
description: 'Hide icons when you want an ultra-minimal summary.',
|
|
87
|
+
},
|
|
88
|
+
]),
|
|
89
|
+
}}
|
|
90
|
+
/>
|
|
91
|
+
|
|
92
|
+
### Events
|
|
93
|
+
|
|
94
|
+
No custom events; summary listens to the parent checkout for updates automatically.
|
|
95
|
+
|
|
96
|
+
### Public methods
|
|
97
|
+
|
|
98
|
+
1. `refresh()` – Fetch updated totals (useful if you change the checkout server-side).
|
|
99
|
+
|
|
100
|
+
## Theming & Layout
|
|
101
|
+
|
|
102
|
+
<div
|
|
103
|
+
dangerouslySetInnerHTML={{
|
|
104
|
+
__html: PartsTable([
|
|
105
|
+
{
|
|
106
|
+
name: 'text',
|
|
107
|
+
description: 'Text styles for the summary component.',
|
|
108
|
+
},
|
|
109
|
+
]),
|
|
110
|
+
}}
|
|
111
|
+
/>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: payment-facilitation/dispute-management/index
|
|
3
|
+
title: Dispute Management
|
|
4
|
+
description: Operator console for reviewing and responding to card disputes.
|
|
5
|
+
sidebar_position: 34
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
Component to render notification of disputed payments and allow platform to respond to dispute via form submission.
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
<pre>
|
|
17
|
+
<code className="language-html">{`<justifi-dispute-management
|
|
18
|
+
account-id="acc_123"
|
|
19
|
+
auth-token="wct_disputes"
|
|
20
|
+
dispute-id="dp_456"
|
|
21
|
+
/>`}</code>
|
|
22
|
+
</pre>
|
|
23
|
+
|
|
24
|
+
## Props, Events & Methods
|
|
25
|
+
|
|
26
|
+
<div
|
|
27
|
+
dangerouslySetInnerHTML={{
|
|
28
|
+
__html: PropsTable([
|
|
29
|
+
{
|
|
30
|
+
name: 'account-id',
|
|
31
|
+
type: 'string',
|
|
32
|
+
required: true,
|
|
33
|
+
description:
|
|
34
|
+
'Authorizes access to disputes for a platform or merchant.',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'auth-token',
|
|
38
|
+
type: 'string',
|
|
39
|
+
required: true,
|
|
40
|
+
description: 'Token with `write:disputes` scope.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'dispute-id',
|
|
44
|
+
type: 'string',
|
|
45
|
+
required: true,
|
|
46
|
+
description: 'Specific dispute to review/respond to.',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'read-only',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
defaultValue: 'false',
|
|
52
|
+
description: 'Disable response actions when true.',
|
|
53
|
+
},
|
|
54
|
+
]),
|
|
55
|
+
}}
|
|
56
|
+
/>
|
|
57
|
+
|
|
58
|
+
### Events
|
|
59
|
+
|
|
60
|
+
- `evidence-uploaded`: Fires when users add files or notes.
|
|
61
|
+
- `status-changed`: Indicates dispute submission or withdrawal.
|
|
62
|
+
- `error-event`: Captures upload or API issues.
|
|
63
|
+
|
|
64
|
+
### Public methods
|
|
65
|
+
|
|
66
|
+
1. `refresh()` – Reload in-progress disputes to reflect new deadlines or statuses.
|
|
67
|
+
|
|
68
|
+
## Theming & Layout
|
|
69
|
+
|
|
70
|
+
<div
|
|
71
|
+
dangerouslySetInnerHTML={{
|
|
72
|
+
__html: PartsTable([
|
|
73
|
+
{
|
|
74
|
+
name: 'font-family',
|
|
75
|
+
description: 'Controls the font family for the component.',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'color',
|
|
79
|
+
description: 'Controls the text color.',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'background-color',
|
|
83
|
+
description: 'Controls the background color.',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'button',
|
|
87
|
+
description: 'Button styles.',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'button-secondary',
|
|
91
|
+
description: 'Secondary button styles.',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'button-disabled',
|
|
95
|
+
description: 'Disabled button styles.',
|
|
96
|
+
},
|
|
97
|
+
]),
|
|
98
|
+
}}
|
|
99
|
+
/>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: payment-facilitation/index
|
|
3
|
+
title: Payment Facilitation
|
|
4
|
+
description: Core flows for capturing, refunding, and managing disputes.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Build an end-to-end payment experience by combining these focused guides:
|
|
8
|
+
|
|
9
|
+
1. [Unified Fintech Checkout™](./unified-fintech-checkout™/index) – the
|
|
10
|
+
full-stack checkout shell for authorization and capture.
|
|
11
|
+
2. [Tokenize Payment Method](./tokenize-payment-method/index) – vault cards or
|
|
12
|
+
bank accounts for future use.
|
|
13
|
+
3. [Refund Payment](./refund-payment/index) – return funds with audit-friendly
|
|
14
|
+
status updates.
|
|
15
|
+
4. [Dispute Management](./dispute-management/index) – monitor chargebacks and
|
|
16
|
+
submit compelling evidence.
|
|
17
|
+
|
|
18
|
+
> Once your payment-facilitation configuration is live, tie it into
|
|
19
|
+
> `[Entities](../entities/index)` and `[Merchant Tools](../merchant-tools/index)`
|
|
20
|
+
> to keep back-office teams in sync.
|
|
21
|
+
|