ComusThumbz 文档
管理员登录

Payment Providers

Overview

The Payment Providers Management page is the central hub for configuring and managing all payment processor integrations in ComusThumbz. This comprehensive interface supports 35+ payment processors worldwide, with specialized configurations for adult content merchants including CCBill, Epoch, SegPay, Verotel, and many regional processors.

Key capabilities include:

  • Enable/disable payment providers
  • Configure processor credentials (API keys, merchant IDs, secrets)
  • Switch between sandbox and production modes
  • View transaction statistics per provider
  • Access setup guides for each processor
  • Compare processor features (fees, regions, adult-friendliness)

 


System Requirements

PHP Requirements

Requirement Minimum Recommended
PHP Version 7.4+ 8.0+
Memory Limit 64M 128M

PHP Extensions Required

  • mysqli - Database connectivity
  • openssl - SSL/TLS for API communications
  • curl - API requests to payment processors
  • json - JSON encoding/decoding for configurations

Database Requirements

  • MySQL 5.7+ / MariaDB 10.3+
  • InnoDB engine for transaction tables

Features & UI Elements

Page Header

[Screenshot: payment-providers-header]

The page header displays:

  • Title: "Payment Providers"
  • Breadcrumb: Dashboard / Payment Providers

 

Alert Messages

Success and error messages appear below the header:

  • Success (green): "Payment provider updated successfully!"
  • Error (red): "Invalid security token. Please try again." or database errors

 

Providers Table

[Screenshot: payment-providers-table]

The main table displays all configured payment providers with columns:

Column Description
ID Internal identifier (e.g., ccbill, paypal)
Provider Display name
Status Enabled/Disabled badge
Mode Sandbox (yellow badge) or Production (text)
Statistics 4-stat grid showing transactions
Actions Configure and Setup Guide buttons

Statistics Grid (Per Provider)

Each provider row shows transaction statistics:

  • Total: Total transactions processed
  • Purchases: Initial purchases (typeid = 1)
  • Rebills: Recurring charges (typeid = 3)
  • Open: Active/pending transactions (statusid = 1)

 

Action Buttons

Button Action
Configure Opens modal to edit provider settings
Setup Guide Opens modal with integration instructions

Quick Actions Section

Below the providers table:

  • Manage Access Packagesaccesspackages.admin.php
  • View Transactionsbillingtransactions.admin.php
  • View Logsbillinglogs.admin.php

 


Processor Comparison Chart

[Screenshot: payment-providers-comparison]

A comprehensive comparison table showing 35 payment processors with:

Column Description
Processor Provider name
Adult Focus 1-5 star rating
Fees Transaction fee percentage
Speed Payout speed
Recurring Supports recurring billing
Crypto Cryptocurrency support
Special Feature Unique feature or warning

Regional Recommendations

The page includes quick recommendations by region:

  • USA: CCBill, Epoch, SegPay, Square, Authorize.Net, Clover
  • Europe: Verotel, Zombaio, Klarna, Adyen
  • Russia/CIS: Robokassa
  • China: UnionPay (Alipay/WeChat ban adult)
  • Korea: Toss Pay (KakaoPay/Naver ban adult)
  • Japan: LINE Pay (PayPay strict policies)
  • India: Razorpay, Paytm
  • Southeast Asia: 2C2P, MOLPay
  • High-Risk/Adult: CCBill, Epoch, SegPay, Verotel, Adyen, Paxum, Centrobill
  • Cryptocurrency: CoinPayments, Centrobill, Paxum

 


Provider Configuration Modal

[Screenshot: payment-providers-configure-modal]

When clicking "Configure" on a provider, a modal opens with processor-specific fields.

Common Fields (All Providers)

Field Description
Provider Name Display name for the processor
Enable Provider Checkbox to enable/disable
Sandbox Mode Checkbox for test/production mode

Postback/Webhook Settings (All Providers)

Field Description
Postback URL URL for payment notifications
Postback Username Basic auth username (optional)
Postback Password Basic auth password (optional)

Advanced Options

Field Description
Additional Configuration JSON format for processor-specific settings

Processor-Specific Configurations

CCBill / CCBill Dynamic

 

Note: CCBill is the industry leader for adult content billing with 10-15% fees.

 

Field Description
Account Number 6-digit CCBill Account Number
Sub Account Number 4-digit Sub Account (e.g., 0100)
Salt / Encryption Key Found in CCBill Admin → Sub Account Admin → Advanced
Datalink Username For pulling transaction data via API
Datalink Password API password for Datalink

PayPal

 

Warning: PayPal may restrict adult content. Use at your own risk.

 

Field Description
Client ID From PayPal Developer Dashboard → My Apps
Client Secret Secret key from PayPal Developer Dashboard
Webhook ID Webhook ID for event notifications

SegPay

Field Description
Merchant ID Your SegPay Merchant ID
Package ID SegPay Package/Product ID
Security Token Security token for postback validation

Epoch

Field Description
PI Code Your Epoch PI (Product ID) Code
Secret Key Secret key for signature validation
API Username For API operations (optional)

Verotel

Field Description
Shop ID Your Verotel Shop ID
Signature Key Secret key for SHA256 signatures
Website ID For multi-site setups (optional)

CoinPayments

Field Description
Merchant ID Your CoinPayments Merchant ID
IPN Secret IPN Secret for HMAC SHA512 validation
Public API Key For API operations (optional)
Private API Key For API operations (optional)

Regional Processors

The page includes configurations for regional processors:

  • Robokassa (Russia): Merchant Login, Password #1, Password #2
  • 2C2P (Southeast Asia): Merchant ID, Secret Key
  • Razorpay (India): Key ID, Key Secret
  • MOLPay (Malaysia): Merchant ID, Verify Key
  • Toss Pay (Korea): Client Key, Secret Key
  • LINE Pay (Japan/Taiwan): Channel ID, Channel Secret

 

Processors with Adult Content Warnings

 

Error: These processors do NOT accept adult content merchants:

 

  • Alipay - NO ADULT CONTENT
  • WeChat Pay - NO ADULT CONTENT
  • KakaoPay - NO ADULT CONTENT
  • Naver Pay - Strict adult content policies
  • PayPay - Strict content policies

 

Success: These processors explicitly accept high-risk/adult merchants:

 

  • Adyen - Enterprise-grade, accepts with approval
  • CCBill - Industry leader for adult content
  • Epoch - Global gateway for adult content
  • SegPay - High-risk specialist
  • Verotel - 25+ years in adult billing

Step-by-Step Usage

Enabling a Payment Provider

  1. Navigate to Admin Panel → Billing → Payment Providers
  2. Locate the provider in the table
  3. Click Configure button
  4. Check Enable Provider checkbox
  5. Fill in required credentials (marked with *)
  6. Choose Sandbox Mode for testing
  7. Click Save Configuration

Configuring CCBill (Example)

  1. Log into your CCBill Admin panel
  2. Navigate to Sub Account Admin → Advanced
  3. Copy your Salt/Encryption Key
  4. In ComusThumbz admin, click Configure on CCBill
  5. Enter your 6-digit Account Number
  6. Enter your 4-digit Sub Account Number
  7. Paste the Salt / Encryption Key
  8. Configure the Postback URL in CCBill pointing to your site
  9. Click Save Configuration
  10. Test with a sandbox transaction before enabling production

Testing Postback URLs

  1. Configure the provider with sandbox credentials
  2. Enable Sandbox Mode
  3. Complete a test transaction
  4. Check Billing Logs for postback receipt
  5. Verify user access was granted correctly
  6. Disable Sandbox Mode for production

Viewing Setup Guides

  1. Click Setup Guide button next to any provider
  2. A modal opens with detailed integration instructions
  3. Follow the provider-specific steps
  4. Use the recommendations to configure correctly

Troubleshooting

Common Issues

"Invalid security token" Error

Cause: CSRF token expired or mismatch

Solutions:

  1. Refresh the page and try again
  2. Clear browser cookies and log in again
  3. Check session timeout settings

 

Provider Not Appearing

Cause: Database not seeded with providers

Solutions:

  1. Run the INSERT statement from Installation Requirements
  2. Check database connection in config.inc.php
  3. Verify tblPaymentProviders table exists

 

Postback Not Received

Cause: Incorrect postback URL or blocked by firewall

Solutions:

  1. Verify postback URL is publicly accessible
  2. Check server firewall allows incoming POST requests
  3. Review provider's IP whitelist requirements
  4. Check SSL certificate is valid

 

Sandbox Mode Not Working

Cause: Provider credentials are for production

Solutions:

  1. Obtain separate sandbox/test credentials from provider
  2. Use provider's test card numbers
  3. Verify sandbox endpoint URLs

 

Provider-Specific Issues

CCBill Signature Validation Failed

Cause: Incorrect salt/encryption key

Solutions:

  1. Re-copy the key from CCBill Admin → Sub Account Admin → Advanced
  2. Ensure no extra spaces in the key
  3. Verify form digest settings in CCBill

 

PayPal "Restricted Account"

Cause: Adult content detected

Solutions:

  1. Contact PayPal support for high-risk approval
  2. Consider alternative processors (CCBill, Epoch)
  3. Use cryptocurrency options (CoinPayments)

 


Translatable Strings

{
    "paymentproviderstitle": "Payment Providers",
    "paymentprovidersbreadcrumb": "Dashboard / Payment Providers",
    "paymentprovidersconfigured": "Configured Payment Providers",
    "paymentproviderscomparison": "Payment Processor Comparison",
    "paymentprovidersconfigure": "Configure",
    "paymentproviderssetupguide": "Setup Guide",
    "paymentproviderssave": "Save Configuration",
    "paymentproviderscancel": "Cancel",
    "paymentprovidersenabled": "Enabled",
    "paymentprovidersdisabled": "Disabled",
    "paymentproviderssandbox": "Sandbox",
    "paymentprovidersproduction": "Production",
    "paymentprovidersenableprovider": "Enable Provider",
    "paymentproviderssandboxmode": "Sandbox Mode",
    "paymentprovidersaccountsettings": "Account Settings",
    "paymentproviderspostbacksettings": "Postback/Webhook Settings",
    "paymentprovidersadvancedoptions": "Advanced Options",
    "paymentproviderstotal": "Total",
    "paymentproviderspurchases": "Purchases",
    "paymentprovidersrebills": "Rebills",
    "paymentprovidersopen": "Open",
    "paymentproviderssuccess": "Payment provider updated successfully!",
    "paymentproviderserrorcsrf": "Invalid security token. Please try again.",
    "paymentproviderserrorupdate": "Failed to update provider",
    "paymentprovidersrecommendations": "Quick Recommendations by Region",
    "paymentprovidersmanagepackages": "Manage Access Packages",
    "paymentprovidersviewtransactions": "View Transactions",
    "paymentprovidersviewlogs": "View Logs",
    "paymentprovidersadultfocus": "Adult Focus",
    "paymentprovidersfees": "Fees",
    "paymentprovidersspeed": "Speed",
    "paymentprovidersrecurring": "Recurring",
    "paymentproviderscrypto": "Crypto",
    "paymentprovidersspecialfeature": "Special Feature",
    "paymentprovidersnoadult": "NO ADULT CONTENT",
    "paymentprovidershighriskok": "HIGH-RISK OK"
}


Version History

Version Date Changes
1.0.0 2025-10-27 Initial payment providers admin page
1.1.0 2025-11-15 Added 35 processor comparison chart
1.2.0 2025-12-01 Added regional recommendations
1.3.0 2025-12-15 Modern UI with green theme