Documentation

Learn how to integrate crypto subscriptions into your business with payment links and widgets

Quick Navigation
Getting Started

SubChain makes it easy to accept crypto subscriptions without any coding required. Choose between payment links for simple sharing or embeddable widgets for your website.

Payment Links

Create shareable links that customers can use to subscribe to your plans

  • • No coding required
  • • Share via email, social media, or SMS
  • • Customizable branding
  • • Real-time analytics
Payment Widgets

Embed payment forms directly on your website with a simple iframe

  • • Easy iframe integration
  • • Responsive design
  • • Custom styling options
  • • Secure payment processing

Pricing Model

SubChain uses a simple commission-based model: 2.4% + 0.30 ALGO per transaction. No monthly fees, no setup costs - you only pay when you earn.

Payment Widgets

Embed payment forms directly on your website using our secure iframe widgets. No backend integration required.

Basic Integration

<iframe 
  src="https://pay.subchain.dev/widget/wg_xyz789" 
  width="400" 
  height="600"
  frameborder="0">
</iframe>

Widget Features

  • • Responsive design that works on all devices
  • • Secure payment processing
  • • Real-time validation and error handling
  • • Support for multiple cryptocurrencies
  • • Customizable styling and branding
  • • Built-in customer information collection

Customization

Customize your widget appearance in the dashboard:

  • • Upload your company logo
  • • Set custom colors and fonts
  • • Configure payment options
  • • Add custom CSS for advanced styling
Webhooks

Webhooks allow your application to receive real-time notifications about events in your SubChain account, such as successful payments or subscription changes.

Available Events

subscription.created
subscription.updated
subscription.cancelled
payment.succeeded
payment.failed
customer.created

Webhook Payload Example

{
  "id": "evt_1234567890",
  "type": "subscription.created",
  "created": 1640995200,
  "data": {
    "object": {
      "id": "sub_abc123",
      "customer": "cust_xyz789",
      "plan": "plan_pro_monthly",
      "status": "active",
      "amount": 2500,
      "currency": "ALGO"
    }
  }
}

Setting Up Webhooks

  1. Go to Dashboard → Integrations → Webhooks
  2. Add your webhook endpoint URL
  3. Select the events you want to receive
  4. Save your webhook secret for signature verification
  5. Test your webhook endpoint
Security

SubChain is built with security as a top priority. All transactions are processed securely on the Algorand blockchain.

Data Protection

  • • End-to-end encryption
  • • PCI DSS compliance
  • • GDPR compliant
  • • Regular security audits

Blockchain Security

  • • Algorand's secure consensus
  • • Instant transaction finality
  • • Smart contract audits
  • • Multi-signature wallets

Best Practices

  • • Always verify webhook signatures
  • • Use HTTPS for all webhook endpoints
  • • Store API keys securely
  • • Monitor your account regularly
  • • Keep your wallet software updated
Need Help?

Support Channels

Resources