Quick Start
Get up and running with PayArk in less than 5 minutes.
1. Create a Project
First, log in to the Dashboard and create a new project. Give it a name like "My Awesome Store".
Projects isolate your data. You can have separate projects for Development and Production.
2. Get your API Key
Navigate to Project Settings > API Keys. Copy your Secret Key (`sk_...`). You will need this to authenticate your requests.
3. Configure Providers
Go to the Integrations tab. Enable eSewa or Khalti by entering your merchant credentials. For testing, you can use the default sandbox credentials provided.
4. Create a Payment
Make a POST request to create a checkout session.
curl -X POST https://api.payark.dev/v1/checkout \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-d '{ "amount": 100, "currency": "NPR", "provider": "esewa", "returnUrl": "https://yoursite.com" }'
5. Redirect User
The API will return a checkout_url. Redirect your user to this URL to complete the payment.
You're ready!
That's all it takes to integrate PayArk. Explore the API Reference for more advanced features like Webhooks and Refunds.
Explore API Reference →