@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 +23 -7
- package/lib/index.js +1 -1
- package/package.json +1 -1
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
|
-
|
|
62
|
-
|
|
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
|
-
|
|
|
116
|
-
|
|
|
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
|
|