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

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

- Page: https://pluginprobe.com/plugins/better-payment/1.0.4/code/includes/API.php
- Raw: https://pluginprobe.com/plugins/better-payment/1.0.4/raw/includes/API.php
- Modified: 2022-04-18T10:23:46+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/1.0.4/code/includes/API.php#L10-L20`.

```php
<?php

namespace Better_Payment\Lite;

/**
 * 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' ] );
    }

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

```
