Update charge.php

This commit is contained in:
ptibogxiv 2019-08-03 21:19:47 +02:00 committed by GitHub
parent 07cc21a113
commit 4633af3f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,16 +130,15 @@ if (!$rowid)
$label.="Réseau: ".$charge->outcome->network_status."<br>"; $label.="Réseau: ".$charge->outcome->network_status."<br>";
$label.="Statut: ".$langs->trans("".$charge->outcome->seller_message.""); $label.="Statut: ".$langs->trans("".$charge->outcome->seller_message."");
$status = $form->textwithpicto(img_picto($langs->trans("".$charge->status.""), 'statut8'), $label, 1); $status = $form->textwithpicto(img_picto($langs->trans("".$charge->status.""), 'statut8'), $label, 1);
} }
if ($charge->payment_method_details->type=='card') if ($charge->payment_method_details->type=='card')
{ {
$type = $langs->trans("card"); $type = $langs->trans("card");
} } elseif ($charge->source->type=='card'){
elseif ($charge->source->type=='card'){ $type = $langs->trans("card");
$type = $langs->trans("card");
} elseif ($charge->payment_method_details->type=='three_d_secure'){ } elseif ($charge->payment_method_details->type=='three_d_secure'){
$type = $langs->trans("card3DS"); $type = $langs->trans("card3DS");
} }
if (! empty($charge->payment_intent)) { if (! empty($charge->payment_intent)) {