@ranty/ranty-sdk 3.16.0-beta.3 → 3.16.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
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:
|
|
@@ -925,7 +925,7 @@ function ie(t) {
|
|
|
925
925
|
*/
|
|
926
926
|
var vy;
|
|
927
927
|
((vy = window.HTMLSlotElement) === null || vy === void 0 ? void 0 : vy.prototype.assignedElements) != null;
|
|
928
|
-
const b8 = "@ranty/ranty-sdk", v8 = "3.16.0
|
|
928
|
+
const b8 = "@ranty/ranty-sdk", v8 = "3.16.0", w8 = "Ranty sdk", _8 = "dist/index.js", x8 = {
|
|
929
929
|
".": "./dist/index.js"
|
|
930
930
|
}, C8 = "types/index.d.ts", B8 = [
|
|
931
931
|
"dist",
|
|
@@ -10243,10 +10243,10 @@ function mD(t, e, n, s) {
|
|
|
10243
10243
|
}
|
|
10244
10244
|
const Rp = MR(mD);
|
|
10245
10245
|
MF(Uo(), "DD_LOGS", Rp);
|
|
10246
|
-
const yD = "@nx-ranty/ranty-sdk", bD = "3.16.0
|
|
10246
|
+
const yD = "@nx-ranty/ranty-sdk", bD = "3.16.0", vD = 3, wD = !0, _D = {
|
|
10247
10247
|
"": {
|
|
10248
10248
|
name: "@nx-ranty/ranty-sdk",
|
|
10249
|
-
version: "3.16.0
|
|
10249
|
+
version: "3.16.0",
|
|
10250
10250
|
license: "ISC",
|
|
10251
10251
|
dependencies: {
|
|
10252
10252
|
"@datadog/browser-logs": "^6.17.0",
|
|
@@ -47820,7 +47820,7 @@ let jr = class extends Ve {
|
|
|
47820
47820
|
${this.isShowToast ? T`<div class="alert-container">
|
|
47821
47821
|
<component-notify> ${this.messageToast} </component-notify>
|
|
47822
47822
|
</div>` : Jt}
|
|
47823
|
-
${this.state.page === ze.LOADING || this.state.page === ze.QR || this.state.page === ze.STATUS ? T`<div class="container alert">${this.showAlertComponent()}</div>
|
|
47823
|
+
${this.state.page === ze.LOADING || this.state.page === ze.QR || this.state.page === ze.STATUS ? T`<div class="container ${this.isShowAlert ? "alert" : ""}">${this.showAlertComponent()}</div>
|
|
47824
47824
|
${pC(this.state.page)} ` : T` <div class="container">
|
|
47825
47825
|
<div class="container-text">
|
|
47826
47826
|
<h1 class="container__title">
|
|
@@ -65283,7 +65283,7 @@ function(t) {
|
|
|
65283
65283
|
*/
|
|
65284
65284
|
function(t) {
|
|
65285
65285
|
function e() {
|
|
65286
|
-
return (yt.canvg ? Promise.resolve(yt.canvg) : import("./index.es-
|
|
65286
|
+
return (yt.canvg ? Promise.resolve(yt.canvg) : import("./index.es-addf76e0.js")).catch(function(n) {
|
|
65287
65287
|
return Promise.reject(new Error("Could not load canvg: " + n));
|
|
65288
65288
|
}).then(function(n) {
|
|
65289
65289
|
return n.default ? n.default : n;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ar as o, an as t, aq as e, ag as n, au as r, as as C, at as i, ah as p, ae as A, am as m, al as l, af as u, ap as c, ao as d, ai as F, aj as S, ak as P, A as f, M as I, X as y, R as D, B as L, ad as O, a1 as k, Z as H, a6 as g, Y as M, a7 as v, a8 as b, a9 as x, h as E, f as h, ac as Q, ab as B, $ as j, a0 as q, a2 as w, a3 as N, a4 as z, C as G, j as J, w as K, a as R, d as T, aa as U, x as V, L as W, y as X, W as Y, K as Z, z as $, G as _, J as aa, D as sa, a5 as oa, E as ta, e as ea, l as na, b as ra, F as Ca, H as ia, I as pa, V as Aa, N as ma, k as la, T as ua, P as ca, m as da, O as Fa, U as Sa, Q as Pa, n as fa, i as Ia, o as ya, p as Da, q as La, S as Oa, u as ka, r as Ha, s as ga, t as Ma, v as va } from "./index-
|
|
1
|
+
import { ar as o, an as t, aq as e, ag as n, au as r, as as C, at as i, ah as p, ae as A, am as m, al as l, af as u, ap as c, ao as d, ai as F, aj as S, ak as P, A as f, M as I, X as y, R as D, B as L, ad as O, a1 as k, Z as H, a6 as g, Y as M, a7 as v, a8 as b, a9 as x, h as E, f as h, ac as Q, ab as B, $ as j, a0 as q, a2 as w, a3 as N, a4 as z, C as G, j as J, w as K, a as R, d as T, aa as U, x as V, L as W, y as X, W as Y, K as Z, z as $, G as _, J as aa, D as sa, a5 as oa, E as ta, e as ea, l as na, b as ra, F as Ca, H as ia, I as pa, V as Aa, N as ma, k as la, T as ua, P as ca, m as da, O as Fa, U as Sa, Q as Pa, n as fa, i as Ia, o as ya, p as Da, q as La, S as Oa, u as ka, r as Ha, s as ga, t as Ma, v as va } from "./index-8d398aff.js";
|
|
2
2
|
export {
|
|
3
3
|
o as A2AAccountDetails,
|
|
4
4
|
t as A2AAccountList,
|