🟠 Imajin Pay

Unified payment infrastructure for the sovereign stack.

API Endpoints

MethodEndpointDescription
GET/api/healthHealth check for all providers
POST/api/checkoutCreate hosted Stripe Checkout
POST/api/chargeDirect payment (Stripe or Solana)
POST/api/escrowCreate escrow (hold funds)
PUT/api/escrowRelease or refund escrow
POST/api/webhookStripe webhook handler

Providers

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", ... }