Skip to main content

Accept Payments

This guide will walk you through the process of accepting cryptocurrency payments with SpacePay, from setting up your API keys to processing your first payment.

Quick Start

1

Get Your API Keys

Generate your API keys in the admin dashboard under Settings → Developers → API Keys.
API Keys: Available in both testnet and mainnet environments. Test keys start with pk_test_ and sk_test_.
2

Choose Your Integration Method

Select the integration approach that best fits your needs: - SDK Integration: Quick setup with built-in functionality - API Integration: Full control with direct API calls - Webhooks: Real-time payment notifications
3

Test Your Integration

Use our testnet environment to verify everything works correctly before going live.
4

Go Live

Switch to production environment and start accepting real payments.

Integration Options

Environments

SpacePay provides two separate environments for development and production:

Testnet Environment

Networks: Base Sepolia, Ethereum SepoliaUse for: Development and testingAPI Keys: pk_test_..., sk_test_...Base URL: https://api-testnet.spacepay.co.uk

Mainnet Environment

Networks: Base, Ethereum, Polygon, BSC, AvalancheUse for: Production with real tokensAPI Keys: pk_..., sk_...Base URL: https://api.spacepay.co.uk

Payment Flow Overview

How SpacePay Processes Payments

  • Payment Creation: Defined in USD with crypto quotes provided
  • Token Reception: Customer sends cryptocurrency to deposit address
  • Validation: Correct amount received and blockchain confirmation
  • Offramping: Conversion to preferred settlement currency

Supported Payment Methods

Supported Wallets: Any crypto wallet or direct transfer from CEXFeatures: No account required, instant paymentBenefits: Maximum flexibility for customersBest for: One-time purchases, guest checkouts
Features: Top-up functionality, pre-funded paymentsBenefits: Faster checkout, reduced transaction feesBest for: Regular customers, subscription services
Features: Pre-verified wallet connectionsBenefits: Streamlined payment experienceBest for: Returning customers with crypto experience

Next Steps