26include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
45 $this->numero = 50300;
47 $this->rights_class =
'stripe';
51 $this->family =
"interface";
53 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
55 $this->
description =
"Module to offer an online payment page by credit card with Stripe";
57 $this->version =
'dolibarr';
59 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
63 $this->picto =
'stripe';
66 $this->dirs = array();
69 $this->config_page_url = array(
"stripe.php@stripe");
72 $this->hidden =
false;
73 $this->depends = array();
74 $this->requiredby = array();
75 $this->phpmin = array(7, 0);
76 $this->need_dolibarr_version = array(5, 0);
77 $this->langfiles = array(
"stripe");
80 $this->
const = array();
83 $this->tabs = array();
86 $this->boxes = array();
90 $this->rights = array();
111 $this->menu[$r] = array(
112 'fk_menu'=>
'fk_mainmenu=bank',
114 'titre'=>
'StripeAccount',
115 'prefix' =>
img_picto(
'', $this->picto,
'class="paddingright pictofixedwidth"'),
117 'leftmenu'=>
'stripe',
121 'enabled' =>
'isModEnabled("stripe") && isModenabled("banque")',
122 'perms' =>
'$user->rights->banque->lire',
128 $this->menu[$r] = array(
129 'fk_menu' =>
'fk_mainmenu=bank,fk_leftmenu=stripe',
131 'titre' =>
'StripeChargeList',
132 'url' =>
'/stripe/charge.php',
135 'enabled' =>
'isModEnabled("stripe") && isModenabled("banque") && getDolGlobalInt("MAIN_FEATURES_LEVEL") >= 1',
136 'perms' =>
'$user->rights->banque->lire',
142 $this->menu[$r] = array(
143 'fk_menu' =>
'fk_mainmenu=bank,fk_leftmenu=stripe',
145 'titre' =>
'StripeTransactionList',
146 'url' =>
'/stripe/transaction.php',
149 'enabled' =>
'isModEnabled("stripe") && isModenabled("banque") && getDolGlobalInt("MAIN_FEATURES_LEVEL") >= 2',
150 'perms' =>
'$user->rights->banque->lire',
156 $this->menu[$r] = array(
157 'fk_menu' =>
'fk_mainmenu=bank,fk_leftmenu=stripe',
159 'titre' =>
'StripePayoutList',
160 'url' =>
'/stripe/payout.php',
163 'enabled' =>
'isModEnabled("stripe") && isModenabled("banque")',
164 '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=false, $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.