<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
return array(
  // Package -------------------------------------------------------------------
  'package' => array(
    'type' => 'module',
    'name' => 'payment',
    'version' => '8.1.0',
    'revision' => '$Revision: 10171 $',
    'path' => 'application/modules/Payment',
    'repository' => 'socialengine.com',
    'title' => 'Payment',
    'description' => 'Payment',
    'author' => 'SocialEngine Core',
    'thumb' => 'application/modules/Core/externals/images/thumb.png',
    'dependencies' => array(
      array(
        'type' => 'module',
        'name' => 'core',
        'minVersion' => '8.0.0',
      ),
      array(
        'type' => 'module',
        'name' => 'user',
        'minVersion' => '8.0.0',
      ),
    ),
    'actions' => array(
       'install',
       'upgrade',
       'refresh',
       //'enable',
       //'disable',
     ),
    'callback' => array(
        'path' => 'application/modules/Payment/settings/install.php',
        'class' => 'Payment_Installer',
    ),
    'directories' => array(
      'application/modules/Payment',
    ),
    'files' => array(
      'application/languages/en/payment.csv',
    ),
    'tests' => array(
      // PHP Extensions
//      array(
//        'type' => 'PhpExtension',
//        'name' => 'MCrypt',
//        'extension' => 'mcrypt',
//        'defaultErrorType' => 1, // Engine_Sanity::ERROR_NOTICE,
//        'messages' => array(
//          'noExtension' => 'We recommend installing the mcrypt extension. ' .
//              'Your payment gateway login information will be stored ' .
//              'encrypted if this extension is available.',
//        ),
//      ),
      array(
        'type' => 'PhpExtension',
        'name' => 'Curl',
        'extension' => 'curl',
        'messages' => array(
          'noExtension' => 'The Curl extension is required.',
        ),
      ),
      // Misc
      //array(
      //  'type' => 'PhpCurlSupport',
      //  'name' => 'Curl Features',
      //  'ssl' => true,
      //  'protocols' => array(
      //    'http',
      //    'https',
      //  ),
      //),
    ),
  ),
  // Hooks ---------------------------------------------------------------------
  'hooks' => array(
    array(
      'event' => 'onUserCreateBefore',
      'resource' => 'Payment_Plugin_Core',
    ),
    array(
      'event' => 'onAuthorizationLevelDeleteBefore',
      'resource' => 'Payment_Plugin_Core',
    ),
    array(
      'event' => 'onRenderLayoutDefault',
      'resource' => 'Payment_Plugin_Core',
    ),
  ),
  // Items ---------------------------------------------------------------------
  'items' => array(
    'payment_gateway',
    'payment_order',
    'payment_package',
    'payment_subscription',
    'payment_transaction',
    'payment_verification',
    'payment_verificationgateway',
    'payment_currency',
    
    'payment_verificationpackage',
    'payment_wallet',
    'payment_walletgateway',
  ),
  // Routes --------------------------------------------------------------------
);
