@motopays/pay-form 2.6.0 → 2.6.1-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 +342 -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,343 @@
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.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
343
343
  - Styles for links, indent and text at the bottom of the payment form