wp-calypso
wp-calypso copied to clipboard
Marketplace: Product Licensing - Implement broadcasting subscription event using Webhook
Summary
As part of Marketplace licensing, We need to notify vendors in realtime about status of each subscription so they can take appropriate action on their side. We need to build mechanism where we can create such broadcast system using webhooks where we can notify vendors when status of subscription changes. We should notify vendors to their given URL for subscription event like created, cancelled, refunded, renewed, domain changed etc.
As additional work (nice to have), we can allow vendors to select which event they are interested in so that we can trigger webhook for selected events.
Related to pdh6GB-1dL-p2#comment-1951
- [ ] use as static webhook url in WPCOM . We will later store it in WPCOM (
store_vendors
table?) - [ ] trigger the relative webhooks on subscription events
Diff created D85401-code
Deployed r250484-wpcom