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
SDK Integration
Best for: Quick setup, simplified developmentUse our official SDK for easier integration with built-in functionality and type safety.
API Integration
Best for: Full control, custom UI Integrate directly with SpacePay’s REST
APIs to build your own payment interface.
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.ukMainnet Environment
Networks: Base, Ethereum, Polygon, BSC, AvalancheUse for: Production with real tokensAPI Keys:
pk_..., sk_...Base URL: https://api.spacepay.co.ukPayment 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
Guest One-Time Payments
Guest One-Time Payments
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
SpacePay Smart Account
SpacePay Smart Account
Features: Top-up functionality, pre-funded paymentsBenefits: Faster checkout, reduced transaction feesBest for: Regular customers, subscription services
Connected Pre-verified Wallets
Connected Pre-verified Wallets
Features: Pre-verified wallet connectionsBenefits: Streamlined payment experienceBest for: Returning customers with crypto experience
Next Steps
Payment Flows
Learn about payment processing, statuses, and supported payment methods.
Merchant Dashboard
Manage payments, view analytics, and configure settings in your dashboard.
Blockchain Concepts
Learn about supported chains, contract addresses, and blockchain fundamentals.
Support
Get help with your integration from our support team.