@motopays/pay-form 1.0.21 → 1.0.22-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.
package/CHANGELOG.md CHANGED
@@ -1,138 +1,181 @@
1
- # Changelog
2
-
3
- ## 1.0.21
4
-
5
- ### Added
6
- - 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
7
-
8
-
9
-
10
-
11
-
12
-
13
- ## 1.0.20
14
-
15
- ### Added
16
- - support for displaying any currency
17
-
18
-
19
-
20
-
21
-
22
-
23
- ## 1.0.19
24
-
25
- ### Added
26
- - isSignatureRequired field added to settings model. Check README.md to see more details
27
-
28
-
29
-
30
-
31
-
32
- ## 1.0.18
33
-
34
- ### Added
35
- - signature field added to payment model. Check README.md to see more details
36
-
37
-
38
-
39
-
40
-
41
- ## 1.0.17
42
-
43
- ### Added
44
- - analyticsTracked events. Check README.md to see more details
45
-
46
-
47
-
48
-
49
-
50
- ## 1.0.16
51
-
52
- ### Added
53
- - 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
54
-
55
- ### Changed
56
- - 'hidden-enabled' and 'disabled' states for settings.requiredFieldsBehavior.buttonStateUntilCorrect enables buttons when user has filled required fields (without validation). On click the validation occures
57
-
58
-
59
-
60
-
61
-
62
- ## 1.0.15
63
-
64
- ### Fixed
65
- - ApplePay button is absent when the user has already paid by ApplePay opens the form again
66
- - Overlapping "Protected by" logos
67
-
68
-
69
-
70
-
71
- ## 1.0.14
72
-
73
- ### Added
74
- - Possibility to control the location of charge terms component by settings.chargeTerms.location fields (Values: 'AfterPay', 'BeforePay')
75
- - Possibility to control the behavior of form errors (for details check settings.requiredFieldsBehavior in Readme.md)
76
-
77
-
78
-
79
- ## 1.0.13
80
-
81
- ### Added
82
- - ApplePay (requirements: Apple environment, https, userAuthToken is not empty)
83
-
84
-
85
-
86
- ## 1.0.11
87
-
88
- ### Changed
89
- - Payment requests are encrypted
90
-
91
-
92
-
93
- ## 1.0.10
94
-
95
- ### Breaking changes
96
-
97
- ##### Payment model
98
- - cusomterAuthToken field renamed to userAuthToken
99
- - customerId field renamed to userId
100
- - env field deleted (set urls.billingProfiles and urls.processing from 'settings' model instead)
101
-
102
- ##### Settings model
103
- - the model has become mandatory
104
- - isEmailFieldVisible field deleted
105
- - merchantInfo field type changed. Now it's: {
106
-  visible: boolean,
107
-  text: string,
108
-  links?: ILink[]
109
- }
110
- - isMerchantInfoVisible field renamed and moved to merchantInfo.visible
111
- - merchantLinks field renamed and moved to merchantInfo.links
112
- - urls field added instead of env field from 'payment'. Now it's: {
113
- //example: "https://processing.dev.motopays.com"
114
-  processing: string;
115
-  billingProfiles: string;
116
- }
117
-
118
- ### Added
119
- - chargeTerms field added to settings model. This field allows to configure checkboxes that have to be selected by users (otherwise, users cannot make payments).
120
- The interface of the field: {
121
-  visible: boolean,
122
-  checkboxes?: ITermCheckbox[],
123
-  text: string;
124
- }
125
-
126
- The interface of ITermCheckbox: {
127
-  text: string;
128
-  link?: ILink;
129
- }
130
- - 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"
131
- - Checkboxes
132
- - Text for the checkboxes
133
- - Payment methods icons
134
- - Transactions secured icons
135
- - Signature in response model of payment
136
-
137
- ### Changes
1
+ # Changelog
2
+
3
+ ## 1.0.22
4
+
5
+ ### Added
6
+ - isHeaderVisible field to settings model. Read more details in README.md
7
+ - closePaymentRedirect field to settings model. Read more details in README.md
8
+ - languageSettings field to settings model. Read more details in README.md
9
+ - components field to settings model. Read more details in README.md
10
+ - resultComponentsStructure field to settings model. Read more details in README.md
11
+ - events field to settings model. Read more details in README.md
12
+ - apmsCollapse field to settings model. Read more details in README.md
13
+ - linkify functionality. Read more details in README.md
14
+ - language functionality. Read more details in README.md
15
+ - components positions functionality. Read more details in README.md
16
+
17
+ ### Breaking changes
18
+
19
+ #### Payment model
20
+ - email field is required
21
+ - 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
22
+ - 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
23
+ - 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
24
+
25
+ #### Settings model
26
+ - isPhoneNumberFieldVisible field deleted
27
+ - chargeTerms model changed. Read more details in README.md
28
+ - userPreferences model changed. Read more details in README.md
29
+ - merchantInfo model changed. Read more details in README.md
30
+ - requiredFieldsBehavior.buttonStateUntilCorrect renamed to requiredFieldsBehavior.buttonStateUntilFilled
31
+
32
+ #### Events
33
+ - analytics events renamed and restructured. Read more details in README.md
34
+
35
+ #### Other
36
+ - some styles were renamed and restructured
37
+ - index.js moved from ./lib/index.js to ./index.js
38
+ - styles.css moved from ./lib/styles/styles.css to ./styles.css
39
+ - types declaration. Read more details in README.md (see Usage section)
40
+
41
+
42
+
43
+
44
+
45
+
46
+ ## 1.0.21
47
+
48
+ ### Added
49
+ - 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
50
+
51
+
52
+
53
+
54
+
55
+
56
+ ## 1.0.20
57
+
58
+ ### Added
59
+ - support for displaying any currency
60
+
61
+
62
+
63
+
64
+
65
+
66
+ ## 1.0.19
67
+
68
+ ### Added
69
+ - isSignatureRequired field added to settings model. Check README.md to see more details
70
+
71
+
72
+
73
+
74
+
75
+ ## 1.0.18
76
+
77
+ ### Added
78
+ - signature field added to payment model. Check README.md to see more details
79
+
80
+
81
+
82
+
83
+
84
+ ## 1.0.17
85
+
86
+ ### Added
87
+ - analyticsTracked events. Check README.md to see more details
88
+
89
+
90
+
91
+
92
+
93
+ ## 1.0.16
94
+
95
+ ### Added
96
+ - 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
97
+
98
+ ### Changed
99
+ - 'hidden-enabled' and 'disabled' states for settings.requiredFieldsBehavior.buttonStateUntilCorrect enables buttons when user has filled required fields (without validation). On click the validation occures
100
+
101
+
102
+
103
+
104
+
105
+ ## 1.0.15
106
+
107
+ ### Fixed
108
+ - ApplePay button is absent when the user has already paid by ApplePay opens the form again
109
+ - Overlapping "Protected by" logos
110
+
111
+
112
+
113
+
114
+ ## 1.0.14
115
+
116
+ ### Added
117
+ - Possibility to control the location of charge terms component by settings.chargeTerms.location fields (Values: 'AfterPay', 'BeforePay')
118
+ - Possibility to control the behavior of form errors (for details check settings.requiredFieldsBehavior in Readme.md)
119
+
120
+
121
+
122
+ ## 1.0.13
123
+
124
+ ### Added
125
+ - ApplePay (requirements: Apple environment, https, userAuthToken is not empty)
126
+
127
+
128
+
129
+ ## 1.0.11
130
+
131
+ ### Changed
132
+ - Payment requests are encrypted
133
+
134
+
135
+
136
+ ## 1.0.10
137
+
138
+ ### Breaking changes
139
+
140
+ ##### Payment model
141
+ - cusomterAuthToken field renamed to userAuthToken
142
+ - customerId field renamed to userId
143
+ - env field deleted (set urls.billingProfiles and urls.processing from 'settings' model instead)
144
+
145
+ ##### Settings model
146
+ - the model has become mandatory
147
+ - isEmailFieldVisible field deleted
148
+ - merchantInfo field type changed. Now it's: {
149
+  visible: boolean,
150
+  text: string,
151
+  links?: ILink[]
152
+ }
153
+ - isMerchantInfoVisible field renamed and moved to merchantInfo.visible
154
+ - merchantLinks field renamed and moved to merchantInfo.links
155
+ - urls field added instead of env field from 'payment'. Now it's: {
156
+ //example: "https://processing.dev.motopays.com"
157
+  processing: string;
158
+  billingProfiles: string;
159
+ }
160
+
161
+ ### Added
162
+ - chargeTerms field added to settings model. This field allows to configure checkboxes that have to be selected by users (otherwise, users cannot make payments).
163
+ The interface of the field: {
164
+  visible: boolean,
165
+  checkboxes?: ITermCheckbox[],
166
+  text: string;
167
+ }
168
+
169
+ The interface of ITermCheckbox: {
170
+  text: string;
171
+  link?: ILink;
172
+ }
173
+ - 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"
174
+ - Checkboxes
175
+ - Text for the checkboxes
176
+ - Payment methods icons
177
+ - Transactions secured icons
178
+ - Signature in response model of payment
179
+
180
+ ### Changes
138
181
  - Styles for links, indent and text at the bottom of the payment form