@ozura/elements 1.3.0-next.63 → 1.3.0-next.64
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 +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,6 +103,21 @@ If you are not routing payments through OzuraPay you only need the vault pub key
|
|
|
103
103
|
|
|
104
104
|
---
|
|
105
105
|
|
|
106
|
+
## Sandbox and testing
|
|
107
|
+
|
|
108
|
+
To test a full integration end-to-end without processing real money:
|
|
109
|
+
|
|
110
|
+
1. **Create a vault project** — go to [ozuravault.com](https://www.ozuravault.com), sign up, and create a **Test project** (the default for new projects).
|
|
111
|
+
2. **Get a test vault key** — open the project, create an application, and copy the test key. Omit `pubKey` from `OzVault.create()` (or `<OzElements>`) when using a test key — no pub key is needed for test projects.
|
|
112
|
+
3. **Set up the session endpoint** — implement `/api/oz-session` on your backend (see [Server setup](#server-setup)) using your test vault key as `vaultKey`.
|
|
113
|
+
4. **Add the SDK** — install `@ozura/elements` and mount your card fields (see the Quick start sections below).
|
|
114
|
+
5. **Run the tokenize flow** — use a test card number to fill the fields and call `createToken()`. You receive a vault token and a CVC session.
|
|
115
|
+
6. **Hit your processor's sandbox** — pass the token and CVC session to your backend charge endpoint and forward them to your payment processor's sandbox environment. If you are routing through OzuraPay, use `https://sandbox.payapi.v2.ozurapay.com` with sandbox merchant credentials from the Ozura merchant dashboard.
|
|
116
|
+
|
|
117
|
+
> **Test card numbers:** See [Test Credentials](https://docs.ozura.com/guides/test-credentials) for card numbers, expected outcomes, and the amount-based result model.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
106
121
|
## Installation
|
|
107
122
|
|
|
108
123
|
> 📖 [Installation guide](https://docs.ozura.com/sdks/elements/installation) — npm, yarn, CDN setup, and TypeScript configuration.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ozura/elements",
|
|
3
|
-
"version": "1.3.0-next.
|
|
3
|
+
"version": "1.3.0-next.64",
|
|
4
4
|
"description": "PCI-compliant card tokenization SDK for the Ozura Vault — collect card data in iframe-isolated fields and tokenize without PCI scope",
|
|
5
5
|
"main": "dist/oz-elements.umd.js",
|
|
6
6
|
"module": "dist/oz-elements.esm.js",
|