Skip to content

Commit

Permalink
Update status display in charge list
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Sep 11, 2018
1 parent d011204 commit 26a8b5b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions htdocs/stripe/charge.php
Expand Up @@ -190,14 +190,16 @@
// Status
print '<TD align="right">';
if ($charge->refunded=='1'){
print $langs->trans("refunded");
print img_picto($langs->trans("refunded"),'statut6');
} elseif ($charge->paid=='1'){
print $langs->trans("".$charge->status."");

print img_picto($langs->trans("".$charge->status.""),'statut4');

} else {
$label="Message: ".$charge->failure_message."<br>";
$label.="Réseau: ".$charge->outcome->network_status."<br>";
$label.="Statut: ".$langs->trans("".$charge->outcome->seller_message."");
print $form->textwithpicto($langs->trans("".$charge->status.""),$label,1);
print $form->textwithpicto(img_picto($langs->trans("".$charge->status.""),'statut8'),$label,1);
}
print "</TD>\n";

Expand Down

0 comments on commit 26a8b5b

Please sign in to comment.