# better-payment/2.3.3/includes/API.php

Better Payment – Instant Payments, Donations, Fundraising with Subscriptions &amp; More, version 2.3.3. 44 lines.

- Page: https://pluginprobe.com/plugins/better-payment/2.3.3/code/includes/API.php
- Raw: https://pluginprobe.com/plugins/better-payment/2.3.3/raw/includes/API.php
- Modified: 2026-05-11T11:47:18+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/better-payment/2.3.3/code/includes/API.php#L10-L20`.

```php
<?php

namespace Better_Payment\Lite;

use Better_Payment\Lite\API\AdminAPI;
use Better_Payment\Lite\API\UserAPI;

/**
 * Exit if accessed directly
 */
if (!defined('ABSPATH')) {
    exit;
}

/**
 * API Class
 *
 * @since 0.0.1
 */
class API extends Controller {

    /**
     * Initialize the class
     *
     * @since 0.0.1
     */
    public function __construct() {
        add_action( 'rest_api_init', [ $this, 'register_api' ] );

        new AdminAPI();
        new UserAPI();
    }

    /**
     * Register the API
     *
     * @return void
     * @since 0.0.1
     */
    public function register_api() {
        //
    }
}

```
