š Imajin Pay
Unified payment infrastructure for the sovereign stack.
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /api/health | Health check for all providers |
POST | /api/checkout | Create hosted Stripe Checkout |
POST | /api/charge | Direct payment (Stripe or Solana) |
POST | /api/escrow | Create escrow (hold funds) |
PUT | /api/escrow | Release or refund escrow |
POST | /api/webhook | Stripe webhook handler |
Providers
- Stripe ā USD, CAD, EUR, GBP (fiat)
- Solana ā SOL, USDC, MJN (crypto)
Example: Create Checkout
POST /api/checkout
Content-Type: application/json
{
"items": [
{ "name": "Unit 8Ć8Ć8", "amount": 49900, "quantity": 1 }
],
"currency": "USD",
"successUrl": "https://example.com/success",
"cancelUrl": "https://example.com/cancel"
}
ā { "id": "cs_xxx", "url": "https://checkout.stripe.com/..." }Example: Direct Charge
POST /api/charge
Content-Type: application/json
{
"amount": 100000000,
"currency": "SOL",
"to": { "solanaAddress": "xxx..." }
}
ā { "id": "sol-pending-xxx", "status": "requires_action", ... }