@motopays/pay-form 1.0.18-rc → 1.0.18

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.18
4
+
5
+ ### Added
6
+ - signature in request. Check README.md to see more details
7
+
8
+
9
+
10
+
11
+
12
+ ## 1.0.17
13
+
14
+ ### Added
15
+ - analyticsTracked events. Check README.md to see more details
16
+
17
+
18
+
19
+
20
+
3
21
  ## 1.0.16
4
22
 
5
23
  ### 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;
@@ -135,6 +139,7 @@ declare module "@motopays/pay-form/pay";
135
139
  | billingAddress.state | string | State of a customer bank account |
136
140
  | billingAddress.country | string | Country of a customer bank account (ISO 3166-1 alpha-2 country code). Example: US |
137
141
  | billingAddress.zip | string | Zip of a customer bank account |
142
+ | signature | string | The signature of the payment. For details contact technical support |
138
143
 
139
144
  ### Settings interface
140
145
 
@@ -328,22 +333,22 @@ IRedirectData {
328
333
  ### Analytics
329
334
  For receiving analytics listen analyticsTracked events.
330
335
 
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.
336
+ 'init-start' - the form has started initializtion. Payload: void.<br>
337
+ 'loading-finish' - the form has finished initialization and loading. Payload: void.<br>
338
+ 'card-number-field-click' - the card number field has been clicked. Payload: void.<br>
339
+ 'expiration-date-field-click' - the expiration date field has been clicked. Payload: void.<br>
340
+ 'cvv-field-click' - the cvv field has been clicked. Payload: void.<br>
341
+ 'card-holder-field-click' - the card holder field has been clicked. Payload: void.<br>
342
+ 'charge-term-checkbox-<number>-check' - the charge term checkbox has been checked. Payload: IChargeTermsAnalytics.<br>
343
+ 'charge-term-checkbox-<number>-uncheck' - the charge term checkbox has been unchecked. Payload: IChargeTermsAnalytics.<br>
344
+ 'user-preference-checkbox-<number>-check' - the user preference checbox has been checked. Payload: IUserPreferencesAnalytics.<br>
345
+ 'user-preference-checkbox-<number>-uncheck' - the user preference checbox has been unchecked. Payload: IUserPreferencesAnalytics.<br>
346
+ 'pay-button-click' - the 'Pay' button has been clicked (payment by card). Payload: void.<br>
347
+ '<apm>-button-click' - the apm payment button has been clicked. Payload: void.<br>
348
+ 'add-card-button-click' - the "Add New Card" button has been clicked. Payload: void.<br>
349
+ 'card-options-button-click' - the card options button has been clicked (existing card menu visualised as 3 vertical dots). Payload: ICardAnalytics.<br>
350
+ 'remove-card-button-click' - the card removing button has been clicked. Payload: ICardAnalytics.<br>
351
+ 'select-card-button-click' - the card selecting button has been clicked. Payload: ICardAnalytics.<br>
347
352
 
348
353
  Examples of dynamic event types (number inserting):
349
354
  &emsp;1. Example of the first checkbox: 'charge-term-checkbox-0-check'