@ranty/ranty-sdk 3.16.0-beta.3 → 3.16.1-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/README.md +13 -54
- package/dist/{index-d24c20ce.js → index-c78a22c1.js} +3244 -3234
- package/dist/{index.es-f97421e9.js → index.es-2d9c637f.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
# @ranty/ranty-sdk
|
|
2
2
|
|
|
3
|
-
Librería frontend basada en Web Components para el
|
|
3
|
+
Librería frontend basada en Web Components para integrar el checkout embebido de Nave. Actualmente soporta dos modos de pago dentro del mismo checkout:
|
|
4
4
|
|
|
5
|
-
- **
|
|
6
|
-
- **
|
|
7
|
-
- Click To Pay ([Visa](https://www.visa.com.ar/tu-visa/checkout.html) | [Mastercard](https://www.mastercard.es/es-es/consumidores/formas-de-pago/click-to-pay.html))
|
|
8
|
-
- Secure Card On File ([Visa](https://developer.visa.com/capabilities/card-on-file-data-inquiry) | [Mastercard](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/use-cases/card-on-file/))
|
|
5
|
+
- **Default**: pagos tradicionales sin tokenización
|
|
6
|
+
- **Secure Card On File** ([Visa](https://developer.visa.com/capabilities/card-on-file-data-inquiry) | [Mastercard](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/use-cases/card-on-file/))
|
|
9
7
|
|
|
10
8
|
# Instalación
|
|
11
9
|
|
|
@@ -37,20 +35,20 @@ import '@ranty/ranty-sdk'
|
|
|
37
35
|
|
|
38
36
|
### Atributos obligatorios
|
|
39
37
|
|
|
40
|
-
- **publicKey**: Llave pública
|
|
41
|
-
- **paymentRequestId**:
|
|
38
|
+
- **publicKey**: Llave pública provista por Nave para autenticar el checkout.
|
|
39
|
+
- **paymentRequestId**: Identificador de la intención de pago (UUID v4) generado en tu backend.
|
|
42
40
|
|
|
43
41
|
### Atributos opcionales
|
|
44
42
|
|
|
45
|
-
- **env**:
|
|
46
|
-
- production (
|
|
47
|
-
- staging
|
|
43
|
+
- **env**: Define el ambiente de ejecución.
|
|
44
|
+
- production (requiere setearlo)
|
|
45
|
+
- staging (ambiente de homologación / pruebas)
|
|
48
46
|
|
|
49
|
-
- **settings**: permite mostrar u ocultar componentes. Si no se
|
|
50
|
-
- show_title: muestra
|
|
51
|
-
- show_subtitle: muestra
|
|
52
|
-
- show_order_detail: muestra
|
|
53
|
-
- enable_auto_redirect:
|
|
47
|
+
- **settings**: Objeto que permite mostrar u ocultar componentes del checkout. Si no se incluye, todos los componentes se muestran por defecto.
|
|
48
|
+
- show_title: muestra/oculta el título.
|
|
49
|
+
- show_subtitle: muestra/oculta el subtítulo.
|
|
50
|
+
- show_order_detail: muestra/oculta el detalle de la compra.
|
|
51
|
+
- enable_auto_redirect: ctiva o desactiva la redirección automática a la tienda (por defecto a los 5s o con el botón “Volver a la tienda”).
|
|
54
52
|
```js
|
|
55
53
|
customerProperties: {
|
|
56
54
|
show_title: false,
|
|
@@ -94,45 +92,6 @@ Para tener una mejor experiencia se recomienda embeber el tag de `<payfac-sdk></
|
|
|
94
92
|
|
|
95
93
|
## Pagos Tokenizados:
|
|
96
94
|
|
|
97
|
-
### Click To Pay
|
|
98
|
-
|
|
99
|
-
#### Atributos:
|
|
100
|
-
|
|
101
|
-
- **dpaid**: identificador del merchant (uuid-v4)
|
|
102
|
-
- **dpaname**: nombre del merchant
|
|
103
|
-
- **mode**: click_to_pay
|
|
104
|
-
- **env**:
|
|
105
|
-
- production (requerido)
|
|
106
|
-
- staging (homologación)
|
|
107
|
-
|
|
108
|
-
#### Producción
|
|
109
|
-
|
|
110
|
-
```html
|
|
111
|
-
<div style="height: 94vh;background: #F4F4F4;">
|
|
112
|
-
<payfac-sdk
|
|
113
|
-
paymentRequestId="uuid-v4"
|
|
114
|
-
publicKey="publicKey-merchant"
|
|
115
|
-
dpaId="uuid-v4"
|
|
116
|
-
dpaName="string"
|
|
117
|
-
mode="click_to_pay"
|
|
118
|
-
env="production"
|
|
119
|
-
></payfac-sdk>
|
|
120
|
-
</div>
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
#### Homologación
|
|
124
|
-
|
|
125
|
-
```html
|
|
126
|
-
<div style="height: 94vh;background: #F4F4F4;">
|
|
127
|
-
<payfac-sdk
|
|
128
|
-
paymentRequestId="uuid-v4"
|
|
129
|
-
publicKey="publicKey-merchant"
|
|
130
|
-
mode="click_to_pay"
|
|
131
|
-
env="staging"
|
|
132
|
-
></payfac-sdk>
|
|
133
|
-
</div>
|
|
134
|
-
```
|
|
135
|
-
|
|
136
95
|
### Secure Card On File
|
|
137
96
|
|
|
138
97
|
#### Atributos:
|