mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
fix deletion of stripe customer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user