@motopays/pay-form 1.0.16-rc.1 → 1.0.16
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 +90 -90
- package/README.md +323 -323
- package/lib/index.js +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 1.0.16
|
|
4
|
-
|
|
5
|
-
### Added
|
|
6
|
-
- 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
|
|
7
|
-
|
|
8
|
-
### Changed
|
|
9
|
-
- 'hidden-enabled' and 'disabled' states for settings.requiredFieldsBehavior.buttonStateUntilCorrect enables buttons when user has filled required fields (without validation). On click the validation occures
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## 1.0.15
|
|
16
|
-
|
|
17
|
-
### Fixed
|
|
18
|
-
- ApplePay button is absent when the user has already paid by ApplePay opens the form again
|
|
19
|
-
- Overlapping "Protected by" logos
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## 1.0.14
|
|
25
|
-
|
|
26
|
-
### Added
|
|
27
|
-
- Possibility to control the location of charge terms component by settings.chargeTerms.location fields (Values: 'AfterPay', 'BeforePay')
|
|
28
|
-
- Possibility to control the behavior of form errors (for details check settings.requiredFieldsBehavior in Readme.md)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
## 1.0.13
|
|
33
|
-
|
|
34
|
-
### Added
|
|
35
|
-
- ApplePay (requirements: Apple environment, https, userAuthToken is not empty)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
## 1.0.11
|
|
40
|
-
|
|
41
|
-
### Changed
|
|
42
|
-
- Payment requests are encrypted
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
## 1.0.10
|
|
47
|
-
|
|
48
|
-
### Breaking changes
|
|
49
|
-
|
|
50
|
-
##### Payment model
|
|
51
|
-
- cusomterAuthToken field renamed to userAuthToken
|
|
52
|
-
- customerId field renamed to userId
|
|
53
|
-
- env field deleted (set urls.billingProfiles and urls.processing from 'settings' model instead)
|
|
54
|
-
|
|
55
|
-
##### Settings model
|
|
56
|
-
- the model has become mandatory
|
|
57
|
-
- isEmailFieldVisible field deleted
|
|
58
|
-
- merchantInfo field type changed. Now it's: {
|
|
59
|
-
 visible: boolean,
|
|
60
|
-
 text: string,
|
|
61
|
-
 links?: ILink[]
|
|
62
|
-
}
|
|
63
|
-
- isMerchantInfoVisible field renamed and moved to merchantInfo.visible
|
|
64
|
-
- merchantLinks field renamed and moved to merchantInfo.links
|
|
65
|
-
- urls field added instead of env field from 'payment'. Now it's: {
|
|
66
|
-
//example: "https://processing.dev.motopays.com"
|
|
67
|
-
 processing: string;
|
|
68
|
-
 billingProfiles: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
### Added
|
|
72
|
-
- chargeTerms field added to settings model. This field allows to configure checkboxes that have to be selected by users (otherwise, users cannot make payments).
|
|
73
|
-
The interface of the field: {
|
|
74
|
-
 visible: boolean,
|
|
75
|
-
 checkboxes?: ITermCheckbox[],
|
|
76
|
-
 text: string;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
The interface of ITermCheckbox: {
|
|
80
|
-
 text: string;
|
|
81
|
-
 link?: ILink;
|
|
82
|
-
}
|
|
83
|
-
- 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"
|
|
84
|
-
- Checkboxes
|
|
85
|
-
- Text for the checkboxes
|
|
86
|
-
- Payment methods icons
|
|
87
|
-
- Transactions secured icons
|
|
88
|
-
- Signature in response model of payment
|
|
89
|
-
|
|
90
|
-
### Changes
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.16
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- 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
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- 'hidden-enabled' and 'disabled' states for settings.requiredFieldsBehavior.buttonStateUntilCorrect enables buttons when user has filled required fields (without validation). On click the validation occures
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 1.0.15
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- ApplePay button is absent when the user has already paid by ApplePay opens the form again
|
|
19
|
+
- Overlapping "Protected by" logos
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## 1.0.14
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
- Possibility to control the location of charge terms component by settings.chargeTerms.location fields (Values: 'AfterPay', 'BeforePay')
|
|
28
|
+
- Possibility to control the behavior of form errors (for details check settings.requiredFieldsBehavior in Readme.md)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## 1.0.13
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
- ApplePay (requirements: Apple environment, https, userAuthToken is not empty)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## 1.0.11
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
- Payment requests are encrypted
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## 1.0.10
|
|
47
|
+
|
|
48
|
+
### Breaking changes
|
|
49
|
+
|
|
50
|
+
##### Payment model
|
|
51
|
+
- cusomterAuthToken field renamed to userAuthToken
|
|
52
|
+
- customerId field renamed to userId
|
|
53
|
+
- env field deleted (set urls.billingProfiles and urls.processing from 'settings' model instead)
|
|
54
|
+
|
|
55
|
+
##### Settings model
|
|
56
|
+
- the model has become mandatory
|
|
57
|
+
- isEmailFieldVisible field deleted
|
|
58
|
+
- merchantInfo field type changed. Now it's: {
|
|
59
|
+
 visible: boolean,
|
|
60
|
+
 text: string,
|
|
61
|
+
 links?: ILink[]
|
|
62
|
+
}
|
|
63
|
+
- isMerchantInfoVisible field renamed and moved to merchantInfo.visible
|
|
64
|
+
- merchantLinks field renamed and moved to merchantInfo.links
|
|
65
|
+
- urls field added instead of env field from 'payment'. Now it's: {
|
|
66
|
+
//example: "https://processing.dev.motopays.com"
|
|
67
|
+
 processing: string;
|
|
68
|
+
 billingProfiles: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
### Added
|
|
72
|
+
- chargeTerms field added to settings model. This field allows to configure checkboxes that have to be selected by users (otherwise, users cannot make payments).
|
|
73
|
+
The interface of the field: {
|
|
74
|
+
 visible: boolean,
|
|
75
|
+
 checkboxes?: ITermCheckbox[],
|
|
76
|
+
 text: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
The interface of ITermCheckbox: {
|
|
80
|
+
 text: string;
|
|
81
|
+
 link?: ILink;
|
|
82
|
+
}
|
|
83
|
+
- 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"
|
|
84
|
+
- Checkboxes
|
|
85
|
+
- Text for the checkboxes
|
|
86
|
+
- Payment methods icons
|
|
87
|
+
- Transactions secured icons
|
|
88
|
+
- Signature in response model of payment
|
|
89
|
+
|
|
90
|
+
### Changes
|
|
91
91
|
- Styles for links, indent and text at the bottom of the payment form
|