Quickstart
This guide walks you through creating your first crypto payment via Hosted Checkout — from API key to a confirmed test payment, in about 5 minutes.
-
Get a test API key
Section titled “Get a test API key”In the ParaSta Dashboard → Developers → API Keys, copy your Secret test key (starts with
sk_test_). -
Create a Checkout Session
Section titled “Create a Checkout Session”amountis in the smallest unit of the currency — USDT has 6 decimals, so10000000means 10 USDT.Terminal window 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
url. Redirect your customer to that URL to complete the payment. -
Listen for the webhook
Section titled “Listen for the webhook”When payment confirms on-chain, ParaSta sends a
checkout.session.completedwebhook to your server. The webhook is the reliable signal for fulfillment — never rely on the redirect alone.See Webhooks → Overview for setup.