Data Layer

  • MongoDB:

    • users, projects, keys

    • tx, analytics

    • webhooks

    • Solana tx cache

  • Redis:

    • signatures

    • rate limits

    • sessions

The facilitator is stateless. It does NOT store:

  • User accounts

  • Payment history

  • API keys

  • Analytics

Your Responsibility: You should store in YOUR database:

  • Payment records (payment_id, user_id, status)

  • Transaction signatures for verification

  • User access grants

  • Business logic data

Example Storage Schema (Your DB):json

{
  "payment_id": "pay_abc123",
  "user_id": "usr_xyz",
  "amount": 0.01,
  "token": "SOL",
  "tx_signature": "2ZE7s...",
  "status": "completed",
  "created_at": "2024-01-01T00:00:00Z"
}

Last updated