count-payments-endpoint.php
2 years ago
delete-payment-endpoint.php
2 years ago
delete-payments-endpoint.php
2 years ago
gateway-endpoint.php
2 years ago
receive-payment.php
2 years ago
receive-payments.php
2 years ago
rest-api-controller.php
2 years ago
rest-api-controller.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JFB_Modules\Gateways\Rest_Api; |
| 4 | |
| 5 | use JFB_Modules\Gateways\Paypal\Rest_Endpoints\Fetch_Pay_Now_Editor; |
| 6 | use JFB_Components\Rest_Api\Rest_Api_Controller_Base; |
| 7 | |
| 8 | // If this file is called directly, abort. |
| 9 | if ( ! defined( 'WPINC' ) ) { |
| 10 | die; |
| 11 | } |
| 12 | |
| 13 | class Rest_Api_Controller extends Rest_Api_Controller_Base { |
| 14 | |
| 15 | public function routes(): array { |
| 16 | return array( |
| 17 | new Fetch_Pay_Now_Editor(), |
| 18 | new Receive_Payments(), |
| 19 | new Delete_Payments_Endpoint(), |
| 20 | new Delete_Payment_Endpoint(), |
| 21 | new Count_Payments_Endpoint(), |
| 22 | ); |
| 23 | } |
| 24 | } |
| 25 |