PHP code example of mobbexco / magento-2

1. Go to this page and download the library: Download mobbexco/magento-2 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mobbexco / magento-2 example snippets




namespace Vendor\Module\Observer;

class Hooks
{
    public function mobbexCheckoutRequest($body, $order)
    {
        $body['reference'] = $order->getId();

        return $body;
    }
}

    php bin/magento module:enable Mobbex_Webpay
    

    php bin/magento setup:upgrade
    php bin/magento setup:static-content:deploy -f