@npmtapi/embed 1.0.0 → 1.0.1
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 +21 -21
- package/package.json +42 -43
package/README.md
CHANGED
|
@@ -83,17 +83,17 @@ export function PagoPage({ clienteId }: { clienteId: string }) {
|
|
|
83
83
|
|
|
84
84
|
### Props
|
|
85
85
|
|
|
86
|
-
| Prop | Tipo | Requerido | Descripción |
|
|
87
|
-
|
|
88
|
-
| `organization` | `string` | Sí | Alias de la organización en TapiPay |
|
|
89
|
-
| `identifier` | `string` | Sí | Identificador del cliente |
|
|
90
|
-
| `externalRequestId` | `string` | No | ID de deuda a preseleccionar |
|
|
91
|
-
| `selectionStrategy` | `"oldestCreated"` | No |
|
|
92
|
-
| `environment` | `'production' \| 'homo'` | No |
|
|
93
|
-
| `onPending` | `(data) => void` | No | Callback cuando Yuno redirige al callback (pago en proceso) |
|
|
94
|
-
| `onCancelled` | `() => void` | No | Callback cuando el usuario cierra el popup sin completar el pago |
|
|
95
|
-
| `className` | `string` | No | Clases CSS del contenedor |
|
|
96
|
-
| `style` | `CSSProperties` | No | Estilos inline del contenedor |
|
|
86
|
+
| Prop | Tipo | Requerido | Por defecto | Descripción |
|
|
87
|
+
|------|------|-----------|-------------|-------------|
|
|
88
|
+
| `organization` | `string` | Sí | — | Alias de la organización en TapiPay |
|
|
89
|
+
| `identifier` | `string` | Sí | — | Identificador del cliente |
|
|
90
|
+
| `externalRequestId` | `string` | No | — | ID de deuda a preseleccionar. Tiene precedencia sobre `selectionStrategy` |
|
|
91
|
+
| `selectionStrategy` | `"oldestCreated"` | No | más reciente | Estrategia de selección automática de deuda pendiente. `"oldestCreated"`: la más antigua. Por defecto (omitido): la más reciente |
|
|
92
|
+
| `environment` | `'production' \| 'homo'` | No | `'production'` | Entorno del SDK |
|
|
93
|
+
| `onPending` | `(data) => void` | No | — | Callback cuando Yuno redirige al callback (pago en proceso) |
|
|
94
|
+
| `onCancelled` | `() => void` | No | — | Callback cuando el usuario cierra el popup sin completar el pago |
|
|
95
|
+
| `className` | `string` | No | — | Clases CSS del contenedor |
|
|
96
|
+
| `style` | `CSSProperties` | No | — | Estilos inline del contenedor |
|
|
97
97
|
|
|
98
98
|
### Next.js App Router
|
|
99
99
|
|
|
@@ -187,19 +187,19 @@ export class TapipayWidgetComponent implements OnInit, OnDestroy {
|
|
|
187
187
|
|
|
188
188
|
### `loadTapipay(options?)`
|
|
189
189
|
|
|
190
|
-
| Parámetro | Tipo | Requerido | Descripción |
|
|
191
|
-
|
|
192
|
-
| `environment` | `'production' \| 'homo'` | No | Entorno del SDK a cargar
|
|
190
|
+
| Parámetro | Tipo | Requerido | Por defecto | Descripción |
|
|
191
|
+
|-----------|------|-----------|-------------|-------------|
|
|
192
|
+
| `environment` | `'production' \| 'homo'` | No | `'production'` | Entorno del SDK a cargar |
|
|
193
193
|
|
|
194
194
|
### `initialize(options)`
|
|
195
195
|
|
|
196
|
-
| Parámetro | Tipo | Requerido | Descripción |
|
|
197
|
-
|
|
198
|
-
| `container` | `string \| HTMLElement` | Sí | Selector CSS o referencia DOM
|
|
199
|
-
| `organization` | `string` | Sí | Alias de la organización en TapiPay
|
|
200
|
-
| `identifier` | `string` | Sí | Identificador del cliente (DNI, número de cuenta, etc.)
|
|
201
|
-
| `externalRequestId` | `string` | No | ID externo de una deuda específica a preseleccionar. |
|
|
202
|
-
| `selectionStrategy` | `"oldestCreated"` | No |
|
|
196
|
+
| Parámetro | Tipo | Requerido | Por defecto | Descripción |
|
|
197
|
+
|-----------|------|-----------|-------------|-------------|
|
|
198
|
+
| `container` | `string \| HTMLElement` | Sí | — | Selector CSS o referencia DOM |
|
|
199
|
+
| `organization` | `string` | Sí | — | Alias de la organización en TapiPay |
|
|
200
|
+
| `identifier` | `string` | Sí | — | Identificador del cliente (DNI, número de cuenta, etc.) |
|
|
201
|
+
| `externalRequestId` | `string` | No | — | ID externo de una deuda específica a preseleccionar. Tiene precedencia sobre `selectionStrategy` |
|
|
202
|
+
| `selectionStrategy` | `"oldestCreated"` | No | más reciente | Estrategia de selección automática de deuda pendiente. `"oldestCreated"`: la más antigua. Por defecto (omitido): la más reciente |
|
|
203
203
|
|
|
204
204
|
---
|
|
205
205
|
|
package/package.json
CHANGED
|
@@ -1,44 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
2
|
+
"name": "@npmtapi/embed",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "TapiPay Embed SDK — carga y controla el widget de pago embebido",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"require": "./dist/index.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./react": {
|
|
13
|
+
"types": "./dist/react.d.ts",
|
|
14
|
+
"import": "./dist/react.js",
|
|
15
|
+
"require": "./dist/react.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"author": "tapipay",
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": ">=18"
|
|
27
|
+
},
|
|
28
|
+
"peerDependenciesMeta": {
|
|
29
|
+
"react": {
|
|
30
|
+
"optional": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/react": "^18.0.0",
|
|
35
|
+
"react": "^18.0.0",
|
|
36
|
+
"tsup": "^8.0.0",
|
|
37
|
+
"typescript": "^5.0.0"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsup",
|
|
41
|
+
"dev": "tsup --watch"
|
|
42
|
+
}
|
|
43
|
+
}
|