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