This WordPress plugin triggers a webhook call whenever a payment is successfully completed in WooCommerce. It allows seamless integration with external systems to handle post-payment actions, such as updating CRM, sending notifications, or initiating fulfillment processes.
- Automatically triggers a webhook when a payment is marked as completed in WooCommerce.
- Customizable webhook URL and payload.
- Secure webhook calls with optional signature verification.
- Easy-to-use admin interface for configuration.
- Lightweight and optimized for performance.
- WordPress 5.0 or higher
- WooCommerce 4.0 or higher
- PHP 7.4 or higher
- Download the plugin files.
- Upload the plugin folder to the
/wp-content/plugins/
directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- Navigate to the plugin settings page to configure the webhook.
- Go to the plugin settings page in your WordPress admin dashboard.
- Enter the Webhook URL by defining it in the plugin file:
define( 'NKG_WEBHOOK_URL', 'YOUR_WEB_HOOK_URL');
The plugin will automatically trigger a webhook call with the following payload when a payment is marked as completed:
{
"order_id": 1234,
"order_total": "49.99",
"currency": "USD",
"payment_method": "credit_card",
"customer_email": "[email protected]",
"customer_name": "John Doe"
}
Here is an example of handling the webhook in PHP:
$data = json_decode(file_get_contents('php://input'), true);
if ($data && $data['order_id']) {
// Process the webhook payload
error_log('Received webhook for order ID: ' . $data['order_id']);
}
We welcome contributions! Feel free to submit issues or pull requests on our GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or issues, please contact [email protected],https://www.freelancer.in/u/nimeshgorfad.