fix deletion of stripe customer

This commit is contained in:
ptibogxiv
2018-08-29 17:25:37 +02:00
committed by GitHub
parent 2daa5b3ae0
commit 4de8b8bfd9

View File

@@ -176,6 +176,11 @@ class InterfaceStripe
if ($customer) {
$customer->delete();
}
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_account";
$sql.= " WHERE site='stripe' AND fk_soc = " . $object->id;
$this->db->query($sql);
}
// If payment mode is linked to Strip, we update/delete Stripe too