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