Crypto Payment Quick Start Guide
Prerequisites
Step 1: Apply Database Migration
# Start database
docker-compose up -d db
# Wait for database to be ready
docker-compose exec db pg_isready -U user -d aura_db
# Apply migration
docker-compose exec core-service alembic upgrade head
# Verify table created
docker-compose exec db psql -U user -d aura_db -c "\d locked_deals"Step 2: Generate Solana Keypair (Devnet)
Step 3: Configure Environment
Step 4: Start Services
Step 5: Test Payment Flow
5.1 Negotiate Deal (Get Payment Instructions)
5.2 Send Payment
5.3 Check Payment Status
Step 6: Verify in Database
Step 7: Monitor with Jaeger
Troubleshooting
Error: "SOLANA_PRIVATE_KEY required when CRYPTO_ENABLED=true"
Error: "Payment verification failed"
Error: "Deal not found"
Payment stuck on PENDING
No payment instructions returned
Testing Different Scenarios
Test 1: Successful Payment
Test 2: Deal Expiration
Test 3: Invalid Deal ID
Test 4: Crypto Disabled
Next Steps
Production Checklist
Support
Последнее обновление