@fire-spark/payments-deuna-widget 0.11.0 → 0.11.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/dist/index.d.ts +8 -3
- package/dist/index.js +7 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { PaymentAdapter, PaymentEnvironment, PaymentErrorCode, PaymentIntentStat
|
|
|
3
3
|
declare const DEUNA_PROVIDER = "deuna";
|
|
4
4
|
/**
|
|
5
5
|
* Widget `paymentMethods` by `payments.config.processor` (same keys as
|
|
6
|
-
* `DEUNA_PROCESSORS_BY_METHOD` of `@repo/validations`). Nequi, Mercado Pago
|
|
7
|
-
*
|
|
6
|
+
* `DEUNA_PROCESSORS_BY_METHOD` of `@repo/validations`). Nequi, Mercado Pago,
|
|
7
|
+
* Deuna App Wallet and DaviPlata come from their DEUNA widget pages; PSE uses the
|
|
8
8
|
* processor of the PSE API page and the card entry opens the card form
|
|
9
9
|
* (both to verify in sandbox).
|
|
10
10
|
*/
|
|
@@ -29,6 +29,11 @@ declare const DEUNA_PROCESSORS: {
|
|
|
29
29
|
readonly paymentMethod: "voucher";
|
|
30
30
|
readonly processors: readonly ["deuna_wallet"];
|
|
31
31
|
};
|
|
32
|
+
readonly daviplata: {
|
|
33
|
+
readonly method: "WALLET";
|
|
34
|
+
readonly paymentMethod: "voucher";
|
|
35
|
+
readonly processors: readonly ["daviplata"];
|
|
36
|
+
};
|
|
32
37
|
readonly pse: {
|
|
33
38
|
readonly method: "BANK_TRANSFER";
|
|
34
39
|
readonly paymentMethod: "bank_transfer";
|
|
@@ -154,7 +159,7 @@ type DeunaWidgetOptions = {
|
|
|
154
159
|
callbackUrls?: DeunaCallbackUrls;
|
|
155
160
|
};
|
|
156
161
|
/** Processors this method can charge with. */
|
|
157
|
-
declare const deunaProcessorsFor: (method: DeunaWidgetMethod) => ("card" | "deuna_wallet" | "mercadopago" | "nequi" | "pse")[];
|
|
162
|
+
declare const deunaProcessorsFor: (method: DeunaWidgetMethod) => ("card" | "daviplata" | "deuna_wallet" | "mercadopago" | "nequi" | "pse")[];
|
|
158
163
|
/** `payments.config.processor`; optional when the method has only one. */
|
|
159
164
|
declare const resolveDeunaProcessor: (method: DeunaWidgetMethod, config: Record<string, unknown>) => DeunaProcessor;
|
|
160
165
|
/** `paymentMethods` of `initPaymentWidget` for a processor. */
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { PaymentError, createPaymentError, definePaymentErrors, toPaymentError }
|
|
|
3
3
|
const DEUNA_PROVIDER = "deuna";
|
|
4
4
|
/**
|
|
5
5
|
* Widget `paymentMethods` by `payments.config.processor` (same keys as
|
|
6
|
-
* `DEUNA_PROCESSORS_BY_METHOD` of `@repo/validations`). Nequi, Mercado Pago
|
|
7
|
-
*
|
|
6
|
+
* `DEUNA_PROCESSORS_BY_METHOD` of `@repo/validations`). Nequi, Mercado Pago,
|
|
7
|
+
* Deuna App Wallet and DaviPlata come from their DEUNA widget pages; PSE uses the
|
|
8
8
|
* processor of the PSE API page and the card entry opens the card form
|
|
9
9
|
* (both to verify in sandbox).
|
|
10
10
|
*/
|
|
@@ -29,6 +29,11 @@ const DEUNA_PROCESSORS = {
|
|
|
29
29
|
paymentMethod: "voucher",
|
|
30
30
|
processors: ["deuna_wallet"]
|
|
31
31
|
},
|
|
32
|
+
daviplata: {
|
|
33
|
+
method: "WALLET",
|
|
34
|
+
paymentMethod: "voucher",
|
|
35
|
+
processors: ["daviplata"]
|
|
36
|
+
},
|
|
32
37
|
pse: {
|
|
33
38
|
method: "BANK_TRANSFER",
|
|
34
39
|
paymentMethod: "bank_transfer",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fire-spark/payments-deuna-widget",
|
|
3
|
-
"version": "0.11.
|
|
4
|
-
"description": "Fire Spark DEUNA Payment Widget adapter: cards, Nequi, Mercado Pago
|
|
3
|
+
"version": "0.11.1",
|
|
4
|
+
"description": "Fire Spark DEUNA Payment Widget adapter: cards, Nequi, Mercado Pago, Deuna App Wallet and DaviPlata, and PSE through the DEUNA checkout",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"files": [
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@fire-spark/payments": "^0.11.
|
|
21
|
-
"@fire-spark/types": "^0.11.
|
|
20
|
+
"@fire-spark/payments": "^0.11.1",
|
|
21
|
+
"@fire-spark/types": "^0.11.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"tsdown": "^0.22.14",
|