# PaymentHub SDK 0.1.0
Preview — read-only readiness diagnostics. No payment, refund or payout methods are exposed yet.
Use the HTTPS URL of the deployed PaymentHub readiness function supplied by your platform administrator. Do not substitute the Stripe Adapter TEST endpoints. HTTP success does not imply LIVE readiness. Inspect the explicit checks and blockers.
## Node.js 20+ / TypeScript
Download paymenthub.mjs and paymenthub.d.mts together.
```js
import { PaymentHub } from './paymenthub.mjs';
const hub = new PaymentHub({endpoint: process.env.PAYMENTHUB_READINESS_URL});
console.log(await hub.readiness());
```
## Python 3.10+
Download paymenthub.py.
```python
import os
from paymenthub import PaymentHub
hub = PaymentHub(os.environ["PAYMENTHUB_READINESS_URL"])
print(hub.readiness())
```
No provider secret or card number is needed. Never log card data or assume readiness from an HTTP status alone. The independent orchestration, payment creation, billing, ledger and payout APIs remain migration targets; no claim of LIVE certification is made.

## PaymentHub CLI (source distribution)
Download paymenthub-cli.mjs, paymenthub.mjs, and examples/advanced.mjs preserving the directory layout. Node.js 20+ is required. No registry installation is claimed.

```sh
node paymenthub-cli.mjs --help
node paymenthub-cli.mjs health "$PAYMENTHUB_READINESS_URL"
node paymenthub-cli.mjs readiness "$PAYMENTHUB_READINESS_URL"
node paymenthub-cli.mjs idempotency merchant-example test checkout order-001
node paymenthub-cli.mjs totals '[{"currency":"CHF","amount_minor":50}]'
node --test examples/*.test.mjs
```
The health and readiness commands read the configured HTTPS endpoint. Other commands are local utilities. No charge, refund, payout, or credential mutation is available. Idempotency keys require atomic server-side enforcement.
