diff --git a/htdocs/core/modules/modStripe.class.php b/htdocs/core/modules/modStripe.class.php
index 5124d46e69a..e10316f7b2b 100644
--- a/htdocs/core/modules/modStripe.class.php
+++ b/htdocs/core/modules/modStripe.class.php
@@ -150,6 +150,18 @@ class modStripe extends DolibarrModules
'target' => '',
'user' => 0
);
+ $this->menu[$r] = array(
+ 'fk_menu' => 'fk_mainmenu=bank,fk_leftmenu=stripe',
+ 'type' => 'left',
+ 'titre' => 'StripePayoutList',
+ 'url' => '/stripe/payout.php',
+ 'langs' => 'stripe',
+ 'position' => 103,
+ 'enabled' => '$conf->stripe->enabled && $conf->banque->enabled && $conf->global->MAIN_FEATURES_LEVEL >= 1',
+ 'perms' => '$user->rights->banque->lire',
+ 'target' => '',
+ 'user' => 0
+ );
// Exports
$r=1;
diff --git a/htdocs/stripe/payout.php b/htdocs/stripe/payout.php
new file mode 100644
index 00000000000..db2d2f4f7d7
--- /dev/null
+++ b/htdocs/stripe/payout.php
@@ -0,0 +1,230 @@
+
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+// Put here all includes required by your class file
+
+require '../main.inc.php';
+require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
+require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
+require_once DOL_DOCUMENT_ROOT.'/stripe/class/stripe.class.php';
+//require_once DOL_DOCUMENT_ROOT.'/core/lib/stripe.lib.php';
+require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
+require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
+require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
+if (! empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT . '/accountancy/class/accountingjournal.class.php';
+
+// Load translation files required by the page
+$langs->loadLangs(array('compta', 'salaries', 'bills', 'hrm', 'stripe'));
+
+// Security check
+$socid = GETPOST("socid","int");
+if ($user->societe_id) $socid=$user->societe_id;
+//$result = restrictedArea($user, 'salaries', '', '', '');
+
+$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
+$rowid = GETPOST("rowid",'alpha');
+$sortfield = GETPOST("sortfield",'alpha');
+$sortorder = GETPOST("sortorder",'alpha');
+$page = GETPOST("page",'int');
+if (empty($page) || $page == -1) { $page = 0; } // If $page is not defined, or '' or -1
+$offset = $conf->liste_limit * $page;
+$pageprev = $page - 1;
+$pagenext = $page + 1;
+
+
+
+/*
+ * View
+ */
+
+$form = new Form($db);
+$societestatic = new Societe($db);
+$memberstatic = new Adherent($db);
+$acc = new Account($db);
+$stripe = new Stripe($db);
+
+llxHeader('', $langs->trans("StripePayoutList"));
+
+if (! empty($conf->stripe->enabled) && (empty($conf->global->STRIPE_LIVE) || GETPOST('forcesandbox','alpha')))
+{
+ $service = 'StripeTest';
+ $servicestatus = '0';
+ dol_htmloutput_mesg($langs->trans('YouAreCurrentlyInSandboxMode', 'Stripe'), '', 'warning');
+}
+else
+{
+ $service = 'StripeLive';
+ $servicestatus = '1';
+}
+
+$stripeacc = $stripe->getStripeAccount($service);
+/*if (empty($stripeaccount))
+{
+ print $langs->trans('ErrorStripeAccountNotDefined');
+}*/
+
+if (! $rowid) {
+
+ print '
';
+}
+
+// End of page
+llxFooter();
+$db->close();