@pixelpay/sdk-core 2.0.0 → 2.0.2
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 +22 -0
- package/LICENSE.md +21 -0
- package/README.md +56 -0
- package/lib/browser/index.js +3 -3
- package/lib/libraries/CybersourceManager.d.ts +3 -0
- package/lib/libraries/CybersourceManager.js +43 -0
- package/lib/libraries/CybersourceManager.js.map +1 -0
- package/lib/services/Transaction.d.ts +8 -0
- package/lib/services/Transaction.js +12 -1
- package/lib/services/Transaction.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Changelog - PixelPay Java Standalone SDK
|
|
2
|
+
Todos los cambios notables de este proyecto se documentarán en este archivo. Los registros de cambios son *para humanos*, no para máquinas, y la última versión es lo primero a mostrar.
|
|
3
|
+
|
|
4
|
+
El formato se basa en [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
|
+
y este proyecto se adhiere a [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
Tipos de cambios: `Added`, `Changed`, `Deprecated`, `Removed`, `Fixed`, `Security`.
|
|
7
|
+
|
|
8
|
+
## [v2.0.2] - 2022-05-08
|
|
9
|
+
### Fixed
|
|
10
|
+
- Se corrige el método `verifyPaymentHash` donde no se utilizaba el parámetro hash.
|
|
11
|
+
|
|
12
|
+
## [v2.0.1] - 2022-05-08
|
|
13
|
+
### Added
|
|
14
|
+
- Se agrega el method `getCybersourceFingerprint` para la integraciones con Promerica o Cybersource
|
|
15
|
+
- Se agrega soporte para integraciones con Bac Legacy/FAC
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Correción del error de compilacion con Jackson y sus anotaciones
|
|
19
|
+
|
|
20
|
+
## [v2.0.0] - 2022-04-28
|
|
21
|
+
### Added
|
|
22
|
+
- Se publica primer version de pruebas
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Pixel<mailto:ivan@pixel.hn>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Typescript/Javascript SDK
|
|
2
|
+
|
|
3
|
+
## ¿Como instalar?
|
|
4
|
+
|
|
5
|
+
El SDK de PixelPay está disponible para JavaScript y TypeScript en diferentes entornos.
|
|
6
|
+
|
|
7
|
+
> ¡Cuidado!
|
|
8
|
+
> Este ambiente puede ejecutarse en un navegador. Si el servicio del navegador no está disponible (Node.js), el SDK no podrá ejecutarse con 3DS.
|
|
9
|
+
|
|
10
|
+
### Modular / Node
|
|
11
|
+
|
|
12
|
+
Para instalar el paquete oficial de NPM:
|
|
13
|
+
|
|
14
|
+
``` bash
|
|
15
|
+
npm install @pixelpay/sdk-core
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
> Recuerda...
|
|
19
|
+
> Si estás utilizando React, Angular o Vue para desarrollar tu app, la instalación del SDK también será mediante el paquete de npm @pixelpay/sdk-core.
|
|
20
|
+
|
|
21
|
+
### Browser / CDN
|
|
22
|
+
|
|
23
|
+
Para poder utilizar el SDK en Angular o Ionic/Angular es recomendable utilizar el CDN con Unpkg:
|
|
24
|
+
|
|
25
|
+
``` html
|
|
26
|
+
<script src="https://unpkg.com/@pixelpay/sdk-core"></script>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Se debe colocar el script en el archivo src/index.html y declarar una variable global del SDK donde se vaya a utilizar el servicio de este.
|
|
30
|
+
|
|
31
|
+
Ejemplo HTML con Angular:
|
|
32
|
+
|
|
33
|
+
``` html
|
|
34
|
+
<!DOCTYPE html>
|
|
35
|
+
<html lang="en">
|
|
36
|
+
<head>
|
|
37
|
+
<meta charset="utf-8" />
|
|
38
|
+
<title>Angular</title>
|
|
39
|
+
<base href="/" />
|
|
40
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
41
|
+
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
|
42
|
+
</head>
|
|
43
|
+
<body>
|
|
44
|
+
<app-root></app-root>
|
|
45
|
+
<!-- CDN SDK -->
|
|
46
|
+
<script src="https://unpkg.com/@pixelpay/sdk-core"></script>
|
|
47
|
+
</body>
|
|
48
|
+
</html>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## ¿Como publicar?
|
|
52
|
+
|
|
53
|
+
- Cambiar version de release en package.json
|
|
54
|
+
- Agregar al CHANGELOG.md las descripciones del cambio
|
|
55
|
+
- Crear un commit con los cambios y publicar
|
|
56
|
+
- Ejecutar `npm publish --access public`
|