# s2member/trunk/src/includes/classes/paypal-webhook.inc.php

s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls &amp; Member Access Subscriptions, version trunk. 26 lines.

- Page: https://pluginprobe.com/plugins/s2member/trunk/code/src/includes/classes/paypal-webhook.inc.php
- Raw: https://pluginprobe.com/plugins/s2member/trunk/raw/src/includes/classes/paypal-webhook.inc.php
- Modified: 2026-01-28T03:56:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/s2member/trunk/code/src/includes/classes/paypal-webhook.inc.php#L10-L20`.

```php
<?php
// @codingStandardsIgnoreFile
/**
 * s2Member's PayPal Webhook handler (REST).
 *
 * @package s2Member\PayPal
 * @since 260112
 */
if(!defined('WPINC'))
	exit('Do not access this file directly.');

if(!class_exists('c_ws_plugin__s2member_paypal_webhook'))
{
	class c_ws_plugin__s2member_paypal_webhook
	{
		/**
		 * @attaches-to ``add_action('init');``
		 */
		public static function paypal_webhook()
		{
			if(!empty($_REQUEST['s2member_paypal_webhook']))
				c_ws_plugin__s2member_paypal_webhook_in::paypal_webhook();
		}
	}
}

```
