Skip to content

Quickstart

This guide walks you through creating your first crypto payment via Hosted Checkout.

In the ParaSta Dashboard → Developers → API Keys, copy your Secret test key (starts with sk_test_).

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"
}'

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.