Setting Up the WooCommerce Plugin for 4Geeks Payments¶
Overview¶
The 4Geeks Payments WooCommerce Plugin allows you to accept online payments on your WordPress/WooCommerce store in 5 minutes or less — no coding required. The plugin connects your store to 4Geeks Payments, which processes the payments and settles them to your account, so you can focus on selling.
In this tutorial, you will:
- Install the 4Geeks Payments plugin
- Configure payment methods
- Test transactions in sandbox mode
- Go live and start accepting payments
Prerequisites¶
- An activated 4Geeks Payments account (activate service)
- WordPress 5.0+ with WooCommerce installed
- Admin access to your WordPress dashboard
Step 1: Install the Plugin¶
Option A: From WordPress Plugin Directory¶
- Go to your WordPress admin dashboard
- Navigate to Plugins → Add New
- Search for “4Geeks Payments”
- Click “Install Now” then “Activate”
Option B: Manual Upload¶
- Download the plugin from docs.4geeks.io/en/payments/plugins/woocommerce
- Go to Plugins → Add New → Upload Plugin
- Upload the ZIP file
- Click “Activate”
Step 2: Configure API Keys¶
- Go to WooCommerce → Settings → Payments
- Find 4Geeks Payments and click “Manage”
- Enter your API credentials:
- Public Key: From your 4Geeks console
- Secret Key: From your 4Geeks console
- Toggle “Enable/Disable” to Enable
Tip: Start with sandbox keys to test before going live.
Step 3: Configure Payment Settings¶
General Settings¶
| Setting | Description | Recommended |
|---|---|---|
| Title | Payment method name shown at checkout | “Credit/Debit Card” |
| Description | Description shown to customers | “Pay securely with your card” |
| Test Mode | Enable sandbox testing | Yes (initially) |
| 3D Secure | Enable 3DS authentication | Yes |
Transaction Settings¶
| Setting | Description | Recommended |
|---|---|---|
| Capture | Auto-capture or authorize only | Auto-capture |
| Statement Descriptor | Text on customer’s bank statement | Your business name |
| Accepted Cards | Which card brands to accept | All enabled |
Step 4: Test in Sandbox Mode¶
- Ensure Test Mode is enabled
- Add a product to your cart and proceed to checkout
- Use a test card number:
| Card | Number | Result |
|---|---|---|
| Visa (Success) | 4242 4242 4242 4242 | Payment approved |
| Visa (Declined) | 4000 0000 0000 9995 | Payment declined |
| Requires 3DS | 4000 0000 0000 0002 | 3D Secure challenge |
- Use any future expiry date and any 3-digit CVC
- Complete the checkout and verify the order status
Step 5: Verify Webhook Configuration¶
Webhooks ensure your store receives real-time payment updates:
- In your 4Geeks console, go to Payments → Settings → Webhooks
- Add your webhook URL:
https://yourstore.com/wc-api/4geeks_payments - Select events to receive:
charge.succeededcharge.failedrefund.completedsubscription.created- Save and test the webhook
Step 6: Go Live¶
Once testing is complete:
- Switch from Test Mode to Live Mode in plugin settings
- Replace sandbox API keys with production keys
- Place a real test order with an actual card (small amount)
- Verify the payment appears in your 4Geeks console
- Confirm the payout is scheduled to your bank account
Supported Features¶
| Feature | Supported |
|---|---|
| One-time payments | Yes |
| Recurring subscriptions (WooCommerce Subscriptions) | Yes |
| Refunds from WooCommerce admin | Yes |
| Partial refunds | Yes |
| Multi-currency | Yes |
| 3D Secure (3DS) | Yes |
| Saved cards | Yes |
| Payment links | Yes |
Troubleshooting¶
Common Issues¶
| Issue | Solution |
|---|---|
| “Invalid API key” error | Verify keys are correct and from the right environment (sandbox vs. production) |
| Payment fails silently | Check webhook configuration and server logs |
| 3D Secure not triggering | Ensure 3DS is enabled in plugin settings |
| Refund not processing | Verify the original charge is captured and refundable |
Getting Help¶
- Check the plugin logs: WooCommerce → Status → Logs
- Review the Payments documentation
- Contact support through the console dashboard
What’s Next?¶
- Learn about Recurring Subscription Billing
- Explore Multi-Currency Checkout
Need Help?¶
- Documentation: docs.4geeks.io/en/payments/plugins/woocommerce
- API Reference: docs.4geeks.io/en/api
- Support: Available through the console dashboard
Still have questions? Ask on Discord or explore the tutorials.