For the complete documentation index, see llms.txt. This page is also available as Markdown.

Introduction

AstraPay is a non-custodial crypto payment processing platform. Accept USDC, USDT, ETH, BTC, and more — with no KYC requirements on your customers.

Base URL

https://apipay.byastra.ai/v1/api

Dashboard: pay.byastra.ai


How it works

  1. Your server calls POST /payments with an amount, token, and network

  2. The API returns a checkout_url

  3. You redirect your customer to that URL

  4. AstraPay displays the wallet address, QR code, and live payment tracking

  5. On confirmation, a webhook fires and the customer is redirected to your redirect_url

It works like Stripe Checkout — create a payment, get a link, send your customer there.


Quick example

curl -X POST https://apipay.byastra.ai/v1/api/payments \
  -H "X-Api-Key: ap_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 49.99,
    "token": "USDC",
    "network": "BASE",
    "redirect_url": "https://yourapp.com/success"
  }'

Response:

Redirect your customer to checkout_url. Done.


Integration options

Option
Best for

Any backend language — direct HTTP calls

Node.js / TypeScript projects

AI agents — Claude, Cursor, VS Code Copilot

Last updated