@motopays/pay-form 1.0.10-rc.3 → 1.0.10

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 ADDED
@@ -0,0 +1,48 @@
1
+ # Changelog
2
+
3
+ ## 1.0.10
4
+
5
+ ### Breaking changes
6
+
7
+ ##### Payment model
8
+ - cusomterAuthToken field renamed to userAuthToken
9
+ - customerId field renamed to userId
10
+ - env field deleted (set urls.billingProfiles and urls.processing from 'settings' model instead)
11
+
12
+ ##### Settings model
13
+ - the model has become mandatory
14
+ - isEmailFieldVisible field deleted
15
+ - merchantInfo field type changed. Now it's: {
16
+  visible: boolean,
17
+  text: string,
18
+  links?: ILink[]
19
+ }
20
+ - isMerchantInfoVisible field renamed and moved to merchantInfo.visible
21
+ - merchantLinks field renamed and moved to merchantInfo.links
22
+ - urls field added instead of env field from 'payment'. Now it's: {
23
+ //example: "https://processing.dev.motopays.com"
24
+  processing: string;
25
+  billingProfiles: string;
26
+ }
27
+
28
+ ### Added
29
+ - chargeTerms field added to settings model. This field allows to configure checkboxes that have to be selected by users (otherwise, users cannot make payments).
30
+ The interface of the field: {
31
+  visible: boolean,
32
+  checkboxes?: ITermCheckbox[],
33
+  text: string;
34
+ }
35
+
36
+ The interface of ITermCheckbox: {
37
+  text: string;
38
+  link?: ILink;
39
+ }
40
+ - 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"
41
+ - Checkboxes
42
+ - Text for the checkboxes
43
+ - Payment methods icons
44
+ - Transactions secured icons
45
+ - Signature in response model of payment
46
+
47
+ ### Changes
48
+ - Styles for links, indent and text at the bottom of the payment form