diff --git a/htdocs/stripe/charge.php b/htdocs/stripe/charge.php
index e8823119e30bd..80c633b02549b 100644
--- a/htdocs/stripe/charge.php
+++ b/htdocs/stripe/charge.php
@@ -121,6 +121,31 @@
//print $list;
foreach ($list->data as $charge)
{
+ if ($charge->refunded=='1'){
+ $status = img_picto($langs->trans("refunded"), 'statut6');
+ } elseif ($charge->paid=='1'){
+ $status = img_picto($langs->trans("".$charge->status.""), 'statut4');
+ } else {
+ $label="Message: ".$charge->failure_message."
";
+ $label.="Réseau: ".$charge->outcome->network_status."
";
+ $label.="Statut: ".$langs->trans("".$charge->outcome->seller_message."");
+ $status = $form->textwithpicto(img_picto($langs->trans("".$charge->status.""), 'statut8'), $label, 1);
+ }
+
+ if ($charge->payment_method_details->type=='card')
+ {
+ $type = $langs->trans("card");
+ }
+ elseif ($charge->source->type=='card'){
+ $type = $langs->trans("card");
+ } elseif ($charge->payment_method_details->type=='three_d_secure'){
+ $type = $langs->trans("card3DS");
+ }
+
+ if (! empty($charge->payment_intent)) {
+ $charge = \Stripe\PaymentIntent::retrieve($charge->payment_intent);
+ }
+
// The metadata FULLTAG is defined by the online payment page
$FULLTAG=$charge->metadata->FULLTAG;
@@ -205,31 +230,13 @@
print '