@pixelpay/sdk-core 2.2.3 → 2.3.0-beta.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 CHANGED
@@ -5,6 +5,14 @@ El formato se basa en [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  y este proyecto se adhiere a [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
  Tipos de cambios: `Added`, `Changed`, `Deprecated`, `Removed`, `Fixed`, `Security`.
7
7
 
8
+ ## [v2.3.0] - 2024-07-01
9
+ ### Added
10
+ - Se agregó autenticación de 3D Secure con tokenización
11
+
12
+ ## [v2.2.4] - 2024-04-01
13
+ ### Added
14
+ - Se agregó campo `secure_payload` para transacciones
15
+
8
16
  ## [v2.2.3] - 2024-02-27
9
17
  ### Fixed
10
18
  - Se arreglan códigos de estados en Nicaragua, Reino Unido, Estados Unidos, Guatemala, Panamá, Perú y Portugal
package/index.html CHANGED
@@ -185,6 +185,7 @@
185
185
 
186
186
  <div class="row">
187
187
  <div class="column"><button name="vault" class="w-100">Run Vault</button></div>
188
+ <div class="column"><button name="authenticate" class="w-100">Run Auth</button></div>
188
189
  <div class="column"><button name="show" class="w-100">Run Show</button></div>
189
190
  <div class="column"><button name="update" class="w-100">Run Update</button></div>
190
191
  <div class="column"><button name="delete" class="w-100">Run Delete</button></div>
@@ -400,6 +401,26 @@
400
401
  });
401
402
  }
402
403
 
404
+ document.querySelector('button[name=authenticate]').onclick = () => {
405
+ const settings = new Models.Settings();
406
+ settings.setupSandbox();
407
+
408
+ const service = new Services.Tokenization(settings);
409
+ const authRequest = new Requests.AuthTokenization();
410
+
411
+ const input_token = document.querySelector('input[name="token"]').value;
412
+ authRequest.setCardToken(input_token);
413
+ authRequest.setOrder(getOrder());
414
+
415
+ service.authCard(authRequest).then(response => {
416
+ showResponse(response.toJson())
417
+ alert(`${response.message} (${response.status})`);
418
+ }).catch(err => {
419
+ console.error(err);
420
+ alert(`${err.message} (ERR)`);
421
+ });
422
+ }
423
+
403
424
  document.querySelector('button[name=show]').onclick = () => {
404
425
  const settings = new Models.Settings();
405
426
  settings.setupSandbox();