@ranty/ranty-sdk 2.1.0-beta.1 → 2.1.0-beta.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/README.md CHANGED
@@ -48,6 +48,20 @@ import '@ranty/ranty-sdk'
48
48
  - production (no requerido)
49
49
  - staging (homologación)
50
50
 
51
+ - **settings**: permite mostrar u ocultar componentes, Si no se pasa el atrbuto settings en el tag de payfac se muestra todo por default.
52
+ - show_title: muestra u oculta el título.
53
+ - show_subtitle: muestra u oculta el subtítulo.
54
+ - show_order_detail: muestra u oculta el detalle de la compra.
55
+ - enable_auto_redirect: activa ó desactiva la recirección automática a la tienda.
56
+ ```js
57
+ customerProperties: {
58
+ show_title: false,
59
+ show_subtitle: false,
60
+ show_order_detail: false,
61
+ enable_auto_redirect: false
62
+ }
63
+ ```
64
+
51
65
  ## Recomendación de uso
52
66
 
53
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 sigueintes estilos `height: 94vh; background: #F4F4F4;`
@@ -61,6 +75,7 @@ Para tener una mejor experiencia se recomienda embeber el tag de `<payfac-sdk></
61
75
  <payfac-sdk
62
76
  paymentRequestId="uuid-v4"
63
77
  publicKey="publicKey-merchant"
78
+ settings="settings"
64
79
  ></payfac-sdk>
65
80
  </div>
66
81
  ```
@@ -72,6 +87,7 @@ Para tener una mejor experiencia se recomienda embeber el tag de `<payfac-sdk></
72
87
  <payfac-sdk
73
88
  paymentRequestId="uuid-v4"
74
89
  publicKey="publicKey-merchant"
90
+ settings="settings"
75
91
  env="staging"
76
92
  ></payfac-sdk>
77
93
  </div>
@@ -174,7 +190,7 @@ Se dispara un eventos cuando:
174
190
  ### Tabla de eventos
175
191
 
176
192
  | TIPO | DETALLE |
177
- |------------------------|-------------------------------|
193
+ | ---------------------- | ----------------------------- |
178
194
  | AUTH_ERROR | Authentication failed. |
179
195
  | AUTH_PAYMENT_REQUEST | Payment request failed. |
180
196
  | LOAD_DATA_ERROR | Load data failed. |