> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spacepay.solutions/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Get started with SpacePay in minutes - from account creation to your first payment

# Quickstart Guide

Get up and running with SpacePay in just a few minutes. This guide will walk you through the essential steps to start accepting cryptocurrency payments.

## Prerequisites

Before you begin, make sure you have:

* A business email address
* Business registration documents (for verification)
* A website or application where you want to accept payments
* Basic understanding of APIs (for technical integration)

## Step 1: Create Your Account

<Steps>
  <Step title="Sign Up">
    Visit the [SpacePay Dashboard](https://dashboard.spacepay.solutions/) and click "Sign Up" to create your account.

    <Tip>
      You can sign up using your Google account for faster registration, or use your business email address.
    </Tip>
  </Step>

  <Step title="Complete Business Information">
    Fill in your business details including:

    * **Company Name**: Your registered business name
    * **Industry**: Select your business industry category
    * **Country**: Your business location
    * **Business Email**: Use your business email address
    * **Phone Number**: Business contact number
    * **Website**: Your company website URL
  </Step>
</Steps>

## Step 2: Business Verification

<Warning>
  Business verification is required before you can accept live payments. Our
  support team will contact you to complete this process.
</Warning>

<Steps>
  <Step title="Wait for Support Contact">
    Once you've completed your account registration, our support team will contact
    you to gather additional KYC (Know Your Customer) and KYB (Know Your Business)
    information.
  </Step>

  <Step title="Provide Required Information">
    Our support team will guide you through providing: - Business registration
    documents - Identity verification for authorized signatories - Additional
    compliance information - Business activity details
  </Step>

  <Step title="Verification Review">
    Our compliance team will review your information and complete the verification
    process.

    <Info>
      You'll receive email updates about your verification status throughout the
      process.
    </Info>
  </Step>
</Steps>

## Step 3: Get Your API Keys

Once your account is verified, you can access your API keys:

<Steps>
  <Step title="Navigate to API Settings">
    In your dashboard, go to **Settings** → **Developers** → **API Keys**.
  </Step>

  <Step title="Generate Keys">
    Click "Generate New Key" to create your API credentials.

    <Warning>
      Keep your API keys secure and never share them publicly. Use environment
      variables in your code.
    </Warning>
  </Step>

  <Step title="Setup Webhook URL">
    Configure your webhook endpoint to receive real-time payment notifications:

    * Enter your webhook URL (must be HTTPS)
    * Test your webhook endpoint to ensure it's working correctly
  </Step>
</Steps>

## Step 4: Accept Your First Payment

Now you're ready to integrate SpacePay into your application:

<AccordionGroup>
  <Accordion title="Option 1: API Integration">
    For more control, integrate directly with our API:

    ```javascript theme={null}
    // Create a payment
    const response = await fetch('https://api.spacepay.solutions/v1/external/secretkey-auth/payments', {
      method: 'POST',
      headers: {
        'X-SpacePay-Secret-Key': 'sk_test_your_secret_key',
        'Content-Type': 'application/json',
        'Idempotency-Key': 'unique-key-for-request' // Optional but recommended
      },
      body: JSON.stringify({
        orderId: 'order_123',
        amount: 250, // $2.50 in cents (minimum: 250 for fixed payments; use type "deposit" for flexible amounts)
        currency: 'USD',
        redirectUrl: 'https://merchant.example.com/checkout/success', // Optional
        customMetadata: '{"cartId":"abc123","promo":"SUMMER24"}' // Optional
      })
    });

    const payment = await response.json();
    // Access payment.paymentUrl to redirect customer to payment page
    ```
  </Accordion>

  <Accordion title="Option 2: Drop-in UI">
    Embed our payment widget directly in your page:

    ```html theme={null}
    <div id="spacepay-checkout"></div>
    <script src="https://js.spacepay.solutions/v1/checkout.js"></script>
    <script>
      SpacePayCheckout.mount('#spacepay-checkout', {
        apiKey: 'your-api-key',
        amount: 10000,
        currency: 'USD'
      });
    </script>
    ```
  </Accordion>
</AccordionGroup>

## Step 5: Test Your Integration

Before going live, test your integration thoroughly:

<Steps>
  <Step title="Use Test Mode">
    Make sure you're using test API keys and test mode in your integration.
  </Step>

  <Step title="Test Different Scenarios">
    Test various payment amounts, currencies, and failure scenarios.
  </Step>

  <Step title="Verify Webhooks">
    Set up webhook endpoints to receive payment notifications and test them.
  </Step>

  <Step title="Check Dashboard">
    Verify that payments appear correctly in your SpacePay dashboard.
  </Step>
</Steps>

## Going Live

When you're ready to accept real payments:

<Steps>
  <Step title="Switch to Live Mode">
    Update your integration to use live API keys and live endpoints.
  </Step>

  <Step title="Monitor Transactions">
    Keep an eye on your dashboard for the first few transactions to ensure everything works smoothly.
  </Step>
</Steps>

## What's Next?

Congratulations! You're now ready to accept cryptocurrency payments. Here are some next steps:

<CardGroup cols={2}>
  <Card title="Explore Advanced Features" icon="cog" href="/core-products/payment-flows">
    Learn about refunds, partial payments, and advanced payment flows.
  </Card>

  <Card title="Set Up Reporting" icon="chart-bar" href="/core-products/merchant-dashboard">
    Configure reporting and analytics for your payment data.
  </Card>

  <Card title="Integrate Webhooks" icon="webhook" href="/developer-docs/api-reference">
    Set up real-time payment notifications for your application.
  </Card>

  <Card title="Get Support" icon="question-circle" href="/trust-operations/support">
    Access our support resources and contact information.
  </Card>
</CardGroup>

<Note>
  **Need help?** Our support team is available 24/7. Check out our [Support
  section](/trust-operations/support) for contact information and resources.
</Note>
