@ovra/ts-sdk 0.5.2 → 0.5.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/README.md +5 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,8 +9,7 @@ The Ovra SDK for TypeScript provides access to the [Ovra API](https://getovra.co
|
|
|
9
9
|
|
|
10
10
|
## Documentation
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
Error reference at **[app.getovra.com/docs/errors](https://app.getovra.com/docs/errors)**.
|
|
12
|
+
**[docs.getovra.com](https://docs.getovra.com)**
|
|
14
13
|
|
|
15
14
|
## Installation
|
|
16
15
|
|
|
@@ -35,11 +34,7 @@ const result = await ovra.pay({
|
|
|
35
34
|
purpose: "Top up OpenAI credits",
|
|
36
35
|
});
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
console.log(result.orderId); // cmo_…
|
|
40
|
-
console.log(result.order.amount); // { amount: 1000, currency: "eur" }
|
|
41
|
-
console.log(result.order.authorization.network_auth_code); // "000123"
|
|
42
|
-
}
|
|
37
|
+
console.log(result.orderId); // cmo_…
|
|
43
38
|
```
|
|
44
39
|
|
|
45
40
|
`ovra.pay()` declares the intent, runs the policy gate, debits the wallet,
|
|
@@ -47,7 +42,7 @@ mints the DPAN, signs the 4-mandate AP2 chain, captures with the merchant,
|
|
|
47
42
|
and returns the order envelope in a single round-trip.
|
|
48
43
|
|
|
49
44
|
Need the lower-level primitives (custom approval UI, manual intent, raw
|
|
50
|
-
generated operations)? See
|
|
45
|
+
generated operations)? See the docs.
|
|
51
46
|
|
|
52
47
|
## Requirements
|
|
53
48
|
|
|
@@ -99,7 +94,7 @@ try {
|
|
|
99
94
|
```
|
|
100
95
|
|
|
101
96
|
Every envelope carries `code`, `type`, `message`, `param`, `docUrl`,
|
|
102
|
-
`requestId`, `status`.
|
|
97
|
+
`requestId`, `status`.
|
|
103
98
|
|
|
104
99
|
## Idempotency
|
|
105
100
|
|
|
@@ -140,14 +135,9 @@ agentic-commerce (search / buy / order / refund / verify), policies,
|
|
|
140
135
|
delegations, customers, disputes, webhooks, audit, billing, and 20 more.
|
|
141
136
|
Generated functions for every operation are also accessible as raw exports.
|
|
142
137
|
|
|
143
|
-
See the [API reference](https://app.getovra.com/docs/errors) for the full
|
|
144
|
-
list with scope and plan requirements.
|
|
145
|
-
|
|
146
138
|
## Support
|
|
147
139
|
|
|
148
|
-
|
|
149
|
-
- Issues: [github.com/ovra/ovra/issues](https://github.com/ovra/ovra/issues)
|
|
150
|
-
- Email: support@getovra.com
|
|
140
|
+
support@getovra.com
|
|
151
141
|
|
|
152
142
|
## License
|
|
153
143
|
|