Documentation

Everything you need to integrate Solpex into your website

Quick Start Guide
Get up and running in 3 simple steps
1

Create Account

Connect your Solana wallet - no signup forms, no KYC.

2

Create Payment Method

Set your price, token, and customize the widget appearance.

3

Embed & Go Live

Copy the code, paste on your site, start accepting payments!

Widget Integration
Embed the payment widget on any website

Basic Embed Code

index.html
<!-- Solpex Payment Widget -->
<div 
  id="solpex-widget-YOUR_PAYMENT_METHOD_ID"
  data-solana-payment
  data-payment-method-id="YOUR_PAYMENT_METHOD_ID"
  data-style="card"
  data-theme="light"
  data-size="medium"
  data-primary-color="#667eea">
</div>
<script src="https://www.solpexpay.com/widget.js"></script>

Note: Replace YOUR_PAYMENT_METHOD_ID with your actual payment method ID from the dashboard.

Code Examples

Plain HTML
Works on any static website
<!DOCTYPE html>
<html>
<head>
  <title>My Product</title>
</head>
<body>
  <h1>Buy My Product</h1>
  
  <!-- Paste widget code here -->
  <div id="solpex-widget-xxx" data-solana-payment data-payment-method-id="xxx"></div>
  <script src="https://www.solpexpay.com/widget.js"></script>
</body>
</html>
React Component
For React applications
import { useEffect } from 'react';

export function PaymentWidget({ paymentMethodId }) {
  useEffect(() => {
    const script = document.createElement('script');
    script.src = 'https://www.solpexpay.com/widget.js';
    script.async = true;
    document.body.appendChild(script);
    return () => document.body.removeChild(script);
  }, []);

  return (
    <div
      id={`solpex-widget-${paymentMethodId}`}
      data-solana-payment
      data-payment-method-id={paymentMethodId}
      data-style="card"
      data-theme="light"
    />
  );
}
Frequently Asked Questions
Common questions about Solpex

Do I need KYC verification?

No! Simply connect your Solana wallet and you're ready to go. No identity verification or business registration required.

What tokens are supported?

Currently SOL, USDC, and USDT on Solana. More tokens coming soon based on user demand.

How long do transactions take?

Transactions confirm in under 1 second on Solana blockchain. Your customers will see instant confirmation.

What are the fees?

2% platform commission + minimal Solana network fees (typically $0.00025 per transaction).

Can I customize the widget?

Yes! Full customization including colors, sizes, styles, button text, and icons. Match your brand perfectly.

Is it secure?

Absolutely. Non-custodial architecture, smart contract based, and all transactions are transparent on-chain.

Need Help?

Our support team is here to help you get started