PHPackages                             yadivyanshu/magento2-order-webhook - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. yadivyanshu/magento2-order-webhook

ActiveMagento2-module[API Development](/categories/api)

yadivyanshu/magento2-order-webhook
==================================

Magento 2 module that sends order events to a configurable webhook endpoint. Test package for Packagist deployment pipeline.

v0.1.1(1mo ago)02MITPHPPHP &gt;=8.1

Since Apr 11Pushed 1mo agoCompare

[ Source](https://github.com/yadivyanshu1/magento2-order-webhook)[ Packagist](https://packagist.org/packages/yadivyanshu/magento2-order-webhook)[ RSS](/packages/yadivyanshu-magento2-order-webhook/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Magento 2 Order Webhook
=======================

[](#magento-2-order-webhook)

A Magento 2 module that sends order events to a configurable HTTPS webhook endpoint with Bearer token authentication. Useful for piping order data into external automation platforms (WhatsApp, Slack, email, CRM, etc.).

> **Status:** Test package for Packagist deployment pipeline validation. Not intended for production use yet.

Features
--------

[](#features)

- Fires on `sales_order_place_after` (order created)
- Payload includes order, customer, items, billing/shipping addresses
- Admin config UI (Stores → Configuration → Yadivyanshu → Order Webhook)
- API key stored encrypted in Magento config
- Handshake verification on save — visual "Connected / Failed / Not Connected" status
- Never blocks checkout on webhook failure (errors are logged, not thrown)

Requirements
------------

[](#requirements)

- Magento 2.4.4+
- PHP 8.1+

Installation
------------

[](#installation)

```
composer require yadivyanshu/magento2-order-webhook
bin/magento module:enable Yadivyanshu_OrderWebhook
bin/magento setup:upgrade
bin/magento cache:flush
```

Configuration
-------------

[](#configuration)

1. Log in to Magento admin
2. Go to **Stores → Configuration → Yadivyanshu → Order Webhook**
3. Fill in:
    - **Enable Module:** Yes
    - **API Base URL:** your webhook platform base URL (no trailing slash)
    - **API Key:** the bearer token your platform expects
4. Click **Save Config**
5. Confirm the status badge turns green (**Connected ✓**)

API Contract
------------

[](#api-contract)

The module expects your backend to expose two endpoints:

### `POST {base_url}/public/magento/verify-store`

[](#post-base_urlpublicmagentoverify-store)

Called on admin config save. Request:

```
{
  "platform": "magento",
  "store_url": "https://example.com/",
  "store_code": "default",
  "store_name": "Main Website Store",
  "store_id": 1
}
```

Return `2xx` to mark the connection as verified.

### `POST {base_url}/public/magento/webhooks/order`

[](#post-base_urlpublicmagentowebhooksorder)

Called on every order placed. Includes full order payload. Return `2xx` to acknowledge.

Both endpoints receive `Authorization: Bearer ` header.

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 73% of packages

Maintenance88

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

59d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e7259926cb1f2f9b1f6674d338196ba30808d7f0b485ebd2814ee335b591449c?d=identicon)[divyasnhu1relinns](/maintainers/divyasnhu1relinns)

### Embed Badge

![Health badge](/badges/yadivyanshu-magento2-order-webhook/health.svg)

```
[![Health](https://phpackages.com/badges/yadivyanshu-magento2-order-webhook/health.svg)](https://phpackages.com/packages/yadivyanshu-magento2-order-webhook)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.8M12](/packages/mollie-magento2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)[amzn/amazon-pay-magento-2-module

Official Magento2 Plugin to integrate with Amazon Pay

108521.2k1](/packages/amzn-amazon-pay-magento-2-module)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50390.4k20](/packages/dotdigital-dotdigital-magento2-extension)[buckaroo/magento2

Buckaroo Magento 2 extension

32414.8k7](/packages/buckaroo-magento2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
