@undernouzen/ay-payments-sdk 1.0.1 → 1.0.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 +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# AY Payments SDK
|
|
2
2
|
|
|
3
|
+
Documentacao completa: https://aypayments.undernouzen.com.br/docs/
|
|
4
|
+
|
|
3
5
|
SDK TypeScript/JavaScript para consumir a API do AY Payments.
|
|
4
6
|
|
|
5
7
|
O pacote não lê `.env`. A autenticação é passada na inicialização. Se você criar o client sem `apiKey`, ele continua funcionando como instância HTTP, mas as rotas protegidas vão depender de sessão/cookie ou retornar erro de autenticação da API.
|
|
@@ -7,7 +9,7 @@ O pacote não lê `.env`. A autenticação é passada na inicialização. Se voc
|
|
|
7
9
|
## Instalação
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
npm install @ay-payments
|
|
12
|
+
npm install @undernouzen/ay-payments-sdk
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
Se o escopo `@ay-payments` não estiver disponível no npm, publique como `@undernouzen/ay-payments-sdk` ou outro escopo seu e mantenha os imports equivalentes.
|
|
@@ -15,7 +17,7 @@ Se o escopo `@ay-payments` não estiver disponível no npm, publique como `@unde
|
|
|
15
17
|
## Criar o client
|
|
16
18
|
|
|
17
19
|
```ts
|
|
18
|
-
import { createAYPaymentsClient } from "@ay-payments
|
|
20
|
+
import { createAYPaymentsClient } from "@undernouzen/ay-payments-sdk";
|
|
19
21
|
|
|
20
22
|
const ay = createAYPaymentsClient({
|
|
21
23
|
baseUrl: "https://aypayments.undernouzen.com.br",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@undernouzen/ay-payments-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "TypeScript SDK for AY Payments API integrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"bugs": {
|
|
32
32
|
"url": "https://github.com/UNDER192103/AY-Payments-sdk/issues"
|
|
33
33
|
},
|
|
34
|
-
"homepage": "https://
|
|
34
|
+
"homepage": "https://aypayments.undernouzen.com.br/docs/",
|
|
35
35
|
"author": "Under Nouzen",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"keywords": [
|