@justifi/webcomponents 6.5.1-rc.5 → 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-T54BeR4n.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-JstJdxIu.js → package-CZK-K7yM.js} +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/{check-pkg-version-C8hgGLFx.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-DEhd71m_.js → package-C3_8r8V7.js} +1 -1
- package/dist/module/package.js +1 -1
- package/dist/webcomponents/{p-266a9aee.entry.js → p-082efda3.entry.js} +1 -1
- package/dist/webcomponents/{p-de35abb6.entry.js → p-12499226.entry.js} +1 -1
- package/dist/webcomponents/p-1ddddc82.entry.js +1 -0
- package/dist/webcomponents/{p-5a3687bf.entry.js → p-215ce79e.entry.js} +1 -1
- package/dist/webcomponents/{p-9fef2496.entry.js → p-239d1d07.entry.js} +1 -1
- package/dist/webcomponents/{p-04b23547.entry.js → p-23a3e38e.entry.js} +1 -1
- package/dist/webcomponents/{p-8cfda6c1.entry.js → p-27b88afd.entry.js} +1 -1
- package/dist/webcomponents/{p-cfd858be.entry.js → p-2a347349.entry.js} +1 -1
- package/dist/webcomponents/{p-20608f0c.entry.js → p-3787cf63.entry.js} +1 -1
- package/dist/webcomponents/{p-73388c68.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-d1951301.entry.js → p-93aa2d31.entry.js} +1 -1
- package/dist/webcomponents/{p-a9bd4e27.entry.js → p-9e346c2e.entry.js} +1 -1
- package/dist/webcomponents/p-C3_8r8V7.js +1 -0
- package/dist/webcomponents/{p-90de8098.entry.js → p-a9ea2c82.entry.js} +1 -1
- package/dist/webcomponents/{p-7a3d9c24.entry.js → p-aaef1450.entry.js} +1 -1
- package/dist/webcomponents/{p-7128920a.entry.js → p-beb0a3c8.entry.js} +1 -1
- package/dist/webcomponents/{p-c364c76d.entry.js → p-d3697504.entry.js} +1 -1
- package/dist/webcomponents/{p-42c3bda4.entry.js → p-d9c090b6.entry.js} +1 -1
- package/dist/webcomponents/{p-e47a2592.entry.js → p-f11eb1bc.entry.js} +1 -1
- package/dist/webcomponents/{p-2bafa257.entry.js → p-f358610a.entry.js} +1 -1
- package/dist/webcomponents/{p-C6wS5-M7.js → p-sassRpOu.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/docs/entities/businessdetails/index.mdx +50 -70
- package/docs/entities/businessform/index.mdx +13 -18
- package/docs/entities/payment-provisioning/index.mdx +8 -16
- package/docs/helpers/PartsTable.jsx +29 -0
- package/docs/helpers/PropsTable.jsx +35 -0
- package/docs/merchant-tools/checkouts-list/index.mdx +49 -63
- package/docs/merchant-tools/gross-payments-chart/index.mdx +16 -18
- package/docs/merchant-tools/order-terminals/index.mdx +12 -16
- package/docs/merchant-tools/payment-details/index.mdx +13 -15
- package/docs/merchant-tools/payment-transactions-list/index.mdx +12 -16
- package/docs/merchant-tools/payments-list/index.mdx +12 -18
- package/docs/merchant-tools/payout-details/index.mdx +46 -56
- package/docs/merchant-tools/payout-transactions-list/index.mdx +12 -16
- package/docs/merchant-tools/payouts-list/index.mdx +12 -18
- package/docs/merchant-tools/terminal-orders-list/index.mdx +12 -16
- package/docs/merchant-tools/terminals-list/index.mdx +12 -16
- package/docs/modular-checkout/index.mdx +0 -5
- package/docs/modular-checkout/introduction/index.mdx +12 -14
- package/docs/modular-checkout/sub-components/apple-pay.mdx +27 -21
- package/docs/modular-checkout/sub-components/bank-account-form.mdx +51 -50
- package/docs/modular-checkout/sub-components/card-form.mdx +50 -53
- package/docs/modular-checkout/sub-components/payment-method-options.mdx +12 -14
- package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +33 -54
- package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +56 -54
- package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +21 -23
- package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +104 -108
- package/docs/modular-checkout/sub-components/summary.mdx +13 -13
- package/docs/payment-facilitation/dispute-management/index.mdx +12 -16
- package/docs/payment-facilitation/refund-payment/index.mdx +22 -14
- package/docs/payment-facilitation/tokenize-payment-method/index.mdx +28 -44
- package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +103 -122
- package/package.json +1 -1
- package/dist/webcomponents/p-04ed045b.entry.js +0 -1
- package/dist/webcomponents/p-3101565c.entry.js +0 -1
- package/dist/webcomponents/p-8c07d9f0.entry.js +0 -1
- package/dist/webcomponents/p-9efd1bce.entry.js +0 -1
- package/dist/webcomponents/p-DEhd71m_.js +0 -1
- package/docs/helpers/PartsTable.js +0 -50
- package/docs/helpers/PartsTable.ts +0 -55
- package/docs/helpers/PropsTable.js +0 -56
- package/docs/helpers/PropsTable.ts +0 -63
- package/docs/helpers/index.js +0 -4
- package/docs/helpers/version.ts +0 -32
- package/docs/modular-checkout/docs/index.mdx +0 -32
- package/docs/modular-checkout/example/index.mdx +0 -25
|
@@ -14,18 +14,21 @@ The `justifi-modular-checkout` wrapper component serves as a container for check
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
-
<pre
|
|
17
|
+
<pre>
|
|
18
|
+
<code className="language-html">{`<justifi-modular-checkout
|
|
18
19
|
account-id="acc_123"
|
|
19
20
|
auth-token="wct_checkout"
|
|
20
21
|
checkout-id="chk_456"
|
|
21
22
|
>
|
|
22
23
|
<justifi-modular-checkout-card-form slot="payment-methods" />
|
|
23
24
|
<justifi-modular-checkout-summary slot="summary" />
|
|
24
|
-
</justifi-modular-checkout>`}</code
|
|
25
|
+
</justifi-modular-checkout>`}</code>
|
|
26
|
+
</pre>
|
|
25
27
|
|
|
26
28
|
## Props, Events & Methods
|
|
27
29
|
|
|
28
|
-
<
|
|
30
|
+
<PropsTable
|
|
31
|
+
rows={[
|
|
29
32
|
{
|
|
30
33
|
name: 'account-id',
|
|
31
34
|
type: 'string',
|
|
@@ -58,7 +61,8 @@ The `justifi-modular-checkout` wrapper component serves as a container for check
|
|
|
58
61
|
defaultValue: 'en-US',
|
|
59
62
|
description: 'Controls currency format + copy.',
|
|
60
63
|
},
|
|
61
|
-
]
|
|
64
|
+
]}
|
|
65
|
+
/>
|
|
62
66
|
|
|
63
67
|
### Events
|
|
64
68
|
|
|
@@ -75,7 +79,8 @@ The `justifi-modular-checkout` wrapper component serves as a container for check
|
|
|
75
79
|
|
|
76
80
|
- Slots expose `::part(summary)` and `::part(payment-methods)` so you can adjust spacing for each region.
|
|
77
81
|
|
|
78
|
-
<
|
|
82
|
+
<PartsTable
|
|
83
|
+
parts={[
|
|
79
84
|
{
|
|
80
85
|
name: 'shell',
|
|
81
86
|
description: 'Outer wrapper that surrounds the full modular checkout.',
|
|
@@ -89,12 +94,5 @@ The `justifi-modular-checkout` wrapper component serves as a container for check
|
|
|
89
94
|
description: 'Order summary slot, typically on the right on desktop.',
|
|
90
95
|
},
|
|
91
96
|
{ name: 'cta', description: 'Primary submit button container.' },
|
|
92
|
-
]
|
|
93
|
-
|
|
94
|
-
## Static examples
|
|
95
|
-
|
|
96
|
-
### Programmatic submission
|
|
97
|
-
|
|
98
|
-
<pre><code className="language-js">{`const modCheckout = document.querySelector('justifi-modular-checkout');
|
|
99
|
-
|
|
100
|
-
document.querySelector('#submit-order').addEventListener('click', () => modCheckout.submit());`}</code></pre>
|
|
97
|
+
]}
|
|
98
|
+
/>
|
|
@@ -5,7 +5,11 @@ description: Apple Pay rail for Modular Checkout that exposes wallet buttons and
|
|
|
5
5
|
sidebar_position: 22
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
9
13
|
|
|
10
14
|
## Overview
|
|
11
15
|
|
|
@@ -22,13 +26,19 @@ Renders an Apple Pay button for eligible devices and orchestrates the Apple Pay
|
|
|
22
26
|
<title>justifi-apple-pay</title>
|
|
23
27
|
|
|
24
28
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
/** These are the available parts for styling the component. */ ::part(button){' '}
|
|
37
|
+
{
|
|
38
|
+
// button styles
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
|
|
32
42
|
</head>
|
|
33
43
|
|
|
34
44
|
<body>
|
|
@@ -44,12 +54,13 @@ Renders an Apple Pay button for eligible devices and orchestrates the Apple Pay
|
|
|
44
54
|
|
|
45
55
|
## Props, Events & Methods
|
|
46
56
|
|
|
47
|
-
<
|
|
57
|
+
<PropsTable
|
|
58
|
+
rows={[
|
|
48
59
|
{
|
|
49
60
|
name: 'button-style',
|
|
50
61
|
type: '"black" | "white" | "white-outline"',
|
|
51
62
|
defaultValue: 'black',
|
|
52
|
-
description:
|
|
63
|
+
description: "Matches Apple's Human Interface Guidelines.",
|
|
53
64
|
},
|
|
54
65
|
{
|
|
55
66
|
name: 'button-type',
|
|
@@ -64,7 +75,8 @@ Renders an Apple Pay button for eligible devices and orchestrates the Apple Pay
|
|
|
64
75
|
description:
|
|
65
76
|
'Controls the region on the underlying `ApplePaySession` request.',
|
|
66
77
|
},
|
|
67
|
-
]
|
|
78
|
+
]}
|
|
79
|
+
/>
|
|
68
80
|
|
|
69
81
|
### Events
|
|
70
82
|
|
|
@@ -79,18 +91,12 @@ Renders an Apple Pay button for eligible devices and orchestrates the Apple Pay
|
|
|
79
91
|
|
|
80
92
|
- Styling is intentionally limited to keep Apple compliance.
|
|
81
93
|
|
|
82
|
-
<
|
|
94
|
+
<PartsTable
|
|
95
|
+
parts={[
|
|
83
96
|
{
|
|
84
97
|
name: 'button',
|
|
85
98
|
description:
|
|
86
99
|
'Wrapper around the native Apple Pay button for margin/padding tweaks.',
|
|
87
100
|
},
|
|
88
|
-
]
|
|
89
|
-
|
|
90
|
-
## Static examples
|
|
91
|
-
|
|
92
|
-
### Custom launch button
|
|
93
|
-
|
|
94
|
-
<pre><code className="language-js">{`const applePay = document.querySelector('justifi-apple-pay');
|
|
95
|
-
|
|
96
|
-
document.querySelector('#apple-pay-launch').onclick = () => applePay.begin();`}</code></pre>
|
|
101
|
+
]}
|
|
102
|
+
/>
|
|
@@ -5,7 +5,11 @@ description: Bank account rail for Modular Checkout that tokenizes ACH details w
|
|
|
5
5
|
sidebar_position: 28
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
9
13
|
|
|
10
14
|
## Overview
|
|
11
15
|
|
|
@@ -30,44 +34,46 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
30
34
|
<title>justifi-bank-account-form</title>
|
|
31
35
|
|
|
32
36
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
|
|
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
|
-
|
|
37
|
+
|
|
38
|
+
<script
|
|
39
|
+
nomodule
|
|
40
|
+
src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
|
|
41
|
+
></script>
|
|
42
|
+
|
|
43
|
+
<style>
|
|
44
|
+
/** These are the available parts for styling the component. */
|
|
45
|
+
::part(skeleton){' '}
|
|
46
|
+
{
|
|
47
|
+
// skeleton styles
|
|
48
|
+
}
|
|
49
|
+
::part(label){' '}
|
|
50
|
+
{
|
|
51
|
+
// label styles
|
|
52
|
+
}
|
|
53
|
+
::part(input-invalid-and-focused){' '}
|
|
54
|
+
{
|
|
55
|
+
// input invalid and focused styles
|
|
56
|
+
}
|
|
57
|
+
::part(input-invalid){' '}
|
|
58
|
+
{
|
|
59
|
+
// input invalid styles
|
|
60
|
+
}
|
|
61
|
+
::part(input-focused){' '}
|
|
62
|
+
{
|
|
63
|
+
// input focused styles
|
|
64
|
+
}
|
|
65
|
+
::part(input){' '}
|
|
66
|
+
{
|
|
67
|
+
// input styles
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
70
|
+
|
|
60
71
|
</head>
|
|
61
72
|
|
|
62
73
|
<body>
|
|
63
|
-
<justifi-modular-checkout
|
|
64
|
-
auth-token="authToken"
|
|
65
|
-
checkout-id="ch_123"
|
|
66
|
-
>
|
|
74
|
+
<justifi-modular-checkout auth-token="authToken" checkout-id="ch_123">
|
|
67
75
|
<justifi-bank-account-form />
|
|
68
|
-
<button id="submit-button">
|
|
69
|
-
Submit Checkout
|
|
70
|
-
</button>
|
|
76
|
+
<button id="submit-button">Submit Checkout</button>
|
|
71
77
|
</justifi-modular-checkout>
|
|
72
78
|
</body>
|
|
73
79
|
|
|
@@ -89,16 +95,18 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
89
95
|
});
|
|
90
96
|
})();
|
|
91
97
|
</script>
|
|
98
|
+
|
|
92
99
|
</html>`}</code></pre>
|
|
93
100
|
|
|
94
101
|
## Props, Events & Methods
|
|
95
102
|
|
|
96
|
-
<
|
|
103
|
+
<PropsTable
|
|
104
|
+
rows={[
|
|
97
105
|
{
|
|
98
106
|
name: 'payment-method-group-id',
|
|
99
107
|
type: 'string',
|
|
100
108
|
description:
|
|
101
|
-
|
|
109
|
+
"Match the parent checkout's group when you want to toggle which rails appear.",
|
|
102
110
|
},
|
|
103
111
|
{
|
|
104
112
|
name: 'show-account-type',
|
|
@@ -112,7 +120,8 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
112
120
|
defaultValue: 'en-US',
|
|
113
121
|
description: 'Controls labels + validation messages.',
|
|
114
122
|
},
|
|
115
|
-
]
|
|
123
|
+
]}
|
|
124
|
+
/>
|
|
116
125
|
|
|
117
126
|
### Events
|
|
118
127
|
|
|
@@ -124,7 +133,8 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
124
133
|
|
|
125
134
|
## Theming & Layout
|
|
126
135
|
|
|
127
|
-
<
|
|
136
|
+
<PartsTable
|
|
137
|
+
parts={[
|
|
128
138
|
{
|
|
129
139
|
name: 'skeleton',
|
|
130
140
|
description: 'Skeleton loading state styles.',
|
|
@@ -149,14 +159,5 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
149
159
|
name: 'input',
|
|
150
160
|
description: 'Input field styles.',
|
|
151
161
|
},
|
|
152
|
-
]
|
|
153
|
-
|
|
154
|
-
## Static examples
|
|
155
|
-
|
|
156
|
-
### Auto-focus fields
|
|
157
|
-
|
|
158
|
-
Tie custom UI to the public `focus()` method.
|
|
159
|
-
|
|
160
|
-
<pre><code className="language-js">{`const bankForm = document.querySelector('justifi-bank-account-form');
|
|
161
|
-
|
|
162
|
-
document.querySelector('#focus-bank').onclick = () => bankForm.focus();`}</code></pre>
|
|
162
|
+
]}
|
|
163
|
+
/>
|
|
@@ -5,7 +5,11 @@ description: Card entry sub-component for Modular Checkout layouts with shared v
|
|
|
5
5
|
sidebar_position: 2
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
9
13
|
|
|
10
14
|
## Overview
|
|
11
15
|
|
|
@@ -30,44 +34,46 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
30
34
|
<title>justifi-card-form</title>
|
|
31
35
|
|
|
32
36
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
|
|
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
|
-
|
|
37
|
+
|
|
38
|
+
<script
|
|
39
|
+
nomodule
|
|
40
|
+
src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
|
|
41
|
+
></script>
|
|
42
|
+
|
|
43
|
+
<style>
|
|
44
|
+
/** These are the available parts for styling the component. */
|
|
45
|
+
::part(skeleton){' '}
|
|
46
|
+
{
|
|
47
|
+
// skeleton styles
|
|
48
|
+
}
|
|
49
|
+
::part(label){' '}
|
|
50
|
+
{
|
|
51
|
+
// label styles
|
|
52
|
+
}
|
|
53
|
+
::part(input-invalid-and-focused){' '}
|
|
54
|
+
{
|
|
55
|
+
// input invalid and focused styles
|
|
56
|
+
}
|
|
57
|
+
::part(input-invalid){' '}
|
|
58
|
+
{
|
|
59
|
+
// input invalid styles
|
|
60
|
+
}
|
|
61
|
+
::part(input-focused){' '}
|
|
62
|
+
{
|
|
63
|
+
// input focused styles
|
|
64
|
+
}
|
|
65
|
+
::part(input){' '}
|
|
66
|
+
{
|
|
67
|
+
// input styles
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
70
|
+
|
|
60
71
|
</head>
|
|
61
72
|
|
|
62
73
|
<body>
|
|
63
|
-
<justifi-modular-checkout
|
|
64
|
-
auth-token="authToken"
|
|
65
|
-
checkout-id="ch_123"
|
|
66
|
-
>
|
|
74
|
+
<justifi-modular-checkout auth-token="authToken" checkout-id="ch_123">
|
|
67
75
|
<justifi-card-form />
|
|
68
|
-
<button id="submit-button">
|
|
69
|
-
Submit Checkout
|
|
70
|
-
</button>
|
|
76
|
+
<button id="submit-button">Submit Checkout</button>
|
|
71
77
|
</justifi-modular-checkout>
|
|
72
78
|
</body>
|
|
73
79
|
|
|
@@ -89,11 +95,13 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
89
95
|
});
|
|
90
96
|
})();
|
|
91
97
|
</script>
|
|
98
|
+
|
|
92
99
|
</html>`}</code></pre>
|
|
93
100
|
|
|
94
101
|
## Props, Events & Methods
|
|
95
102
|
|
|
96
|
-
<
|
|
103
|
+
<PropsTable
|
|
104
|
+
rows={[
|
|
97
105
|
{
|
|
98
106
|
name: 'payment-method-group-id',
|
|
99
107
|
type: 'string',
|
|
@@ -119,7 +127,8 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
119
127
|
defaultValue: 'en-US',
|
|
120
128
|
description: 'Overrides localized labels if needed.',
|
|
121
129
|
},
|
|
122
|
-
]
|
|
130
|
+
]}
|
|
131
|
+
/>
|
|
123
132
|
|
|
124
133
|
### Events
|
|
125
134
|
|
|
@@ -133,7 +142,8 @@ All submit and error events bubble through the parent `<justifi-modular-checkout
|
|
|
133
142
|
|
|
134
143
|
- When embedded inside cards, wrap the host element in your layout container and scope typography overrides via the parts listed below.
|
|
135
144
|
|
|
136
|
-
<
|
|
145
|
+
<PartsTable
|
|
146
|
+
parts={[
|
|
137
147
|
{
|
|
138
148
|
name: 'skeleton',
|
|
139
149
|
description: 'Skeleton loading state styles.',
|
|
@@ -158,20 +168,7 @@ All submit and error events bubble through the parent `<justifi-modular-checkout
|
|
|
158
168
|
name: 'input',
|
|
159
169
|
description: 'Input field styles.',
|
|
160
170
|
},
|
|
161
|
-
]
|
|
171
|
+
]}
|
|
172
|
+
/>
|
|
162
173
|
|
|
163
174
|
- Use the `card-form` CSS part (`::part(card-form)`) to apply box shadows or wrapper padding.
|
|
164
|
-
|
|
165
|
-
## Static examples
|
|
166
|
-
|
|
167
|
-
### Card form with disabled save option
|
|
168
|
-
|
|
169
|
-
<pre><code className="language-html">{`<justifi-modular-checkout-card-form
|
|
170
|
-
show-save-payment-method="false"
|
|
171
|
-
/>`}</code></pre>
|
|
172
|
-
|
|
173
|
-
### Force brand icons off
|
|
174
|
-
|
|
175
|
-
<pre><code className="language-html">{`<justifi-modular-checkout-card-form
|
|
176
|
-
card-brand-icons="none"
|
|
177
|
-
/>`}</code></pre>
|
|
@@ -13,18 +13,21 @@ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
|
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
|
-
<pre
|
|
16
|
+
<pre>
|
|
17
|
+
<code className="language-html">{`<justifi-payment-method-options
|
|
17
18
|
selected="card"
|
|
18
19
|
options='[
|
|
19
20
|
{"id":"card","label":"Credit or debit card"},
|
|
20
21
|
{"id":"ach","label":"Bank account"},
|
|
21
22
|
{"id":"wallet","label":"Digital wallet"}
|
|
22
23
|
]'
|
|
23
|
-
></justifi-payment-method-options>`}</code
|
|
24
|
+
></justifi-payment-method-options>`}</code>
|
|
25
|
+
</pre>
|
|
24
26
|
|
|
25
27
|
## Props, Events & Methods
|
|
26
28
|
|
|
27
|
-
<
|
|
29
|
+
<PropsTable
|
|
30
|
+
rows={[
|
|
28
31
|
{
|
|
29
32
|
name: 'options',
|
|
30
33
|
type: 'Array<{ id: string; label: string; description?: string; icon?: string }>',
|
|
@@ -49,7 +52,8 @@ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
|
|
|
49
52
|
description:
|
|
50
53
|
'Prevent users from switching rails (e.g., while submitting).',
|
|
51
54
|
},
|
|
52
|
-
]
|
|
55
|
+
]}
|
|
56
|
+
/>
|
|
53
57
|
|
|
54
58
|
### Events
|
|
55
59
|
|
|
@@ -61,7 +65,8 @@ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
|
|
|
61
65
|
|
|
62
66
|
## Theming & Layout
|
|
63
67
|
|
|
64
|
-
<
|
|
68
|
+
<PartsTable
|
|
69
|
+
parts={[
|
|
65
70
|
{
|
|
66
71
|
name: 'option',
|
|
67
72
|
description: 'Individual rail container (card/tab/list row).',
|
|
@@ -74,12 +79,5 @@ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
|
|
|
74
79
|
name: 'option-description',
|
|
75
80
|
description: 'Secondary text area for additional guidance.',
|
|
76
81
|
},
|
|
77
|
-
]
|
|
78
|
-
|
|
79
|
-
## Static examples
|
|
80
|
-
|
|
81
|
-
### Programmatic selection
|
|
82
|
-
|
|
83
|
-
<pre><code className="language-js">{`const options = document.querySelector('justifi-payment-method-options');
|
|
84
|
-
|
|
85
|
-
document.querySelector('#select-ach').onclick = () => options.select('ach');`}</code></pre>
|
|
82
|
+
]}
|
|
83
|
+
/>
|
|
@@ -5,7 +5,11 @@ description: Plaid-powered ACH rail for Modular Checkout with hosted Link flow.
|
|
|
5
5
|
sidebar_position: 23
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
9
13
|
|
|
10
14
|
## Overview
|
|
11
15
|
|
|
@@ -28,48 +32,28 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
28
32
|
<title>justifi-plaid-payment-method</title>
|
|
29
33
|
|
|
30
34
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
::part(input-radio-focused) {
|
|
51
|
-
/* input radio focused styles */
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
::part(input-radio-checked) {
|
|
55
|
-
/* input radio checked styles */
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
::part(input-radio-checked-focused) {
|
|
59
|
-
/* input radio checked focused styles */
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
::part(input-radio-invalid) {
|
|
63
|
-
/* input radio invalid styles */
|
|
64
|
-
}
|
|
65
|
-
</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
|
+
{/* text styles */}
|
|
44
|
+
::part(text-danger) {/* text danger styles */}
|
|
45
|
+
::part(label) {/* label styles */}
|
|
46
|
+
::part(input-radio) {/* input radio styles */}
|
|
47
|
+
::part(input-radio-focused) {/* input radio focused styles */}
|
|
48
|
+
::part(input-radio-checked) {/* input radio checked styles */}
|
|
49
|
+
::part(input-radio-checked-focused) {/* input radio checked focused styles */}
|
|
50
|
+
::part(input-radio-invalid) {/* input radio invalid styles */}
|
|
51
|
+
</style>
|
|
52
|
+
|
|
66
53
|
</head>
|
|
67
54
|
|
|
68
55
|
<body>
|
|
69
|
-
<justifi-modular-checkout
|
|
70
|
-
auth-token="authToken"
|
|
71
|
-
checkout-id="ch_123"
|
|
72
|
-
>
|
|
56
|
+
<justifi-modular-checkout auth-token="authToken" checkout-id="ch_123">
|
|
73
57
|
<justifi-plaid-payment-method />
|
|
74
58
|
</justifi-modular-checkout>
|
|
75
59
|
</body>
|
|
@@ -87,11 +71,13 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
87
71
|
});
|
|
88
72
|
})();
|
|
89
73
|
</script>
|
|
74
|
+
|
|
90
75
|
</html>`}</code></pre>
|
|
91
76
|
|
|
92
77
|
## Props, Events & Methods
|
|
93
78
|
|
|
94
|
-
<
|
|
79
|
+
<PropsTable
|
|
80
|
+
rows={[
|
|
95
81
|
{
|
|
96
82
|
name: 'link-token',
|
|
97
83
|
type: 'string',
|
|
@@ -111,7 +97,8 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
111
97
|
defaultValue: 'dark',
|
|
112
98
|
description: 'Controls Plaid Link UI theme.',
|
|
113
99
|
},
|
|
114
|
-
]
|
|
100
|
+
]}
|
|
101
|
+
/>
|
|
115
102
|
|
|
116
103
|
### Events
|
|
117
104
|
|
|
@@ -129,7 +116,8 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
129
116
|
- Styling is limited to the wrapper since Plaid controls the Link modal.
|
|
130
117
|
- Provide fallback instructions for devices where Plaid is unavailable.
|
|
131
118
|
|
|
132
|
-
<
|
|
119
|
+
<PartsTable
|
|
120
|
+
parts={[
|
|
133
121
|
{
|
|
134
122
|
name: 'text',
|
|
135
123
|
description: 'Text styles.',
|
|
@@ -162,14 +150,5 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
162
150
|
name: 'input-radio-invalid',
|
|
163
151
|
description: 'Radio input styles when invalid.',
|
|
164
152
|
},
|
|
165
|
-
]
|
|
166
|
-
|
|
167
|
-
## Static examples
|
|
168
|
-
|
|
169
|
-
### Listening for success
|
|
170
|
-
|
|
171
|
-
<pre><code className="language-js">{`const plaidRail = document.querySelector('justifi-plaid-payment-method');
|
|
172
|
-
|
|
173
|
-
plaidRail.addEventListener('plaid-success', ({ detail }) => {
|
|
174
|
-
console.log('Bank linked: ', detail.institution.name);
|
|
175
|
-
});`}</code></pre>
|
|
153
|
+
]}
|
|
154
|
+
/>
|