@netceterapx/click-to-pay-sdk 2.1.0 → 2.2.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/README.md CHANGED
@@ -154,6 +154,10 @@ document.addEventListener('DOMContentLoaded', () => {
154
154
  clickToPay.addEventListener('userActionUpdate', (e) => {
155
155
  // handle user action entry update
156
156
  });
157
+
158
+ clickToPay.addEventListener('cardSelection', (e) => {
159
+ // handle card selection event
160
+ });
157
161
  });
158
162
  ```
159
163
 
@@ -190,6 +194,9 @@ execution has been measured.
190
194
  `clickToPay.addEventListener('userActionUpdate', (e) => {});` The SRCi component will fire an event when a new user action
191
195
  has been performed. Example: User clicked on an input field/button, started typing text or selected a card.
192
196
 
197
+ `clickToPay.addEventListener('cardSelection', (e) => {});` The click-to-pay component will fire a card selection event
198
+ when the user selected a card within the list of cards enrolled in Click to Pay and provide detailed information about the selected card.
199
+
193
200
  ```ts
194
201
  enum GeneralEvents {
195
202
  ON_DCF_CANCEL
@@ -229,7 +236,7 @@ document.addEventListener('DOMContentLoaded', () => {
229
236
  card: {
230
237
  primaryAccountNumber: '1212121212121212',
231
238
  panExpirationMonth: '7', // '07' is also allowed.
232
- panExpirationYear: '2030', // must be 4 digits.
239
+ panExpirationYear: '30', // must be 2 digits.
233
240
  cardSecurityCode: '123', // must be 3 or 4 digits.
234
241
  },
235
242
  });