@motopays/pay-form 2.5.0-rc.1 → 2.5.1-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/CHANGELOG.md +330 -330
  2. package/README.md +652 -652
  3. package/index.js +1 -1
  4. package/package.json +27 -24
package/CHANGELOG.md CHANGED
@@ -1,331 +1,331 @@
1
- # Changelog
2
-
3
- ## 2.5.0
4
-
5
- ### Added
6
- - master checkbox. Read more details in README.md
7
- - GooglePay confirmation payment button
8
- - GooglePay button and card auth methods settings. Read more details in README.md
9
- - configuration options for checkbox shapes in charge-terms and user-preferences blocks
10
-
11
- ### Fixed
12
- - Toastr overlay remains in DOM after unmount
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
- ## 2.4.0
22
-
23
- ### Added
24
- - Apple Pay QR code support
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
- ## 2.3.1
34
-
35
- ### Added
36
- - Google Pay
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
- ## 2.2.2
47
-
48
- ### Fixed
49
- - deleted card is shown
50
- - pay button shows non-selected card
51
- - default user preference value is not provided to request
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
- ## 2.2.1
62
-
63
- ### Fixed
64
- - ApplePay improvements
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
- ## 2.2.0
75
-
76
- ### Added
77
- - fingerprint and deviceInfo additional fields for payment request
78
- - paymentFlow field to settings model. Read more details in README.md
79
- - createInvoice callback to moto-payment-form component for overriding invoice generation
80
- - makePayment callback to moto-payment-form component for overriding payment flow
81
- ### Changed
82
- - requisites encryption only instead of whole payment request
83
- ### Fixed
84
- - cascading UserPaymentMethod requests
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
- ## 2.1.0
95
-
96
- ### Added
97
- - isTaxVisible field in settings model. Read more details in README.md
98
-
99
- ### Fixed
100
- - popup blocking during payment processing
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
- ## 2.0.3
110
-
111
- ### Changed
112
- - an existing card can be selected not only by clicking on the checkbox but also by clicking anywhere on the card
113
-
114
- ### Fixed
115
- - existing cards are not shown when a successful payment by card occurs, and the user re-enters the form
116
- - selecting multiple cards is available
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
- ## 2.0.2
126
- ### Fixed
127
- - Manage cards collapsed by default
128
- - Empty userPreferences checkboxes array causes an error
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- ## 2.0.1
137
- - CHANGELOG.md updated
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- ## 2.0.0
146
- - major version updated (see 1.0.22)
147
-
148
-
149
-
150
-
151
-
152
-
153
- ## 1.0.22
154
-
155
- ### Added
156
- - isHeaderVisible field to settings model. Read more details in README.md
157
- - closePaymentRedirect field to settings model. Read more details in README.md
158
- - languageSettings field to settings model. Read more details in README.md
159
- - components field to settings model. Read more details in README.md
160
- - resultComponentsStructure field to settings model. Read more details in README.md
161
- - events field to settings model. Read more details in README.md
162
- - apmsCollapse field to settings model. Read more details in README.md
163
- - linkify functionality. Read more details in README.md
164
- - language functionality. Read more details in README.md
165
- - components positions functionality. Read more details in README.md
166
-
167
- ### Breaking changes
168
-
169
- #### Payment model
170
- - email field is required
171
- - amountType field type changed. Instead of enum with 'GrossWithoutGst', 'Net', 'Gross' values there is a string with 'gross-without-gst' | 'net' | 'gross' values. Type changed from AmountType to TAmountType
172
- - orderType field type changed. Instead of enum with 'Regular', 'FreeTrial' values there is a string with 'regular' | 'free-trial' | 'gems' values. Type changed from OrderType to TOrderType
173
- - initiator field type changed. Instead of enum with 'Customer', 'Merchant' values there is a string with 'customer' | 'merchant' values. Type changed from PaymentInitiatorType to TPaymentInitiator
174
-
175
- #### Settings model
176
- - isPhoneNumberFieldVisible field deleted
177
- - chargeTerms model changed. Read more details in README.md
178
- - userPreferences model changed. Read more details in README.md
179
- - merchantInfo model changed. Read more details in README.md
180
- - requiredFieldsBehavior.buttonStateUntilCorrect renamed to requiredFieldsBehavior.buttonStateUntilFilled
181
-
182
- #### Events
183
- - analytics events renamed and restructured. Read more details in README.md
184
-
185
- #### Other
186
- - some styles were renamed and restructured
187
- - index.js moved from ./lib/index.js to ./index.js
188
- - styles.css moved from ./lib/styles/styles.css to ./styles.css
189
- - types declaration. Read more details in README.md (see Usage section)
190
-
191
-
192
-
193
-
194
-
195
-
196
- ## 1.0.21
197
-
198
- ### Added
199
- - problem tips are added to the payment result page when the payment is rejected. This feature is controlled by the isProblemTipsListVisible field in the settings model. Check README.md for more details
200
-
201
-
202
-
203
-
204
-
205
-
206
- ## 1.0.20
207
-
208
- ### Added
209
- - support for displaying any currency
210
-
211
-
212
-
213
-
214
-
215
-
216
- ## 1.0.19
217
-
218
- ### Added
219
- - isSignatureRequired field added to settings model. Check README.md to see more details
220
-
221
-
222
-
223
-
224
-
225
- ## 1.0.18
226
-
227
- ### Added
228
- - signature field added to payment model. Check README.md to see more details
229
-
230
-
231
-
232
-
233
-
234
- ## 1.0.17
235
-
236
- ### Added
237
- - analyticsTracked events. Check README.md to see more details
238
-
239
-
240
-
241
-
242
-
243
- ## 1.0.16
244
-
245
- ### Added
246
- - userPreferences field added to settings model. This field allows to configure non-required checkboxes that have to be selected by users. Check README.md to see more details
247
-
248
- ### Changed
249
- - 'hidden-enabled' and 'disabled' states for settings.requiredFieldsBehavior.buttonStateUntilCorrect enables buttons when user has filled required fields (without validation). On click the validation occures
250
-
251
-
252
-
253
-
254
-
255
- ## 1.0.15
256
-
257
- ### Fixed
258
- - ApplePay button is absent when the user has already paid by ApplePay opens the form again
259
- - Overlapping "Protected by" logos
260
-
261
-
262
-
263
-
264
- ## 1.0.14
265
-
266
- ### Added
267
- - Possibility to control the location of charge terms component by settings.chargeTerms.location fields (Values: 'AfterPay', 'BeforePay')
268
- - Possibility to control the behavior of form errors (for details check settings.requiredFieldsBehavior in Readme.md)
269
-
270
-
271
-
272
- ## 1.0.13
273
-
274
- ### Added
275
- - ApplePay (requirements: Apple environment, https, userAuthToken is not empty)
276
-
277
-
278
-
279
- ## 1.0.11
280
-
281
- ### Changed
282
- - Payment requests are encrypted
283
-
284
-
285
-
286
- ## 1.0.10
287
-
288
- ### Breaking changes
289
-
290
- ##### Payment model
291
- - cusomterAuthToken field renamed to userAuthToken
292
- - customerId field renamed to userId
293
- - env field deleted (set urls.billingProfiles and urls.processing from 'settings' model instead)
294
-
295
- ##### Settings model
296
- - the model has become mandatory
297
- - isEmailFieldVisible field deleted
298
- - merchantInfo field type changed. Now it's: {
299
-  visible: boolean,
300
-  text: string,
301
-  links?: ILink[]
302
- }
303
- - isMerchantInfoVisible field renamed and moved to merchantInfo.visible
304
- - merchantLinks field renamed and moved to merchantInfo.links
305
- - urls field added instead of env field from 'payment'. Now it's: {
306
- //example: "https://processing.dev.motopays.com"
307
-  processing: string;
308
-  billingProfiles: string;
309
- }
310
-
311
- ### Added
312
- - chargeTerms field added to settings model. This field allows to configure checkboxes that have to be selected by users (otherwise, users cannot make payments).
313
- The interface of the field: {
314
-  visible: boolean,
315
-  checkboxes?: ITermCheckbox[],
316
-  text: string;
317
- }
318
-
319
- The interface of ITermCheckbox: {
320
-  text: string;
321
-  link?: ILink;
322
- }
323
- - availableCardBrands field added to settings model. It's an array of strings which will be shown to users as available card payment methods. Now it supports these strings: "american-express" | "discover" | "jcb" | "maestro" | "mastercard" | "unionpay" | "visa"
324
- - Checkboxes
325
- - Text for the checkboxes
326
- - Payment methods icons
327
- - Transactions secured icons
328
- - Signature in response model of payment
329
-
330
- ### Changes
1
+ # Changelog
2
+
3
+ ## 2.5.0
4
+
5
+ ### Added
6
+ - master checkbox. Read more details in README.md
7
+ - GooglePay confirmation payment button
8
+ - GooglePay button and card auth methods settings. Read more details in README.md
9
+ - configuration options for checkbox shapes in charge-terms and user-preferences blocks
10
+
11
+ ### Fixed
12
+ - Toastr overlay remains in DOM after unmount
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+ ## 2.4.0
22
+
23
+ ### Added
24
+ - Apple Pay QR code support
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+ ## 2.3.1
34
+
35
+ ### Added
36
+ - Google Pay
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ ## 2.2.2
47
+
48
+ ### Fixed
49
+ - deleted card is shown
50
+ - pay button shows non-selected card
51
+ - default user preference value is not provided to request
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ ## 2.2.1
62
+
63
+ ### Fixed
64
+ - ApplePay improvements
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+ ## 2.2.0
75
+
76
+ ### Added
77
+ - fingerprint and deviceInfo additional fields for payment request
78
+ - paymentFlow field to settings model. Read more details in README.md
79
+ - createInvoice callback to moto-payment-form component for overriding invoice generation
80
+ - makePayment callback to moto-payment-form component for overriding payment flow
81
+ ### Changed
82
+ - requisites encryption only instead of whole payment request
83
+ ### Fixed
84
+ - cascading UserPaymentMethod requests
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+ ## 2.1.0
95
+
96
+ ### Added
97
+ - isTaxVisible field in settings model. Read more details in README.md
98
+
99
+ ### Fixed
100
+ - popup blocking during payment processing
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ ## 2.0.3
110
+
111
+ ### Changed
112
+ - an existing card can be selected not only by clicking on the checkbox but also by clicking anywhere on the card
113
+
114
+ ### Fixed
115
+ - existing cards are not shown when a successful payment by card occurs, and the user re-enters the form
116
+ - selecting multiple cards is available
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+ ## 2.0.2
126
+ ### Fixed
127
+ - Manage cards collapsed by default
128
+ - Empty userPreferences checkboxes array causes an error
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ ## 2.0.1
137
+ - CHANGELOG.md updated
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ ## 2.0.0
146
+ - major version updated (see 1.0.22)
147
+
148
+
149
+
150
+
151
+
152
+
153
+ ## 1.0.22
154
+
155
+ ### Added
156
+ - isHeaderVisible field to settings model. Read more details in README.md
157
+ - closePaymentRedirect field to settings model. Read more details in README.md
158
+ - languageSettings field to settings model. Read more details in README.md
159
+ - components field to settings model. Read more details in README.md
160
+ - resultComponentsStructure field to settings model. Read more details in README.md
161
+ - events field to settings model. Read more details in README.md
162
+ - apmsCollapse field to settings model. Read more details in README.md
163
+ - linkify functionality. Read more details in README.md
164
+ - language functionality. Read more details in README.md
165
+ - components positions functionality. Read more details in README.md
166
+
167
+ ### Breaking changes
168
+
169
+ #### Payment model
170
+ - email field is required
171
+ - amountType field type changed. Instead of enum with 'GrossWithoutGst', 'Net', 'Gross' values there is a string with 'gross-without-gst' | 'net' | 'gross' values. Type changed from AmountType to TAmountType
172
+ - orderType field type changed. Instead of enum with 'Regular', 'FreeTrial' values there is a string with 'regular' | 'free-trial' | 'gems' values. Type changed from OrderType to TOrderType
173
+ - initiator field type changed. Instead of enum with 'Customer', 'Merchant' values there is a string with 'customer' | 'merchant' values. Type changed from PaymentInitiatorType to TPaymentInitiator
174
+
175
+ #### Settings model
176
+ - isPhoneNumberFieldVisible field deleted
177
+ - chargeTerms model changed. Read more details in README.md
178
+ - userPreferences model changed. Read more details in README.md
179
+ - merchantInfo model changed. Read more details in README.md
180
+ - requiredFieldsBehavior.buttonStateUntilCorrect renamed to requiredFieldsBehavior.buttonStateUntilFilled
181
+
182
+ #### Events
183
+ - analytics events renamed and restructured. Read more details in README.md
184
+
185
+ #### Other
186
+ - some styles were renamed and restructured
187
+ - index.js moved from ./lib/index.js to ./index.js
188
+ - styles.css moved from ./lib/styles/styles.css to ./styles.css
189
+ - types declaration. Read more details in README.md (see Usage section)
190
+
191
+
192
+
193
+
194
+
195
+
196
+ ## 1.0.21
197
+
198
+ ### Added
199
+ - problem tips are added to the payment result page when the payment is rejected. This feature is controlled by the isProblemTipsListVisible field in the settings model. Check README.md for more details
200
+
201
+
202
+
203
+
204
+
205
+
206
+ ## 1.0.20
207
+
208
+ ### Added
209
+ - support for displaying any currency
210
+
211
+
212
+
213
+
214
+
215
+
216
+ ## 1.0.19
217
+
218
+ ### Added
219
+ - isSignatureRequired field added to settings model. Check README.md to see more details
220
+
221
+
222
+
223
+
224
+
225
+ ## 1.0.18
226
+
227
+ ### Added
228
+ - signature field added to payment model. Check README.md to see more details
229
+
230
+
231
+
232
+
233
+
234
+ ## 1.0.17
235
+
236
+ ### Added
237
+ - analyticsTracked events. Check README.md to see more details
238
+
239
+
240
+
241
+
242
+
243
+ ## 1.0.16
244
+
245
+ ### Added
246
+ - userPreferences field added to settings model. This field allows to configure non-required checkboxes that have to be selected by users. Check README.md to see more details
247
+
248
+ ### Changed
249
+ - 'hidden-enabled' and 'disabled' states for settings.requiredFieldsBehavior.buttonStateUntilCorrect enables buttons when user has filled required fields (without validation). On click the validation occures
250
+
251
+
252
+
253
+
254
+
255
+ ## 1.0.15
256
+
257
+ ### Fixed
258
+ - ApplePay button is absent when the user has already paid by ApplePay opens the form again
259
+ - Overlapping "Protected by" logos
260
+
261
+
262
+
263
+
264
+ ## 1.0.14
265
+
266
+ ### Added
267
+ - Possibility to control the location of charge terms component by settings.chargeTerms.location fields (Values: 'AfterPay', 'BeforePay')
268
+ - Possibility to control the behavior of form errors (for details check settings.requiredFieldsBehavior in Readme.md)
269
+
270
+
271
+
272
+ ## 1.0.13
273
+
274
+ ### Added
275
+ - ApplePay (requirements: Apple environment, https, userAuthToken is not empty)
276
+
277
+
278
+
279
+ ## 1.0.11
280
+
281
+ ### Changed
282
+ - Payment requests are encrypted
283
+
284
+
285
+
286
+ ## 1.0.10
287
+
288
+ ### Breaking changes
289
+
290
+ ##### Payment model
291
+ - cusomterAuthToken field renamed to userAuthToken
292
+ - customerId field renamed to userId
293
+ - env field deleted (set urls.billingProfiles and urls.processing from 'settings' model instead)
294
+
295
+ ##### Settings model
296
+ - the model has become mandatory
297
+ - isEmailFieldVisible field deleted
298
+ - merchantInfo field type changed. Now it's: {
299
+  visible: boolean,
300
+  text: string,
301
+  links?: ILink[]
302
+ }
303
+ - isMerchantInfoVisible field renamed and moved to merchantInfo.visible
304
+ - merchantLinks field renamed and moved to merchantInfo.links
305
+ - urls field added instead of env field from 'payment'. Now it's: {
306
+ //example: "https://processing.dev.motopays.com"
307
+  processing: string;
308
+  billingProfiles: string;
309
+ }
310
+
311
+ ### Added
312
+ - chargeTerms field added to settings model. This field allows to configure checkboxes that have to be selected by users (otherwise, users cannot make payments).
313
+ The interface of the field: {
314
+  visible: boolean,
315
+  checkboxes?: ITermCheckbox[],
316
+  text: string;
317
+ }
318
+
319
+ The interface of ITermCheckbox: {
320
+  text: string;
321
+  link?: ILink;
322
+ }
323
+ - availableCardBrands field added to settings model. It's an array of strings which will be shown to users as available card payment methods. Now it supports these strings: "american-express" | "discover" | "jcb" | "maestro" | "mastercard" | "unionpay" | "visa"
324
+ - Checkboxes
325
+ - Text for the checkboxes
326
+ - Payment methods icons
327
+ - Transactions secured icons
328
+ - Signature in response model of payment
329
+
330
+ ### Changes
331
331
  - Styles for links, indent and text at the bottom of the payment form