🔧 Waply Connect Integration Guide

Complete developer guide for integrating Waply Connect into your WordPress plugins and themes

📋 Overview

Waply Connect is a powerful license management and digital product delivery system for WordPress. This comprehensive guide will help you integrate Waply Connect into your WordPress plugins and themes with ease.

✨ What You'll Learn

Complete integration process, API usage, security best practices, troubleshooting, and advanced customization techniques.

⚡ Prerequisites

🌐 WordPress Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher
  • MySQL 5.6 or higher
  • SSL certificate (required)

🔑 Account Requirements

  • Active Waply Connect account
  • Valid license key
  • API access credentials
  • Product configuration

📦 Installation

Step 1: Download and Install

  1. Download Waply Connect from your dashboard
  2. Install and activate the plugin in WordPress
  3. Navigate to Waply Connect → Settings
  4. Enter your license key and save

⚠️ Important

Make sure to backup your site before installation and test in a staging environment first.

🚀 Basic Integration

Step 1: Configure API Settings

  1. Go to Waply Connect → Settings
  2. Enter your API key from the Waply dashboard
  3. Configure your domain settings
  4. Save changes and test connection

Step 2: Create Your First Product

  1. Navigate to Waply Connect → Products
  2. Click "Add New Product"
  3. Configure product settings:

📝 Basic Information

  • Product Name
  • Description
  • Version Number
  • Category

💰 Pricing & Licensing

  • Price (one-time or recurring)
  • License Type
  • Usage Limitations
  • Renewal Options

Step 3: Implement License Checking

function check_license_status() { if (class_exists('Waply_Connect')) { $license = Waply_Connect::get_instance()->get_license(); return $license->is_valid(); } return false; }

Step 4: Add Buy Button

Use the shortcode generator in Waply Connect and place the shortcode in your content:

[waply_payment_button product_id="your_product_id" text="Buy Now" color="#10b981"]

⚙️ Advanced Integration

Custom License Validation

function custom_license_validation() { $license_manager = new Waply_License_Manager(); $validation = $license_manager->validate_license([ 'product_id' => 'your_product_id', 'license_key' => 'user_license_key', 'domain' => get_site_url() ]); if (is_wp_error($validation)) { // Handle error gracefully error_log('License validation failed: ' . $validation->get_error_message()); return false; } return $validation['status'] === 'active'; }

Automatic Updates Integration

function enable_auto_updates() { if (class_exists('Waply_Connect')) { add_filter('pre_set_site_transient_update_plugins', [ Waply_Connect::get_instance(), 'check_for_updates' ]); } } add_action('init', 'enable_auto_updates');

Custom API Endpoints

// Register custom REST API endpoint add_action('rest_api_init', function() { register_rest_route('waply/v1', '/validate', [ 'methods' => 'POST', 'callback' => 'waply_custom_validation', 'permission_callback' => '__return_true' ]); }); function waply_custom_validation($request) { $license_key = $request->get_param('license_key'); $product_id = $request->get_param('product_id'); // Your custom validation logic here return rest_ensure_response([ 'valid' => true, 'expires' => '2024-12-31' ]); }

🛡️ Security Best Practices

✅ Do This

  • Always validate license keys server-side
  • Use WordPress nonces for AJAX requests
  • Implement proper error handling
  • Sanitize all inputs and escape outputs
  • Cache validation results appropriately

❌ Avoid This

  • Client-side only validation
  • Storing API keys in JavaScript
  • Ignoring error responses
  • Excessive API calls
  • Hardcoding sensitive data

🔧 Troubleshooting

Common Issues

🔑 License Not Validating

  • Verify API key configuration
  • Check server connectivity
  • Confirm product ID matches
  • Review domain restrictions

🛒 Buy Button Not Displaying

  • Clear cache plugins
  • Check shortcode parameters
  • Verify product status is active
  • Review JavaScript console for errors

Debug Mode

Enable debug mode to get detailed logging:

// Add to wp-config.php define('WAPLY_DEBUG', true); define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);

🆘 Support & Resources

📚 Documentation

Complete Documentation

📧 Email Support

support@waply-connect.com

💬 Community

Contact Us

🎓 Tutorials

Developer Blog

⭐ Best Practices

  1. Always check if Waply Connect is active before using its functions
  2. Implement graceful fallbacks for license validation failures
  3. Cache license check results to improve performance (recommended: 1 hour)
  4. Follow WordPress coding standards and security guidelines
  5. Keep your integration code updated with latest Waply Connect features
  6. Test thoroughly in staging environments before production
  7. Monitor license validation logs for unusual patterns
  8. Implement proper error handling and user feedback

💡 Pro Tip

Regular testing with new WordPress versions and monitoring license validation logs will help maintain a smooth user experience.

🚀 Ready to Get Started?

This guide provides a solid foundation for integrating Waply Connect into your WordPress products.

Your Cart

Your cart is empty