@ranty/ranty-sdk 2.1.0-beta.2 → 2.1.0-beta.3
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 +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# @ranty/ranty-sdk
|
|
4
4
|
|
|
5
|
-
Librería frontend basada en Web Components para el
|
|
5
|
+
Librería frontend basada en Web Components para el Payfac SDK. Su principal objetivo es proporcionar diversas soluciones enfocadas en el procesamiento de pagos:
|
|
6
6
|
|
|
7
7
|
- **Pagos tradicionales**
|
|
8
8
|
- **Tokenizados**:
|
|
@@ -48,11 +48,11 @@ import '@ranty/ranty-sdk'
|
|
|
48
48
|
- production (no requerido)
|
|
49
49
|
- staging (homologación)
|
|
50
50
|
|
|
51
|
-
- **settings**: permite mostrar u ocultar componentes
|
|
51
|
+
- **settings**: permite mostrar u ocultar componentes. Si no se pasa el atributo settings en el tag de payfac, se muestra todo por default.
|
|
52
52
|
- show_title: muestra u oculta el título.
|
|
53
53
|
- show_subtitle: muestra u oculta el subtítulo.
|
|
54
54
|
- show_order_detail: muestra u oculta el detalle de la compra.
|
|
55
|
-
- enable_auto_redirect: activa ó desactiva la
|
|
55
|
+
- enable_auto_redirect: activa ó desactiva la redirección automática a la tienda.
|
|
56
56
|
```js
|
|
57
57
|
customerProperties: {
|
|
58
58
|
show_title: false,
|
|
@@ -64,7 +64,7 @@ customerProperties: {
|
|
|
64
64
|
|
|
65
65
|
## Recomendación de uso
|
|
66
66
|
|
|
67
|
-
Para tener una mejor experiencia se recomienda embeber el tag de `<payfac-sdk></payfac-sdk>` en un tag de contencion `div, iframe...`, con los
|
|
67
|
+
Para tener una mejor experiencia se recomienda embeber el tag de `<payfac-sdk></payfac-sdk>` en un tag de contencion `div, iframe...`, con los siguientes estilos `height: 94vh; background: #F4F4F4;`
|
|
68
68
|
|
|
69
69
|
## Pagos Tradicionales:
|
|
70
70
|
|
|
@@ -168,7 +168,7 @@ Para tener una mejor experiencia se recomienda embeber el tag de `<payfac-sdk></
|
|
|
168
168
|
|
|
169
169
|
### Manejo de eventos
|
|
170
170
|
|
|
171
|
-
Se dispara un
|
|
171
|
+
Se dispara un evento cuando:
|
|
172
172
|
|
|
173
173
|
- Falla al generar el token
|
|
174
174
|
- Falla get payment request
|
|
@@ -201,5 +201,5 @@ Se dispara un eventos cuando:
|
|
|
201
201
|
| DIRECT_PAYMENT_ERROR | Direct payment failed. |
|
|
202
202
|
| FAILURE_PROCESSED | Failure detail |
|
|
203
203
|
| SUCCESS_PROCESSED | none |
|
|
204
|
-
| BLOCKED |
|
|
204
|
+
| BLOCKED | Blocked detail |
|
|
205
205
|
| INVOICE_ERROR | Open invoice failed. |
|