@motopays/pay-form 2.4.0 → 2.4.1-rc.0

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