@edutecka-mz/edpay-sdk 1.6.2 → 1.6.4
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/CHANGELOG.md +12 -0
- package/README.md +21 -2
- package/dist/client.js +1 -1
- package/dist/resources/public.d.ts +11 -1
- package/dist/resources/public.d.ts.map +1 -1
- package/dist/resources/public.js +21 -0
- package/dist/resources/public.js.map +1 -1
- package/dist/types.d.ts +75 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.6.4
|
|
4
|
+
|
|
5
|
+
- Add buyer-scoped EDPay Wallet challenge and code-confirmation methods for payment and invoice checkouts.
|
|
6
|
+
- Keep partner credentials off public wallet authorization requests and require idempotency keys.
|
|
7
|
+
- Add ZAR to the supported payment-create currency type.
|
|
8
|
+
|
|
9
|
+
## 1.6.3
|
|
10
|
+
|
|
11
|
+
- Type the public payment-method catalog, including hosted `logo_url` values and unavailable provider pricing.
|
|
12
|
+
- Raise the supported Node.js patch floors to the latest published LTS releases.
|
|
13
|
+
- No breaking API changes.
|
|
14
|
+
|
|
3
15
|
## 1.6.2
|
|
4
16
|
|
|
5
17
|
- Align SDK documentation with the API's private-checkout wait: the provider's 60-second PIN window starts after Master dispatch; the API deadline is 80 seconds from the request, and the SDK transport default is 90 seconds.
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ The official JavaScript and TypeScript SDK for server-side Node.js applications.
|
|
|
12
12
|
Install the package from npm:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @edutecka-mz/edpay-sdk@1.6.
|
|
15
|
+
npm install @edutecka-mz/edpay-sdk@1.6.3
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
The package import name is `@edutecka-mz/edpay-sdk`.
|
|
@@ -132,6 +132,22 @@ const checkout = await edpay.payments.publicCheckout(paymentId, {
|
|
|
132
132
|
// Use checkout.data.token in the buyer-facing checkout. Never send partner keys to a browser.
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
+
## EDPay Wallet in hosted checkout
|
|
136
|
+
|
|
137
|
+
EDPay Wallet is selected in hosted or invoice checkout; it is not a `privateCheckout` method and must not be sent to `payments.create`. First create a parent payment and a hosted checkout token on your server. The buyer then starts a wallet challenge with the opaque token. These public checkout requests include an idempotency key and do not send the SDK client's partner keys. Keep the SDK and both keys on your server; do not bundle this client into browser code.
|
|
138
|
+
|
|
139
|
+
```typescript
|
|
140
|
+
const walletChallenge = await edpay.public.createCheckoutWalletChallenge(checkout.data.token, {
|
|
141
|
+
authorizationMode: "device_approval",
|
|
142
|
+
idempotencyKey: "ORDER-10492-WALLET-CHALLENGE",
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
// For an issued invoice link, use createInvoiceWalletChallenge(linkId, options).
|
|
146
|
+
// For panel-code authorization, use authorizationMode: "panel_code" and pass accountNumber.
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
The API derives amount and currency from the checkout; the challenge request has no amount fields. The returned `challenge_id` is an opaque reference, not a payment credential. A separately authenticated EDPay payer session is required to approve a device-approval challenge. Partner SDKs do not create or approve that human session. For `panel_code`, submit the payer's 8-digit confirmation code with `confirmWalletChallengeCode`; do not log the code. These methods use public buyer routes and never include the partner key headers.
|
|
150
|
+
|
|
135
151
|
`privateCheckout` submits a method from your backend. `publicCheckout` returns a token for EDPay-hosted checkout. `linkCheckout` returns a shareable token for the same payment. `listCheckouts(paymentId)` lists private executions, public/link executions, and sessions with no submitted method; each execution keeps the checkout mode that started it. `retrieve(paymentId)` fetches current status from the API; use verified webhooks for asynchronous updates.
|
|
136
152
|
|
|
137
153
|
### Synchronous PIN confirmation
|
|
@@ -154,6 +170,9 @@ Each row tells you what the call does and when to use it. Partner calls use the
|
|
|
154
170
|
| Payments | `payments.list` | `GET /v1/payments` | Lists account payments for reconciliation or history. |
|
|
155
171
|
| Hosted checkout | `payments.getCheckout` | `GET /v1/payments/checkouts/{token}` | Loads the buyer-facing hosted or link checkout with its opaque token. |
|
|
156
172
|
| Hosted checkout | `payments.submitCheckoutPayment` | `POST /v1/payments/checkouts/{token}/payment` | Submits the buyer-selected method and required method fields with an idempotency key. |
|
|
173
|
+
| Hosted checkout | `public.createCheckoutWalletChallenge` | `POST /v1/payments/checkouts/{token}/edpay-wallet/challenge` | Starts a buyer-scoped EDPay Wallet challenge with an idempotency key; sends no partner authentication. |
|
|
174
|
+
| Invoice checkout | `public.createInvoiceWalletChallenge` | `POST /v1/invoices/checkouts/{link_id}/edpay-wallet/challenge` | Starts an EDPay Wallet challenge for an issued invoice link; sends no partner authentication. |
|
|
175
|
+
| Hosted checkout | `public.confirmWalletChallengeCode` | `POST /v1/payments/edpay-wallet/confirm-code` | Submits the payer's 8-digit panel code with an idempotency key; do not log the code. |
|
|
157
176
|
| Hosted checkout | `payments.retrieveCheckoutPayment` | `GET /v1/payments/checkouts/{token}/payment` | Reads the parent payment status without exposing its ID to the buyer. |
|
|
158
177
|
| Hosted checkout | `payments.framePolicy` | `GET /v1/payments/checkouts/{token}/frame-policy` | Checks whether the hosted checkout can be embedded. |
|
|
159
178
|
| Customers | `customers.create` | `POST /v1/customers` | Creates a customer record for the authenticated account. Save customer details before associating them with payments or invoices. |
|
|
@@ -182,7 +201,7 @@ Each row tells you what the call does and when to use it. Partner calls use the
|
|
|
182
201
|
| Webhooks | `webhooks.listDeliveries` | `GET /v1/webhooks/deliveries` | Lists delivery attempts and their summary states. Monitor failed, pending, or completed event deliveries. |
|
|
183
202
|
| Webhooks | `webhooks.retrieveDelivery` | `GET /v1/webhooks/deliveries/{id}` | Reads one delivery's status and attempt metadata. Inspect one delivery before deciding whether to retry it. |
|
|
184
203
|
| Webhooks | `webhooks.retryDelivery` | `POST /v1/webhooks/deliveries/{id}/retry` | Queues a retry for an eligible failed delivery. Retry after fixing the receiver; the endpoint must be active. |
|
|
185
|
-
| Public catalog and optional support chat | `public.listPaymentMethods` | `GET /v1/public/payment-methods` | Returns active
|
|
204
|
+
| Public catalog and optional support chat | `public.listPaymentMethods` | `GET /v1/public/payment-methods` | Returns active methods without partner keys. `logo_url` is the hosted logo URL; `pricing.available` is false with null tariff values until approved provider pricing is published. |
|
|
186
205
|
| Browser checkout (JavaScript SDK) | `EDPay.checkout` | `Browser helper` | Chooses redirect, modal, or embedded checkout from the supplied mode and container options. Start checkout in the buyer's browser with a short-lived token created by your server; use a public key only. |
|
|
187
206
|
| Browser checkout (JavaScript SDK) | `EDPay.redirectToCheckout` | `Browser helper` | Navigates the browser to the hosted payment page. Use the simplest checkout integration when leaving your site is acceptable. |
|
|
188
207
|
| Browser checkout (JavaScript SDK) | `EDPay.openModal` | `Browser helper` | Opens checkout in a modal iframe and returns a close function. Keep the buyer on the current page while showing hosted checkout. |
|
package/dist/client.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
import type { EDPayPaymentMethodsResponse, EDPayWalletChallengeConfirmationResponse, EDPayWalletChallengeOptions, EDPayWalletChallengeResponse } from "../types.js";
|
|
1
2
|
export declare class PublicResource {
|
|
2
3
|
private readonly client;
|
|
3
4
|
constructor(client: {
|
|
4
5
|
request: (method: string, path: string, body?: unknown, headers?: Record<string, string>, authenticated?: boolean) => Promise<any>;
|
|
5
6
|
});
|
|
6
|
-
listPaymentMethods(): Promise<
|
|
7
|
+
listPaymentMethods(): Promise<EDPayPaymentMethodsResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Starts EDPay Wallet authorization for a payment checkout token. This is a
|
|
10
|
+
* buyer-scoped public request and never sends the client's partner keys.
|
|
11
|
+
*/
|
|
12
|
+
createCheckoutWalletChallenge(checkoutToken: string, options: EDPayWalletChallengeOptions): Promise<EDPayWalletChallengeResponse>;
|
|
13
|
+
/** Starts EDPay Wallet authorization for a hosted invoice checkout link. */
|
|
14
|
+
createInvoiceWalletChallenge(invoiceLinkId: string, options: EDPayWalletChallengeOptions): Promise<EDPayWalletChallengeResponse>;
|
|
15
|
+
/** Confirms an 8-digit EDPay Wallet panel code; partner keys are not sent. */
|
|
16
|
+
confirmWalletChallengeCode(challengeId: string, confirmationCode: string, idempotencyKey: string): Promise<EDPayWalletChallengeConfirmationResponse>;
|
|
7
17
|
}
|
|
8
18
|
//# sourceMappingURL=public.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/resources/public.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE;IAErK,kBAAkB,IAAI,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/resources/public.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,wCAAwC,EACxC,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AAErB,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE;IAErK,kBAAkB,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAIhE;;;OAGG;IACG,6BAA6B,CACjC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IAYxC,4EAA4E;IACtE,4BAA4B,CAChC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IAYxC,8EAA8E;IACxE,0BAA0B,CAC9B,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,wCAAwC,CAAC;CASrD"}
|
package/dist/resources/public.js
CHANGED
|
@@ -9,6 +9,27 @@ class PublicResource {
|
|
|
9
9
|
async listPaymentMethods() {
|
|
10
10
|
return this.client.request("GET", "/v1/public/payment-methods", undefined, undefined, false);
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Starts EDPay Wallet authorization for a payment checkout token. This is a
|
|
14
|
+
* buyer-scoped public request and never sends the client's partner keys.
|
|
15
|
+
*/
|
|
16
|
+
async createCheckoutWalletChallenge(checkoutToken, options) {
|
|
17
|
+
const body = { authorization_mode: options.authorizationMode };
|
|
18
|
+
if (options.accountNumber !== undefined)
|
|
19
|
+
body.account_number = options.accountNumber;
|
|
20
|
+
return this.client.request("POST", `/v1/payments/checkouts/${encodeURIComponent(checkoutToken)}/edpay-wallet/challenge`, body, { "Idempotency-Key": options.idempotencyKey }, false);
|
|
21
|
+
}
|
|
22
|
+
/** Starts EDPay Wallet authorization for a hosted invoice checkout link. */
|
|
23
|
+
async createInvoiceWalletChallenge(invoiceLinkId, options) {
|
|
24
|
+
const body = { authorization_mode: options.authorizationMode };
|
|
25
|
+
if (options.accountNumber !== undefined)
|
|
26
|
+
body.account_number = options.accountNumber;
|
|
27
|
+
return this.client.request("POST", `/v1/invoices/checkouts/${encodeURIComponent(invoiceLinkId)}/edpay-wallet/challenge`, body, { "Idempotency-Key": options.idempotencyKey }, false);
|
|
28
|
+
}
|
|
29
|
+
/** Confirms an 8-digit EDPay Wallet panel code; partner keys are not sent. */
|
|
30
|
+
async confirmWalletChallengeCode(challengeId, confirmationCode, idempotencyKey) {
|
|
31
|
+
return this.client.request("POST", "/v1/payments/edpay-wallet/confirm-code", { challenge_id: challengeId, confirmation_code: confirmationCode }, { "Idempotency-Key": idempotencyKey }, false);
|
|
32
|
+
}
|
|
12
33
|
}
|
|
13
34
|
exports.PublicResource = PublicResource;
|
|
14
35
|
//# sourceMappingURL=public.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../src/resources/public.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../src/resources/public.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;IACI;IAA7B,YAA6B,MAA8I;QAA9I,WAAM,GAAN,MAAM,CAAwI;IAAG,CAAC;IAE/K,KAAK,CAAC,kBAAkB;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,4BAA4B,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,6BAA6B,CACjC,aAAqB,EACrB,OAAoC;QAEpC,MAAM,IAAI,GAA4B,EAAE,kBAAkB,EAAE,OAAO,CAAC,iBAAiB,EAAE,CAAC;QACxF,IAAI,OAAO,CAAC,aAAa,KAAK,SAAS;YAAE,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;QACrF,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,0BAA0B,kBAAkB,CAAC,aAAa,CAAC,yBAAyB,EACpF,IAAI,EACJ,EAAE,iBAAiB,EAAE,OAAO,CAAC,cAAc,EAAE,EAC7C,KAAK,CACN,CAAC;IACJ,CAAC;IAED,4EAA4E;IAC5E,KAAK,CAAC,4BAA4B,CAChC,aAAqB,EACrB,OAAoC;QAEpC,MAAM,IAAI,GAA4B,EAAE,kBAAkB,EAAE,OAAO,CAAC,iBAAiB,EAAE,CAAC;QACxF,IAAI,OAAO,CAAC,aAAa,KAAK,SAAS;YAAE,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;QACrF,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,0BAA0B,kBAAkB,CAAC,aAAa,CAAC,yBAAyB,EACpF,IAAI,EACJ,EAAE,iBAAiB,EAAE,OAAO,CAAC,cAAc,EAAE,EAC7C,KAAK,CACN,CAAC;IACJ,CAAC;IAED,8EAA8E;IAC9E,KAAK,CAAC,0BAA0B,CAC9B,WAAmB,EACnB,gBAAwB,EACxB,cAAsB;QAEtB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,wCAAwC,EACxC,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,EAClE,EAAE,iBAAiB,EAAE,cAAc,EAAE,EACrC,KAAK,CACN,CAAC;IACJ,CAAC;CACF;AAxDD,wCAwDC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface EDPayClientOptions {
|
|
|
6
6
|
}
|
|
7
7
|
export interface PaymentCreateOptions {
|
|
8
8
|
amount_minor: number;
|
|
9
|
-
currency: "MZN" | "USD" | "EUR";
|
|
9
|
+
currency: "MZN" | "USD" | "EUR" | "ZAR";
|
|
10
10
|
customer_id?: string;
|
|
11
11
|
reference?: string;
|
|
12
12
|
description?: string;
|
|
@@ -58,6 +58,80 @@ export interface CheckoutPaymentOptions {
|
|
|
58
58
|
phone: string;
|
|
59
59
|
idempotencyKey: string;
|
|
60
60
|
}
|
|
61
|
+
export interface EDPayPaymentMethodPricing {
|
|
62
|
+
available: boolean;
|
|
63
|
+
percentage_bps: number | null;
|
|
64
|
+
fixed_fee_minor: number | null;
|
|
65
|
+
currency_code: string | null;
|
|
66
|
+
}
|
|
67
|
+
/** Public catalog entry. Unknown optional fields remain forward-compatible. */
|
|
68
|
+
export interface EDPayPaymentMethod {
|
|
69
|
+
code: string;
|
|
70
|
+
name: string;
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
availability: string;
|
|
73
|
+
logo_asset: string;
|
|
74
|
+
/** Present on current catalog responses; optional for older catalog fixtures. */
|
|
75
|
+
logo_url?: string;
|
|
76
|
+
/** Provider tariff object; monetary values are null when `available` is false. */
|
|
77
|
+
pricing?: EDPayPaymentMethodPricing;
|
|
78
|
+
channel_type?: string | null;
|
|
79
|
+
supported_currencies?: string[] | null;
|
|
80
|
+
supported_countries?: string[] | null;
|
|
81
|
+
supported_wallets?: string[] | null;
|
|
82
|
+
currency_conversion?: unknown;
|
|
83
|
+
required_fields?: string[] | null;
|
|
84
|
+
extra_fields?: unknown;
|
|
85
|
+
example_payload?: unknown;
|
|
86
|
+
}
|
|
87
|
+
export interface EDPayPaymentMethodsResponse {
|
|
88
|
+
data: {
|
|
89
|
+
payment_methods: EDPayPaymentMethod[];
|
|
90
|
+
};
|
|
91
|
+
meta: {
|
|
92
|
+
request_id: string;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export type EDPayWalletAuthorizationMode = "panel_code" | "device_approval";
|
|
96
|
+
export interface EDPayWalletChallengeOptions {
|
|
97
|
+
authorizationMode: EDPayWalletAuthorizationMode;
|
|
98
|
+
/** Required for `panel_code`; omit for `device_approval`. */
|
|
99
|
+
accountNumber?: string;
|
|
100
|
+
idempotencyKey: string;
|
|
101
|
+
}
|
|
102
|
+
export interface EDPayWalletPaymentChallenge {
|
|
103
|
+
challenge_id: string;
|
|
104
|
+
payment_id: string;
|
|
105
|
+
amount_minor: string;
|
|
106
|
+
currency: string;
|
|
107
|
+
merchant_name: string;
|
|
108
|
+
authorization_mode: EDPayWalletAuthorizationMode;
|
|
109
|
+
expires_in_seconds: number;
|
|
110
|
+
checkout_token?: string;
|
|
111
|
+
checkout_session_id?: string;
|
|
112
|
+
}
|
|
113
|
+
export interface EDPayWalletChallengeResponse {
|
|
114
|
+
challenge_id?: string;
|
|
115
|
+
payment_id?: string;
|
|
116
|
+
amount_minor?: string;
|
|
117
|
+
currency?: string;
|
|
118
|
+
merchant_name?: string;
|
|
119
|
+
authorization_mode?: EDPayWalletAuthorizationMode;
|
|
120
|
+
expires_in_seconds?: number;
|
|
121
|
+
checkout_token?: string;
|
|
122
|
+
checkout_session_id?: string;
|
|
123
|
+
data?: EDPayWalletPaymentChallenge;
|
|
124
|
+
[key: string]: unknown;
|
|
125
|
+
}
|
|
126
|
+
export interface EDPayWalletChallengeConfirmationResponse {
|
|
127
|
+
challenge_id?: string;
|
|
128
|
+
status?: "succeeded";
|
|
129
|
+
data?: {
|
|
130
|
+
challenge_id: string;
|
|
131
|
+
status: "succeeded";
|
|
132
|
+
};
|
|
133
|
+
[key: string]: unknown;
|
|
134
|
+
}
|
|
61
135
|
export interface WebhookEndpointAuth {
|
|
62
136
|
type: "bearer";
|
|
63
137
|
token: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,W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IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,eAAe,CAAC;IACxC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,mFAAmF;AACnF,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,uBAAuB,CAAC;CAC/B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edutecka-mz/edpay-sdk",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "Official EDPay SDK for Node.js and TypeScript with multi-gateway payments, hosted checkout, and webhook verification.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|