Installation Guide

Installation Guide

Last updated: Jan 06, 2026

Installation Guide

This guide will walk you through installing and activating the Sunsky OpenAPI Plugin on your Perfex CRM installation.

Requirements

Before installing, ensure your system meets these requirements:

  • Perfex CRM version 3.0 or higher
  • PHP 7.4 or higher (8.x recommended)
  • MySQL 5.7+ or MariaDB 10.3+
  • cURL PHP extension enabled
  • Valid Envato purchase code

Step 1: Download the Plugin

  • Log in to your Envato (CodeCanyon) account
  • Navigate to Downloads
  • Find Sunsky OpenAPI Plugin for Perfex CRM and click Download
  • Select Installable file only (the zip file)
  • Step 2: Upload the Module

    Method A: Admin Panel Upload (Recommended)

  • Log in to your Perfex CRM admin panel
  • Navigate to SetupModules
  • Click Upload Module
  • Select the downloaded zip file
  • Click Upload
  • Method B: FTP Upload

  • Extract the downloaded zip file
  • Connect to your server via FTP
  • Upload the sunsky_dropshipping folder to /modules/
  • Ensure folder permissions are set to 755
  • Step 3: Activate the Module

  • Go to SetupModules in admin panel
  • Find Sunsky Dropshipping in the list
  • Click Activate
  • Wait for the activation process to complete
  • The module will automatically:

    • Run database migrations
    • Create necessary tables
    • Set up initial configuration

    Step 4: Enter License Key

    :::important A valid license key is required to use module features. :::

  • After activation, go to Sunsky StoreSettings
  • Scroll to the License section
  • Enter your Envato Purchase Code (36 characters with dashes)
  • Click Activate License
  • Wait for verification confirmation
  • Finding Your Purchase Code

  • Go to codecanyon.net
  • Sign in to your account
  • Click your avatar → Downloads
  • Find Sunsky OpenAPI Plugin for Perfex CRM
  • Click DownloadLicense certificate & purchase code
  • Copy the purchase code from the text file
  • Step 5: Configure API Credentials

    Getting Sunsky API Credentials

  • Visit Sunsky Open Platform
  • Register for a business account
  • Apply for API access
  • Once approved, get your App Key and App Secret
  • Enter Credentials

  • Go to Sunsky StoreSettings
  • In the API Settings section:
  • - App Key: Enter your Sunsky application key - App Secret: Enter your Sunsky secret key

  • Click Test Connection to verify
  • Click Save Settings
  • Step 6: Initial Sync

  • Go to Sunsky StoreSync
  • Click Sync Categories to import categories
  • Click Sync Products to import products
  • Products will be automatically priced with your markup
  • Step 7: Setup Cron Job

    For automatic synchronization, set up a cron job:

    0 /6    wget -q -O /dev/null "https://yoursite.com/sunsky_dropshipping/cron/sync?key=YOUR_CRON_KEY"

    Replace YOUR_CRON_KEY with the key shown in Settings.

    Troubleshooting

    Module not appearing after upload

    • Check file permissions (755 for folders, 644 for files)
    • Ensure the folder name is exactly sunsky_dropshipping

    License activation fails

    • Verify your purchase code is correct
    • Check your server can reach the license server
    • Ensure your domain matches the activation

    API connection fails

    • Double-check your API credentials
    • Ensure your Sunsky account is active
    • Check if your IP is whitelisted on Sunsky