@motopays/pay-form 1.0.18-rc → 1.0.19-rc.0
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 +27 -0
- package/README.md +23 -16
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.19
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- isSignatureRequired field added to settings model. Check README.md to see more details
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## 1.0.18
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- signature field added to payment model. Check README.md to see more details
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## 1.0.17
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
- analyticsTracked events. Check README.md to see more details
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
3
30
|
## 1.0.16
|
|
4
31
|
|
|
5
32
|
### Added
|
package/README.md
CHANGED
|
@@ -25,6 +25,9 @@ const payment$ = document.querySelector("#payment");
|
|
|
25
25
|
//This listener has to be assigned before payment and settings fields set
|
|
26
26
|
payment$.addEventListener("analyticsTracked", (event) => {
|
|
27
27
|
console.log("analytics data was detected: ", e); // Custom event
|
|
28
|
+
if(event.detail.type == 'user-preference-checkbox-1-check') {
|
|
29
|
+
console.log(event.detail.payload);
|
|
30
|
+
}
|
|
28
31
|
});
|
|
29
32
|
|
|
30
33
|
payment$.payment = {
|
|
@@ -48,6 +51,7 @@ payment$.payment = {
|
|
|
48
51
|
details?: ISimple<any>; //any object
|
|
49
52
|
phoneNumber?: string;
|
|
50
53
|
ipAddress?: string;
|
|
54
|
+
signature?: string;
|
|
51
55
|
|
|
52
56
|
billingAddress?: {
|
|
53
57
|
addressLine: string;
|
|
@@ -61,6 +65,7 @@ payment$.payment = {
|
|
|
61
65
|
payment$.settings = {
|
|
62
66
|
isPhoneNumberFieldVisible: boolean;
|
|
63
67
|
isCloseButtonVisible: boolean;
|
|
68
|
+
isSignatureRequired: boolean;
|
|
64
69
|
|
|
65
70
|
urls: {
|
|
66
71
|
//For example, "https://billingprofiles.dating.com
|
|
@@ -135,6 +140,7 @@ declare module "@motopays/pay-form/pay";
|
|
|
135
140
|
| billingAddress.state | string | State of a customer bank account |
|
|
136
141
|
| billingAddress.country | string | Country of a customer bank account (ISO 3166-1 alpha-2 country code). Example: US |
|
|
137
142
|
| billingAddress.zip | string | Zip of a customer bank account |
|
|
143
|
+
| signature | string | The signature of the payment. For details contact technical support |
|
|
138
144
|
|
|
139
145
|
### Settings interface
|
|
140
146
|
|
|
@@ -144,6 +150,7 @@ declare module "@motopays/pay-form/pay";
|
|
|
144
150
|
| urls.processing **\*required** | string | The processing service URL |
|
|
145
151
|
| urls.billingprofiles **\*required** | string | The billing profiles service URL |
|
|
146
152
|
| isPhoneNumberFieldVisible | boolean | Whether to show the phone input field when creating a map |
|
|
153
|
+
| isSignatureRequired | boolean | Whether to show an error and deny access to the payment form if the signature field in the payment model is not set |
|
|
147
154
|
| isCloseButtonVisible | boolean | Whether to show a window close button in the top right corner of the screen |
|
|
148
155
|
| merchantInfo | IMerchantInfoSettings | The information displays in merchant info section |
|
|
149
156
|
| merchantInfo.visible | boolean | Whether to show the merchant information |
|
|
@@ -328,22 +335,22 @@ IRedirectData {
|
|
|
328
335
|
### Analytics
|
|
329
336
|
For receiving analytics listen analyticsTracked events.
|
|
330
337
|
|
|
331
|
-
'init-start' - the form has started initializtion. Payload: void
|
|
332
|
-
'loading-finish' - the form has finished initialization and loading. Payload: void
|
|
333
|
-
'card-number-field-click' - the card number field has been clicked. Payload: void
|
|
334
|
-
'expiration-date-field-click' - the expiration date field has been clicked. Payload: void
|
|
335
|
-
'cvv-field-click' - the cvv field has been clicked. Payload: void
|
|
336
|
-
'card-holder-field-click' - the card holder field has been clicked. Payload: void
|
|
337
|
-
'charge-term-checkbox-<number>-check' - the charge term checkbox has been checked. Payload: IChargeTermsAnalytics
|
|
338
|
-
'charge-term-checkbox-<number>-uncheck' - the charge term checkbox has been unchecked. Payload: IChargeTermsAnalytics
|
|
339
|
-
'user-preference-checkbox-<number>-check' - the user preference checbox has been checked. Payload: IUserPreferencesAnalytics
|
|
340
|
-
'user-preference-checkbox-<number>-uncheck' - the user preference checbox has been unchecked. Payload: IUserPreferencesAnalytics
|
|
341
|
-
'pay-button-click' - the 'Pay' button has been clicked (payment by card). Payload: void
|
|
342
|
-
'<apm>-button-click' - the apm payment button has been clicked. Payload: void
|
|
343
|
-
'add-card-button-click' - the "Add New Card" button has been clicked. Payload: void
|
|
344
|
-
'card-options-button-click' - the card options button has been clicked (existing card menu visualised as 3 vertical dots). Payload: ICardAnalytics
|
|
345
|
-
'remove-card-button-click' - the card removing button has been clicked. Payload: ICardAnalytics
|
|
346
|
-
'select-card-button-click' - the card selecting button has been clicked. Payload: ICardAnalytics
|
|
338
|
+
'init-start' - the form has started initializtion. Payload: void.<br>
|
|
339
|
+
'loading-finish' - the form has finished initialization and loading. Payload: void.<br>
|
|
340
|
+
'card-number-field-click' - the card number field has been clicked. Payload: void.<br>
|
|
341
|
+
'expiration-date-field-click' - the expiration date field has been clicked. Payload: void.<br>
|
|
342
|
+
'cvv-field-click' - the cvv field has been clicked. Payload: void.<br>
|
|
343
|
+
'card-holder-field-click' - the card holder field has been clicked. Payload: void.<br>
|
|
344
|
+
'charge-term-checkbox-<number>-check' - the charge term checkbox has been checked. Payload: IChargeTermsAnalytics.<br>
|
|
345
|
+
'charge-term-checkbox-<number>-uncheck' - the charge term checkbox has been unchecked. Payload: IChargeTermsAnalytics.<br>
|
|
346
|
+
'user-preference-checkbox-<number>-check' - the user preference checbox has been checked. Payload: IUserPreferencesAnalytics.<br>
|
|
347
|
+
'user-preference-checkbox-<number>-uncheck' - the user preference checbox has been unchecked. Payload: IUserPreferencesAnalytics.<br>
|
|
348
|
+
'pay-button-click' - the 'Pay' button has been clicked (payment by card). Payload: void.<br>
|
|
349
|
+
'<apm>-button-click' - the apm payment button has been clicked. Payload: void.<br>
|
|
350
|
+
'add-card-button-click' - the "Add New Card" button has been clicked. Payload: void.<br>
|
|
351
|
+
'card-options-button-click' - the card options button has been clicked (existing card menu visualised as 3 vertical dots). Payload: ICardAnalytics.<br>
|
|
352
|
+
'remove-card-button-click' - the card removing button has been clicked. Payload: ICardAnalytics.<br>
|
|
353
|
+
'select-card-button-click' - the card selecting button has been clicked. Payload: ICardAnalytics.<br>
|
|
347
354
|
|
|
348
355
|
Examples of dynamic event types (number inserting):
|
|
349
356
|
 1. Example of the first checkbox: 'charge-term-checkbox-0-check'
|