Milypay demo · sandbox

Fund wallet → pay x402

MoneyGram does not settle the API call. It tops up USDC so you can answer PAYMENT-REQUIRED and retry with PAYMENT-SIGNATURE.

  1. Call a paid endpoint → HTTP 402
  2. If underfunded, start a MoneyGram sandbox session below
  3. Complete the widget → USDC lands in your Solana wallet
  4. Sign x402 and retry the original request

1) Sample 402 (live)

GET https://api.milypay.xyz/au-energy/nem

{
  "loading": true
}

2) MoneyGram session

3) Agent API

# status
curl https://api.milypay.xyz/ramp/moneygram

# session
curl -X POST https://api.milypay.xyz/ramp/moneygram/session \
  -H 'content-type: application/json' \
  -d '{"mode":"on-ramp"}'

# then pay x402 as usual on any paid route

Docs: agents.md · Prod keys later — this page is sandbox/demo.