WooCommerce Integration
Connect your WooCommerce store to automate game key fulfillment.
Requirements
- WordPress 5.0 or higher
- WooCommerce 5.0 or higher
- SSL certificate (HTTPS required)
- REST API enabled
Step 1: Generate API Keys
- In your WordPress admin, go to WooCommerce → Settings → Advanced → REST API
- Click Add Key
- Fill in the details:
- Description:
PremiumCDKeys Integration
- User: Select an admin user
- Permissions:
Read/Write
- Click Generate API Key
- Copy both keys (Consumer Key and Consumer Secret) - you'll need these
⚠️ Important: The Consumer Secret is only shown once. Save it securely.
Step 2: Connect to PremiumCDKeys
- In PremiumCDKeys, go to Dashboard
- Click Connect Application → WooCommerce
- Enter your store details:
- Store URL:
https://yourgamestore.com
- Consumer Key: Paste from Step 1
- Consumer Secret: Paste from Step 1
- Click Connect
Step 3: Configure Webhooks
Webhooks notify PremiumCDKeys of new orders in real-time.
Automatic Setup
PremiumCDKeys can automatically create the required webhooks. Click Setup Webhooks in your application settings.
Manual Setup
If automatic setup fails:
- Go to WooCommerce → Settings → Advanced → Webhooks
- Add a new webhook:
- Name:
PremiumCDKeys Order Created
- Status:
Active
- Topic:
Order created
- Delivery URL:
https://premiumcdkeys.com/api/webhook/woocommerce/{your-shop-id}
- Secret: Copy from PremiumCDKeys settings
- Save the webhook
Step 4: Test the Connection
- In PremiumCDKeys, go to your WooCommerce application
- Click Browse Orders
- You should see your recent WooCommerce orders
Order Processing
Automatic Mode
Enable automatic processing in Control settings:
New Order → Auto-detect → Purchase Key → Deliver to Customer
Manual Mode
Process orders manually:
- Go to Orders
- Select pending orders
- Click Process Selected
Product Sync
PremiumCDKeys syncs your WooCommerce products for mapping:
- Product names and SKUs
- Variations (if applicable)
- Stock status
Products are refreshed automatically or manually via Sync Products.
Troubleshooting
Connection Failed
- Verify your API keys are correct
- Ensure REST API is enabled
- Check that your site uses HTTPS
Orders Not Syncing
- Verify webhooks are active in WooCommerce
- Check webhook delivery URL is correct
- Review webhook logs for errors
Products Not Appearing
- Click Sync Products to force a refresh
- Ensure products are published (not draft)
- Check product visibility settings
Best Practices
- Use a dedicated API user for PremiumCDKeys
- Keep webhooks active for real-time order processing
- Test with small orders before going live
- Monitor order status regularly
Next Steps