@motopays/pay-form 2.5.3 → 2.5.4-rc.1

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