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