Quickstart
This guide walks you through creating your first crypto payment via Hosted Checkout.
1. Get a test API key
Section titled “1. Get a test API key”In the ParaSta Dashboard → Developers → API Keys, copy your Secret test key (starts with sk_test_).
2. Create a Checkout Session
Section titled “2. Create a Checkout Session”curl https://api.parasta.io/v1/checkout/sessions \ -H "Authorization: Bearer sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "line_items": [{ "name": "T-shirt", "amount": 10000000, "currency": "USDT" }], "success_url": "https://your-site.com/success", "cancel_url": "https://your-site.com/cancel" }'const session = await parasta.checkout.sessions.create({ line_items: [{ name: 'T-shirt', amount: 10_000_000, currency: 'USDT' }], success_url: 'https://your-site.com/success', cancel_url: 'https://your-site.com/cancel',});session = parasta.checkout.Session.create( line_items=[{'name': 'T-shirt', 'amount': 10_000_000, 'currency': 'USDT'}], success_url='https://your-site.com/success', cancel_url='https://your-site.com/cancel',)The response contains a url. Redirect your customer to this URL to complete the payment.
3. Listen for the checkout.session.completed webhook
Section titled “3. Listen for the checkout.session.completed webhook”When payment confirms on-chain, ParaSta sends a webhook. See Webhooks → Overview for details.
Next steps
Section titled “Next steps”- Hosted Checkout — full integration guide
- QR Payments — for in-store / POS
- Settlement — coin vs KRW vs splits