| 1 |
<?php |
| 2 |
// @codingStandardsIgnoreFile |
| 3 |
/** |
| 4 |
* s2Member's PayPal Checkout (REST) handler. |
| 5 |
* |
| 6 |
* @package s2Member\PayPal |
| 7 |
* @since 260101 |
| 8 |
*/ |
| 9 |
if(!defined('WPINC')) |
| 10 |
exit('Do not access this file directly.'); |
| 11 |
|
| 12 |
if(!class_exists('c_ws_plugin__s2member_paypal_checkout')) |
| 13 |
{ |
| 14 |
class c_ws_plugin__s2member_paypal_checkout |
| 15 |
{ |
| 16 |
/** |
| 17 |
* @attaches-to ``add_action('init');`` |
| 18 |
*/ |
| 19 |
public static function paypal_checkout() |
| 20 |
{ |
| 21 |
if(!empty($_REQUEST['s2member_paypal_checkout'])) |
| 22 |
c_ws_plugin__s2member_paypal_checkout_in::paypal_checkout(); |
| 23 |
} |
| 24 |
} |
| 25 |
} |
| 26 |
|