@sezzle/sezzle-react-widget 3.1.6 → 3.1.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/README.md +57 -48
- package/dist/index.cjs +463 -533
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +463 -533
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,78 +26,80 @@ The following props can be specified in the element to customize the widget's co
|
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
`price` (required)
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
**Purpose**: The price value from which to calculate the installment amount, including currency.
|
|
32
|
+
**Type**: string
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
`merchantId` (required)
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
**Purpose**: Site's 36-character Merchant ID, found in the Business Settings of Sezzle Merchant Dashboard.
|
|
37
|
+
**Type**: string
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
`theme` (optional)
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
**Purpose**: To control the Sezzle image variant. Use light or black-flat for light backgrounds, dark or white-flat for dark backgrounds.
|
|
42
|
+
**Type**: string
|
|
43
|
+
**Options**: light, dark, white-flat, black-flat
|
|
44
|
+
**Default**: light
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
`alignment` (optional)
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
**Type**: string
|
|
49
|
+
**Options**: auto, left, center, right
|
|
50
|
+
**Default**: auto
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
`fontWeight` (optional)
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
**Type**: number
|
|
55
|
+
**Default**: 500
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
`fontFamily` (optional)
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
**Type**: string
|
|
60
|
+
**Default**: inherit
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
`fontSize` (optional)
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
**Type**: number
|
|
65
|
+
**Default**: 14
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
`textColor` (optional)
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
**Type**: string
|
|
70
|
+
**Default**: inherit
|
|
70
71
|
|
|
71
|
-
|
|
72
|
+
`logoSize` (optional)
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
**Purpose**: To scale the logo (1 = 100%)
|
|
75
|
+
**Type**: number
|
|
76
|
+
**Default**: 1
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
`includeAPModal` (optional)
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
**Purpose**: To enable Afterpay's logo within the Sezzle widget
|
|
81
|
+
**Type**: boolean
|
|
82
|
+
**Default**: false
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
`numberOfPayments` (optional)
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
**Purpose**: Number of installments by which the shopper will pay the total, calculates installment amount.
|
|
87
|
+
**Type**: number
|
|
88
|
+
**Options**: 4, 5
|
|
89
|
+
**Default**: 5
|
|
90
|
+
**Additional Details**: Default 5 installments will appear above $50, and 4 installments will show below that amount. If override reflects `4`, 5 installments will never show in the widget or modal.
|
|
89
91
|
|
|
90
|
-
|
|
92
|
+
`minPrice` (optional)
|
|
91
93
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
**Purpose**: to display a checkout minimum within the Sezzle widget
|
|
95
|
+
**Type**: number
|
|
96
|
+
**Default**: 0
|
|
95
97
|
|
|
96
|
-
|
|
98
|
+
`maxPrice` (optional)
|
|
97
99
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
**Purpose**: the threshold at which to not show biweekly installments within the Sezzle widget
|
|
101
|
+
**Type**: number
|
|
102
|
+
**Default**: 2500
|
|
101
103
|
|
|
102
104
|
## <b>The following are reserved for merchants enrolled in our long-term payment program. Please discuss with Sezzle point of contact before using the below config options:</b>
|
|
103
105
|
|
|
@@ -106,7 +108,14 @@ The following props can be specified in the element to customize the widget's co
|
|
|
106
108
|
**Purpose**: Minimum price for which purchase is eligible for long-term lending. Above this amount, the monthly installments with interest will be reflected in the widget and modal. Below this amount, the 4-pay widget and modal will render.
|
|
107
109
|
**Type**: number
|
|
108
110
|
**Default**: 0
|
|
109
|
-
**Additional Details**:
|
|
111
|
+
**Additional Details**: This is the primary indicator that long-term installments should be reflected in the widget.
|
|
112
|
+
|
|
113
|
+
`maxPriceLT` (optional)
|
|
114
|
+
|
|
115
|
+
**Purpose**: Maximum price for which purchase is eligible for long-term lending. Above this amount, the widget will not render.
|
|
116
|
+
**Type**: number
|
|
117
|
+
**Default**: 15000
|
|
118
|
+
**Additional Details**: Previously, `maxPrice` would be overridden. Now that field should only be used for biweekly installment maximum, and this should be used for long-term.
|
|
110
119
|
|
|
111
120
|
`bestAPR` (optional)
|
|
112
121
|
|