27include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
46 $this->numero = 50300;
48 $this->rights_class =
'stripe';
52 $this->family =
"interface";
54 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
56 $this->
description =
"Module to offer an online payment page by credit card with Stripe";
58 $this->version =
'dolibarr';
60 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
64 $this->picto =
'stripe';
67 $this->dirs = array();
70 $this->config_page_url = array(
"stripe.php@stripe");
73 $this->hidden =
false;
74 $this->depends = array();
75 $this->requiredby = array();
76 $this->phpmin = array(7, 0);
77 $this->need_dolibarr_version = array(5, 0);
78 $this->langfiles = array(
"stripe");
81 $this->
const = array();
84 $this->tabs = array();
87 $this->boxes = array();
91 $this->rights = array();
112 $this->menu[$r] = array(
113 'fk_menu' =>
'fk_mainmenu=bank',
115 'titre' =>
'StripeAccount',
116 'prefix' =>
img_picto(
'', $this->picto,
'class="paddingright pictofixedwidth"'),
117 'mainmenu' =>
'bank',
118 'leftmenu' =>
'stripe',
122 'enabled' =>
'isModEnabled("stripe") && isModenabled("banque")',
123 'perms' =>
'$user->rights->banque->lire',
129 $this->menu[$r] = array(
130 'fk_menu' =>
'fk_mainmenu=bank,fk_leftmenu=stripe',
132 'titre' =>
'StripeChargeList',
133 'url' =>
'/stripe/charge.php',
136 'enabled' =>
'isModEnabled("stripe") && isModenabled("banque") && getDolGlobalInt("MAIN_FEATURES_LEVEL") >= 1',
137 'perms' =>
'$user->rights->banque->lire',
143 $this->menu[$r] = array(
144 'fk_menu' =>
'fk_mainmenu=bank,fk_leftmenu=stripe',
146 'titre' =>
'StripeTransactionList',
147 'url' =>
'/stripe/transaction.php',
150 'enabled' =>
'isModEnabled("stripe") && isModenabled("banque") && getDolGlobalInt("MAIN_FEATURES_LEVEL") >= 2',
151 'perms' =>
'$user->rights->banque->lire',
157 $this->menu[$r] = array(
158 'fk_menu' =>
'fk_mainmenu=bank,fk_leftmenu=stripe',
160 'titre' =>
'StripePayoutList',
161 'url' =>
'/stripe/payout.php',
164 'enabled' =>
'isModEnabled("stripe") && isModenabled("banque")',
165 'perms' =>
'$user->rights->banque->lire',
Description and activation class for module Paybox.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
$conf db name
Only used if Module[ID]Name translation string is not found.