@motopays/pay-form 1.0.8 → 1.0.9

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/README.md CHANGED
@@ -56,10 +56,11 @@ payment$.payment = {
56
56
  }
57
57
 
58
58
  payment$.settings = {
59
- isPhoneNumberFieldVisible: false,
60
- isCloseButtonVisible: true,
61
- isMotoInfoShown: true,
62
- motoInfo: 'The info'
59
+ isPhoneNumberFieldVisible: false;
60
+ isCloseButtonVisible: true;
61
+ isMerchantInfoVisible: true;
62
+ merchantInfo: 'The info';
63
+ merchantLinks: { text: string; href: string; } [];
63
64
  }
64
65
 
65
66
  payment$.addEventListener("close", (event) => {
@@ -74,7 +75,7 @@ payment$.addEventListener("paid", (event) => {
74
75
  ### Usage with TypeScript
75
76
 
76
77
  ```typescript
77
- declare module "@motopays/pay-form";
78
+ declare module "@motopays/pay-form/pay";
78
79
  ```
79
80
 
80
81
  ### Payment interface
@@ -112,8 +113,23 @@ declare module "@motopays/pay-form";
112
113
  |-----------------------------|---------|-----------------------------------------------------------------------------|
113
114
  | isPhoneNumberFieldVisible | boolean | Whether to show the phone input field when creating a map |
114
115
  | isCloseButtonVisible | boolean | Whether to show a window close button in the top right corner of the screen |
115
- | isMotoInfoShown | boolean | Whether to show information about Moto |
116
- | motoInfo | string | The information displays in info section |
116
+ | isMerchantInfoVisible | boolean | Whether to show information about merchant |
117
+ | merchantInfo | string | The information displays in merchant info section |
118
+ | merchantLinks | ILink[] | The array of link which will be displayed in merchant info section |
119
+
120
+ Example of merchant links:
121
+ ```
122
+ merchantLinks: [
123
+ {
124
+ text: 'Terms of service',
125
+ href: 'https://my.host.com/terms_of_service',
126
+ },
127
+ {
128
+ text: 'Privacy policy',
129
+ href: 'https://my.host.com/privacy_policy',
130
+ }
131
+ ]
132
+ ```
117
133
 
118
134
  ### Output events
119
135