diff --git a/htdocs/stripe/transaction.php b/htdocs/stripe/transaction.php
index b20f66090e4..219846d151d 100644
--- a/htdocs/stripe/transaction.php
+++ b/htdocs/stripe/transaction.php
@@ -123,32 +123,6 @@ if (! $rowid) {
foreach ($txn->data as $txn)
{
- //$charge = $txn;
- //var_dump($txn);
-
- // The metadata FULLTAG is defined by the online payment page
- /*$FULLTAG=$charge->metadata->FULLTAG;
-
- // Save into $tmparray all metadata
- $tmparray = dolExplodeIntoArray($FULLTAG,'.','=');
- // Load origin object according to metadata
- if (! empty($tmparray['CUS']))
- {
- $societestatic->fetch($tmparray['CUS']);
- }
- else
- {
- $societestatic->id = 0;
- }
- if (! empty($tmparray['MEM']))
- {
- $memberstatic->fetch($tmparray['MEM']);
- }
- else
- {
- $memberstatic->id = 0;
- }*/
-
$societestatic->fetch($charge->metadata->idcustomer);
$societestatic->id = $charge->metadata->idcustomer;
$societestatic->lastname = $obj->lastname;
@@ -159,7 +133,7 @@ if (! $rowid) {
$societestatic->societe_id = $obj->fk_soc;
print '
';
-
+
// Ref
if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/';
@@ -171,41 +145,16 @@ if (! $rowid) {
} else {
$origin="payments";
}
-
+
$url='https://dashboard.stripe.com/'.$connect.'test/'.$origin.'/'.$txn->source;
if ($servicestatus)
{
- $url='https://dashboard.stripe.com/'.$connect.$origin.'/'.$txn->source;
+ $url='https://dashboard.stripe.com/'.$connect.$origin.'/'.$txn->source;
}
if ($txn->type == 'stripe_fee' || $txn->type == 'reserve_transaction') {
print "| ".$txn->type." | ";
} else print "".img_picto($langs->trans('ShowInStripe'), 'object_globe')." " . $txn->source . " | \n";
- // Stripe customer
- //print "".$charge->customer." | \n";
- // Link
- /*print "";
- if ($societestatic->id > 0)
- {
- print $societestatic->getNomUrl(1);
- }
- if ($memberstatic->id > 0)
- {
- print $memberstatic->getNomUrl(1);
- }
- print " | \n";*/
- // Origine
- //print "";
- ////if ($charge->metadata->dol_type=="order"){
- // $object = new Commande($db);
- // $object->fetch($charge->metadata->dol_id);
- // print "".img_picto('', 'object_order')." ".$object->ref."";
- //} elseif ($charge->metadata->dol_type=="invoice"){
- // $object = new Facture($db);
- // $object->fetch($charge->metadata->dol_id);
- // print "".img_picto('', 'object_invoice')." ".$object->ref."";
- //}
- //print " | \n";
// Date payment
print '' . dol_print_date($txn->created, '%d/%m/%Y %H:%M') . " | \n";
// Type