Skip to main content

Step 1: Sign In

  1. Go to paygate.getaether.xyz
  2. Connect your Solana wallet (Phantom, Solflare, etc.)
  3. Sign the authentication message

Step 2: Configure Wallet

  1. Navigate to Settings
  2. Enter your Merchant Wallet Address (where you’ll receive payments)
  3. Save settings

Step 3: Create a Product

  1. Go to ProductsCreate Product
  2. Fill in the details:
Title: Premium Article
Description: Exclusive content about...
Type: content
Price: 0.50 USDC
Network: mainnet-beta (or devnet for testing)
  1. Click Create

Step 4: Get Your Product URL

After creation, you’ll receive:
  • Product ID: prod_abc123xyz
  • Paywall URL: https://paygate.getaether.xyz/pay/prod_abc123xyz

Step 5: Integrate

Share the paywall URL directly:
https://paygate.getaether.xyz/pay/prod_abc123xyz

Option B: Embed Button

<a href="https://paygate.getaether.xyz/pay/prod_abc123xyz"
   class="paygate-button">
  Buy for $0.50 USDC
</a>

Option C: API Integration

// Check if user has access
const response = await fetch(
  'https://api-paygate.getaether.xyz/public/access/check',
  {
    method: 'POST',
    headers: {
      'X-API-Key': 'pk_your_api_key',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      productId: 'prod_abc123xyz',
      walletAddress: userWallet
    })
  }
);

const { hasAccess } = await response.json();

if (!hasAccess) {
  // Redirect to paywall
  window.location.href = `https://paygate.getaether.xyz/pay/prod_abc123xyz`;
}

Step 6: Set Up Webhooks (Optional)

  1. Go to WebhooksAdd Webhook
  2. Enter your endpoint URL: https://yoursite.com/api/paygate-webhook
  3. Select events to receive:
    • payment.completed
    • feature.unlocked
  4. Save
Your endpoint will receive:
{
  "type": "payment.completed",
  "productId": "prod_abc123xyz",
  "productTitle": "Premium Article",
  "walletAddress": "7xK3...",
  "txHash": "5abc...",
  "amount": "0.50",
  "timestamp": "2024-01-15T10:30:00Z"
}

Step 7: Test (Devnet)

  1. Create a product on devnet
  2. Get devnet USDC from faucet
  3. Test the payment flow
  4. Check your dashboard for the transaction

Step 8: Go Live (Mainnet)

  1. Create product on mainnet-beta
  2. Update your integration URLs
  3. Announce to users!

Example: Feature Unlock

For feature unlocks, create a product:
Title: Pro Features
Description: Unlock all premium features
Type: feature_unlock
Price: 5.00 USDC
Feature IDs: pro_analytics, pro_export, pro_themes
Then verify access in your app:
const response = await fetch(
  'https://api-paygate.getaether.xyz/public/feature/verify',
  {
    method: 'POST',
    headers: {
      'X-API-Key': 'pk_your_api_key',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      accessToken: 'ft_user_token_here'
    })
  }
);

const { valid, features } = await response.json();

if (valid && features.includes('pro_analytics')) {
  // Show pro analytics
}

Next Steps